Skip to content

Commit

Permalink
Ignore playable logic hitpoints (#6517)
Browse files Browse the repository at this point in the history
  • Loading branch information
kymckay authored Aug 12, 2018
1 parent 923c251 commit a182336
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/medical_engine/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
reverse _allHitPoints;

if (_allHitPoints param [0, ""] != "ACE_HDBracket") then {
if ((getText (([_unit] call CBA_fnc_getObjectConfig) >> "simulation")) == "UAVPilot") exitWith {TRACE_1("ignore UAV AI",typeOf _unit);};
private _config = [_unit] call CBA_fnc_getObjectConfig;
if (getText (_config >> "simulation") == "UAVPilot") exitWith {TRACE_1("ignore UAV AI",typeOf _unit);};
if (getNumber (_config >> "isPlayableLogic") == 1) exitWith {TRACE_1("ignore logic unit",typeOf _unit)};
ERROR_1("Bad hitpoints for unit type ""%1""",typeOf _unit);
} else {
// Calling this function inside curly brackets allows the usage of
Expand Down

0 comments on commit a182336

Please sign in to comment.