From e16ea21dc8a710237ade8413207f58d403c616a3 Mon Sep 17 00:00:00 2001 From: Joe Ludwig Date: Wed, 17 Jul 2013 18:26:59 -0700 Subject: * Added support for building shaders in your mod * Added nav mesh support * fixed many warnings and misc bugs * Fixed the create*projects scripts in mp * Added a bunch of stuff to .gitignore --- mp/src/game/server/doors.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'mp/src/game/server/doors.cpp') diff --git a/mp/src/game/server/doors.cpp b/mp/src/game/server/doors.cpp index d44d6632..53abb829 100644 --- a/mp/src/game/server/doors.cpp +++ b/mp/src/game/server/doors.cpp @@ -21,6 +21,10 @@ #include "KeyValues.h" #endif +#ifdef TF_DLL +#include "tf_gamerules.h" +#endif // TF_DLL + // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" @@ -332,6 +336,17 @@ void CBaseDoor::Spawn() } CreateVPhysics(); + +#ifdef TF_DLL + if ( TFGameRules() && TFGameRules()->IsMultiplayer() ) + { + if ( !m_flBlockDamage ) + { + // Never block doors in TF2 - to prevent various exploits. + m_flBlockDamage = 10.f; + } + } +#endif // TF_DLL } void CBaseDoor::MovingSoundThink( void ) -- cgit v1.2.3