Fixed VPhysics
This commit is contained in:
parent
72aea29a34
commit
6c3d98b6f9
4 changed files with 15 additions and 9 deletions
|
@ -2062,6 +2062,11 @@ void C_BasePlayer::PostThink( void )
|
||||||
|
|
||||||
// Even if dead simulate entities
|
// Even if dead simulate entities
|
||||||
SimulatePlayerSimulatedEntities();
|
SimulatePlayerSimulatedEntities();
|
||||||
|
|
||||||
|
if ( GetCheckUntouch() )
|
||||||
|
{
|
||||||
|
PhysicsCheckForEntityUntouch();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4620,10 +4620,6 @@ void CBasePlayer::PostThink()
|
||||||
m_Local.m_vecPunchAngle = RandomAngle( -25, 25 );
|
m_Local.m_vecPunchAngle = RandomAngle( -25, 25 );
|
||||||
m_Local.m_vecPunchAngleVel.Init();
|
m_Local.m_vecPunchAngleVel.Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
VPROF_SCOPE_BEGIN( "CBasePlayer::PostThink-PostThinkVPhysics" );
|
|
||||||
PostThinkVPhysics();
|
|
||||||
VPROF_SCOPE_END();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined( NO_ENTITY_PREDICTION )
|
#if !defined( NO_ENTITY_PREDICTION )
|
||||||
|
@ -4631,6 +4627,10 @@ void CBasePlayer::PostThink()
|
||||||
SimulatePlayerSimulatedEntities();
|
SimulatePlayerSimulatedEntities();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if ( GetCheckUntouch() )
|
||||||
|
{
|
||||||
|
PhysicsCheckForEntityUntouch();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// handles touching physics objects
|
// handles touching physics objects
|
||||||
|
|
|
@ -495,6 +495,12 @@ void CPlayerMove::RunCommand ( CBasePlayer *player, CUserCmd *ucmd, IMoveHelper
|
||||||
|
|
||||||
FinishInterpolatingPlayer( player );
|
FinishInterpolatingPlayer( player );
|
||||||
|
|
||||||
|
// This needs to be there because it cannot get an interpolated camera position.
|
||||||
|
// Technically this is movement data and needs to be seperated from PostThink.
|
||||||
|
VPROF_SCOPE_BEGIN( "CBasePlayer::PostThink-PostThinkVPhysics" );
|
||||||
|
player->PostThinkVPhysics();
|
||||||
|
VPROF_SCOPE_END();
|
||||||
|
|
||||||
ServiceEventQueue( player );
|
ServiceEventQueue( player );
|
||||||
|
|
||||||
g_pGameMovement->FinishTrackPredictionErrors( player );
|
g_pGameMovement->FinishTrackPredictionErrors( player );
|
||||||
|
|
|
@ -229,11 +229,6 @@ void CBasePlayer::ItemPostFrame()
|
||||||
{
|
{
|
||||||
VPROF( "CBasePlayer::ItemPostFrame" );
|
VPROF( "CBasePlayer::ItemPostFrame" );
|
||||||
|
|
||||||
if ( GetCheckUntouch() )
|
|
||||||
{
|
|
||||||
PhysicsCheckForEntityUntouch();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Put viewmodels into basically correct place based on new player origin
|
// Put viewmodels into basically correct place based on new player origin
|
||||||
CalcViewModelView( EyePosition(), EyeAngles() );
|
CalcViewModelView( EyePosition(), EyeAngles() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue