diff options
| author | navewindre <boneyaard@gmail.com> | 2018-09-16 19:47:02 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-09-16 19:47:02 +0200 |
| commit | fb2b56fd3c26d37ef198fe6dbf651104656f8a34 (patch) | |
| tree | a945e6ca2ca0691656634644998b29b5619672eb /internal_rewrite/update_clientside_animation.cpp | |
| parent | 559a0f5669f537e21f3d39780e6e3d77591ff8c1 (diff) | |
fd
Diffstat (limited to 'internal_rewrite/update_clientside_animation.cpp')
| -rw-r--r-- | internal_rewrite/update_clientside_animation.cpp | 5 |
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 );
|
