diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/server/hl2/extinguisherjet.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/server/hl2/extinguisherjet.h')
| -rw-r--r-- | mp/src/game/server/hl2/extinguisherjet.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/mp/src/game/server/hl2/extinguisherjet.h b/mp/src/game/server/hl2/extinguisherjet.h new file mode 100644 index 00000000..61103753 --- /dev/null +++ b/mp/src/game/server/hl2/extinguisherjet.h @@ -0,0 +1,55 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef EXTINGUISHERJET_H
+#define EXTINGUISHERJET_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "baseparticleentity.h"
+
+class CExtinguisherJet : public CBaseEntity
+{
+public:
+ DECLARE_CLASS( CExtinguisherJet, CBaseEntity );
+
+ CExtinguisherJet( void );
+
+ virtual void Spawn( void );
+ virtual void Precache();
+
+ void TurnOn( void );
+ void TurnOff( void );
+
+ void InputEnable( inputdata_t &inputdata );
+ void InputDisable( inputdata_t &inputdata );
+ void InputToggle( inputdata_t &inputdata );
+
+ virtual void Think( void );
+
+ void ExtinguishThink( void );
+
+ DECLARE_DATADESC();
+ DECLARE_SERVERCLASS();
+
+// Stuff from the datatable.
+public:
+ CNetworkVar( bool, m_bEmit ); // Emit particles?
+ CNetworkVar( int, m_nLength ); // Length of jet
+ CNetworkVar( int, m_nSize ); // Size of jet (as in width and noise of particle movement)
+ int m_nRadius; // Radius area to extinguish where jet hits
+ float m_flStrength; // Strength of the extinguisher
+
+ bool m_bEnabled;
+
+ //Used for viewmodel
+ CNetworkVar( bool, m_bUseMuzzlePoint );
+ bool m_bAutoExtinguish; //Whether extinguisher should put out fires in its think, or let owner do it
+};
+
+#endif // EXTINGUISHERJET_H
|