summaryrefslogtreecommitdiff
path: root/game/server/tf2/tf_teamspawnpoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/server/tf2/tf_teamspawnpoint.h')
-rw-r--r--game/server/tf2/tf_teamspawnpoint.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/game/server/tf2/tf_teamspawnpoint.h b/game/server/tf2/tf_teamspawnpoint.h
new file mode 100644
index 0000000..0c566e6
--- /dev/null
+++ b/game/server/tf2/tf_teamspawnpoint.h
@@ -0,0 +1,40 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Team spawnpoint entity
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef TF_TEAMSPAWNPOINT_H
+#define TF_TEAMSPAWNPOINT_H
+#pragma once
+
+#include "baseentity.h"
+#include "EntityOutput.h"
+
+class CTeam;
+
+//-----------------------------------------------------------------------------
+// Purpose: points at which the player can spawn, restricted by team
+//-----------------------------------------------------------------------------
+class CTeamSpawnPoint : public CPointEntity
+{
+public:
+ DECLARE_CLASS( CTeamSpawnPoint, CPointEntity );
+
+ void Activate( void );
+ bool IsValid( CBasePlayer *pPlayer );
+
+ COutputEvent m_OnPlayerSpawn;
+
+protected:
+ int m_iDisabled;
+
+ void EnableSpawn( void );
+ void DisableSpawn( void );
+
+ DECLARE_DATADESC();
+};
+
+
+#endif // TF_TEAMSPAWNPOINT_H