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

This commit is contained in:
Roman Chistokhodov 2023-11-07 21:29:53 +03:00
parent 7b8f05c29b
commit 17c8c914ed
1 changed files with 1 additions and 1 deletions

View File

@ -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 )
{