7 void BotSpawnEntityInHands (
Bot bot = NULL,
BotStateBase parent = NULL,
string new_type =
"")
9 if (new_type ==
string.
Empty)
15 override void OnEntry (BotEventBase e)
25 override void OnExit (BotEventBase e) { super.OnExit(e); }
35 m_Bot.ProcessEvent(
new BotEventEntityInHands(
m_Owner, inHands));
66 override void OnAbort (BotEventBase e) { super.OnAbort(e); }
68 override void OnExit (BotEventBase e)
81 string t_str = inHands.GetType();
83 if (t_str.IndexOf(
"_Opened") != -1)
86 m_Bot.ProcessEvent(
new BotEventEntityInHandsOpened(
m_Owner, inHands));
96 ref BotSpawnEntityInHands m_Spawning;
97 ref BotOpenEntityInHands m_Opening;
99 void Bot_TestSpawnOpen (Bot bot = NULL, BotStateBase parent = NULL,
string new_type =
"")
104 m_FSM =
new BotFSM(
this);
106 m_Spawning =
new BotSpawnEntityInHands(m_Bot,
this);
107 m_Opening =
new BotOpenEntityInHands(m_Bot,
this);
110 BotEventBase __EntInH__ =
new BotEventEntityInHands;
113 m_FSM.AddTransition(
new BotTransition( m_Spawning, __EntInH__, m_Opening));
117 m_FSM.SetInitialState(m_Spawning);
120 override void OnEntry (BotEventBase e) { super.OnEntry(e); }
121 override void OnExit (BotEventBase e) { super.OnExit(e); }
122 override void OnUpdate (
float dt) { super.OnUpdate(dt); }
131 override void OnAbort (BotEventBase e) { super.OnAbort(e); }
132 override void OnExit (BotEventBase e) { super.OnExit(e); }
143 m_Bot.ProcessEvent(
new BotEventHandsEmpty(
m_Owner, inHands));
172 m_Owner.PredictiveDropEntity(inHands);
179 override void OnUpdate (
float dt) { super.OnUpdate(dt); }
202 target =
new ActionTarget(inHands, null, -1,
vector.Zero, -1);
203 cli_mgr.PerformAction(AT_EAT, target, inHands);
210 override void OnAbort (BotEventBase e) { super.OnAbort(e); }
211 override void OnExit (BotEventBase e) { super.OnExit(e); }
212 override void OnUpdate (
float dt) { super.OnUpdate(dt); }
221 override void OnEntry (BotEventBase e)
234 override void OnAbort (BotEventBase e) { super.OnAbort(e); }
235 override void OnExit (BotEventBase e) { super.OnExit(e); }
236 override void OnUpdate (
float dt) { super.OnUpdate(dt); }
242 ref BotDropEntityInHands m_Dropping;
244 void Bot_TestSpawnOpenDrop (
Bot bot = NULL,
BotStateBase parent = NULL,
string new_type =
"")
246 m_Dropping =
new BotDropEntityInHands(m_Bot,
this);
253 m_FSM.AddTransition(
new BotTransition( m_Opening, __EntOpn__, m_Dropping));
254 m_FSM.AddTransition(
new BotTransition( m_Dropping, __HndChg__, NULL));
259 override void OnUpdate (
float dt) { super.OnUpdate(dt); }
264 ref BotDestroyEntityInHands m_Destroying;
266 void Bot_TestSpawnOpenDestroy (
Bot bot = NULL,
BotStateBase parent = NULL,
string new_type =
"")
268 m_Destroying =
new BotDestroyEntityInHands(m_Bot,
this);
275 m_FSM.AddTransition(
new BotTransition( m_Opening, __EntOpn__, m_Destroying));
276 m_FSM.AddTransition(
new BotTransition( m_Destroying, __HndChg__, NULL));
279 override void OnEntry (BotEventBase e) { super.OnEntry(e); }
280 override void OnExit (BotEventBase e) { super.OnExit(e); }
281 override void OnUpdate (
float dt) { super.OnUpdate(dt); }
286 ref BotEatEntityInHands m_Eating;
288 void Bot_TestSpawnOpenEat (Bot bot = NULL, BotStateBase parent = NULL,
string new_type =
"")
290 m_Eating =
new BotEatEntityInHands(m_Bot,
this);
293 BotEventBase __EntOpn__ =
new BotEventEntityInHandsOpened;
294 BotEventBase __HndChg__ =
new BotEventOnItemInHandsChanged;
297 m_FSM.AddTransition(
new BotTransition( m_Opening, __EntOpn__, m_Eating));
298 m_FSM.AddTransition(
new BotTransition( m_Eating, __HndChg__, NULL));
301 override void OnEntry (BotEventBase e)
306 override void OnExit (BotEventBase e)
eBleedingSourceType m_Type
void ActionManagerBase(PlayerBase player)
void botDebugSpam(string s)
void botDebugPrint(string s)
FSMTransition< BotStateBase, BotEventBase, BotActionBase, BotGuardBase > BotTransition
represents event that triggers transition from state to state
represent weapon state base
DayZPlayerInstanceType
defined in C++
HandStateEquipped OnEntry
enum ProcessDirectDamageFlags m_Owner
class WeaponChambering_Chamber_OnEntry extends WeaponChambering_Base OnExit