summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/lag_mgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cheat/internal_rewrite/lag_mgr.cpp')
-rw-r--r--cheat/internal_rewrite/lag_mgr.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/cheat/internal_rewrite/lag_mgr.cpp b/cheat/internal_rewrite/lag_mgr.cpp
index 092cfe1..3606500 100644
--- a/cheat/internal_rewrite/lag_mgr.cpp
+++ b/cheat/internal_rewrite/lag_mgr.cpp
@@ -54,8 +54,9 @@ namespace features
//2018 sucked
//but 2019 will be better
- if( !g_settings.rage.fakelag.mode( ) ||
- !g_settings.rage.fakelag.ticks( ) ) {
+ if( ( !g_settings.rage.fakelag.mode( ) ||
+ !g_settings.rage.fakelag.ticks( ) ) &&
+ !g_settings.rage.fake_yaw ) {
m_breaking_lc = false;
return;
}
@@ -91,9 +92,13 @@ namespace features
max_ticks = math::min( max_ticks, 16 );
+ bool force_send = m_held_ticks >= max_ticks;
+ bool send = true;
+ if( !moving && ( g_ctx.m_local->m_fFlags( ) & FL_ONGROUND ) && g_settings.rage.anti_aim( ) && g_settings.rage.fake_yaw ) {
+ send = force_send = get_choked( ) >= math::max( max_ticks, 10 );
+ }
- bool force_send = m_held_ticks >= max_ticks;
if( settings.mode == 1 ) {
if( delta.length2dsqr( ) > 4096.f ) {
force_send = get_choked( ) > 3;
@@ -119,11 +124,8 @@ namespace features
}
- bool send = true;
- static bool was_onground{ };
- if( !moving && ( g_ctx.m_local->m_fFlags( ) & FL_ONGROUND ) && g_settings.rage.anti_aim( ) && g_settings.rage.fake_yaw )
- send = false;
+ static bool was_onground{ };
if( settings.in_move && ( g_ctx.m_local->m_fFlags( ) & FL_ONGROUND ) && moving ) {
send = false;