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.

42 lines
928 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Projectile shot from the MP5
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef GRENADEMP5_H
  14. #define GRENADEMP5_H
  15. #include "hl1_basegrenade.h"
  16. #define MAX_MP5_NO_COLLIDE_TIME 0.2
  17. class SmokeTrail;
  18. class CWeaponMP5;
  19. class CGrenadeMP5 : public CHL1BaseGrenade
  20. {
  21. DECLARE_CLASS( CGrenadeMP5, CHL1BaseGrenade );
  22. public:
  23. float m_fSpawnTime;
  24. void Spawn( void );
  25. void Precache( void );
  26. void GrenadeMP5Touch( CBaseEntity *pOther );
  27. void Event_Killed( CBaseEntity *pInflictor, CBaseEntity *pAttacker, float flDamage, int bitsDamageType );
  28. public:
  29. void EXPORT Detonate(void);
  30. DECLARE_DATADESC();
  31. };
  32. #endif //GRENADEMP5_H