From fccbfbed0e066a2456d6443405d599b5bc93affa Mon Sep 17 00:00:00 2001 From: navewindre Date: Wed, 19 Dec 2018 12:10:18 +0100 Subject: x --- cheat/internal_rewrite/ragebot_antiaim.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'cheat/internal_rewrite/ragebot_antiaim.cpp') diff --git a/cheat/internal_rewrite/ragebot_antiaim.cpp b/cheat/internal_rewrite/ragebot_antiaim.cpp index 8cba797..b109328 100644 --- a/cheat/internal_rewrite/ragebot_antiaim.cpp +++ b/cheat/internal_rewrite/ragebot_antiaim.cpp @@ -93,13 +93,6 @@ namespace features if( !g_ctx.m_local->get_animstate( ) ) return; - auto cl = g_csgo.m_global_state->get_client_state( ); - if( !cl ) - return; - - if( g_cheat.m_lagmgr.get_choked( ) != 1 ) - return; - float backup_curtime = g_csgo.m_globals->m_curtime; float backup_frametime = g_csgo.m_globals->m_frametime; @@ -126,7 +119,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_ctx.m_local->cache_anim_data( ); g_csgo.m_globals->m_curtime = backup_curtime; g_csgo.m_globals->m_frametime = backup_frametime; @@ -914,6 +907,11 @@ namespace features //since we're going to have fake pitches most likely //make sure to clamp yaw anyway just in case some retard //decides to enable untrusted shit in an mm server or w/e + //if( !g_cheat.m_lagmgr.get_state( ) ) + // m_cmd->m_viewangles.y = ( g_csgo.m_engine( )->GetViewAngles( ).y - 125.f ); + //else + // m_cmd->m_viewangles.y = g_csgo.m_engine( )->GetViewAngles( ).y - 180.f; + m_cmd->m_viewangles.y = std::remainderf( m_cmd->m_viewangles.y, 360.f ); } } \ No newline at end of file -- cgit v1.2.3