Add condition so that the Pomson 6000 projectile only passes through teammates at short-range
This commit is contained in:
parent
38f7898e89
commit
cbc7151034
|
|
@ -268,8 +268,8 @@ void CTFProjectile_EnergyRing::ProjectileTouch( CBaseEntity *pOther )
|
|||
}
|
||||
else // Pomson
|
||||
{
|
||||
// Projectiles shouldn't collide with friendly things except buildings.
|
||||
if ( pOther->InSameTeam( this ) && !pOther->IsBaseObject() )
|
||||
// Skip collision with teammates unless explicit collision with teammates is allowed.
|
||||
if ( pOther->InSameTeam( this ) && pOther->IsPlayer() && !CanCollideWithTeammates() )
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue