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

◆ CanUseToolToDismantlePart()

bool CanUseToolToDismantlePart ( string part_name,
ItemBase tool )
protected

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

1444 {
1445 ConstructionPart part = GetConstructionPart(part_name);
1446 int actionMask = part.GetDismantleActionTypeMask();
1447 if (actionMask != EConstructionTools.TOOL_NO_ACTION)
1448 {
1449 if (tool)
1450 {
1451 string toolCfgPath = "cfgVehicles" + " " + tool.GetType() + " " + "dismantle_action_type";
1452
1453 if (g_Game.ConfigIsExisting(toolCfgPath))
1454 {
1455 int toolActionType = g_Game.ConfigGetInt(toolCfgPath);
1456 if ((actionMask & toolActionType) > 0)
1457 {
1458 return true;
1459 }
1460 }
1461 }
1462 else if (actionMask & EConstructionTools.TOOL_HANDS)
1463 {
1464 return true;
1465 }
1466 }
1467
1468 return false;
1469 }
ConstructionPart GetConstructionPart()
Определения ActionPartInfo.c:235
DayZGame g_Game
Определения DayZGame.c:4074
int GetDismantleActionTypeMask()
Определения ConstructionPart.c:341
Instanced construction part data classes for dynamic data, statics now stored on EntityType level in ...
Определения ConstructionPart.c:4

Перекрестные ссылки g_Game, GetConstructionPart() и ConstructionPart::GetDismantleActionTypeMask().

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