diff options
| author | navewindre <boneyaard@gmail.com> | 2018-11-26 13:43:26 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-11-26 13:43:26 +0100 |
| commit | 7cd2571c16edf9d6b442a0093ed0d9fb2d2ba1d1 (patch) | |
| tree | 1ad9e7303d120244f7483e58431648550b2b72e9 /internal_rewrite/ragebot_lagcomp.cpp | |
| parent | 0bc63d4dbbfe4fb74b4114f0ae11bfe8c87d5cc9 (diff) | |
dffsd
Diffstat (limited to 'internal_rewrite/ragebot_lagcomp.cpp')
| -rw-r--r-- | internal_rewrite/ragebot_lagcomp.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal_rewrite/ragebot_lagcomp.cpp b/internal_rewrite/ragebot_lagcomp.cpp index c166174..5014143 100644 --- a/internal_rewrite/ragebot_lagcomp.cpp +++ b/internal_rewrite/ragebot_lagcomp.cpp @@ -14,6 +14,7 @@ namespace features m_flSimulationTime = m_ent->m_flSimulationTime( );
m_flOldSimulationTime = m_ent->m_flOldSimulationTime( );
+ m_lastAnimTime = m_ent->get_animdata( ).m_last_animtime;
m_tickcount = TIME_TO_TICKS( m_flSimulationTime + util::get_lerptime( ) );
m_choked = m_ent->get_choked_ticks( );
@@ -120,9 +121,6 @@ namespace features m_state.m_flGoalFeetYaw = m_state.m_flCurrentFeetYaw = feet_yaw;
- m_ent->m_flPoseParameter( )[ BODY_YAW ] = std::clamp( ( lby_delta + 180.f ) / 360.f, 0.f, 1.f );
- m_ent->m_flPoseParameter( )[ LEAN_YAW ] = std::clamp( ( lby_delta + 180.f ) / 360.f, 0.f, 1.f );
-
float backup_duck = m_ent->m_flDuckAmount( );
float backup_duckspeed = m_ent->m_flDuckSpeed( );
@@ -131,7 +129,7 @@ namespace features m_ent->m_fFlags( ) = m_animFlags;
- m_state.m_flLastClientSideAnimationUpdateTime = m_flOldSimulationTime;
+ m_state.m_flLastClientSideAnimationUpdateTime = m_lastAnimTime;
m_state.update( m_ent->m_angEyeAngles( ).y, m_ent->m_angEyeAngles( ).x );
m_ent->m_fFlags( ) = m_fFlags;
|
