summaryrefslogtreecommitdiff
path: root/internal_rewrite/update_clientside_animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/update_clientside_animation.cpp')
-rw-r--r--internal_rewrite/update_clientside_animation.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal_rewrite/update_clientside_animation.cpp b/internal_rewrite/update_clientside_animation.cpp
index 5dc14e6..cef0d0c 100644
--- a/internal_rewrite/update_clientside_animation.cpp
+++ b/internal_rewrite/update_clientside_animation.cpp
@@ -32,9 +32,12 @@ void __fastcall hooks::update_clientside_animation( void* ecx_, void* edx_ ) {
last_update = g_csgo.m_globals->m_curtime;
- if( g_cheat.m_lagmgr.get_choked( ) == 1 )
+ if( g_cheat.m_lagmgr.get_choked( ) == 1 || g_cheat.m_lagmgr.get_sent( ) > 1 )
ent->cache_anim_data( );
+ ent->get_animstate( )->m_iLastClientSideAnimationUpdateFramecount = g_csgo.m_globals->m_framecount;
+ old_func( ecx_, edx_ );
+
if( !first_update ) {
ent->restore_anim_data( true );