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

◆ IsExclusionFlagPresent()

bool Entity::IsExclusionFlagPresent ( set< int > values)
inlineprotected

checks 'this' if the incoming flag is present for the current state (slot behavior and others)

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

4567 {
4568 int slotId;
4569 string slotName;
4570 GetInventory().GetCurrentAttachmentSlotInfo(slotId,slotName); //if currently attached, treat it accordingly
4571
4572 set<int> currentSlotValuesAll = GetAttachmentExclusionMaskAll(slotId);
4573 int count = values.Count();
4574 for (int i = 0; i < count; ++i)
4575 {
4576 if (currentSlotValuesAll.Find(values[i]) != -1)
4577 return true;
4578 }
4579 return false;
4580 }
PlayerSpawnPreset slotName
proto native GameInventory GetInventory()
set< int > GetAttachmentExclusionMaskAll(int slotId)
Slot-specific, children (attachments), and additional (state etc.) masks combined.
bool GetCurrentAttachmentSlotInfo(out int slot_id, out string slot_name)
Returns true if the item is currently attached and outputs attachment slot id and name.

Перекрестные ссылки GetAttachmentExclusionMaskAll(), GetInventory() и slotName.

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