summaryrefslogtreecommitdiff
path: root/game/server/tf/bot/behavior/tf_bot_mvm_deploy_bomb.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/server/tf/bot/behavior/tf_bot_mvm_deploy_bomb.h')
-rw-r--r--game/server/tf/bot/behavior/tf_bot_mvm_deploy_bomb.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/game/server/tf/bot/behavior/tf_bot_mvm_deploy_bomb.h b/game/server/tf/bot/behavior/tf_bot_mvm_deploy_bomb.h
new file mode 100644
index 0000000..ae3043c
--- /dev/null
+++ b/game/server/tf/bot/behavior/tf_bot_mvm_deploy_bomb.h
@@ -0,0 +1,27 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+// tf_bot_mvm_deploy_bomb.h
+// Set us up the bomb!
+
+#ifndef TF_BOT_MVM_DEPLOY_BOMB_H
+#define TF_BOT_MVM_DEPLOY_BOMB_H
+
+//-----------------------------------------------------------------------------
+class CTFBotMvMDeployBomb : public Action< CTFBot >
+{
+public:
+ virtual ActionResult< CTFBot > OnStart( CTFBot *me, Action< CTFBot > *priorAction );
+ virtual ActionResult< CTFBot > Update( CTFBot *me, float interval );
+ virtual void OnEnd( CTFBot *me, Action< CTFBot > *nextAction );
+
+ EventDesiredResult< CTFBot > OnContact( CTFBot *me, CBaseEntity *other, CGameTrace *result );
+ QueryResultType ShouldAttack( const INextBot *me, const CKnownEntity *them ) const;
+
+ virtual const char *GetName( void ) const { return "MvMDeployBomb"; };
+
+private:
+ CountdownTimer m_timer;
+ Vector m_anchorPos;
+};
+
+
+#endif // TF_BOT_MVM_DEPLOY_BOMB_H