9597 {
9598
9599
9601 if (state == PlayerConstants.CORPSE_STATE_DECAYED)
9602 {
9605
9607 int idx;
9608 int slot_id;
9609 array<string> bodyparts = {"Gloves","Body","Legs","Feet"};
9610
9611 GameInventory inventory = GetInventory();
9612 int nBodyparts = bodyparts.Count();
9613 for (int i = 0; i < nBodyparts; ++i)
9614 {
9615 slot_id = InventorySlots.GetSlotIdFromString(bodyparts.Get(i));
9618
9619 if (bodypart)
9620 {
9621 path =
"cfgVehicles " + bodypart.GetType();
9622 idx = bodypart.GetHiddenSelectionIndex("personality");
9623 if (idx > -1)
9624 {
9626 }
9627 }
9628 if (item)
9629 {
9630 path =
"cfgVehicles " + item.GetType();
9631 idx = item.GetHiddenSelectionIndex("personality");
9632 if (idx > -1)
9633 {
9635 }
9636 }
9637 }
9638
9640 }
9641 }
class GP5GasMask extends MaskBase ItemBase
proto native EntityAI FindPlaceholderForSlot(int slot)
Returns placeholder entity for slot (naked arms, legs etc)
proto native EntityAI FindAttachment(int slot)
Returns attached entity in slot (you can use InventorySlots.GetSlotIdFromString(name) to get slot id)