blob: 649995d61b7dd10eb896c1006e754d6764045178 (
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef DOD_RIFLEGRENADE_US_H
#define DOD_RIFLEGRENADE_US_H
#ifdef _WIN32
#pragma once
#endif
#include "dod_basegrenade.h"
class CDODRifleGrenadeUS : public CDODBaseGrenade
{
public:
DECLARE_CLASS( CDODRifleGrenadeUS, CDODBaseGrenade );
DECLARE_NETWORKCLASS();
// Overrides.
public:
CDODRifleGrenadeUS() {}
virtual void Spawn();
virtual void Precache();
// Grenade stuff.
public:
static CDODRifleGrenadeUS* Create(
const Vector &position,
const QAngle &angles,
const Vector &velocity,
const AngularImpulse &angVelocity,
CBaseCombatCharacter *pOwner,
float timer,
DODWeaponID weaponID );
virtual char *GetExplodingClassname();
virtual float GetElasticity() { return 0.05; }
private:
float m_flDetonateTime;
};
#endif // DOD_RIFLEGRENADE_US_H
|