2016-07-15 10:23:26 +00:00
|
|
|
|
|
|
|
class CfgVehicles {
|
|
|
|
|
|
|
|
class ACE_Module;
|
|
|
|
class ACE_moduleMedicalMenuSettings: ACE_Module {
|
|
|
|
scope = 2;
|
|
|
|
displayName = CSTRING(module_DisplayName);
|
|
|
|
icon = QPATHTOEF(medical,UI\Icon_Module_Medical_ca.paa);
|
|
|
|
category = "ACE_medical";
|
|
|
|
function = QUOTE(DFUNC(module));
|
|
|
|
functionPriority = 1;
|
|
|
|
isGlobal = 0;
|
|
|
|
isSingular = 1;
|
|
|
|
isTriggerActivated = 0;
|
|
|
|
author = ECSTRING(common,ACETeam);
|
|
|
|
class Arguments {
|
|
|
|
class allow {
|
|
|
|
displayName = CSTRING(allow);
|
|
|
|
description = CSTRING(allow_Descr);
|
|
|
|
typeName = "NUMBER";
|
|
|
|
class values {
|
|
|
|
class disable {
|
|
|
|
name = ECSTRING(common,Disabled);
|
|
|
|
value = 0;
|
|
|
|
};
|
|
|
|
class enable {
|
|
|
|
name = ECSTRING(common,Enabled);
|
|
|
|
value = 1;
|
|
|
|
default = 1;
|
|
|
|
};
|
|
|
|
class VehiclesOnly {
|
|
|
|
name = ECSTRING(common,VehiclesOnly);
|
|
|
|
value = 2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
class ModuleDescription {
|
|
|
|
description = CSTRING(module_Desc);
|
|
|
|
sync[] = {};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class Man;
|
|
|
|
class CAManBase: Man {
|
|
|
|
class ACE_SelfActions {
|
2016-09-21 15:55:19 +00:00
|
|
|
class Medical {
|
2016-09-27 20:33:29 +00:00
|
|
|
displayName = ECSTRING(medical,Actions_Medical);
|
2016-09-21 15:55:19 +00:00
|
|
|
runOnHover = 1;
|
|
|
|
exceptions[] = {"isNotInside", "isNotSitting"};
|
2016-12-10 03:27:42 +00:00
|
|
|
statement = QUOTE([ARR_3(_target,1,0)] call EFUNC(medical,displayPatientInformation));
|
2016-09-21 15:55:19 +00:00
|
|
|
condition = "true";
|
|
|
|
icon = QPATHTOEF(medical,UI\icons\medical_cross.paa);
|
2017-06-15 19:35:33 +00:00
|
|
|
#define ACTION_CONDITION condition = "true";
|
2016-09-21 15:55:19 +00:00
|
|
|
#include "InteractionBodyParts.hpp"
|
2017-06-15 19:35:33 +00:00
|
|
|
#undef ACTION_CONDITION
|
2016-09-21 15:55:19 +00:00
|
|
|
};
|
2017-06-15 19:35:33 +00:00
|
|
|
class ACE_Medical_Menu {
|
2016-07-15 10:23:26 +00:00
|
|
|
displayName = CSTRING(OpenMenu);
|
|
|
|
runOnHover = 0;
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotInside", "isNotSwimming"};
|
2016-07-15 10:23:26 +00:00
|
|
|
condition = QUOTE([ARR_2(ACE_player,_target)] call FUNC(canOpenMenu));
|
|
|
|
statement = QUOTE([_target] call DFUNC(openMenu));
|
|
|
|
icon = QPATHTOEF(medical,UI\icons\medical_cross.paa);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class ACE_Actions {
|
2017-06-15 19:35:33 +00:00
|
|
|
#define ACTION_CONDITION condition = QUOTE((EGVAR(medical,menuTypeStyle) == 0));
|
2016-09-21 15:55:19 +00:00
|
|
|
#include "InteractionBodyParts.hpp"
|
2017-06-15 19:35:33 +00:00
|
|
|
#undef ACTION_CONDITION
|
2016-07-15 10:23:26 +00:00
|
|
|
// Create a consolidates medical menu for treatment while boarded
|
|
|
|
class ACE_MainActions {
|
2017-06-15 19:35:33 +00:00
|
|
|
class ACE_Medical_Menu {
|
2016-07-15 10:23:26 +00:00
|
|
|
displayName = CSTRING(OpenMenu);
|
|
|
|
runOnHover = 0;
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotInside", "isNotSwimming"};
|
2016-07-15 10:23:26 +00:00
|
|
|
condition = QUOTE([ARR_2(ACE_player,_target)] call FUNC(canOpenMenu));
|
|
|
|
statement = QUOTE([_target] call DFUNC(openMenu));
|
|
|
|
icon = QPATHTOEF(medical,UI\icons\medical_cross.paa);
|
|
|
|
};
|
2017-06-15 19:35:33 +00:00
|
|
|
class ACE_Medical_Radial {
|
|
|
|
displayName = ECSTRING(medical,Actions_Medical);
|
|
|
|
runOnHover = 1;
|
|
|
|
exceptions[] = {"isNotInside", "isNotSitting"};
|
|
|
|
statement = QUOTE([ARR_3(_target,1,0)] call EFUNC(medical,displayPatientInformation));
|
|
|
|
condition = QUOTE(((vehicle _target != _target && vehicle _target == vehicle _player) || {EGVAR(medical,menuTypeStyle) == 1}));
|
|
|
|
icon = QPATHTOEF(medical,UI\icons\medical_cross.paa);
|
|
|
|
#define ACTION_CONDITION condition = "true";
|
|
|
|
#include "InteractionBodyParts.hpp"
|
|
|
|
#undef ACTION_CONDITION
|
|
|
|
};
|
|
|
|
class ACE_Medical_loadPatient {
|
|
|
|
displayName = ECSTRING(medical,LoadPatient);
|
2017-09-27 20:50:37 +00:00
|
|
|
condition = "(_target getVariable ['ACE_isUnconscious', false]) && {alive _target} && {vehicle _target == _target}";
|
2017-06-15 19:35:33 +00:00
|
|
|
statement = QUOTE([ARR_2(_player, _target)] call EFUNC(medical_treatment,actionLoadUnit));
|
|
|
|
icon = QPATHTOEF(medical,UI\icons\medical_cross.paa);
|
|
|
|
exceptions[] = {"isNotDragging", "isNotCarrying"};
|
|
|
|
};
|
|
|
|
class ACE_Medical_UnLoadPatient {
|
|
|
|
displayName = ECSTRING(medical,UnloadPatient);
|
2017-09-27 20:50:37 +00:00
|
|
|
condition = "(_target getVariable ['ACE_isUnconscious', false]) && {vehicle _target != _target} && {vehicle _player == _player}";
|
2017-06-15 19:35:33 +00:00
|
|
|
statement = QUOTE([ARR_2(_player, _target)] call EFUNC(medical_treatment,actionUnloadUnit));
|
|
|
|
icon = QPATHTOEF(medical,UI\icons\medical_cross.paa);
|
|
|
|
exceptions[] = {"isNotDragging", "isNotCarrying", "isNotInside"};
|
|
|
|
};
|
2016-07-15 10:23:26 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|