mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-04-02 13:32:37 +00:00
37 lines
945 B
C++
37 lines
945 B
C++
//========= Copyright © 1996-2007, Valve LLC, All rights reserved. ============
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================
|
|
#include "cbase.h"
|
|
#include "tf_shareddefs.h"
|
|
|
|
// memdbgon must be the last include file in a .cpp file!!!
|
|
#include "tier0/memdbgon.h"
|
|
|
|
extern CUtlVector<int> g_CaptureZones;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose:
|
|
//-----------------------------------------------------------------------------
|
|
class C_CaptureZone : public C_BaseEntity
|
|
{
|
|
DECLARE_CLASS( C_CaptureZone, C_BaseEntity );
|
|
|
|
public:
|
|
DECLARE_CLIENTCLASS();
|
|
|
|
void Spawn( void )
|
|
{
|
|
// add this element if it isn't already in the list
|
|
if ( g_CaptureZones.Find( entindex() ) == -1 )
|
|
{
|
|
g_CaptureZones.AddToTail( entindex() );
|
|
}
|
|
}
|
|
};
|
|
|
|
IMPLEMENT_CLIENTCLASS_DT( C_CaptureZone, DT_CaptureZone, CCaptureZone )
|
|
END_RECV_TABLE()
|