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.

42 lines
1020 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: CTF Reset Entity (resets the teams).
  4. //
  5. //=============================================================================//
  6. #ifndef ENTITY_FORCERESPAWN_H
  7. #define ENTITY_FORCERESPAWN_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. //=============================================================================
  12. //
  13. // CTF Force Respawn Entity.
  14. //
  15. class CTFForceRespawn : public CPointEntity
  16. {
  17. public:
  18. DECLARE_CLASS( CTFForceRespawn, CPointEntity );
  19. CTFForceRespawn();
  20. void Reset( void );
  21. void ForceRespawn( bool bSwitchTeams, int nTeam = TEAM_UNASSIGNED, bool bRemoveEverything = true );
  22. // Input.
  23. void InputForceRespawn( inputdata_t &inputdata );
  24. void InputForceRespawnSwitchTeams( inputdata_t &inputdata );
  25. void InputForceTeamRespawn( inputdata_t &inputdata );
  26. private:
  27. COutputEvent m_outputOnForceRespawn; // Fired when the entity is done respawning the players.
  28. DECLARE_DATADESC();
  29. };
  30. #endif // ENTITY_FORCERESPAWN_H