Author Topic: Player Speeds  (Read 464 times)

What is the easiest way to change the speed in which a player crouches, walks, and runs without having to create a datablock for every speed? I want it so I can change the speed in which the player moves for the rest of their lifetime.

What I am planning on doing is making it so when the player is more hurt they move slower.
« Last Edit: May 28, 2011, 12:53:10 AM by Plexious »

Impossible. Period.

You have to use datablocks.

Impossible. Period.

You have to use datablocks.
Aren't there some weapons that slow the player down without datablocks? Or is that just the knockback?
« Last Edit: May 27, 2011, 09:59:14 PM by Plexious »

Aren't there some weapons that slow the player down without datablocks? Or is that just the knockback?
If you mean certain miniguns, and the OSR, they do change datablocks.


You know how you fall off slopes and move slow while 'scoped' with the OSR? Set the minigame's datablock to a no-jet player, and have an evented brick change you into a horse. Then try to scope with the OSR. Turn the scope off and return to 3rd person view. You are again a no-jet player.



However. There is a way to change the values on a datablock and send that changed data to clients. With this, you could have a separate datablock for each player slot. I do not recommend using transmitDatablocks, as that sends all of them, and displays a message saying it happened. I'm sure there's another function to send individual datablocks to individual clients.
« Last Edit: May 27, 2011, 10:55:34 PM by Chrono »

I got the datablocks working but for some reason they slide around a lot. What are some of the default datablock prefs?

If they slide around a lot try increasing runForce.

If they slide around a lot try increasing runForce.
Fixed. Locking.