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.

68 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef WEAPON_TFC_SHOTGUN_H
  7. #define WEAPON_TFC_SHOTGUN_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "weapon_tfcbase.h"
  12. #if defined( CLIENT_DLL )
  13. #define CTFCShotgun C_TFCShotgun
  14. #endif
  15. #define VECTOR_CONE_TF_SHOTGUN Vector( 0.04, 0.04, 0.00 )
  16. // ----------------------------------------------------------------------------- //
  17. // CTFCShotgun class definition.
  18. // ----------------------------------------------------------------------------- //
  19. class CTFCShotgun : public CWeaponTFCBase
  20. {
  21. public:
  22. DECLARE_CLASS( CTFCShotgun, CWeaponTFCBase );
  23. DECLARE_NETWORKCLASS();
  24. DECLARE_PREDICTABLE();
  25. #ifndef CLIENT_DLL
  26. DECLARE_DATADESC();
  27. #endif
  28. CTFCShotgun();
  29. virtual TFCWeaponID GetWeaponID( void ) const;
  30. virtual void PrimaryAttack();
  31. virtual void SecondaryAttack();
  32. virtual bool Reload();
  33. virtual void WeaponIdle();
  34. protected:
  35. int m_iShellsReloaded;
  36. float m_flPumpTime;
  37. float m_fReloadTime;
  38. int m_fInSpecialReload;
  39. float m_flNextReload;
  40. private:
  41. CTFCShotgun( const CTFCShotgun & ) {}
  42. };
  43. #endif // WEAPON_TFC_SHOTGUN_H