264 {
265 super.OnDisarmed(pWithTool);
266
269
270 for (int att = 0; att < GetInventory().AttachmentCount(); att++)
271 {
272 ItemBase attachment =
ItemBase.Cast(GetInventory().GetAttachmentFromIndex(att));
273 if (attachment)
274 {
275 attachment.UnlockFromParent();
276 if (attachment.IsInherited(RemoteDetonator))
277 {
278 if (pWithTool)
279 {
280 GetInventory().DropEntity(
InventoryMode.SERVER,
this, attachment);
281 attachment.SetHealth("", "", 0.0);
282 }
283 else
284 {
285 attachment.Delete();
286 }
287 }
288 }
289 }
290
293 }
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()