aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/hl2/extinguisherjet.h
blob: bf328b05a291f9830f94b6aa611383b5a55699d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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