mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
don't add actions to dependant hitpoints with valid selections
This commit is contained in:
parent
45e79dcbbf
commit
165c0c7735
@ -91,6 +91,9 @@ _wheelHitPointSelections = _wheelHitPointsWithSelections select 1;
|
||||
// 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 {};
|
||||
|
||||
// add misc repair action
|
||||
|
||||
private ["_name", "_icon", "_selection"];
|
||||
|
Loading…
Reference in New Issue
Block a user