mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2026-01-25 08:42:36 +01:00
[TF] Fixed a bug where Gas Passer gas can cover players with gas in spawn rooms.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user