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

◆ OnDisarmed()

override void Plastic_Explosive::OnDisarmed ( bool pWithTool)
inlineprotected

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

264 {
265 super.OnDisarmed(pWithTool);
266
267 UnpairRemote();
268 UpdateVisuals(null);
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
292 SetTakeable(true);
293 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
Определения Inventory.c:22
void UpdateVisuals()
Определения Construction.c:188
override void UnpairRemote()
Определения ExplosivesBase.c:127
class GP5GasMask extends MaskBase ItemBase
override void SetTakeable(bool pState)
Определения ItemBase.c:9042
override void LockTriggerSlots()
Определения Plastic_Explosive.c:39

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