summaryrefslogtreecommitdiff
path: root/internal_rewrite/ragebot_antiaim.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-09-12 02:14:46 +0200
committernavewindre <boneyaard@gmail.com>2018-09-12 02:14:46 +0200
commitb383d10ec99e35d31836fd8abb91da22208891a5 (patch)
treef3ecd46411f8502c8d6cf3e915474f87c7be5521 /internal_rewrite/ragebot_antiaim.cpp
parent4a53204965489d24725631ce4997c596c9205a21 (diff)
dsadsad
Diffstat (limited to 'internal_rewrite/ragebot_antiaim.cpp')
-rw-r--r--internal_rewrite/ragebot_antiaim.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/internal_rewrite/ragebot_antiaim.cpp b/internal_rewrite/ragebot_antiaim.cpp
index 7db3e6e..f172285 100644
--- a/internal_rewrite/ragebot_antiaim.cpp
+++ b/internal_rewrite/ragebot_antiaim.cpp
@@ -525,7 +525,7 @@ namespace features
}
vec3_t ndir = math::vector_angles( vel * -1.f );
- ndir.y = m_cmd->m_viewangles.y - ndir.y;
+ ndir.y = g_csgo.m_engine( )->GetViewAngles( ).y - ndir.y;
ndir = math::angle_vectors( ndir );
g_ctx.get_last_cmd( )->m_forwardmove = ndir.x * wishspeed;
@@ -542,15 +542,9 @@ namespace features
predict_velocity( &velocity );
}
- // Doesn't this output some fucked up value for weapons other than the revolver?
- float time_to_shoot = g_ctx.m_local->get_weapon( )->m_flPostponeFireReadyTime( ) - g_ctx.pred_time( );
- int revolver_ticks = TIME_TO_TICKS( time_to_shoot ) - 1;
- if( revolver_ticks < -1 )
- revolver_ticks = INT_MAX;
-
int update_ticks = m_breaker.get_next_update( ) - 1;
- const int max_ticks = math::min< int >( g_settings.rage.fakewalk_ticks, update_ticks, revolver_ticks );
+ const int max_ticks = math::min< int >( g_settings.rage.fakewalk_ticks, update_ticks );
const int choked = g_cheat.m_lagmgr.get_choked( );
int ticks_left = max_ticks - choked;