4353 {
4354 int slotId;
4357 for (int i = 0; i < slotCount; i++)
4358 {
4360 set<int> tmp;
4361 switch (slotId)
4362 {
4363 case InventorySlots.HEADGEAR:
4364 {
4365 tmp = new set<int>;
4367 if (ConfigGetBool("noNVStrap"))
4368 {
4369 tmp.Insert(EAttExclusions.LEGACY_HEADSTRAP_HEADGEAR);
4370 }
4371 if (ConfigGetBool("noMask"))
4372 {
4373 tmp.Insert(EAttExclusions.LEGACY_MASK_HEADGEAR);
4374 }
4375 if (ConfigGetBool("noEyewear"))
4376 {
4377 tmp.Insert(EAttExclusions.LEGACY_EYEWEAR_HEADGEAR);
4378 }
4380 break;
4381 }
4382
4383 case InventorySlots.MASK:
4384 {
4385 tmp = new set<int>;
4387 if (ConfigGetBool("noNVStrap"))
4388 {
4389 tmp.Insert(EAttExclusions.LEGACY_HEADSTRAP_MASK);
4390 }
4391 if (ConfigGetBool("noHelmet"))
4392 {
4393 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_MASK);
4394 }
4395 if (ConfigGetBool("noEyewear"))
4396 {
4397 tmp.Insert(EAttExclusions.LEGACY_EYEWEAR_MASK);
4398 }
4400 break;
4401 }
4402
4403 case InventorySlots.EYEWEAR:
4404 {
4405 tmp = new set<int>;
4407 if (ConfigGetBool("isStrap"))
4408 {
4409 if (ConfigGetBool("noHelmet"))
4410 {
4411 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_HEADSTRAP);
4412 }
4413 if (ConfigGetBool("noMask"))
4414 {
4415 tmp.Insert(EAttExclusions.LEGACY_MASK_HEADSTRAP);
4416 }
4417 }
4418 else
4419 {
4420 if (ConfigGetBool("noHelmet"))
4421 {
4422 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_EYEWEWEAR);
4423 }
4424 if (ConfigGetBool("noMask"))
4425 {
4426 tmp.Insert(EAttExclusions.LEGACY_MASK_EYEWEWEAR);
4427 }
4428 }
4430 break;
4431 }
4432 }
4433 }
4434 }
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()