If you spawn you are freezed at the spawnpoint and thats annoying.
WarZ.sln
Search:
and change the red:
Credits: @GigaToni & Me
WarZ.sln
Search:
Code:
// IF PLAYER IS FAST LOAD ON PLAYER CANT MOVE 12sec because fastload problem. // wait 12 secs for fastload load building around player.
// prevPos2 = GetPosition();
if (g_FastLoad->GetBool() && r3dGetTime() > gClientLogic().localPlayerConnectedTime + 12 && gClientLogic().localPlayer_ == this)
controller->Move(vel * TimePassed, 0.5f);
if (!g_FastLoad->GetBool())
controller->Move(vel * TimePassed, 0.5f);
prevPos = GetPosition();
controller->prevpos = GetPosition();
parent::Update(); // manually update position after updating physics. Needed for camera, otherwise it will be lagging one frame behind
and change the red:
Code:
// IF PLAYER IS FAST LOAD ON PLAYER CANT MOVE 12sec because fastload problem. // wait 12 secs for fastload load building around player.
// prevPos2 = GetPosition();
[COLOR=#ff0000] if (g_FastLoad->GetBool() && r3dGetTime() > gClientLogic().localPlayerConnectedTime + 1 && gClientLogic().localPlayer_ == this)[/COLOR]
controller->Move(vel * TimePassed, 0.5f);
if (!g_FastLoad->GetBool())
controller->Move(vel * TimePassed, 0.5f);
prevPos = GetPosition();
controller->prevpos = GetPosition();
parent::Update(); // manually update position after updating physics. Needed for camera, otherwise it will be lagging one frame behind
Credits: @GigaToni & Me
Last edited: