Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.
 
 
 
 
 
 

51 lines
893 B

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef TF_ORDER_ASSIST_H
#define TF_ORDER_ASSIST_H
#ifdef _WIN32
#pragma once
#endif
#include "order_player.h"
class CPlayerClass;
class COrderAssist : public COrderPlayer
{
public:
DECLARE_CLASS( COrderAssist, COrderPlayer );
DECLARE_SERVERCLASS();
// Create an order for the player.
static bool CreateOrder( CPlayerClass *pClass );
// COrder overrides.
public:
virtual bool Update();
virtual bool UpdateOnEvent( COrderEvent_Base *pEvent );
private:
enum
{
NUM_ASSIST_ENEMIES = 2
};
// The order goes away when the player who has the assist order shoots
// one of these enemies.
CHandle<CBaseEntity> m_Enemies[NUM_ASSIST_ENEMIES];
};
#endif // TF_ORDER_ASSIST_H