Getting somewhere! (how do I edit jump strength
by Jonathan Rose · in Torque Game Engine · 08/02/2003 (5:06 am) · 2 replies
Well, I finally managed to compile using MinGW, and I got an application that worked!!!
anyway im wondering how to edit the height the player jumps... any takers? Im sure its not too complicated, and isnt but a simple variable, but Id like to know so I can save some time.
anyway im wondering how to edit the height the player jumps... any takers? Im sure its not too complicated, and isnt but a simple variable, but Id like to know so I can save some time.
Torque Owner Greg Ellwood
Well done on getting everything compiling :)
Changing how high the player jumps can be done in script. Look for the player.cs file in: fps\server\scripts
Around line 566 you should see this line:
jumpForce = 8.3 * 90;
play around with this line to change how the player jumps, so let go crazy:
jumpForce = 80.3 * 90;
Save the file and re-run the game to see it in action. If for some reason nothing changes delete the player.cs.dso file (which is the compiled version of the .cs file) and try again.
-Greg.