From 215818ddedc02be3a1a5c2be3912abdbcd29dd72 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 9 Sep 2018 18:28:04 +0200 Subject: detours etc --- internal_rewrite/update_clientside_animation.cpp | 6 +++++- 1 file changed, 5 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 cf1db8b..fb4ab72 100644 --- a/internal_rewrite/update_clientside_animation.cpp +++ b/internal_rewrite/update_clientside_animation.cpp @@ -5,7 +5,11 @@ void __fastcall hooks::update_clientside_animation( void* ecx_, void* edx_ ) { static bool first_update = true; - auto old_func = g_csgo.m_local->get_old_function< decltype( &hooks::update_clientside_animation ) >( 218 ); + auto old_func = update_clientside_animation_o; + + if( ecx_ != g_ctx.m_local ) + return old_func( ecx_, edx_ ); + auto ent = ( c_base_player* )( ecx_ ); static ent_animdata_t prev_anims; -- cgit v1.2.3