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.

34 lines
697 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: CTF Armor.
  4. //
  5. //=============================================================================//
  6. #ifndef ENTITY_ARMOR_H
  7. #define ENTITY_ARMOR_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "tf_powerup.h"
  12. //=============================================================================
  13. //
  14. // CTF Armor class.
  15. //
  16. class CArmor : public CTFPowerup
  17. {
  18. public:
  19. DECLARE_CLASS( CArmor, CTFPowerup );
  20. void Spawn( void );
  21. void Precache( void );
  22. bool MyTouch( CBasePlayer *pPlayer );
  23. virtual const char *GetDefaultPowerupModel( void ) { return "models/items/car_battery01.mdl"; }
  24. };
  25. #endif // ENTITY_ARMOR_H