mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 09:49:36 +00:00
1
This commit is contained in:
@@ -0,0 +1,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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user