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

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

#include "dod_basegrenade.h"

class CDODStickGrenade : public CDODBaseGrenade
{
public:
	DECLARE_CLASS( CDODStickGrenade, CDODBaseGrenade );


// Overrides.
public:
	CDODStickGrenade() {}
	virtual void Spawn();
	virtual void Precache();
	virtual void BounceSound( void );

// Grenade stuff.
public:

	static CDODStickGrenade* Create( 
		const Vector &position, 
		const QAngle &angles, 
		const Vector &velocity, 
		const AngularImpulse &angVelocity, 
		CBaseCombatCharacter *pOwner, 
		float timer,
		DODWeaponID weaponID );

	void SetTimer( float timer );

	virtual char *GetExplodingClassname();

private:
	float m_flDetonateTime;
	CDODStickGrenade( const CDODStickGrenade & );
};


#endif // DOD_STICKGRENADE_H