summaryrefslogtreecommitdiff
path: root/game/server/hl2/extinguisherjet.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/hl2/extinguisherjet.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/hl2/extinguisherjet.h')
-rw-r--r--game/server/hl2/extinguisherjet.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/game/server/hl2/extinguisherjet.h b/game/server/hl2/extinguisherjet.h
new file mode 100644
index 0000000..bf328b0
--- /dev/null
+++ b/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