From d1cab43b8ffd1fd37633e4751818d14c840ecef9 Mon Sep 17 00:00:00 2001 From: navewindre Date: Mon, 17 Sep 2018 20:09:00 +0200 Subject: d --- internal_rewrite/ragebot_antiaim.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal_rewrite/ragebot_antiaim.cpp') diff --git a/internal_rewrite/ragebot_antiaim.cpp b/internal_rewrite/ragebot_antiaim.cpp index 5a9186c..efd8af3 100644 --- a/internal_rewrite/ragebot_antiaim.cpp +++ b/internal_rewrite/ragebot_antiaim.cpp @@ -441,19 +441,19 @@ namespace features float dmg_right = get_damage( enemy_left, local_right, ent, g_ctx.m_local ) + get_damage( enemy_right, local_right, ent, g_ctx.m_local ); - if( std::abs( dmg_left - dmg_right ) < 50.f ) + if( std::abs( dmg_left - dmg_right ) < 25.f ) return false; float max_dmg = math::max( dmg_left, dmg_right ); direction = dmg_left > dmg_right; cur_damage = max_dmg; - return max_dmg > 50.f; + return max_dmg > 25.f; }; float radius = ( g_ctx.m_local->get_hitbox_pos( 0 ) - g_ctx.m_local->m_vecOrigin( ) ).length2d( ); - if( !test_dmg( radius ) ) { + if( !test_dmg( radius + 1.f ) ) { if( cur_damage < start_dmg * 2.f ) return false; } -- cgit v1.2.3