2016-07-15 10:23:26 +00:00
|
|
|
class CfgVehicles {
|
|
|
|
class Man;
|
|
|
|
class CAManBase: Man {
|
|
|
|
class ACE_SelfActions {
|
2019-03-24 22:17:48 +00:00
|
|
|
class ACE_Medical {
|
|
|
|
displayName = CSTRING(Medical);
|
|
|
|
condition = QGVAR(enableSelfActions);
|
2023-05-16 05:47:00 +00:00
|
|
|
exceptions[] = {"isNotInside", "isNotSitting", "isNotSwimming"};
|
2023-10-23 23:47:06 +00:00
|
|
|
statement = QUOTE([ARR_2(_target,-1)] call FUNC(displayPatientInformation));
|
2019-03-24 22:17:48 +00:00
|
|
|
runOnHover = 1;
|
|
|
|
icon = QPATHTOF(ui\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 {
|
2019-03-24 22:17:48 +00:00
|
|
|
displayName = CSTRING(MedicalMenu);
|
|
|
|
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canOpenMenu));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotInside", "isNotSwimming"};
|
2019-03-24 22:17:48 +00:00
|
|
|
statement = QUOTE(_target call FUNC(openMenu));
|
|
|
|
icon = QPATHTOF(ui\cross.paa);
|
2020-10-29 00:08:00 +00:00
|
|
|
modifierFunction = QUOTE(call FUNC(modifyActionTriageLevel));
|
2016-07-15 10:23:26 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
class ACE_Actions {
|
2019-03-24 22:17:48 +00:00
|
|
|
#define ACTION_CONDITION condition = QUOTE(GVAR(enableActions) == 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
|
|
|
class ACE_MainActions {
|
2020-10-29 00:08:00 +00:00
|
|
|
modifierFunction = QUOTE(call FUNC(modifyActionTriageLevel));
|
2017-06-15 19:35:33 +00:00
|
|
|
class ACE_Medical_Menu {
|
2019-03-24 22:17:48 +00:00
|
|
|
displayName = CSTRING(MedicalMenu);
|
2016-07-15 10:23:26 +00:00
|
|
|
condition = QUOTE([ARR_2(ACE_player,_target)] call FUNC(canOpenMenu));
|
2019-03-24 22:17:48 +00:00
|
|
|
exceptions[] = {"isNotInside", "isNotSwimming"};
|
|
|
|
statement = QUOTE(_target call FUNC(openMenu));
|
|
|
|
icon = QPATHTOF(ui\cross.paa);
|
2020-10-29 00:08:00 +00:00
|
|
|
modifierFunction = QUOTE(call FUNC(modifyActionTriageLevel));
|
2016-07-15 10:23:26 +00:00
|
|
|
};
|
2017-06-15 19:35:33 +00:00
|
|
|
class ACE_Medical_Radial {
|
2019-03-24 22:17:48 +00:00
|
|
|
displayName = CSTRING(Medical);
|
2023-07-22 06:11:58 +00:00
|
|
|
condition = QUOTE((GVAR(enableActions) == 1 || {GVAR(enableActions) != 2 && {!isNull objectParent _target && {objectParent _target isEqualTo objectParent _player}}}));
|
2017-06-15 19:35:33 +00:00
|
|
|
exceptions[] = {"isNotInside", "isNotSitting"};
|
2023-10-23 23:47:06 +00:00
|
|
|
statement = QUOTE([ARR_2(_target,-1)] call FUNC(displayPatientInformation));
|
2019-03-24 22:17:48 +00:00
|
|
|
runOnHover = 1;
|
|
|
|
icon = QPATHTOF(ui\cross.paa);
|
2017-06-15 19:35:33 +00:00
|
|
|
#define ACTION_CONDITION condition = "true";
|
|
|
|
#include "InteractionBodyParts.hpp"
|
|
|
|
#undef ACTION_CONDITION
|
|
|
|
};
|
2019-06-03 15:31:46 +00:00
|
|
|
class ACE_LoadPatient {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(LoadPatient);
|
2023-07-22 06:11:58 +00:00
|
|
|
condition = QUOTE(_target getVariable [ARR_2('ACE_isUnconscious',false)] && {alive _target} && {isNull objectParent _target} && {(_target call EFUNC(common,nearestVehiclesFreeSeat)) isNotEqualTo []});
|
2017-06-15 19:35:33 +00:00
|
|
|
exceptions[] = {"isNotDragging", "isNotCarrying"};
|
2023-11-05 18:36:00 +00:00
|
|
|
statement = QUOTE([ARR_2(_player,_target)] call EFUNC(medical_treatment,loadUnit));
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = QPATHTOF(ui\cross.paa);
|
2017-10-03 03:37:22 +00:00
|
|
|
insertChildren = QUOTE(call DEFUNC(medical_treatment,addLoadPatientActions));
|
2017-06-15 19:35:33 +00:00
|
|
|
};
|
2019-03-24 22:17:48 +00:00
|
|
|
class ACE_UnloadPatient {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(UnloadPatient);
|
2023-11-22 22:38:52 +00:00
|
|
|
condition = QUOTE([ARR_2(_player,_target)] call EFUNC(medical_treatment,canUnloadUnit));
|
2017-06-15 19:35:33 +00:00
|
|
|
exceptions[] = {"isNotDragging", "isNotCarrying", "isNotInside"};
|
2023-11-05 18:36:00 +00:00
|
|
|
statement = QUOTE([ARR_2(_player,_target)] call EFUNC(medical_treatment,unloadUnit));
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = QPATHTOF(ui\cross.paa);
|
2017-06-15 19:35:33 +00:00
|
|
|
};
|
2016-07-15 10:23:26 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|