diff options
Diffstat (limited to 'internal_rewrite/ragebot_antiaim.cpp')
| -rw-r--r-- | internal_rewrite/ragebot_antiaim.cpp | 10 |
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;
|
