summaryrefslogtreecommitdiff
path: root/game/server/dod/dod_smokegrenade.h
blob: 3a80c16d284580afa579f364085c5f205f29122b (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================//

#ifndef DOD_SMOKEGRENADE_H
#define DOD_SMOKEGRENADE_H
#ifdef _WIN32
#pragma once
#endif

#include "dod_basegrenade.h" 

class CDODSmokeGrenade : public CDODBaseGrenade
{
public:
	DECLARE_CLASS( CDODSmokeGrenade, CDODBaseGrenade );
	DECLARE_DATADESC();

	DECLARE_SERVERCLASS();

	virtual void Spawn();
	virtual void Precache();
	virtual void BounceSound( void ); 
	virtual void Detonate();

	virtual bool CanBePickedUp( void ) { return false; }

	void Think_Emit();
	void Think_Fade();
	void Think_Remove();

private:
	bool m_bFading;
	bool m_bInitialSmoke;
	float m_flRemoveTime;

	CNetworkVar( float, m_flSmokeSpawnTime );
};

#endif // DOD_SMOKEGRENADE_H