8 void BotSpawnDead (
Bot bot = NULL,
BotStateBase parent = NULL,
string new_type =
"")
10 if (new_type ==
string.
Empty)
11 m_Type =
"ZmbM_HermitSkinny_Beige";
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")
45 m_SpawnDead =
new BotSpawnDead(m_Bot,
this,
m_Type);
46 m_SpawnShovel =
new BotSpawnEntityInHands(m_Bot,
this,
"Shovel");
47 m_Selecting =
new BotSelectZombieTarget(m_Bot,
this);
48 m_Burying =
new BotPerformAction(m_Bot,
this, AT_BURY_BODY);
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);
66 override void OnUpdate (
float dt) { super.OnUpdate(dt); }
132 void BotPerformAction (
Bot bot = NULL,
BotStateBase parent = NULL,
int action = AT_EAT)
158 override void OnUpdate (
float dt) { super.OnUpdate(dt); }