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.cpp26
1 files changed, 18 insertions, 8 deletions
diff --git a/cheat/internal_rewrite/lag_mgr.cpp b/cheat/internal_rewrite/lag_mgr.cpp
index 8f293e7..3606500 100644
--- a/cheat/internal_rewrite/lag_mgr.cpp
+++ b/cheat/internal_rewrite/lag_mgr.cpp
@@ -51,8 +51,12 @@ namespace features
//2017 sucked
//i hope 2018 goes better
- if( !g_settings.rage.fakelag.mode( ) ||
- !g_settings.rage.fakelag.ticks( ) ) {
+ //2018 sucked
+ //but 2019 will be better
+
+ if( ( !g_settings.rage.fakelag.mode( ) ||
+ !g_settings.rage.fakelag.ticks( ) ) &&
+ !g_settings.rage.fake_yaw ) {
m_breaking_lc = false;
return;
}
@@ -63,9 +67,9 @@ namespace features
auto weapon = g_ctx.m_local->get_weapon( );
- if( g_cheat.m_ragebot.m_antiaim->is_fakewalking( ) ) {
- return;
- }
+ //if( g_cheat.m_ragebot.m_antiaim->is_fakewalking( ) ) {
+ // return;
+ //}
bool moving = g_ctx.m_local->m_vecVelocity( ).length2d( ) > 0.f;
@@ -88,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;
@@ -115,7 +123,8 @@ namespace features
}
}
- bool send = true;
+
+
static bool was_onground{ };
if( settings.in_move && ( g_ctx.m_local->m_fFlags( ) & FL_ONGROUND ) && moving ) {
@@ -206,7 +215,8 @@ namespace features
}
}
- *m_sendpacket = !( get_choked( ) < 10 );
+ *m_sendpacket = send || force_send;
+
if( *m_sendpacket ) {
m_breaking_lc = delta.length2d( ) > 64.f;
last_rand = ( 1.f + math::random_number( -settings.fluctuate, settings.fluctuate( ) ) * 0.01f );