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.

39 lines
835 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 CFlashbangProjectile : public CBaseCSGrenadeProjectile
  13. {
  14. public:
  15. DECLARE_CLASS( CFlashbangProjectile, 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. static CFlashbangProjectile* Create(
  24. const Vector &position,
  25. const QAngle &angles,
  26. const Vector &velocity,
  27. const AngularImpulse &angVelocity,
  28. CBaseCombatCharacter *pOwner );
  29. };
  30. #endif // HEGRENADE_PROJECTILE_H