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

◆ AreChildrenAccessible()

bool Entity::AreChildrenAccessible ( )
inlineprotected

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

1658 {
1659 InventoryLocation lcn = new InventoryLocation();
1660 EntityAI ent = this;
1661 int attachmentDepth = 0;
1662 while (ent)
1663 {
1664 if (ent.GetInventory().GetCurrentInventoryLocation(lcn) && lcn.IsValid())
1665 {
1666 int lcnType = lcn.GetType();
1667 if (lcnType == InventoryLocationType.CARGO || lcnType == InventoryLocationType.PROXYCARGO)
1668 {
1669 return false;
1670 }
1671
1672 //hands treated as regular attachment here
1673 if (lcnType == InventoryLocationType.ATTACHMENT || lcnType == InventoryLocationType.HANDS)
1674 {
1675 attachmentDepth++;
1676 }
1677 }
1678
1679 ent = ent.GetHierarchyParent();
1680 }
1681
1682 return attachmentDepth <= GameConstants.INVENTORY_MAX_REACHABLE_DEPTH_ATT;
1683 }
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().