Team Fortress 2 Source Code as on 22/4/2020
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.

46 lines
925 B

  1. //========= Copyright 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. // Overrides.
  17. public:
  18. virtual void Spawn();
  19. virtual void Precache();
  20. virtual void BounceSound( void );
  21. virtual void Detonate();
  22. // Grenade stuff.
  23. public:
  24. static CHEGrenadeProjectile* Create(
  25. const Vector &position,
  26. const QAngle &angles,
  27. const Vector &velocity,
  28. const AngularImpulse &angVelocity,
  29. CBaseCombatCharacter *pOwner,
  30. float timer );
  31. void SetTimer( float timer );
  32. private:
  33. float m_flDetonateTime;
  34. };
  35. #endif // HEGRENADE_PROJECTILE_H