summaryrefslogtreecommitdiff
path: root/internal_rewrite/update_clientside_animation.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-09-16 19:47:02 +0200
committernavewindre <boneyaard@gmail.com>2018-09-16 19:47:02 +0200
commitfb2b56fd3c26d37ef198fe6dbf651104656f8a34 (patch)
treea945e6ca2ca0691656634644998b29b5619672eb /internal_rewrite/update_clientside_animation.cpp
parent559a0f5669f537e21f3d39780e6e3d77591ff8c1 (diff)
fd
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 );