Skip to content

Commit

Permalink
Opfor grunts shouldn't ignore glass when checking for range attack. Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Nov 7, 2023
1 parent 7b8f05c commit 17c8c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/gearbox/fgrunt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 17c8c91

Please sign in to comment.