diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/tf/bot/map_entities/tf_bot_hint_engineer_nest.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/tf/bot/map_entities/tf_bot_hint_engineer_nest.h')
| -rw-r--r-- | game/server/tf/bot/map_entities/tf_bot_hint_engineer_nest.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/game/server/tf/bot/map_entities/tf_bot_hint_engineer_nest.h b/game/server/tf/bot/map_entities/tf_bot_hint_engineer_nest.h new file mode 100644 index 0000000..9e5fdf5 --- /dev/null +++ b/game/server/tf/bot/map_entities/tf_bot_hint_engineer_nest.h @@ -0,0 +1,53 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// +// +//============================================================================= +#ifndef TF_BOT_HINT_ENGINEER_NEST_H +#define TF_BOT_HINT_ENGINEER_NEST_H + +#include "tf_bot_hint_entity.h" + +typedef CUtlVector< CHandle< CBaseTFBotHintEntity > > HintVector_t; + +class CTFBotHintSentrygun; +class CTFBotHintTeleporterExit; + +class CTFBotHintEngineerNest : public CBaseTFBotHintEntity +{ + DECLARE_CLASS( CTFBotHintEngineerNest, CBaseTFBotHintEntity ); +public: + DECLARE_SERVERCLASS(); + DECLARE_DATADESC(); + + CTFBotHintEngineerNest( void ); + virtual ~CTFBotHintEngineerNest() { } + + virtual void Spawn() OVERRIDE; + + virtual HintType GetHintType() const OVERRIDE { return HINT_ENGINEER_NEST; } + + virtual int UpdateTransmitState() + { + return SetTransmitState( FL_EDICT_ALWAYS ); + } + + void HintThink(); + void HintTeleporterThink(); + + bool IsStaleNest() const; + void DetonateStaleNest(); + + CTFBotHintSentrygun* GetSentryHint() const; + CTFBotHintTeleporterExit* GetTeleporterHint() const; +private: + void DetonateObjectsFromHints( const HintVector_t& hints ); + CBaseTFBotHintEntity* GetHint( const HintVector_t& hints ) const; + + HintVector_t m_sentries; + HintVector_t m_teleporters; + + CNetworkVar( bool, m_bHasActiveTeleporter ); +}; + +#endif // TF_BOT_HINT_ENGINEER_NEST_H |