mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-03-28 05:09:27 +03:00
Sometimes teleports wouldn't work because physics impacts were processed before the player's thinkings, fixed it by moving the processed impacts before thinking functions.
This commit is contained in:
parent
ff47d396cd
commit
d370302438
@ -417,6 +417,11 @@ void CPlayerMove::RunCommand ( CBasePlayer *player, CUserCmd *ucmd, IMoveHelper
|
||||
{
|
||||
player->pl.v_angle = ucmd->viewangles + player->pl.anglechange;
|
||||
}
|
||||
|
||||
// Let server invoke any needed impact functions
|
||||
VPROF_SCOPE_BEGIN( "moveHelper->ProcessImpacts" );
|
||||
moveHelper->ProcessImpacts();
|
||||
VPROF_SCOPE_END();
|
||||
|
||||
// Call standard client pre-think
|
||||
RunPreThink( player );
|
||||
@ -451,11 +456,6 @@ void CPlayerMove::RunCommand ( CBasePlayer *player, CUserCmd *ucmd, IMoveHelper
|
||||
player->pl.v_angle = player->GetLockViewanglesData();
|
||||
}
|
||||
|
||||
// Let server invoke any needed impact functions
|
||||
VPROF_SCOPE_BEGIN( "moveHelper->ProcessImpacts" );
|
||||
moveHelper->ProcessImpacts();
|
||||
VPROF_SCOPE_END();
|
||||
|
||||
g_pGameMovement->FinishTrackPredictionErrors( player );
|
||||
|
||||
FinishCommand( player );
|
||||
|
@ -416,6 +416,11 @@ void CPlayerMove::RunCommand ( CBasePlayer *player, CUserCmd *ucmd, IMoveHelper
|
||||
{
|
||||
player->pl.v_angle = ucmd->viewangles + player->pl.anglechange;
|
||||
}
|
||||
|
||||
// Let server invoke any needed impact functions
|
||||
VPROF_SCOPE_BEGIN( "moveHelper->ProcessImpacts" );
|
||||
moveHelper->ProcessImpacts();
|
||||
VPROF_SCOPE_END();
|
||||
|
||||
// Call standard client pre-think
|
||||
RunPreThink( player );
|
||||
@ -444,11 +449,6 @@ void CPlayerMove::RunCommand ( CBasePlayer *player, CUserCmd *ucmd, IMoveHelper
|
||||
// Copy output
|
||||
FinishMove( player, ucmd, g_pMoveData );
|
||||
|
||||
// Let server invoke any needed impact functions
|
||||
VPROF_SCOPE_BEGIN( "moveHelper->ProcessImpacts" );
|
||||
moveHelper->ProcessImpacts();
|
||||
VPROF_SCOPE_END();
|
||||
|
||||
g_pGameMovement->FinishTrackPredictionErrors( player );
|
||||
|
||||
FinishCommand( player );
|
||||
|
Loading…
x
Reference in New Issue
Block a user