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
910 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef FUNC_RESPAWNFLAG_H
  7. #define FUNC_RESPAWNFLAG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "triggers.h"
  12. //-----------------------------------------------------------------------------
  13. // Purpose: Designates an area that triggers the flag to respawn when it touches the area
  14. //-----------------------------------------------------------------------------
  15. class CFuncRespawnFlagZone : public CBaseTrigger
  16. {
  17. DECLARE_CLASS( CFuncRespawnFlagZone, CBaseTrigger );
  18. public:
  19. DECLARE_DATADESC();
  20. CFuncRespawnFlagZone();
  21. void Spawn( void );
  22. void Touch( CBaseEntity *pOther );
  23. };
  24. // Return true if the specified entity is in a NoGrenades zone
  25. bool PointInRespawnFlagZone( const Vector &vecPoint );
  26. #endif // FUNC_RESPAWNFLAG_H