aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/hl2/func_bulletshield.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/server/hl2/func_bulletshield.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/server/hl2/func_bulletshield.h')
-rw-r--r--sp/src/game/server/hl2/func_bulletshield.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/sp/src/game/server/hl2/func_bulletshield.h b/sp/src/game/server/hl2/func_bulletshield.h
new file mode 100644
index 00000000..0b4bab47
--- /dev/null
+++ b/sp/src/game/server/hl2/func_bulletshield.h
@@ -0,0 +1,68 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef FUNC_BULLETSHIELD_H
+#define FUNC_BULLETSHIELD_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+//!! replace this with generic start enabled/disabled
+#define SF_WALL_START_OFF 0x0001
+#define SF_IGNORE_PLAYERUSE 0x0002
+
+#include "modelentities.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: shield that stops bullets, but not other objects
+// enabled state: brush is visible
+// disabled staute: brush not visible
+//-----------------------------------------------------------------------------
+class CFuncBulletShield : public CFuncBrush
+{
+public:
+ DECLARE_CLASS( CFuncBulletShield, CFuncBrush );
+ DECLARE_DATADESC();
+
+ virtual void Spawn( void );
+
+ bool TestCollision( const Ray_t &ray, unsigned int mask, trace_t& trace );
+ /*
+ bool CreateVPhysics( void );
+
+ virtual int ObjectCaps( void ) { return HasSpawnFlags(SF_IGNORE_PLAYERUSE) ? BaseClass::ObjectCaps() : BaseClass::ObjectCaps() | FCAP_IMPULSE_USE; }
+
+ virtual int DrawDebugTextOverlays( void );
+
+ void TurnOff( void );
+ void TurnOn( void );
+
+ // Input handlers
+ void InputTurnOff( inputdata_t &inputdata );
+ void InputTurnOn( inputdata_t &inputdata );
+ void InputToggle( inputdata_t &inputdata );
+
+ enum BrushSolidities_e {
+ BRUSHSOLID_TOGGLE = 0,
+ BRUSHSOLID_NEVER = 1,
+ BRUSHSOLID_ALWAYS = 2,
+ };
+
+ BrushSolidities_e m_iSolidity;
+ int m_iDisabled;
+ bool m_bSolidBsp;
+ string_t m_iszExcludedClass;
+ bool m_bInvertExclusion;
+
+ DECLARE_DATADESC();
+
+ virtual bool IsOn( void );
+ */
+};
+
+
+#endif // MODELENTITIES_H