From e8bff3fb5f484e2fb98bf157f4b85b61fdbd0620 Mon Sep 17 00:00:00 2001 From: navewindre Date: Wed, 12 Sep 2018 19:59:25 +0200 Subject: a --- internal_rewrite/ragebot.cpp | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) (limited to 'internal_rewrite/ragebot.cpp') diff --git a/internal_rewrite/ragebot.cpp b/internal_rewrite/ragebot.cpp index 9e02f1b..28dae0a 100644 --- a/internal_rewrite/ragebot.cpp +++ b/internal_rewrite/ragebot.cpp @@ -814,12 +814,19 @@ namespace features if( g_settings.rage.active->m_auto_stop( ) == 2 ) quick_stop( m_cmd ); + else if( g_settings.rage.active->m_auto_stop( ) == 3 ) { + m_antiaim->run_fakewalk( ); + } + if( !util::hitchance( it, aim_ang, g_settings.rage.active->m_hitchance, hitbox ) ) { - if( g_settings.rage.active->m_auto_stop( ) == 1 ) + if( g_settings.rage.active->m_auto_stop( ) == 1 || g_settings.rage.active->m_auto_stop( ) == 4 ) quick_stop( m_cmd ); + if( g_settings.rage.active->m_auto_stop( ) == 4 && g_cheat.m_lagmgr.get_choked( ) < 10 && !m_antiaim->is_fakewalking( ) ) + g_cheat.m_lagmgr.set_state( false ); + if( g_settings.rage.auto_scope( ) && g_ctx.m_local->get_weapon( )->is_sniper( ) ) { if( !g_ctx.m_local->m_bIsScoped( ) ) { m_cmd->m_buttons |= IN_ATTACK2; @@ -901,12 +908,13 @@ namespace features m_cmd->m_viewangles = angles; } - if( g_settings.rage.silent == 2 ) { - g_cheat.m_lagmgr.set_state( g_cheat.m_lagmgr.get_choked( ) && !g_settings.rage.fakelag.in_attack && !m_antiaim->is_fakewalking( ) ); - } + //if( g_settings.rage.silent == 2 ) { + // if( !m_antiaim->is_fakewalking( ) ) + // g_cheat.m_lagmgr.set_state( g_cheat.m_lagmgr.get_choked( ) ); + //} if( g_settings.rage.silent == 1 && !m_antiaim->is_fakewalking( ) ) { - if( weapon->m_iItemDefinitionIndex( ) != WEAPON_R8REVOLVER ) + //if( weapon->m_iItemDefinitionIndex( ) != WEAPON_R8REVOLVER ) g_cheat.m_lagmgr.set_state( !g_cheat.m_lagmgr.get_sent( ) ); } @@ -1074,15 +1082,22 @@ namespace features bool is_zeus = wep->m_iItemDefinitionIndex( ) == WEAPON_TASER; if( m_target != -1 && !m_antiaim->is_fakewalking( ) ) - if( g_settings.rage.active->m_auto_stop == 2 && can_hit_target( m_target, &t, is_zeus ) ) + if( g_settings.rage.active->m_auto_stop == 2 && can_hit_target( m_target, &t, is_zeus ) ) { quick_stop( m_cmd ); + } + else if( g_settings.rage.active->m_auto_stop == 3 && can_hit_target( m_target, &t, is_zeus ) ) { + m_antiaim->run_fakewalk( ); + //if( !g_cheat.m_lagmgr.get_choked( ) || g_cheat.m_lagmgr.get_state( ) ) + m_cmd->m_viewangles.y = m_antiaim->get_yaw( ); + } return; } // do not - if( g_settings.rage.silent == 2 && !g_cheat.m_lagmgr.get_choked( ) && !m_antiaim->is_fakewalking( ) && !is_revolver ) { - g_cheat.m_lagmgr.set_state( false ); + if( g_settings.rage.silent == 2 && !g_cheat.m_lagmgr.get_choked( ) && !is_revolver ) { + if( !m_antiaim->is_fakewalking( ) ) + g_cheat.m_lagmgr.set_state( false ); return; } -- cgit v1.2.3