8884 {
8885
8886
8888 if (state == PlayerConstants.CORPSE_STATE_DECAYED)
8889 {
8892
8894 int idx;
8895 int slot_id;
8896 array<string> bodyparts = {"Gloves","Body","Legs","Feet"};
8897
8898 for (int i = 0; i < bodyparts.Count(); i++)
8899 {
8900 slot_id = InventorySlots.GetSlotIdFromString(bodyparts.Get(i));
8901 bodypart = GetInventory().FindPlaceholderForSlot(slot_id);
8902 item =
ItemBase.Cast(GetInventory().FindAttachment(slot_id));
8903
8904 if (bodypart)
8905 {
8906 path =
"cfgVehicles " + bodypart.GetType();
8907 idx = bodypart.GetHiddenSelectionIndex("personality");
8908 if (idx > -1)
8909 {
8911 }
8912 }
8913 if (item)
8914 {
8915 path =
"cfgVehicles " + item.GetType();
8916 idx = item.GetHiddenSelectionIndex("personality");
8917 if (idx > -1)
8918 {
8920 }
8921 }
8922 }
8923
8925 }
8926 }
class GP5GasMask extends MaskBase ItemBase