summaryrefslogtreecommitdiff
path: root/internal_rewrite
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite')
-rw-r--r--internal_rewrite/ragebot_antiaim.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}