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);
|
2016-09-21 15:55:19 +00:00
|
|
|
exceptions[] = {"isNotInside", "isNotSitting"};
|
2019-03-24 22:17:48 +00:00
|
|
|
statement = QUOTE([ARR_2(_target,0)] call FUNC(displayPatientInformation));
|
|
|
|
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);
|
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 {
|
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);
|
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);
|
|
|
|
condition = QUOTE((GVAR(enableActions) == 1 || {GVAR(enableActions) != 2 && {vehicle _target != _target && {vehicle _target == vehicle _player}}}));
|
2017-06-15 19:35:33 +00:00
|
|
|
exceptions[] = {"isNotInside", "isNotSitting"};
|
2019-03-24 22:17:48 +00:00
|
|
|
statement = QUOTE([ARR_2(_target,0)] call FUNC(displayPatientInformation));
|
|
|
|
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);
|
2019-03-24 22:17:48 +00:00
|
|
|
condition = QUOTE(_target getVariable [ARR_2('ACE_isUnconscious',false)] && {alive _target} && {vehicle _target == _target});
|
2017-06-15 19:35:33 +00:00
|
|
|
exceptions[] = {"isNotDragging", "isNotCarrying"};
|
2019-06-03 15:31:46 +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);
|
2019-03-24 22:17:48 +00:00
|
|
|
condition = QUOTE(_target getVariable [ARR_2('ACE_isUnconscious',false)] && {vehicle _target != _target} && {vehicle _player == _player});
|
2017-06-15 19:35:33 +00:00
|
|
|
exceptions[] = {"isNotDragging", "isNotCarrying", "isNotInside"};
|
2019-06-03 15:31:46 +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
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|