Hello folks,
I'm currently struggling with setting the velocity of a client. The current implementation uses `TeleportClient`
Code:
TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, newVelocity);
But the downside is, that the entities on the map are re-initialized on each teleport. So I'm looking for a solution to set the velocity without teleporting.
I've tried setting the velocity with
Code:
SetEntPropVector(client, Prop_Data, "m_vecVelocity", newVelocity);
but the player velocity slows down immediately. And using
Code:
SetEntPropVector(client, Prop_Data, "m_vecBaseVelocity", newVelocity);
then the new velocity is to strong and the player is flying away.
So has anyone an idea how to set the players velocity without using `TeleportEntity`?