summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/ragebot_antiaim.cpp
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2018-12-20 21:38:13 +1300
committerboris <wzn@moneybot.cc>2018-12-20 21:38:13 +1300
commit098d6fbe9b25bccf1afd2aa17ed0dfc0e17db367 (patch)
tree11140393d085c99cf23c4a325422e7792a4ec7d5 /cheat/internal_rewrite/ragebot_antiaim.cpp
parenta5acd4c9a3b24c9d5af3a8f504e5af053fa7fa09 (diff)
parentfccbfbed0e066a2456d6443405d599b5bc93affa (diff)
Merge remote-tracking branch 'origin/master'
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