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.

50 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef WEAPON_HEGRENADE_H
  7. #define WEAPON_HEGRENADE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "weapon_basecsgrenade.h"
  12. #ifdef CLIENT_DLL
  13. #define CHEGrenade C_HEGrenade
  14. #endif
  15. //-----------------------------------------------------------------------------
  16. // Fragmentation grenades
  17. //-----------------------------------------------------------------------------
  18. class CHEGrenade : public CBaseCSGrenade
  19. {
  20. public:
  21. DECLARE_CLASS( CHEGrenade, CBaseCSGrenade );
  22. DECLARE_NETWORKCLASS();
  23. DECLARE_PREDICTABLE();
  24. CHEGrenade() {}
  25. virtual CSWeaponID GetWeaponID( void ) const { return WEAPON_HEGRENADE; }
  26. #ifdef CLIENT_DLL
  27. #else
  28. DECLARE_DATADESC();
  29. virtual void EmitGrenade( Vector vecSrc, QAngle vecAngles, Vector vecVel, AngularImpulse angImpulse, CBasePlayer *pPlayer );
  30. #endif
  31. CHEGrenade( const CHEGrenade & ) {}
  32. };
  33. #endif // WEAPON_HEGRENADE_H