Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1018 B

// Status of the flag
#define FLAG_STOLEN 1
#define FLAG_CAPTURE 2
#define FLAG_DROPPED 3
// Our flag class which holds all our functions and variables we're going to use
class CObjectFlag : public CBaseEntity
{
public:
void Spawn( );
void Precache( );
void Touch(CBaseEntity *);
bool m_fIsInPlay;
};
// The Flag entity that is dropped by a player when killed/disconnected/whatnot
class CDroppedFlag : public CBaseEntity
{
public:
void Spawn( );
void Precache( );
void Touch(CBaseEntity *);
};
// Capture point for Team 1
class CCaptureTeam1 : public CBaseEntity
{
public:
void Spawn( );
void Precache( );
void EXPORT Touch(CBaseEntity *);
void EXPORT Think( );
void KeyValue( KeyValueData* );
};
// Capture point for Team 2
class CCaptureTeam2 : public CBaseEntity
{
public:
void Spawn( );
void Precache( );
void EXPORT Touch( CBaseEntity *);
void EXPORT Think( );
void KeyValue( KeyValueData* );
};