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.

53 lines
1.0 KiB

  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 CSmokeGrenadeProjectile : public CBaseCSGrenadeProjectile
  13. {
  14. public:
  15. DECLARE_CLASS( CSmokeGrenadeProjectile, CBaseCSGrenadeProjectile );
  16. DECLARE_DATADESC();
  17. // Overrides.
  18. public:
  19. virtual void Spawn();
  20. virtual void Precache();
  21. virtual void Detonate();
  22. virtual void BounceSound( void );
  23. void Think_Detonate();
  24. void Think_Fade();
  25. void Think_Remove();
  26. // Grenade stuff.
  27. public:
  28. static CSmokeGrenadeProjectile* Create(
  29. const Vector &position,
  30. const QAngle &angles,
  31. const Vector &velocity,
  32. const AngularImpulse &angVelocity,
  33. CBaseCombatCharacter *pOwner );
  34. void SetTimer( float timer );
  35. EHANDLE m_hSmokeEffect;
  36. bool m_bDidSmokeEffect;
  37. };
  38. #endif // HEGRENADE_PROJECTILE_H