If you spawn you are freezed at the spawnpoint and thats annoying.
WarZ.sln
Search:
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(); 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
Credits: @GigaToni & MeCode:// 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 + 1 && 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



Reply With Quote![[Tutorial] Fix freeze after spawn](http://ragezone.com/hyper728.png)


