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.

43 lines
864 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef TF_WEAPON_FLAG_H
  7. #define TF_WEAPON_FLAG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "tf_weaponbase_melee.h"
  12. #ifdef CLIENT_DLL
  13. #define CTFFlag C_TFFlag
  14. #endif
  15. //=============================================================================
  16. //
  17. // Bottle class.
  18. //
  19. class CTFFlag : public CTFWeaponBaseMelee
  20. {
  21. public:
  22. DECLARE_CLASS( CTFFlag, CTFWeaponBaseMelee );
  23. DECLARE_NETWORKCLASS();
  24. DECLARE_PREDICTABLE();
  25. CTFFlag();
  26. virtual int GetWeaponID( void ) const { return TF_WEAPON_FLAG; }
  27. virtual void SecondaryAttack();
  28. bool Deploy( void );
  29. virtual bool CanDrop( void ) { return true; }
  30. private:
  31. CTFFlag( const CTFFlag & ) {}
  32. };
  33. #endif // TF_WEAPON_FLAG_H