From a285b6b533c76b38d576789399288ee7c3e1071b Mon Sep 17 00:00:00 2001 From: Night Owl Date: Fri, 2 Feb 2018 02:47:58 +0500 Subject: [PATCH] Fix monster_human_grunt. --- dlls/hgrunt.cpp | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/dlls/hgrunt.cpp b/dlls/hgrunt.cpp index 20cc3187..54c4ea9e 100644 --- a/dlls/hgrunt.cpp +++ b/dlls/hgrunt.cpp @@ -448,7 +448,7 @@ BOOL CHGrunt::CheckMeleeAttack1( float flDot, float flDist ) //========================================================= BOOL CHGrunt::CheckRangeAttack1( float flDot, float flDist ) { - if( !HasConditions( bits_COND_ENEMY_OCCLUDED ) && flDist <= 2048 && flDot >= 0.5 && NoFriendlyFire() ) + if( !HasConditions( bits_COND_ENEMY_OCCLUDED ) && flDist <= 8000 && flDot >= 0.5 && NoFriendlyFire() ) { TraceResult tr; @@ -647,36 +647,30 @@ void CHGrunt::SetYawSpeed( void ) switch( m_Activity ) { case ACT_IDLE: - ys = 150; + ys = 295; break; case ACT_RUN: - ys = 150; + ys = 175; break; case ACT_WALK: - ys = 180; + ys = 275; break; case ACT_RANGE_ATTACK1: - ys = 120; - break; case ACT_RANGE_ATTACK2: - ys = 120; - break; case ACT_MELEE_ATTACK1: - ys = 120; - break; case ACT_MELEE_ATTACK2: - ys = 120; + ys = 145; break; case ACT_TURN_LEFT: case ACT_TURN_RIGHT: - ys = 180; + ys = 295; break; case ACT_GLIDE: case ACT_FLY: - ys = 30; + ys = 55; break; default: - ys = 90; + ys = 115; break; }