diff options
Diffstat (limited to 'game/shared/cstrike/hegrenade_projectile.h')
| -rw-r--r-- | game/shared/cstrike/hegrenade_projectile.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/game/shared/cstrike/hegrenade_projectile.h b/game/shared/cstrike/hegrenade_projectile.h new file mode 100644 index 0000000..50df243 --- /dev/null +++ b/game/shared/cstrike/hegrenade_projectile.h @@ -0,0 +1,46 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef HEGRENADE_PROJECTILE_H +#define HEGRENADE_PROJECTILE_H +#ifdef _WIN32 +#pragma once +#endif + +#include "basecsgrenade_projectile.h" + +class CHEGrenadeProjectile : public CBaseCSGrenadeProjectile +{ +public: + DECLARE_CLASS( CHEGrenadeProjectile, CBaseCSGrenadeProjectile ); + + +// Overrides. +public: + virtual void Spawn(); + virtual void Precache(); + virtual void BounceSound( void ); + virtual void Detonate(); + +// Grenade stuff. +public: + + static CHEGrenadeProjectile* Create( + const Vector &position, + const QAngle &angles, + const Vector &velocity, + const AngularImpulse &angVelocity, + CBaseCombatCharacter *pOwner, + float timer ); + + void SetTimer( float timer ); + +private: + float m_flDetonateTime; +}; + + +#endif // HEGRENADE_PROJECTILE_H |