mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-15 05:06:57 +00:00
1
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
// tf_bot_proxy.h
|
||||
// A Hammer entity that spawns a TFBot and relays events to/from it
|
||||
// Michael Booth, November 2009
|
||||
|
||||
#ifndef TF_BOT_PROXY_H
|
||||
#define TF_BOT_PROXY_H
|
||||
|
||||
|
||||
class CTFBot;
|
||||
class CTFBotActionPoint;
|
||||
|
||||
|
||||
class CTFBotProxy : public CPointEntity
|
||||
{
|
||||
DECLARE_CLASS( CTFBotProxy, CPointEntity );
|
||||
public:
|
||||
DECLARE_DATADESC();
|
||||
|
||||
CTFBotProxy( void );
|
||||
virtual ~CTFBotProxy() { }
|
||||
|
||||
void Think( void );
|
||||
|
||||
// Input
|
||||
void InputSetTeam( inputdata_t &inputdata );
|
||||
void InputSetClass( inputdata_t &inputdata );
|
||||
void InputSetMovementGoal( inputdata_t &inputdata );
|
||||
void InputSpawn( inputdata_t &inputdata );
|
||||
void InputDelete( inputdata_t &inputdata );
|
||||
|
||||
void OnInjured( void );
|
||||
void OnKilled( void );
|
||||
void OnAttackingEnemy( void );
|
||||
void OnKilledEnemy( void );
|
||||
|
||||
protected:
|
||||
// Output
|
||||
COutputEvent m_onSpawned;
|
||||
COutputEvent m_onInjured;
|
||||
COutputEvent m_onKilled;
|
||||
COutputEvent m_onAttackingEnemy;
|
||||
COutputEvent m_onKilledEnemy;
|
||||
|
||||
char m_botName[64];
|
||||
char m_className[64];
|
||||
char m_teamName[64];
|
||||
|
||||
string_t m_spawnOnStart;
|
||||
string_t m_actionPointName;
|
||||
float m_respawnInterval;
|
||||
|
||||
CHandle< CTFBot > m_bot;
|
||||
CHandle< CTFBotActionPoint > m_moveGoal;
|
||||
};
|
||||
|
||||
|
||||
#endif // TF_BOT_PROXY_H
|
||||
Reference in New Issue
Block a user