aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/doors.cpp
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-07-17 18:26:59 -0700
committerJoe Ludwig <[email protected]>2013-07-17 18:26:59 -0700
commite16ea21dc8a710237ade8413207f58d403c616a3 (patch)
tree85dcfbda9881e4e022dedafefbc2727e2fd2aa59 /sp/src/game/server/doors.cpp
parentMerge pull request #36 from AnAkIn1/fogplayerparams_fix (diff)
downloadsource-sdk-2013-e16ea21dc8a710237ade8413207f58d403c616a3.tar.xz
source-sdk-2013-e16ea21dc8a710237ade8413207f58d403c616a3.zip
* 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
Diffstat (limited to 'sp/src/game/server/doors.cpp')
-rw-r--r--sp/src/game/server/doors.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/sp/src/game/server/doors.cpp b/sp/src/game/server/doors.cpp
index d44d6632..53abb829 100644
--- a/sp/src/game/server/doors.cpp
+++ b/sp/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 )