I've been wanting to make my own player type for awhile, and I've looked around, and I know what I need, but not how to get it.
Here's all of the satistics (Unlisted values should remain at default):
- maxForwardSpeed = $Speed
- maxBackwardSpeed = 10
- maxSideSpeed = (8+$Speed)/2
- maxForwardCrouchSpeed = $Speed/2
- maxBackwardCrouchSpeed = 5
- maxSideCrouchSpeed = 5
- maxJumpVelocity(Not sure it exists) = [if the player is not against a wall] = 15+($Speed/8); [if the player is against a wall] = 15+($Speed/6)
The $Speed variable will consist of many other variables.
It's hard to explain, but I'll give you the math and the english mixed.
When the player begins to move, begin at a speed of 8.
Slowly accelerate to a speed of 24 over 6 seconds.
When not moving, decelerate to 0 in 1 second.
if($Speed>=24), stop accelerating, and don't go past 24
if the player is crouching, stop accelerating, and decelerate to 0 over 3 seconds.
My overall goal is to create a player type that is like a suburb ninja. I'm still plotting most of this out, so if you find holes if my math, noticed that I failed to mention something, or want to present a new idea, please say whatever you find is neccisary.
I sure hope someone can help!