diff options
| author | navewindre <boneyaard@gmail.com> | 2018-09-19 21:51:56 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-09-19 21:51:56 +0200 |
| commit | b1cd9458f103d99f4de1807f512ed9ffd2e38220 (patch) | |
| tree | 8bf1d12c82bb1786f992b1bee8b45a3ae343c659 /internal_rewrite/update_clientside_animation.cpp | |
| parent | 62f253525bcc13fedba4df1b6d6be7eef2410d4e (diff) | |
dsad
Diffstat (limited to 'internal_rewrite/update_clientside_animation.cpp')
| -rw-r--r-- | internal_rewrite/update_clientside_animation.cpp | 10 |
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;
|
