summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/ragebot_antiaim.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-12-19 12:10:18 +0100
committernavewindre <boneyaard@gmail.com>2018-12-19 12:10:18 +0100
commitfccbfbed0e066a2456d6443405d599b5bc93affa (patch)
treeb3caffdbfb804eb3a25d360674f8b5eeefb4021c /cheat/internal_rewrite/ragebot_antiaim.cpp
parent77b52da44b263df4884be2f35f885d8edccbb6fa (diff)
x
Diffstat (limited to 'cheat/internal_rewrite/ragebot_antiaim.cpp')
-rw-r--r--cheat/internal_rewrite/ragebot_antiaim.cpp14
1 files changed, 6 insertions, 8 deletions
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