diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/dod/dod_stickgrenade.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/dod/dod_stickgrenade.h')
| -rw-r--r-- | game/server/dod/dod_stickgrenade.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/game/server/dod/dod_stickgrenade.h b/game/server/dod/dod_stickgrenade.h new file mode 100644 index 0000000..74c3b58 --- /dev/null +++ b/game/server/dod/dod_stickgrenade.h @@ -0,0 +1,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 |