См. определение в файле 3_Game/DayZ/Systems/Inventory/Inventory.c строка 188
Перекрестные ссылки GetAttachmentSlotId() и GetAttachmentSlotsCount().