From 79ab971e6c7466550d3dc4a01e52fb24d2497f86 Mon Sep 17 00:00:00 2001 From: navewindre Date: Fri, 14 Sep 2018 13:39:13 +0200 Subject: f --- internal_rewrite/ragebot_antiaim.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal_rewrite/ragebot_antiaim.cpp') diff --git a/internal_rewrite/ragebot_antiaim.cpp b/internal_rewrite/ragebot_antiaim.cpp index d8ada3c..c9edafa 100644 --- a/internal_rewrite/ragebot_antiaim.cpp +++ b/internal_rewrite/ragebot_antiaim.cpp @@ -453,7 +453,9 @@ namespace features return max_dmg > 50.f; }; - if( !test_dmg( 20.f ) ) { + float radius = ( g_ctx.m_local->get_hitbox_pos( 0 ) - g_ctx.m_local->m_vecOrigin( ) ).length2d( ); + + if( !test_dmg( radius ) ) { if( cur_damage < start_dmg * 2.f ) return false; } -- cgit v1.2.3