From 7cd2571c16edf9d6b442a0093ed0d9fb2d2ba1d1 Mon Sep 17 00:00:00 2001 From: navewindre Date: Mon, 26 Nov 2018 13:43:26 +0100 Subject: dffsd --- internal_rewrite/ragebot_lagcomp.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'internal_rewrite/ragebot_lagcomp.cpp') 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; -- cgit v1.2.3