blob: 76187ff8051045e8dc5f337741d152207a726252 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
//========= 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 );
virtual bool IsValid( CBasePlayer *pPlayer );
COutputEvent m_OnPlayerSpawn;
protected:
int m_iDisabled;
// Input handlers
void InputEnable( inputdata_t &inputdata );
void InputDisable( inputdata_t &inputdata );
DECLARE_DATADESC();
};
//-----------------------------------------------------------------------------
// Purpose: points at which vehicles can spawn, restricted by team
//-----------------------------------------------------------------------------
class CTeamVehicleSpawnPoint : public CTeamSpawnPoint
{
DECLARE_CLASS( CTeamVehicleSpawnPoint, CTeamSpawnPoint );
public:
void Activate( void );
bool IsValid( void );
COutputEvent m_OnVehicleSpawn;
DECLARE_DATADESC();
};
#endif // TF_TEAMSPAWNPOINT_H
|