7 void BotSpawnEntityInHands (
Bot bot = NULL,
BotStateBase parent = NULL,
string new_type =
"")
9 if (new_type ==
string.
Empty)
81 string t_str = inHands.GetType();
83 if (t_str.IndexOf(
"_Opened") != -1)
96 ref BotSpawnEntityInHands m_Spawning;
97 ref BotOpenEntityInHands m_Opening;
106 m_Spawning =
new BotSpawnEntityInHands(m_Bot,
this);
107 m_Opening =
new BotOpenEntityInHands(m_Bot,
this);
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); }
172 m_Owner.PredictiveDropEntity(inHands);
179 override void OnUpdate (
float dt) { super.OnUpdate(dt); }
203 cli_mgr.PerformAction(AT_EAT, target, inHands);
212 override void OnUpdate (
float dt) { super.OnUpdate(dt); }
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));
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);
297 m_FSM.AddTransition(
new BotTransition( m_Opening, __EntOpn__, m_Eating));
298 m_FSM.AddTransition(
new BotTransition( m_Eating, __HndChg__, NULL));