mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 12:06:07 +08:00
* 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
This commit is contained in:
@ -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 )
|
||||
|
Reference in New Issue
Block a user