summaryrefslogtreecommitdiff
path: root/game/server/hl2/ai_behavior_holster.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/hl2/ai_behavior_holster.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/hl2/ai_behavior_holster.h')
-rw-r--r--game/server/hl2/ai_behavior_holster.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/game/server/hl2/ai_behavior_holster.h b/game/server/hl2/ai_behavior_holster.h
new file mode 100644
index 0000000..5425aa3
--- /dev/null
+++ b/game/server/hl2/ai_behavior_holster.h
@@ -0,0 +1,76 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Deal with weapon being out
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+
+
+#ifndef AI_BEHAVIOR_HOLSTER_H
+#define AI_BEHAVIOR_HOLSTER_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "ai_behavior.h"
+
+class CAI_HolsterBehavior : public CAI_SimpleBehavior
+{
+ DECLARE_CLASS( CAI_HolsterBehavior, CAI_SimpleBehavior );
+
+public:
+ CAI_HolsterBehavior();
+
+ virtual const char *GetName() { return "Holster"; }
+
+ virtual bool CanSelectSchedule();
+ //virtual void BeginScheduleSelection();
+ //virtual void EndScheduleSelection();
+
+ void StartTask( const Task_t *pTask );
+ void RunTask( const Task_t *pTask );
+ //void BuildScheduleTestBits();
+ //int TranslateSchedule( int scheduleType );
+ //void OnStartSchedule( int scheduleType );
+
+ //void InitializeBehavior();
+
+ enum
+ {
+ SCHED_HOLSTER_WEAPON = BaseClass::NEXT_SCHEDULE, // Try to get out of the player's way
+ SCHED_DRAW_WEAPON,
+ NEXT_SCHEDULE,
+
+ TASK_HOLSTER_WEAPON = BaseClass::NEXT_TASK,
+ TASK_DRAW_WEAPON,
+ NEXT_TASK,
+
+/*
+ COND_PUT_CONDITIONS_HERE = BaseClass::NEXT_CONDITION,
+ NEXT_CONDITION,
+*/
+ };
+
+ DEFINE_CUSTOM_SCHEDULE_PROVIDER;
+
+public:
+
+private:
+ virtual int SelectSchedule();
+
+ bool m_bWeaponOut;
+
+ //---------------------------------
+
+ DECLARE_DATADESC();
+};
+
+#endif // AI_BEHAVIOR_HOLSTER_H
+
+