См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 1838
Перекрестные ссылки GameInventory::GetAttachmentSlotsCount() и GetInventory().