4420 {
4421 int slotId;
4424 for (int i = 0; i < slotCount; i++)
4425 {
4427 set<int> tmp;
4428 switch (slotId)
4429 {
4430 case InventorySlots.HEADGEAR:
4431 {
4432 tmp = new set<int>;
4434 if (ConfigGetBool("noNVStrap"))
4435 {
4436 tmp.Insert(EAttExclusions.LEGACY_HEADSTRAP_HEADGEAR);
4437 }
4438 if (ConfigGetBool("noMask"))
4439 {
4440 tmp.Insert(EAttExclusions.LEGACY_MASK_HEADGEAR);
4441 }
4442 if (ConfigGetBool("noEyewear"))
4443 {
4444 tmp.Insert(EAttExclusions.LEGACY_EYEWEAR_HEADGEAR);
4445 }
4447 break;
4448 }
4449
4450 case InventorySlots.MASK:
4451 {
4452 tmp = new set<int>;
4454 if (ConfigGetBool("noNVStrap"))
4455 {
4456 tmp.Insert(EAttExclusions.LEGACY_HEADSTRAP_MASK);
4457 }
4458 if (ConfigGetBool("noHelmet"))
4459 {
4460 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_MASK);
4461 }
4462 if (ConfigGetBool("noEyewear"))
4463 {
4464 tmp.Insert(EAttExclusions.LEGACY_EYEWEAR_MASK);
4465 }
4467 break;
4468 }
4469
4470 case InventorySlots.EYEWEAR:
4471 {
4472 tmp = new set<int>;
4474 if (ConfigGetBool("isStrap"))
4475 {
4476 if (ConfigGetBool("noHelmet"))
4477 {
4478 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_HEADSTRAP);
4479 }
4480 if (ConfigGetBool("noMask"))
4481 {
4482 tmp.Insert(EAttExclusions.LEGACY_MASK_HEADSTRAP);
4483 }
4484 }
4485 else
4486 {
4487 if (ConfigGetBool("noHelmet"))
4488 {
4489 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_EYEWEWEAR);
4490 }
4491 if (ConfigGetBool("noMask"))
4492 {
4493 tmp.Insert(EAttExclusions.LEGACY_MASK_EYEWEWEAR);
4494 }
4495 }
4497 break;
4498 }
4499 }
4500 }
4501 }
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()