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
1005 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 WEAPONMP5_H
  14. #define WEAPONMP5_H
  15. #ifdef CLIENT_DLL
  16. #else
  17. #include "hl1_basegrenade.h"
  18. #endif
  19. #include "hl1mp_basecombatweapon_shared.h"
  20. #ifdef CLIENT_DLL
  21. class CGrenadeMP5;
  22. #else
  23. #endif
  24. #ifdef CLIENT_DLL
  25. #define CWeaponMP5 C_WeaponMP5
  26. #endif
  27. class CWeaponMP5 : public CBaseHL1MPCombatWeapon
  28. {
  29. DECLARE_CLASS( CWeaponMP5, CBaseHL1MPCombatWeapon );
  30. public:
  31. DECLARE_NETWORKCLASS();
  32. DECLARE_PREDICTABLE();
  33. CWeaponMP5();
  34. void Precache( void );
  35. void PrimaryAttack( void );
  36. void SecondaryAttack( void );
  37. void DryFire( void );
  38. void WeaponIdle( void );
  39. // DECLARE_SERVERCLASS();
  40. DECLARE_DATADESC();
  41. };
  42. #endif //WEAPONMP5_H