diff options
Diffstat (limited to 'internal_rewrite/ragebot.cpp')
| -rw-r--r-- | internal_rewrite/ragebot.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/internal_rewrite/ragebot.cpp b/internal_rewrite/ragebot.cpp index b0f6c13..6aefbd1 100644 --- a/internal_rewrite/ragebot.cpp +++ b/internal_rewrite/ragebot.cpp @@ -292,7 +292,6 @@ namespace features constexpr std::array< std::pair< PlayerHitboxes_t, int >, 15 > hitbox_order = {
std::make_pair( HITBOX_HEAD, 3 ),
- std::make_pair( HITBOX_NECK, 3 ),
std::make_pair( HITBOX_PELVIS, 3 ),
std::make_pair( HITBOX_BODY, 3 ),
@@ -300,6 +299,8 @@ namespace features std::make_pair( HITBOX_CHEST, 3 ),
std::make_pair( HITBOX_UPPER_CHEST, 3 ),
+ std::make_pair( HITBOX_NECK, 2 ),
+
std::make_pair( HITBOX_RIGHT_HAND, 2 ),
std::make_pair( HITBOX_LEFT_HAND, 2 ),
@@ -316,7 +317,7 @@ namespace features bool moving = ent->m_vecVelocity( ).length( ) > 0.1f && !ent->is_fakewalking( );
float min_dmg = get_min_dmg( ent );
- if ( g_settings.rage.hitbox != -1 ) {
+ if( g_settings.rage.hitbox != -1 ) {
float dmg{ };
vec3_t pos = multipoint( ent, g_settings.rage.hitbox, &dmg );
@@ -466,9 +467,12 @@ namespace features max_speed = g_ctx.m_local->get_weapon( )->get_wpn_info( )->max_speed_alt;
}
+ // thx ida
+ max_speed = std::min< float >( max_speed, 250.f );
+
if( g_ctx.m_local->m_fFlags( ) & FL_DUCKING ) {
- max_speed /= 3.f;
- accel /= 3.f;
+ // max_speed /= 3.f;
+ // accel /= 3.f;
}
float surf_friction = 1.f;
|
