Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Penumbra Worm...
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#2
RE: Penumbra Worm...

The most common way of doing it is the way Tenebris Lake has done it and other conversion mods. First is converting it to a move object and move it forward through these scripts.

void SetMoveObjectState(string& asName, float afState);

Moves an object to a certain state.

asName - internal name
afState - state of the object, 0 = closed, 1 = open, values inbetween (and above, for example, the bridge_metal_vert) are valid too!

void SetMoveObjectStateExt(string& asName, float afState, float afAcc, float afMaxSpeed, float afSlowdownDist, bool abResetSpeed);

Moves an object to a certain state, extended method.

asName - internal name
afState - state of the object, 0 = closed, 1 = open, values inbetween are valid too!
afAcc - acceleration
afMaxSpeed - maximum speed
afSlowdownDist - Distance to the target state before decceleration occurs.
abResetSpeed - Set to True if the prop's speed should be reset before performing the movement, else the prop will accelerate from it's current speed to afMaxSpeed.

Derp.
08-24-2014, 07:30 PM
Find


Messages In This Thread
Penumbra Worm... - by Amnesiaplayer - 08-24-2014, 07:20 PM
RE: Penumbra Worm... - by Neelke - 08-24-2014, 07:30 PM
RE: Penumbra Worm... - by Amnesiaplayer - 08-24-2014, 07:35 PM
RE: Penumbra Worm... - by Neelke - 08-24-2014, 07:39 PM
RE: Penumbra Worm... - by Amnesiaplayer - 08-24-2014, 08:05 PM
RE: Penumbra Worm... - by Neelke - 08-24-2014, 08:09 PM
RE: Penumbra Worm... - by Amnesiaplayer - 08-24-2014, 08:37 PM
RE: Penumbra Worm... - by Neelke - 08-24-2014, 08:44 PM
RE: Penumbra Worm... - by Amnesiaplayer - 08-25-2014, 06:37 AM
RE: Penumbra Worm... - by Neelke - 08-25-2014, 01:29 PM
RE: Penumbra Worm... - by Amnesiaplayer - 08-25-2014, 01:35 PM
RE: Penumbra Worm... - by Neelke - 08-25-2014, 02:06 PM
RE: Penumbra Worm... - by Amnesiaplayer - 08-25-2014, 02:23 PM
RE: Penumbra Worm... - by Neelke - 08-25-2014, 03:34 PM
RE: Penumbra Worm... - by Amnesiaplayer - 08-25-2014, 03:41 PM
RE: Penumbra Worm... - by Neelke - 08-25-2014, 03:44 PM
RE: Penumbra Worm... - by Amnesiaplayer - 08-25-2014, 03:47 PM
RE: Penumbra Worm... - by Radical Batz - 08-25-2014, 04:06 PM
RE: Penumbra Worm... - by Amnesiaplayer - 08-25-2014, 04:18 PM
RE: Penumbra Worm... - by Radical Batz - 08-25-2014, 04:20 PM
RE: Penumbra Worm... - by Amnesiaplayer - 08-25-2014, 04:23 PM



Users browsing this thread: 4 Guest(s)