From d1cab43b8ffd1fd37633e4751818d14c840ecef9 Mon Sep 17 00:00:00 2001 From: navewindre Date: Mon, 17 Sep 2018 20:09:00 +0200 Subject: d --- internal_rewrite/ragebot.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'internal_rewrite/ragebot.cpp') 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; -- cgit v1.2.3