Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef HEGRENADE_PROJECTILE_H
  7. #define HEGRENADE_PROJECTILE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "basecsgrenade_projectile.h"
  12. class CHEGrenadeProjectile : public CBaseCSGrenadeProjectile
  13. {
  14. public:
  15. DECLARE_CLASS( CHEGrenadeProjectile, CBaseCSGrenadeProjectile );
  16. #if !defined( CLIENT_DLL )
  17. DECLARE_DATADESC();
  18. #endif
  19. // Overrides.
  20. public:
  21. CHEGrenadeProjectile() {}
  22. virtual void Spawn();
  23. virtual void Precache();
  24. virtual void BounceSound( void );
  25. virtual void Detonate();
  26. virtual const char *GetParticleSystemName( int pointContents, surfacedata_t *pdata );
  27. virtual GrenadeType_t GetGrenadeType( void ) { return GRENADE_TYPE_EXPLOSIVE; }
  28. // Grenade stuff.
  29. public:
  30. static CHEGrenadeProjectile* Create(
  31. const Vector &position,
  32. const QAngle &angles,
  33. const Vector &velocity,
  34. const AngularImpulse &angVelocity,
  35. CBaseCombatCharacter *pOwner,
  36. const CCSWeaponInfo& weaponInfo,
  37. float timer );
  38. void SetTimer( float timer );
  39. void InitializeSpawnFromWorld( inputdata_t &inputdata );
  40. private:
  41. float m_flDetonateTime;
  42. };
  43. #endif // HEGRENADE_PROJECTILE_H