Game Development Community

Slowing, Freezing, Ect.

by Robert Fritzen · in Torque 3D Professional · 08/17/2013 (2:02 pm) · 2 replies

Hey guys, I'm looking to add some functioning to the player class to slow a specific player object's movement speed, looking speed (pitch & yaw) [Concussion effect], and even freeze it on the go.

Is there any resources or pointers to do so, bonus points for doing these based on multipliers.

#1
08/17/2013 (2:48 pm)
I added a SpeedModifier, set to 0 for freezing and to 1 for normal speed. (It's a float) might be a little too simple tho, not enough control but thats one way to go.
#2
08/17/2013 (3:04 pm)
This commit takes AIPlayer's movement speed modifier and shifts it into the Player class so you can use it on regular Players. I haven't tested it with multiplayer but it should work. You could use the same principle for a look speed modifier.