diff options
| author | navewindre <boneyaard@gmail.com> | 2018-09-14 13:39:13 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-09-14 13:39:13 +0200 |
| commit | 79ab971e6c7466550d3dc4a01e52fb24d2497f86 (patch) | |
| tree | 62ed9d59b5b493b8c8b8d999d3b45205ef08476d /internal_rewrite | |
| parent | f10ea5a18540a7cc02b66a1ebf76a903022d98e9 (diff) | |
f
Diffstat (limited to 'internal_rewrite')
| -rw-r--r-- | internal_rewrite/ragebot_antiaim.cpp | 4 |
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;
}
|
