DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ InitInherentSlotExclusionMap()

void Entity::InitInherentSlotExclusionMap ( )
inlineprivate

map stored on instance to better respond to various state changes

См. определение в файле EntityAI.c строка 4178

4179 {
4180 int count = GetInventory().GetSlotIdCount();
4181 //starting with the INVALID slot, so it is always in the map of attachable items
4182 SetAttachmentExclusionMaskSlot(InventorySlots.INVALID,GetAttachmentExclusionInitSlotValue(InventorySlots.INVALID));
4183
4184 int slotId;
4185 for (int i = 0; i < count; i++)
4186 {
4187 slotId = GetInventory().GetSlotId(i);
4189 }
4190 }
void SetAttachmentExclusionMaskSlot(int slotId, set< int > values)
sets values for specific slot
Определения EntityAI.c:4401
proto native GameInventory GetInventory()
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
override this to modify slot behavior for specific items, or just set 'm_AttachmentExclusionMaskGloba...
Определения EntityAI.c:4193
proto native int GetSlotId(int index)
attachments
proto native int GetSlotIdCount()

Перекрестные ссылки GetAttachmentExclusionInitSlotValue(), GetInventory(), InventorySlots::INVALID и SetAttachmentExclusionMaskSlot().

Используется в InitAttachmentExclusionValues().