From 32d5ac99d9291d17d339b272a5fcd8c5c42748c3 Mon Sep 17 00:00:00 2001 From: jonpas Date: Mon, 24 Aug 2015 17:56:34 +0200 Subject: [PATCH] Readded ignored hitpoints --- addons/repair/functions/fnc_addRepairActions.sqf | 3 +++ addons/repair/script_component.hpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/addons/repair/functions/fnc_addRepairActions.sqf b/addons/repair/functions/fnc_addRepairActions.sqf index 77e21c0fab..5f83374991 100644 --- a/addons/repair/functions/fnc_addRepairActions.sqf +++ b/addons/repair/functions/fnc_addRepairActions.sqf @@ -71,6 +71,9 @@ if (_type in _initializedClasses) exitWith {}; [_type, 0, [], _action] call EFUNC(interact_menu,addActionToClass); } else { + // exit if the hitpoint is in the blacklist, e.g. glasses +- if (_x in IGNORED_HITPOINTS) exitWith {}; + // exit if the hitpoint is virtual if (isText (configFile >> "CfgVehicles" >> _type >> "HitPoints" >> _x >> "depends")) exitWith {}; diff --git a/addons/repair/script_component.hpp b/addons/repair/script_component.hpp index 0714b1a568..967fc01f3d 100644 --- a/addons/repair/script_component.hpp +++ b/addons/repair/script_component.hpp @@ -10,3 +10,6 @@ #endif #include "\z\ace\addons\main\script_macros.hpp" + +#define IGNORED_HITPOINTS ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitGlass7","HitGlass8","HitGlass9","HitGlass10","HitGlass11","HitGlass12","HitGlass13","HitGlass14","HitGlass15","HitRGlass","HitLGlass"] +-// #define TRACK_HITPOINTS ["HitLTrack", "HitRTrack"];