Author Topic: SetPlayerSpeed  (Read 1364 times)

I can make a new playertype, with an RTB preference to change his speed, but it would require a restart of the server
I can't use a playertype. That's why wan't SetPlayerSpeed.

I can't use a playertype. That's why wan't SetPlayerSpeed.
It is the only way.

It is the only way.

No, each player would get their own datablock, and you can change the speeds / jumpForce of their datablocks individually. They'd be re-used if someone left and a new person joined. It worked fine; no bugs.

I don't know what you don't like about SetPlayerSpeed.

It is the only way.

No, each player would get their own datablock, and you can change the speeds / jumpForce of their datablocks individually. They'd be re-used if someone left and a new person joined. It worked fine; no bugs.
You shouldn't be transmitting datablocks on-the-fly in a game. It's not how that command is meant to work at all.

The correct way to d o this is to change the max wheel speed either directly in the vehicle code, or in a script that is executed when the server starts up and before any client connects.

I don't know what you don't like about SetPlayerSpeed.
It's not that we don't like it. It's that it's highly impossible without engine changes or millions of datablocks.

Or by going with Truce's idea, however, downsides:
-By transmitting datablocks whenever something changes, there'll be lag spikes once this happens.
-By not transmitting datablocks whenever something changes, the movement will be choppy for everyone but the host.

If you could make SetVelocity, Then SetPlayerSpeed should be possible.


I don't call transmit datablocks.

-By not transmitting datablocks whenever something changes, the movement will be choppy for everyone but the host.

Everyone I asked said their movement was smooth; I edited the speeds and jumpForces.

Everyone I asked said their movement was smooth; I edited the speeds and jumpForces.
I originally thought that there was almost no effect at all, but I believed Ephialtes. I guess I'll believe this again.