diff options
Diffstat (limited to 'game/server/hl1/hl1_basegrenade.h')
| -rw-r--r-- | game/server/hl1/hl1_basegrenade.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/game/server/hl1/hl1_basegrenade.h b/game/server/hl1/hl1_basegrenade.h new file mode 100644 index 0000000..1f88846 --- /dev/null +++ b/game/server/hl1/hl1_basegrenade.h @@ -0,0 +1,42 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef HL1_BASEGRENADE_H +#define HL1_BASEGRENADE_H +#ifdef _WIN32 +#pragma once +#endif + + +#include "basegrenade_shared.h" + + +class CHL1BaseGrenade : public CBaseGrenade +{ + DECLARE_CLASS( CHL1BaseGrenade, CBaseGrenade ); +public: + + virtual void Precache(); + + void Explode( trace_t *pTrace, int bitsDamageType ); + unsigned int PhysicsSolidMaskForEntity( void ) const; +}; + +class CHandGrenade : public CHL1BaseGrenade +{ +public: + DECLARE_CLASS( CHandGrenade, CHL1BaseGrenade ); + DECLARE_DATADESC(); + + void Spawn( void ); + void Precache( void ); + void BounceSound( void ); + void BounceTouch( CBaseEntity *pOther ); + + void ShootTimed( CBaseCombatCharacter *pOwner, Vector vecVelocity, float flTime ); +}; + +#endif // HL1_BASEGRENADE_H |