mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-02 18:14:26 +00:00
This commit is contained in:
parent
5914b5779f
commit
b22244139c
@ -1543,7 +1543,7 @@ BOOL CHFGrunt :: CheckRangeAttack1 ( float flDot, float flDist )
|
|||||||
Vector vecSrc = GetGunPosition();
|
Vector vecSrc = GetGunPosition();
|
||||||
|
|
||||||
// verify that a bullet fired from the gun will hit the enemy before the world.
|
// 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 )
|
if ( tr.flFraction == 1.0 )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user