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

◆ OnDisarmed()

override void ImprovisedExplosive::OnDisarmed ( bool pWithTool)
inlineprotected

attachment special handling on disarm

См. определение в файле ImprovisedExplosive.c строка 378

379 {
380 super.OnDisarmed(pWithTool);
381
382 UnpairRemote();
383
384 array<ItemBase> attachmentsCache = new array<ItemBase>();
385 for (int attachmentIdx = 0; attachmentIdx < GetInventory().AttachmentCount(); attachmentIdx++)
386 {
387 ItemBase attachment = ItemBase.Cast(GetInventory().GetAttachmentFromIndex(attachmentIdx));
388 if (attachment)
389 {
390 attachmentsCache.Insert(attachment);
391 }
392 }
393
394 foreach (ItemBase attachment1 : attachmentsCache)
395 attachment1.UnlockFromParent();
396
398 foreach (ItemBase attachment2 : attachmentsCache)
399 {
400 if (attachment2.IsInherited(ClockBase))
401 {
402 if (pWithTool)
403 GetInventory().DropEntity(InventoryMode.SERVER, this, attachment2);
404 }
405
406 if (attachment2.IsInherited(RemoteDetonator))
407 {
408 if (pWithTool)
409 {
410 GetInventory().DropEntity(InventoryMode.SERVER, this, attachment2);
411 attachment2.SetHealth("", "", 0.0);
412 }
413 else
414 {
415 attachment2.Delete();
416 }
417 }
418 }
419
421 SetTakeable(true);
422 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
Определения Inventory.c:22
void ClockBase()
Определения ClockBase.c:27
override void UnpairRemote()
Определения ExplosivesBase.c:127
class GP5GasMask extends MaskBase ItemBase
override void SetTakeable(bool pState)
Определения ItemBase.c:9042
override void LockTriggerSlots()
Определения ImprovisedExplosive.c:56

Перекрестные ссылки ClockBase(), LockTriggerSlots(), SetTakeable() и UnpairRemote().