summaryrefslogtreecommitdiff
path: root/internal_rewrite/ragebot_antiaim.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-09-17 20:09:00 +0200
committernavewindre <boneyaard@gmail.com>2018-09-17 20:09:00 +0200
commitd1cab43b8ffd1fd37633e4751818d14c840ecef9 (patch)
tree1f6932efba0142fe964ba9d9ba4beb837958ed5f /internal_rewrite/ragebot_antiaim.cpp
parentfb2b56fd3c26d37ef198fe6dbf651104656f8a34 (diff)
d
Diffstat (limited to 'internal_rewrite/ragebot_antiaim.cpp')
-rw-r--r--internal_rewrite/ragebot_antiaim.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}