diff options
| author | boris <wzn@moneybot.cc> | 2018-12-24 20:39:16 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-12-24 20:39:16 +1300 |
| commit | cac146640ad99309329119ceb264542de12bc9aa (patch) | |
| tree | c853c09991593b60b0249e4a237bb898432c220c /cheat/internal_rewrite/lag_mgr.cpp | |
| parent | ace9ae2117175dfe5e14b259db2e0536f8ec7a8a (diff) | |
| parent | f41bf6509390f12a4252f40daf0209e7a7d64666 (diff) | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'cheat/internal_rewrite/lag_mgr.cpp')
| -rw-r--r-- | cheat/internal_rewrite/lag_mgr.cpp | 26 |
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 ); |
