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.

47 lines
990 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Projectile shot from the AR2
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef GRENADEAR2_H
  14. #define GRENADEAR2_H
  15. #include "basegrenade_shared.h"
  16. #define MAX_AR2_NO_COLLIDE_TIME 0.2
  17. class SmokeTrail;
  18. class CWeaponAR2;
  19. class CGrenadeAR2 : public CBaseGrenade
  20. {
  21. public:
  22. DECLARE_CLASS( CGrenadeAR2, CBaseGrenade );
  23. CHandle< SmokeTrail > m_hSmokeTrail;
  24. float m_fSpawnTime;
  25. float m_fDangerRadius;
  26. void Spawn( void );
  27. void Precache( void );
  28. void GrenadeAR2Touch( CBaseEntity *pOther );
  29. void GrenadeAR2Think( void );
  30. void Event_Killed( const CTakeDamageInfo &info );
  31. public:
  32. void EXPORT Detonate(void);
  33. CGrenadeAR2(void);
  34. DECLARE_DATADESC();
  35. };
  36. #endif //GRENADEAR2_H