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

◆ InitInherentSlotExclusionMap()

void Entity::InitInherentSlotExclusionMap ( )
inlineprivate

map stored on instance to better respond to various state changes

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 4302

4303 {
4304 GameInventory inventory = GetInventory();
4305 int count = inventory.GetSlotIdCount();
4306 //starting with the INVALID slot, so it is always in the map of attachable items
4307 SetAttachmentExclusionMaskSlot(InventorySlots.INVALID,GetAttachmentExclusionInitSlotValue(InventorySlots.INVALID));
4308
4309 int slotId;
4310 for (int i = 0; i < count; ++i)
4311 {
4312 slotId = inventory.GetSlotId(i);
4314 }
4315 }
void SetAttachmentExclusionMaskSlot(int slotId, set< int > values)
sets values for specific slot
proto native GameInventory GetInventory()
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
override this to modify slot behavior for specific items, or just set 'm_AttachmentExclusionMaskGloba...
proto native int GetSlotId(int index)
attachments
proto native int GetSlotIdCount()

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

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