Browse Source

Opfor grunts shouldn't ignore glass when checking for range attack. Fix #402 (#404)

opfor
Roman Chistokhodov 1 year ago committed by GitHub
parent
commit
b22244139c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dlls/gearbox/fgrunt.cpp

2
dlls/gearbox/fgrunt.cpp

@ -1543,7 +1543,7 @@ BOOL CHFGrunt :: CheckRangeAttack1 ( float flDot, float flDist ) @@ -1543,7 +1543,7 @@ BOOL CHFGrunt :: CheckRangeAttack1 ( float flDot, float flDist )
Vector vecSrc = GetGunPosition();
// verify that a bullet fired from the gun will hit the enemy before the world.
UTIL_TraceLine( vecSrc, m_hEnemy->BodyTarget(vecSrc), ignore_monsters, ignore_glass, ENT(pev), &tr);
UTIL_TraceLine( vecSrc, m_hEnemy->BodyTarget(vecSrc), ignore_monsters, ENT(pev), &tr);
if ( tr.flFraction == 1.0 )
{

Loading…
Cancel
Save