From d13902252000d172bf2862963933009751b48ccf Mon Sep 17 00:00:00 2001 From: Bitl Date: Sat, 9 Aug 2025 13:41:31 -0700 Subject: [PATCH] [TF] Fixed a bug where Gas Passer gas can cover players with gas in spawn rooms. --- src/game/shared/tf/tf_weapon_jar_gas.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/game/shared/tf/tf_weapon_jar_gas.cpp b/src/game/shared/tf/tf_weapon_jar_gas.cpp index 1e284e9e24..c9deb35355 100644 --- a/src/game/shared/tf/tf_weapon_jar_gas.cpp +++ b/src/game/shared/tf/tf_weapon_jar_gas.cpp @@ -29,6 +29,7 @@ #include "tf_flame.h" #include "dt_utlvector_send.h" #include "collisionutils.h" +#include "func_respawnroom.h" #endif @@ -364,6 +365,12 @@ bool CTFGasManager::ShouldCollide( CBaseEntity *pEnt ) const if ( pEnt->GetTeamNumber() == GetTeamNumber() ) return false; + + if ( PointsCrossRespawnRoomVisualizer( GetInitialPosition(), pEnt->GetAbsOrigin() ) ) + return false; + + if ( PointInRespawnRoom( pEnt, pEnt->GetAbsOrigin() ) ) + return false; if ( TFGameRules() && TFGameRules()->IsTruceActive() ) return false;