diff options
| author | navewindre <boneyaard@gmail.com> | 2018-09-28 19:59:15 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-09-28 19:59:15 +0200 |
| commit | 66dcb4cdcdb0d3efce0ba74c0c5ad79bc7c51111 (patch) | |
| tree | 2d2e1d67fc4f997688bd1560c94bf863a661eda4 /internal_rewrite/ragebot_antiaim.cpp | |
| parent | 85434a853957ae5315594f72561dd1a745549727 (diff) | |
a
Diffstat (limited to 'internal_rewrite/ragebot_antiaim.cpp')
| -rw-r--r-- | internal_rewrite/ragebot_antiaim.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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;
|
