4299 {
4300 int slotId;
4302 for (int i = 0; i < slotCount; i++)
4303 {
4305 set<int> tmp;
4306 switch (slotId)
4307 {
4308 case InventorySlots.HEADGEAR:
4309 {
4310 tmp = new set<int>;
4312 if (ConfigGetBool("noNVStrap"))
4313 {
4314 tmp.Insert(EAttExclusions.LEGACY_HEADSTRAP_HEADGEAR);
4315 }
4316 if (ConfigGetBool("noMask"))
4317 {
4318 tmp.Insert(EAttExclusions.LEGACY_MASK_HEADGEAR);
4319 }
4320 if (ConfigGetBool("noEyewear"))
4321 {
4322 tmp.Insert(EAttExclusions.LEGACY_EYEWEAR_HEADGEAR);
4323 }
4325 break;
4326 }
4327
4328 case InventorySlots.MASK:
4329 {
4330 tmp = new set<int>;
4332 if (ConfigGetBool("noNVStrap"))
4333 {
4334 tmp.Insert(EAttExclusions.LEGACY_HEADSTRAP_MASK);
4335 }
4336 if (ConfigGetBool("noHelmet"))
4337 {
4338 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_MASK);
4339 }
4340 if (ConfigGetBool("noEyewear"))
4341 {
4342 tmp.Insert(EAttExclusions.LEGACY_EYEWEAR_MASK);
4343 }
4345 break;
4346 }
4347
4348 case InventorySlots.EYEWEAR:
4349 {
4350 tmp = new set<int>;
4352 if (ConfigGetBool("isStrap"))
4353 {
4354 if (ConfigGetBool("noHelmet"))
4355 {
4356 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_HEADSTRAP);
4357 }
4358 if (ConfigGetBool("noMask"))
4359 {
4360 tmp.Insert(EAttExclusions.LEGACY_MASK_HEADSTRAP);
4361 }
4362 }
4363 else
4364 {
4365 if (ConfigGetBool("noHelmet"))
4366 {
4367 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_EYEWEWEAR);
4368 }
4369 if (ConfigGetBool("noMask"))
4370 {
4371 tmp.Insert(EAttExclusions.LEGACY_MASK_EYEWEWEAR);
4372 }
4373 }
4375 break;
4376 }
4377 }
4378 }
4379 }
set< int > GetAttachmentExclusionMaskSlot(int slotId)
Specific slot behavior.
void SetAttachmentExclusionMaskSlot(int slotId, set< int > values)
sets values for specific slot
proto native GameInventory GetInventory()
proto native int GetSlotId(int index)
attachments
proto native int GetSlotIdCount()