Counter Strike : Global Offensive Source Code
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.

56 lines
1.4 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Team spawnpoint entity
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TF_TEAMSPAWNPOINT_H
  8. #define TF_TEAMSPAWNPOINT_H
  9. #pragma once
  10. #include "baseentity.h"
  11. #include "entityoutput.h"
  12. class CTeam;
  13. //-----------------------------------------------------------------------------
  14. // Purpose: points at which the player can spawn, restricted by team
  15. //-----------------------------------------------------------------------------
  16. class CTeamSpawnPoint : public CPointEntity
  17. {
  18. public:
  19. DECLARE_CLASS( CTeamSpawnPoint, CPointEntity );
  20. void Activate( void );
  21. virtual bool IsValid( CBasePlayer *pPlayer );
  22. COutputEvent m_OnPlayerSpawn;
  23. protected:
  24. int m_iDisabled;
  25. // Input handlers
  26. void InputEnable( inputdata_t &inputdata );
  27. void InputDisable( inputdata_t &inputdata );
  28. DECLARE_DATADESC();
  29. };
  30. //-----------------------------------------------------------------------------
  31. // Purpose: points at which vehicles can spawn, restricted by team
  32. //-----------------------------------------------------------------------------
  33. class CTeamVehicleSpawnPoint : public CTeamSpawnPoint
  34. {
  35. DECLARE_CLASS( CTeamVehicleSpawnPoint, CTeamSpawnPoint );
  36. public:
  37. void Activate( void );
  38. bool IsValid( void );
  39. COutputEvent m_OnVehicleSpawn;
  40. DECLARE_DATADESC();
  41. };
  42. #endif // TF_TEAMSPAWNPOINT_H