summaryrefslogtreecommitdiff
path: root/internal_rewrite/ragebot_lagcomp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/ragebot_lagcomp.cpp')
-rw-r--r--internal_rewrite/ragebot_lagcomp.cpp6
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;