Author Topic: What is the variable for the C walk speed in script?  (Read 1363 times)

like MaxForwardSpeed = x; is the variable for regular running I am wondering if there is a variable for the slow walk that happens when you press C, or if it can even be edited.

It's done by the client. It changes the client-sided variable $mvForwardSpeed to half its original value.

It's done by the client. It changes the client-sided variable $mvForwardSpeed to half its original value.
$mvForwardAction (as well as backward, left, and right), and 40%

So there is no way to alter it inside of a playertype mod?

So there is no way to alter it inside of a playertype mod?

The only way you could without modifying the run speed is with a client sided mod.

You could potentially do some hacky stuff detecting if the players horizontal speed is a certain amount that means they are walking, and the vertical speed is 0, etc, but I don't recommend it.

You can always just use the light key (or some other key) along with the new player speed methods.