summaryrefslogtreecommitdiff
path: root/game/server/tf2/tf_teamspawnpoint.h
blob: 0c566e6d1bb91bc48900a15837fd6e2c13a33bf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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