From fef68b3881d7b1a60abe2be85dde27b7b0ada3c3 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 23 Dec 2018 17:08:57 +0100 Subject: d --- cheat/internal_rewrite/lag_mgr.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'cheat/internal_rewrite/lag_mgr.cpp') diff --git a/cheat/internal_rewrite/lag_mgr.cpp b/cheat/internal_rewrite/lag_mgr.cpp index 8f293e7..092cfe1 100644 --- a/cheat/internal_rewrite/lag_mgr.cpp +++ b/cheat/internal_rewrite/lag_mgr.cpp @@ -51,6 +51,9 @@ namespace features //2017 sucked //i hope 2018 goes better + //2018 sucked + //but 2019 will be better + if( !g_settings.rage.fakelag.mode( ) || !g_settings.rage.fakelag.ticks( ) ) { m_breaking_lc = false; @@ -63,9 +66,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; @@ -115,9 +118,13 @@ 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; + if( settings.in_move && ( g_ctx.m_local->m_fFlags( ) & FL_ONGROUND ) && moving ) { send = false; } @@ -206,7 +213,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 ); -- cgit v1.2.3 From f41bf6509390f12a4252f40daf0209e7a7d64666 Mon Sep 17 00:00:00 2001 From: navewindre Date: Mon, 24 Dec 2018 00:36:10 +0100 Subject: d --- cheat/internal_rewrite/lag_mgr.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'cheat/internal_rewrite/lag_mgr.cpp') 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; -- cgit v1.2.3