summaryrefslogtreecommitdiff
path: root/game/server/tf/entity_intermission.cpp
blob: b600bc1cf966ac0e7eb91fa56388488419c8779d (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: CTF Intermission.
//
//=============================================================================//

#include "cbase.h"
#include "tf_gamerules.h"
#include "entity_intermission.h"



LINK_ENTITY_TO_CLASS( point_intermission, CTFIntermission );

BEGIN_DATADESC(CTFIntermission)
	// Keys

	// Inputs
	DEFINE_INPUTFUNC(FIELD_VOID, "Activate", InputActivate ),

	// Outputs

END_DATADESC()

//=============================================================================
//
// CTF Intermission functions.
//

//-----------------------------------------------------------------------------
// Purpose: 
// Input  : &inputdata - 
//-----------------------------------------------------------------------------
void CTFIntermission::InputActivate( inputdata_t &inputdata )
{
	CTFGameRules *pCTFGameRules = TFGameRules();
	if ( pCTFGameRules )
	{
		pCTFGameRules->GoToIntermission();
	}
}