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.

51 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //
  4. //=============================================================================
  5. #ifndef TF_WEAPON_DECOY_H
  6. #define TF_WEAPON_DECOY_H
  7. #ifdef _WIN32
  8. #pragma once
  9. #endif
  10. #include "tf_weaponbase_gun.h"
  11. #include "tf_weapon_jar.h"
  12. // Client specific.
  13. #ifdef CLIENT_DLL
  14. #define CTFDecoy C_TFDecoy
  15. #endif
  16. //=============================================================================
  17. //
  18. // Spy Decoy weapon.
  19. //
  20. class CTFDecoy : public CTFJar
  21. {
  22. public:
  23. DECLARE_CLASS( CTFDecoy, CTFJar );
  24. DECLARE_NETWORKCLASS();
  25. /*
  26. // Server specific.
  27. #ifdef GAME_DLL
  28. DECLARE_DATADESC();
  29. #endif
  30. */
  31. CTFDecoy();
  32. ~CTFDecoy() {}
  33. virtual int GetWeaponID( void ) const { return TF_WEAPON_LIFELINE; } // TODO: Need real weapon ID
  34. virtual void PrimaryAttack( void );
  35. virtual bool ShouldDrawCrosshair( void ) { return false; }
  36. virtual bool HasPrimaryAmmo() { return true; }
  37. virtual bool CanBeSelected() { return true; }
  38. private:
  39. CTFDecoy( const CTFDecoy & ) {}
  40. };
  41. #endif // TF_WEAPON_DECOY_H