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

◆ AreChildrenAccessible()

bool Entity::AreChildrenAccessible ( )
inlineprotected

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

1686 {
1687 InventoryLocation lcn = new InventoryLocation();
1688 EntityAI ent = this;
1689 int attachmentDepth = 0;
1690 while (ent)
1691 {
1692 if (ent.GetInventory().GetCurrentInventoryLocation(lcn) && lcn.IsValid())
1693 {
1694 int lcnType = lcn.GetType();
1695 if (lcnType == InventoryLocationType.CARGO || lcnType == InventoryLocationType.PROXYCARGO)
1696 {
1697 return false;
1698 }
1699
1700 //hands treated as regular attachment slot here
1701 if (lcnType == InventoryLocationType.ATTACHMENT || lcnType == InventoryLocationType.HANDS)
1702 {
1703 attachmentDepth++;
1704 }
1705 }
1706
1707 ent = ent.GetHierarchyParent();
1708 }
1709
1710 return attachmentDepth <= GameConstants.INVENTORY_MAX_REACHABLE_DEPTH_ATT;
1711 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
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().