8982 {
8983
8984
8986 if (state == PlayerConstants.CORPSE_STATE_DECAYED)
8987 {
8990
8992 int idx;
8993 int slot_id;
8994 array<string> bodyparts = {"Gloves","Body","Legs","Feet"};
8995
8996 for (int i = 0; i < bodyparts.Count(); i++)
8997 {
8998 slot_id = InventorySlots.GetSlotIdFromString(bodyparts.Get(i));
8999 bodypart = GetInventory().FindPlaceholderForSlot(slot_id);
9000 item =
ItemBase.Cast(GetInventory().FindAttachment(slot_id));
9001
9002 if (bodypart)
9003 {
9004 path =
"cfgVehicles " + bodypart.GetType();
9005 idx = bodypart.GetHiddenSelectionIndex("personality");
9006 if (idx > -1)
9007 {
9009 }
9010 }
9011 if (item)
9012 {
9013 path =
"cfgVehicles " + item.GetType();
9014 idx = item.GetHiddenSelectionIndex("personality");
9015 if (idx > -1)
9016 {
9018 }
9019 }
9020 }
9021
9023 }
9024 }
class GP5GasMask extends MaskBase ItemBase