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

◆ ClearExclusionValueRecursive()

void Entity::ClearExclusionValueRecursive ( set< int > values,
int slotId )
inlineprivate

См. определение в файле EntityAI.c строка 4428

4429 {
4430 if (values && values.Count() != 0)
4431 {
4432 set<int> passThis;
4433 InventoryLocation lcn = new InventoryLocation();
4435 if (CheckExclusionAccessPropagation(lcn.GetSlot(), slotId, values, passThis))
4436 {
4437 int count = passThis.Count();
4438 for (int i = 0; i < count; i++)
4439 {
4440 m_AttachmentExclusionMaskChildren.RemoveItem(passThis[i]);
4441 }
4442 EntityAI parent = GetHierarchyParent();
4443 if (parent)
4444 parent.ClearExclusionValueRecursive(passThis,lcn.GetSlot());
4445 }
4446 }
4447 }
proto native EntityAI GetHierarchyParent()
Returns direct parent of current entity.
proto native GameInventory GetInventory()
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
Определения EntityAI.c:202
bool CheckExclusionAccessPropagation(int occupiedSlot, int targetSlot, set< int > value, inout set< int > adjustedValue)
special propagation contition
Определения EntityAI.c:4573
ref set< int > m_AttachmentExclusionMaskChildren
Определения EntityAI.c:109
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

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

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