DayZ 1.24
Loading...
Searching...
No Matches
BotWaitForChangeInHands Class Reference
Collaboration diagram for BotWaitForChangeInHands:
[legend]

Private Member Functions

override void OnEntry (BotEventBase e)
 
override void OnAbort (BotEventBase e)
 
override void OnExit (BotEventBase e)
 
override void OnUpdate (float dt)
 
override void OnEntry (BotEventBase e)
 
override void OnAbort (BotEventBase e)
 
override void OnExit (BotEventBase e)
 
override void OnUpdate (float dt)
 
override void OnEntry (BotEventBase e)
 
override void OnAbort (BotEventBase e)
 
override void OnExit (BotEventBase e)
 
override void OnUpdate (float dt)
 

Private Attributes

EntityAI m_Entity
 

Detailed Description

Definition at line 156 of file Bot_TestSpawnAndOpenCan.c.

Member Function Documentation

◆ OnAbort() [1/3]

override void BotWaitForChangeInHands::OnAbort ( BotEventBase e)
inlineprivate

Definition at line 175 of file Bot_TestSpawnAndOpenCan.c.

175{ super.OnAbort(e); }

◆ OnAbort() [2/3]

override void BotWaitForChangeInHands::OnAbort ( BotEventBase e)
inlineprivate

Definition at line 208 of file Bot_TestSpawnAndOpenCan.c.

208{ super.OnAbort(e); }

◆ OnAbort() [3/3]

override void BotWaitForChangeInHands::OnAbort ( BotEventBase e)
inlineprivate

Definition at line 231 of file Bot_TestSpawnAndOpenCan.c.

231{ super.OnAbort(e); }

◆ OnEntry() [1/3]

override void BotWaitForChangeInHands::OnEntry ( BotEventBase e)
inlineprivate

Definition at line 160 of file Bot_TestSpawnAndOpenCan.c.

161 {
162 super.OnEntry(e);
163
164
165 EntityAI inHands = m_Owner.GetHumanInventory().GetEntityInHands();
166 if (inHands)
167 {
168 botDebugPrint("[bot] + " + m_Owner + " dropping item=" + inHands + " bot=" + m_Owner);
169 if (m_Owner.GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT)
170 m_Owner.PredictiveDropEntity(inHands);
171 //m_Owner.LocalDropEntity(inHands);
172 }
173 }
void botDebugPrint(string s)
Definition Bot.c:182
enum ProcessDirectDamageFlags m_Owner
DayZPlayerInstanceType
defined in C++

References botDebugPrint(), and m_Owner.

◆ OnEntry() [2/3]

override void BotWaitForChangeInHands::OnEntry ( BotEventBase e)
inlineprivate

Definition at line 184 of file Bot_TestSpawnAndOpenCan.c.

185 {
186 super.OnEntry(e);
187
188 EntityAI inHands = m_Owner.GetHumanInventory().GetEntityInHands();
189 if (inHands)
190 {
191 botDebugPrint("[bot] + " + m_Owner + " eating item=" + inHands + " bot=" + m_Owner);
192 if (m_Owner.GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT)
193 {
194#ifdef BOT
195 ActionManagerBase mgr = m_Owner.GetActionManager();
197 if (cli_mgr)
198 {
199 ActionTarget target;
200 target = new ActionTarget(inHands, null, -1, vector.Zero, -1);
201 cli_mgr.PerformAction(AT_EAT, target, inHands);
202 }
203#endif
204 }
205 }
206 }
class ActionTargets ActionTarget
static const vector Zero
Definition EnConvert.c:110

References ActionTarget, botDebugPrint(), m_Owner, and vector::Zero.

◆ OnEntry() [3/3]

override void BotWaitForChangeInHands::OnEntry ( BotEventBase e)
inlineprivate

Definition at line 218 of file Bot_TestSpawnAndOpenCan.c.

219 {
220 super.OnEntry(e);
221
222 EntityAI inHands = m_Owner.GetHumanInventory().GetEntityInHands();
223 if (inHands)
224 {
225 botDebugPrint("[bot] + " + m_Owner + " deleting item=" + inHands + " bot=" + m_Owner);
226 if (m_Owner.GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER)
227 inHands.Delete();
228 }
229 }

References botDebugPrint(), and m_Owner.

◆ OnExit() [1/3]

override void BotWaitForChangeInHands::OnExit ( BotEventBase e)
inlineprivate

Definition at line 176 of file Bot_TestSpawnAndOpenCan.c.

176{ super.OnExit(e); }

◆ OnExit() [2/3]

override void BotWaitForChangeInHands::OnExit ( BotEventBase e)
inlineprivate

Definition at line 209 of file Bot_TestSpawnAndOpenCan.c.

209{ super.OnExit(e); }

◆ OnExit() [3/3]

override void BotWaitForChangeInHands::OnExit ( BotEventBase e)
inlineprivate

Definition at line 232 of file Bot_TestSpawnAndOpenCan.c.

232{ super.OnExit(e); }

◆ OnUpdate() [1/3]

override void BotWaitForChangeInHands::OnUpdate ( float dt)
inlineprivate

Definition at line 177 of file Bot_TestSpawnAndOpenCan.c.

177{ super.OnUpdate(dt); }

◆ OnUpdate() [2/3]

override void BotWaitForChangeInHands::OnUpdate ( float dt)
inlineprivate

Definition at line 210 of file Bot_TestSpawnAndOpenCan.c.

210{ super.OnUpdate(dt); }

◆ OnUpdate() [3/3]

override void BotWaitForChangeInHands::OnUpdate ( float dt)
inlineprivate

Definition at line 233 of file Bot_TestSpawnAndOpenCan.c.

233{ super.OnUpdate(dt); }

Member Data Documentation

◆ m_Entity

EntityAI BotWaitForChangeInHands::m_Entity
private

Definition at line 158 of file Bot_TestSpawnAndOpenCan.c.


The documentation for this class was generated from the following file: