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.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/internal_rewrite/update_clientside_animation.cpp b/internal_rewrite/update_clientside_animation.cpp
index cef0d0c..5e99e95 100644
--- a/internal_rewrite/update_clientside_animation.cpp
+++ b/internal_rewrite/update_clientside_animation.cpp
@@ -12,7 +12,6 @@ void __fastcall hooks::update_clientside_animation( void* ecx_, void* edx_ ) {
auto ent = ( c_base_player* )( ecx_ );
- static ent_animdata_t prev_anims;
static float last_update;
static float last_spawntime = 0.f;
@@ -24,22 +23,15 @@ void __fastcall hooks::update_clientside_animation( void* ecx_, void* edx_ ) {
if( last_spawntime != ent->m_flSpawnTime( ) )
last_spawntime = ent->m_flSpawnTime( );
- old_func( ecx_, edx_ );
- ent->cache_anim_data( );
-
- return;
+ return old_func( ecx_, edx_ );
}
last_update = g_csgo.m_globals->m_curtime;
- 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 );
ent->set_abs_angles( vec3_t( 0, ent->get_animstate( )->m_flGoalFeetYaw, 0 ) );
bool backup = ent->get_animstate( )->m_bOnGround;