From b069eb51f206e352762f835908c64a8939fb77ce Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 12 Oct 2018 16:04:28 +0100 Subject: fix --- internal_rewrite/begin_lock.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'internal_rewrite/begin_lock.cpp') diff --git a/internal_rewrite/begin_lock.cpp b/internal_rewrite/begin_lock.cpp index 2269a13..5d92fec 100644 --- a/internal_rewrite/begin_lock.cpp +++ b/internal_rewrite/begin_lock.cpp @@ -15,17 +15,16 @@ void __fastcall hooks::begin_lock( void* ecx, void* edx ) { // THIS IS PROLLY NO g_ctx.m_stage = FRAME_NET_UPDATE_POSTDATAUPDATE_START; g_cheat.m_visuals.world_modulate( ); - /* - if( g_settings.rage.anti_aim && g_ctx.run_frame( ) ) { + if ( g_settings.rage.anti_aim && g_ctx.run_frame( ) ) { static float last_time = 0.f; - if( last_time != g_ctx.m_local->get_animstate( )->m_flLastClientSideAnimationUpdateTime ) { + if ( last_time != g_ctx.m_local->get_animstate( )->m_flLastClientSideAnimationUpdateTime ) { auto& anims = g_ctx.m_local->get_animdata( ).m_animlayers; - for( size_t i{ }; i < 13; ++i ) { + for ( size_t i{ }; i < 13; ++i ) { auto& layer = g_ctx.m_local->m_AnimOverlay( ).GetElements( )[ i ]; - if( layer.m_flWeight != anims.at( i ).m_flWeight || layer.m_flCycle != anims.at( i ).m_flCycle ) { + if ( layer.m_flWeight != anims.at( i ).m_flWeight || layer.m_flCycle != anims.at( i ).m_flCycle ) { memcpy( &g_ctx.m_local->get_animdata( ).m_animlayers, g_ctx.m_local->m_AnimOverlay( ).GetElements( ), sizeof( C_AnimationLayer ) * 13 ); @@ -36,7 +35,6 @@ void __fastcall hooks::begin_lock( void* ecx, void* edx ) { // THIS IS PROLLY NO } } } - */ //g_con->game_console_print( "net postdataupdate start\n" ); -- cgit v1.2.3