9226 {
9227
9228
9230 if (state == PlayerConstants.CORPSE_STATE_DECAYED)
9231 {
9234
9236 int idx;
9237 int slot_id;
9238 array<string> bodyparts = {"Gloves","Body","Legs","Feet"};
9239
9240 GameInventory inventory = GetInventory();
9241 int nBodyparts = bodyparts.Count();
9242 for (int i = 0; i < nBodyparts; ++i)
9243 {
9244 slot_id = InventorySlots.GetSlotIdFromString(bodyparts.Get(i));
9247
9248 if (bodypart)
9249 {
9250 path =
"cfgVehicles " + bodypart.GetType();
9251 idx = bodypart.GetHiddenSelectionIndex("personality");
9252 if (idx > -1)
9253 {
9255 }
9256 }
9257 if (item)
9258 {
9259 path =
"cfgVehicles " + item.GetType();
9260 idx = item.GetHiddenSelectionIndex("personality");
9261 if (idx > -1)
9262 {
9264 }
9265 }
9266 }
9267
9269 }
9270 }
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)