mirror of https://github.com/FWGS/hlsdk-xash3d
Opfor grunts shouldn't ignore glass when checking for range attack. Fix #402
This commit is contained in:
parent
7b8f05c29b
commit
17c8c914ed
|
@ -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…
Reference in New Issue