DayZ 1.29
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 строка 4235

4236 {
4237 GameInventory inventory = GetInventory();
4238 int count = inventory.GetSlotIdCount();
4239 //starting with the INVALID slot, so it is always in the map of attachable items
4240 SetAttachmentExclusionMaskSlot(InventorySlots.INVALID,GetAttachmentExclusionInitSlotValue(InventorySlots.INVALID));
4241
4242 int slotId;
4243 for (int i = 0; i < count; ++i)
4244 {
4245 slotId = inventory.GetSlotId(i);
4247 }
4248 }
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(), GetInventory(), GameInventory::GetSlotId(), GameInventory::GetSlotIdCount(), InventorySlots::INVALID и SetAttachmentExclusionMaskSlot().

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