From 5e5b152f4b62432655cc4069c1d95be636749b7d Mon Sep 17 00:00:00 2001 From: navewindre Date: Tue, 13 Nov 2018 00:42:56 +0100 Subject: yo sick --- internal_rewrite/begin_lock.cpp | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'internal_rewrite/begin_lock.cpp') diff --git a/internal_rewrite/begin_lock.cpp b/internal_rewrite/begin_lock.cpp index 0210417..5312eec 100644 --- a/internal_rewrite/begin_lock.cpp +++ b/internal_rewrite/begin_lock.cpp @@ -15,17 +15,14 @@ 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( ); + static float last_time = 0.f; - g_ctx.m_local->cache_anim_data( ); + if( g_ctx.run_frame( ) && g_ctx.m_local->is_valid( ) ) { + auto state = g_ctx.m_local->get_animstate( ); + auto& anims = g_ctx.m_local->get_animdata( ).m_animlayers; - /* - 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 ) { - auto& anims = g_ctx.m_local->get_animdata( ).m_animlayers; - + if( state && state->m_flLastClientSideAnimationUpdateTime != last_time ) { for( size_t i{ }; i < 13; ++i ) { auto& layer = g_ctx.m_local->m_AnimOverlay( ).GetElements( )[ i ]; @@ -34,13 +31,25 @@ void __fastcall hooks::begin_lock( void* ecx, void* edx ) { // THIS IS PROLLY NO g_ctx.m_local->m_AnimOverlay( ).GetElements( ), sizeof( C_AnimationLayer ) * 13 ); - last_time = g_ctx.m_local->get_animstate( )->m_flLastClientSideAnimationUpdateTime; + g_ctx.m_absyaw = state->m_flGoalFeetYaw; + + last_time = state->m_flLastClientSideAnimationUpdateTime; break; } } } } - */ + + + + /*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 ) { + + } + }*/ + //g_con->game_console_print( "net postdataupdate start\n" ); -- cgit v1.2.3