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.

49 lines
968 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef DOD_RIFLEGRENADE_GER_H
  7. #define DOD_RIFLEGRENADE_GER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "dod_basegrenade.h"
  12. class CDODRifleGrenadeGER : public CDODBaseGrenade
  13. {
  14. public:
  15. DECLARE_CLASS( CDODRifleGrenadeGER, CDODBaseGrenade );
  16. DECLARE_SERVERCLASS();
  17. // Overrides
  18. public:
  19. CDODRifleGrenadeGER() {}
  20. virtual void Spawn();
  21. virtual void Precache();
  22. // Grenade stuff.
  23. public:
  24. static CDODRifleGrenadeGER* 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. virtual char *GetExplodingClassname();
  33. virtual float GetElasticity() { return 0.05; }
  34. private:
  35. float m_flDetonateTime;
  36. };
  37. #endif // DOD_RIFLEGRENADE_GER_H