Game Development Community

Slow down Gideon

by Jim (WhiteRaven) Burchfield · in Technical Issues · 03/04/2011 (1:27 pm) · 4 replies

I am using the World Editor in the Tool Box Demo version to test model loadability/textures/collision.

I find that at times, especially in tight situations, Gideon moves waaaaaay too fast for me to check collision meshes.

Is there a way to slow this player character down?

I have tried changing the camera speed but that doesn't slow the character himself.

Can anyone tell me where/how to change the character speed?

#1
03/04/2011 (2:12 pm)
Open your project's folder and navigate to game/art/datablocks. In there open player.cs and scroll down to the DefaultPlayerData Datablock. In there you'll find the following code that controls the speed.

runForce = 48 * 90;
   runEnergyDrain = 0;
   minRunEnergy = 0;
   maxForwardSpeed = 8;
   maxBackwardSpeed = 6;
   maxSideSpeed = 6;

   crouchForce = 45.0 * 9.0;
   maxCrouchForwardSpeed = 4.0;
   maxCrouchBackwardSpeed = 2.0;
   maxCrouchSideSpeed = 2.0;

   maxUnderwaterForwardSpeed = 8.4;
   maxUnderwaterBackwardSpeed = 7.8;
   maxUnderwaterSideSpeed = 7.8;

All you need to alter are the max speed values.
#2
03/04/2011 (2:46 pm)
Thanks, Scott.

I'll give it a try.
#3
03/04/2011 (2:50 pm)
Again Thanks.

That solved it for me.
#4
03/05/2011 (7:12 am)
And to think that we slowed Gideon down two times over the course of T3D betas - you shoulda seen how fast the orc could run :D