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

◆ IsExclusionFlagPresentRecursive()

bool Entity::IsExclusionFlagPresentRecursive ( set< int > values,
int targetSlot )
inlineprotected

Gets flag from what is effectively an owner.

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

4529 {
4530 if (values && values.Count() != 0)
4531 {
4532 InventoryLocation lcn = new InventoryLocation();
4534 EntityAI parent = GetHierarchyParent();
4535 set<int> passThis;
4536 if (CheckExclusionAccessCondition(lcn.GetSlot(),targetSlot, values, passThis))
4537 {
4538 if (parent && parent != this) //we reached root if false
4539 {
4540 return parent.IsExclusionFlagPresentRecursive(passThis,lcn.GetSlot());
4541 }
4542 }
4543 return IsExclusionFlagPresent(passThis);
4544 }
4545
4546 return false;
4547 }
proto native EntityAI GetHierarchyParent()
Returns direct parent of current entity.
proto native GameInventory GetInventory()
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
Определения 3_Game/Entities/EntityAI.c:202
bool CheckExclusionAccessCondition(int occupiedSlot, int targetSlot, set< int > value, inout set< int > adjustedValue)
Определения 3_Game/Entities/EntityAI.c:4550
bool IsExclusionFlagPresent(set< int > values)
checks 'this' if the incoming flag is present for the current state (slot behavior and others)
Определения 3_Game/Entities/EntityAI.c:4511
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
proto native int GetSlot()
returns slot id if current type is Attachment

Перекрестные ссылки CheckExclusionAccessCondition(), EntityAI(), GetHierarchyParent(), GetInventory(), InventoryLocation::GetSlot() и IsExclusionFlagPresent().

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