Skip to content

Commit

Permalink
Got rid of external interaction, only need for in vehicle, logging
Browse files Browse the repository at this point in the history
  • Loading branch information
M3ales committed Oct 28, 2019
1 parent 11816cc commit 287b6bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
12 changes: 0 additions & 12 deletions MIRA_Vehicle_Medical/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ class CfgVehicles
{
class Air;
class Helicopter: Air {
class ACE_Actions {
class ACE_MainActions {
class MIRA_Medical {
displayName = "Medical";
condition = "alive _target";
statement = "";
exceptions[] = {"isNotSwimming"};
insertChildren = "_this call MIRA_fnc_buildPassengerActions";
};
};
};

class ACE_SelfActions {
class MIRA_Medical {
displayName = "Medical";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private _actions = [];
private _unit = _x;
if(_unit != _player && { getText (configFile >> "CfgVehicles" >> typeOf _unit >> "simulation") != "UAVPilot" }) then {
private _unitname = [_unit] call ace_common_fnc_getName;
diag_log format["Adding action for '%1'", _unitname];
diag_log format["Adding action for '%1' (%2)", _unit, _unitname];
private _icon = [
"",
"A3\ui_f\data\IGUI\RscIngameUI\RscUnitInfo\role_driver_ca.paa",
Expand Down
3 changes: 2 additions & 1 deletion MIRA_Vehicle_Medical/functions/fn_buildUnstableActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ private _cardiacArrest = _unit getVariable ["ace_medical_inCardiacArrest", false
if (_cardiacArrest) then {
diag_log format["'%1' is in Cardiac Arrest", _unit];
private _action = ["MIRA_Cardiac", "Cardiac Arrest", "", {
params ["", "", "_parameters"];
params ["_player", "_target", "_parameters"];
_parameters params ["_unit"];
diag_log format["Unit is: %1 -- %2", _unit, _target];
[_unit] call ace_medical_gui_fnc_openMenu;
}, {true}, {}, [_unit]] call ace_interact_menu_fnc_createAction;
_actions pushBack [_action, [], _unit];
Expand Down

0 comments on commit 287b6bc

Please sign in to comment.