DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс BotWaitForChangeInHands

Закрытые члены

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)
 

Закрытые данные

EntityAI m_Entity
 

Подробное описание

Методы

◆ OnAbort() [1/3]

override void OnAbort ( BotEventBase e)
inlineprivate
177{ super.OnAbort(e); }
Definition EntityAI.c:95

◆ OnAbort() [2/3]

override void OnAbort ( BotEventBase e)
inlineprivate
210{ super.OnAbort(e); }

◆ OnAbort() [3/3]

override void OnAbort ( BotEventBase e)
inlineprivate
234{ super.OnAbort(e); }

◆ OnEntry() [1/3]

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

Перекрестные ссылки botDebugPrint() и m_Owner.

◆ OnEntry() [2/3]

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

Перекрестные ссылки ActionTarget, botDebugPrint(), m_Owner и vector::Zero.

◆ OnEntry() [3/3]

override void OnEntry ( BotEventBase e)
inlineprivate
222 {
223 super.OnEntry(e);
224
225 EntityAI inHands = m_Owner.GetHumanInventory().GetEntityInHands();
226 if (inHands)
227 {
228 botDebugPrint("[bot] + " + m_Owner + " deleting item=" + inHands + " bot=" + m_Owner);
229 if (m_Owner.GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER)
230 inHands.Delete();
231 }
232 }

Перекрестные ссылки botDebugPrint() и m_Owner.

◆ OnExit() [1/3]

override void OnExit ( BotEventBase e)
inlineprivate
178{ super.OnExit(e); }

◆ OnExit() [2/3]

override void OnExit ( BotEventBase e)
inlineprivate
211{ super.OnExit(e); }

◆ OnExit() [3/3]

override void OnExit ( BotEventBase e)
inlineprivate
235{ super.OnExit(e); }

◆ OnUpdate() [1/3]

override void OnUpdate ( float dt)
inlineprivate
179{ super.OnUpdate(dt); }

◆ OnUpdate() [2/3]

override void OnUpdate ( float dt)
inlineprivate
212{ super.OnUpdate(dt); }

◆ OnUpdate() [3/3]

override void OnUpdate ( float dt)
inlineprivate
236{ super.OnUpdate(dt); }

Поля

◆ m_Entity

EntityAI m_Entity
private

Объявления и описания членов класса находятся в файле: