From cbc7151034a38d14b05a62017c5ec87c6e9706f7 Mon Sep 17 00:00:00 2001 From: juliarose Date: Sat, 3 May 2025 08:04:07 -0400 Subject: [PATCH] Add condition so that the Pomson 6000 projectile only passes through teammates at short-range --- src/game/shared/tf/tf_projectile_energy_ring.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/shared/tf/tf_projectile_energy_ring.cpp b/src/game/shared/tf/tf_projectile_energy_ring.cpp index e916cfefb..7b2c4802a 100644 --- a/src/game/shared/tf/tf_projectile_energy_ring.cpp +++ b/src/game/shared/tf/tf_projectile_energy_ring.cpp @@ -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; }