8 void BotSpawnDead (Bot bot = NULL, BotStateBase parent = NULL,
string new_type =
"")
10 if (new_type ==
string.
Empty)
11 m_Type =
"ZmbM_HermitSkinny_Beige";
16 override void OnEntry (BotEventBase e)
23 Z.SetHealth(
"",
"", 0 );
33 ref BotSpawnDead m_SpawnDead;
34 ref BotSpawnEntityInHands m_SpawnShovel;
35 ref BotSelectZombieTarget m_Selecting;
36 ref BotPerformAction m_Burying;
38 void Bot_TestSpawnDeadSelectBury (Bot bot = NULL, BotStateBase parent = NULL,
string new_type =
"ZmbM_HermitSkinny_Beige")
43 m_FSM =
new BotFSM(
this);
45 m_SpawnDead =
new BotSpawnDead(m_Bot,
this,
m_Type);
47 m_Selecting =
new BotSelectZombieTarget(m_Bot,
this);
48 m_Burying =
new BotPerformAction(m_Bot,
this, AT_BURY_BODY);
51 BotEventBase __SpwnZ__ =
new BotEventEntitySpawned;
52 BotEventBase __EntInH__ =
new BotEventEntityInHands;
53 BotEventBase __Select__ =
new BotEventSelectedTarget;
56 m_FSM.AddTransition(
new BotTransition( m_SpawnDead, NULL, m_SpawnShovel));
57 m_FSM.AddTransition(
new BotTransition( m_SpawnShovel, __EntInH__, m_Selecting));
58 m_FSM.AddTransition(
new BotTransition( m_Selecting, __Select__, m_Burying));
59 m_FSM.AddTransition(
new BotTransition( m_Burying, NULL, NULL));
61 m_FSM.SetInitialState(m_SpawnDead);
65 override void OnExit (BotEventBase e) { super.OnExit(e); }
66 override void OnUpdate (
float dt) { super.OnUpdate(dt); }
83 override void OnEntry (BotEventBase e)
90 override void OnExit (BotEventBase e)
132 void BotPerformAction (Bot bot = NULL, BotStateBase parent = NULL,
int action = AT_EAT)
137 override void OnEntry (BotEventBase e)
148 ActionManagerClient cli_mgr = ActionManagerClient.Cast(
m_Owner.GetActionManager());
156 override void OnAbort (BotEventBase e) { super.OnAbort(e); }
157 override void OnExit (BotEventBase e) { super.OnExit(e); }
158 override void OnUpdate (
float dt) { super.OnUpdate(dt); }
eBleedingSourceType m_Type
ref ActionTarget m_Target
class ActionTargets ActionTarget
void botDebugPrint(string s)
FSMTransition< BotStateBase, BotEventBase, BotActionBase, BotGuardBase > BotTransition
HandStateEquipped OnEntry
enum ProcessDirectDamageFlags m_Owner
class WeaponFireWithEject extends WeaponFire m_dtAccumulator
represents event that triggers transition from state to state
void BotSpawnEntityInHands(Bot bot=NULL, BotStateBase parent=NULL, string new_type="")
override void OnExit(BotEventBase e)
represent weapon state base
override void OnEntry(HandEventBase e)
DayZPlayerInstanceType
defined in C++
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.