summaryrefslogtreecommitdiff
path: root/game/server/modelentities.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/modelentities.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/modelentities.h')
-rw-r--r--game/server/modelentities.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/game/server/modelentities.h b/game/server/modelentities.h
new file mode 100644
index 0000000..36cf5a7
--- /dev/null
+++ b/game/server/modelentities.h
@@ -0,0 +1,63 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef MODELENTITIES_H
+#define MODELENTITIES_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+//!! replace this with generic start enabled/disabled
+#define SF_WALL_START_OFF 0x0001
+#define SF_IGNORE_PLAYERUSE 0x0002
+
+//-----------------------------------------------------------------------------
+// Purpose: basic solid geometry
+// enabled state: brush is visible
+// disabled state: brush not visible
+//-----------------------------------------------------------------------------
+class CFuncBrush : public CBaseEntity
+{
+public:
+ DECLARE_CLASS( CFuncBrush, CBaseEntity );
+
+ virtual void Spawn( void );
+ bool CreateVPhysics( void );
+
+ virtual int ObjectCaps( void ) { return HasSpawnFlags(SF_IGNORE_PLAYERUSE) ? BaseClass::ObjectCaps() : BaseClass::ObjectCaps() | FCAP_IMPULSE_USE; }
+
+ virtual int DrawDebugTextOverlays( void );
+
+ virtual void TurnOff( void );
+ virtual void TurnOn( void );
+
+ // Input handlers
+ void InputTurnOff( inputdata_t &inputdata );
+ void InputTurnOn( inputdata_t &inputdata );
+ void InputToggle( inputdata_t &inputdata );
+ void InputSetExcluded( inputdata_t &inputdata );
+ void InputSetInvert( 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 ) const;
+};
+
+
+#endif // MODELENTITIES_H