From fb2b56fd3c26d37ef198fe6dbf651104656f8a34 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 16 Sep 2018 19:47:02 +0200 Subject: fd --- internal_rewrite/update_clientside_animation.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal_rewrite/update_clientside_animation.cpp') 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 ); -- cgit v1.2.3