diff options
| author | navewindre <boneyaard@gmail.com> | 2018-12-24 23:46:20 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-12-24 23:46:20 +0100 |
| commit | 8be3f19c8ace79135a593ac697751579fa1a0998 (patch) | |
| tree | b3d46e9ce783582a60607c6bc1d3ed8a2f854d18 /cheat/internal_rewrite/update_clientside_animation.cpp | |
| parent | cac146640ad99309329119ceb264542de12bc9aa (diff) | |
dsafdsadsadsad
Diffstat (limited to 'cheat/internal_rewrite/update_clientside_animation.cpp')
| -rw-r--r-- | cheat/internal_rewrite/update_clientside_animation.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/cheat/internal_rewrite/update_clientside_animation.cpp b/cheat/internal_rewrite/update_clientside_animation.cpp index 243d760..9071e6b 100644 --- a/cheat/internal_rewrite/update_clientside_animation.cpp +++ b/cheat/internal_rewrite/update_clientside_animation.cpp @@ -28,17 +28,23 @@ void __fastcall hooks::update_clientside_animation( void* ecx_, void* edx_ ) { last_update = g_csgo.m_globals->m_curtime;
- ent->get_animstate( )->m_iLastClientSideAnimationUpdateFramecount = g_csgo.m_globals->m_framecount;
+ //ent->get_animstate( )->m_iLastClientSideAnimationUpdateFramecount = g_csgo.m_globals->m_framecount;
- float backup_time = ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime;
+ //float backup_time = ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime;
- ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime = g_csgo.m_globals->m_curtime;
+ //this doesn't work anymore
+ //ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime = g_csgo.m_globals->m_curtime;
+
+ ent->get_animstate( )->pBaseEntity = nullptr;
+
old_func( ecx_, edx_ );
- ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime = backup_time;
+
+ ent->get_animstate( )->pBaseEntity = ent;
+ //ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime = backup_time;
if( !first_update ) {
- g_ctx.m_local->restore_anim_data( true );
+ //g_ctx.m_local->restore_anim_data( true );
ent->set_abs_angles( vec3_t( 0, g_ctx.m_absyaw, 0 ) );
//ent->get_animstate( )->m_bOnGround = false;
|
