DayZ 1.28
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/Entities/EntityAI.c строка 4511

4512 {
4513 int slotId;
4514 string slotName;
4515 GetInventory().GetCurrentAttachmentSlotInfo(slotId,slotName); //if currently attached, treat it accordingly
4516
4517 set<int> currentSlotValuesAll = GetAttachmentExclusionMaskAll(slotId);
4518 int count = values.Count();
4519 for (int i = 0; i < count; i++)
4520 {
4521 if (currentSlotValuesAll.Find(values[i]) != -1)
4522 return true;
4523 }
4524 return false;
4525 }
PlayerSpawnPreset slotName
proto native GameInventory GetInventory()
set< int > GetAttachmentExclusionMaskAll(int slotId)
Slot-specific, children (attachments), and additional (state etc.) masks combined.
Определения 3_Game/Entities/EntityAI.c:4455
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().