Add condition so that the Pomson 6000 projectile only passes through teammates at short-range

This commit is contained in:
juliarose 2025-05-03 08:04:07 -04:00
parent 38f7898e89
commit cbc7151034
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}