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

◆ AreChildrenAccessible()

bool Entity::AreChildrenAccessible ( )
inlineprotected

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

1622 {
1623 InventoryLocation lcn = new InventoryLocation();
1624 EntityAI ent = this;
1625 int attachmentDepth = 0;
1626 while (ent)
1627 {
1628 if (ent.GetInventory().GetCurrentInventoryLocation(lcn) && lcn.IsValid())
1629 {
1630 if (lcn.GetType() == InventoryLocationType.CARGO || lcn.GetType() == InventoryLocationType.PROXYCARGO)
1631 {
1632 return false;
1633 }
1634
1635 //hands treated as regular attachment here
1636 if (lcn.GetType() == InventoryLocationType.ATTACHMENT || lcn.GetType() == InventoryLocationType.HANDS)
1637 {
1638 attachmentDepth++;
1639 }
1640 }
1641
1642 ent = ent.GetHierarchyParent();
1643 }
1644
1645 return attachmentDepth <= GameConstants.INVENTORY_MAX_REACHABLE_DEPTH_ATT;
1646 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
Определения EntityAI.c:202
proto native bool IsValid()
verify current set inventory location
proto native int GetType()
returns type of InventoryLocation

Перекрестные ссылки EntityAI(), InventoryLocation::GetType(), GameConstants::INVENTORY_MAX_REACHABLE_DEPTH_ATT и InventoryLocation::IsValid().