From 66dcb4cdcdb0d3efce0ba74c0c5ad79bc7c51111 Mon Sep 17 00:00:00 2001 From: navewindre Date: Fri, 28 Sep 2018 19:59:15 +0200 Subject: a --- internal_rewrite/ragebot_antiaim.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal_rewrite/ragebot_antiaim.cpp') diff --git a/internal_rewrite/ragebot_antiaim.cpp b/internal_rewrite/ragebot_antiaim.cpp index 91aac42..a3fa292 100644 --- a/internal_rewrite/ragebot_antiaim.cpp +++ b/internal_rewrite/ragebot_antiaim.cpp @@ -116,7 +116,7 @@ namespace features if( target != -1 ) { auto t = g_csgo.m_entlist( )->GetClientEntity( target ); - pitch = math::vector_angles( g_ctx.m_local->m_vecOrigin( ), t->m_vecOrigin( ) ).x; + pitch = math::vector_angles( g_ctx.m_local->get_eye_pos( ), t->get_hitbox_pos( 0 ) ).x; } else pitch = -10.f; @@ -126,6 +126,7 @@ namespace features g_ctx.m_local->get_animstate( )->m_iLastClientSideAnimationUpdateFramecount -= 1; g_ctx.m_local->get_animstate( )->update( real_angle.y, real_angle.x ); + g_ctx.m_local->cache_anim_data( false ); g_csgo.m_globals->m_curtime = backup_curtime; g_csgo.m_globals->m_frametime = backup_frametime; -- cgit v1.2.3