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.

50 lines
983 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef DOD_STICKGRENADE_H
  7. #define DOD_STICKGRENADE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "dod_basegrenade.h"
  12. class CDODStickGrenade : public CDODBaseGrenade
  13. {
  14. public:
  15. DECLARE_CLASS( CDODStickGrenade, CDODBaseGrenade );
  16. // Overrides.
  17. public:
  18. CDODStickGrenade() {}
  19. virtual void Spawn();
  20. virtual void Precache();
  21. virtual void BounceSound( void );
  22. // Grenade stuff.
  23. public:
  24. static CDODStickGrenade* Create(
  25. const Vector &position,
  26. const QAngle &angles,
  27. const Vector &velocity,
  28. const AngularImpulse &angVelocity,
  29. CBaseCombatCharacter *pOwner,
  30. float timer,
  31. DODWeaponID weaponID );
  32. void SetTimer( float timer );
  33. virtual char *GetExplodingClassname();
  34. private:
  35. float m_flDetonateTime;
  36. CDODStickGrenade( const CDODStickGrenade & );
  37. };
  38. #endif // DOD_STICKGRENADE_H