379 {
380 super.OnDisarmed(pWithTool);
381
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 {
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
422 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
override void UnpairRemote()
class GP5GasMask extends MaskBase ItemBase
override void SetTakeable(bool pState)
override void LockTriggerSlots()