[TF] Fixed a bug where Gas Passer gas can cover players with gas in spawn rooms.

This commit is contained in:
Bitl
2025-08-09 13:41:31 -07:00
committed by EricS-Valve
parent 1a20bc8363
commit f4536119bb

View File

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