-
Notifications
You must be signed in to change notification settings - Fork 739
/
CfgVehicles.hpp
68 lines (68 loc) · 3.68 KB
/
CfgVehicles.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
class CfgVehicles {
class Man;
class CAManBase: Man {
class ACE_SelfActions {
class ACE_Medical {
displayName = CSTRING(Medical);
condition = QGVAR(enableSelfActions);
exceptions[] = {"isNotInside", "isNotSitting", "isNotSwimming"};
statement = QUOTE([ARR_2(_target,-1)] call FUNC(displayPatientInformation));
runOnHover = 1;
icon = QPATHTOF(ui\cross.paa);
#define ACTION_CONDITION condition = "true";
#include "InteractionBodyParts.hpp"
#undef ACTION_CONDITION
};
class ACE_Medical_Menu {
displayName = CSTRING(MedicalMenu);
condition = QUOTE([ARR_2(_player,_target)] call FUNC(canOpenMenu));
exceptions[] = {"isNotInside", "isNotSwimming"};
statement = QUOTE(_target call FUNC(openMenu));
icon = QPATHTOF(ui\cross.paa);
modifierFunction = QUOTE(call FUNC(modifyActionTriageLevel));
};
};
class ACE_Actions {
#define ACTION_CONDITION condition = QUOTE(GVAR(enableActions) == 0);
#include "InteractionBodyParts.hpp"
#undef ACTION_CONDITION
class ACE_MainActions {
modifierFunction = QUOTE(call FUNC(modifyActionTriageLevel));
class ACE_Medical_Menu {
displayName = CSTRING(MedicalMenu);
condition = QUOTE([ARR_2(ACE_player,_target)] call FUNC(canOpenMenu));
exceptions[] = {"isNotInside", "isNotSwimming"};
statement = QUOTE(_target call FUNC(openMenu));
icon = QPATHTOF(ui\cross.paa);
modifierFunction = QUOTE(call FUNC(modifyActionTriageLevel));
};
class ACE_Medical_Radial {
displayName = CSTRING(Medical);
condition = QUOTE((GVAR(enableActions) == 1 || {GVAR(enableActions) != 2 && {!isNull objectParent _target && {objectParent _target isEqualTo objectParent _player}}}));
exceptions[] = {"isNotInside", "isNotSitting"};
statement = QUOTE([ARR_2(_target,-1)] call FUNC(displayPatientInformation));
runOnHover = 1;
icon = QPATHTOF(ui\cross.paa);
#define ACTION_CONDITION condition = "true";
#include "InteractionBodyParts.hpp"
#undef ACTION_CONDITION
};
class ACE_LoadPatient {
displayName = CSTRING(LoadPatient);
condition = QUOTE(_target getVariable [ARR_2('ACE_isUnconscious',false)] && {alive _target} && {isNull objectParent _target} && {(_target call EFUNC(common,nearestVehiclesFreeSeat)) isNotEqualTo []});
exceptions[] = {"isNotDragging", "isNotCarrying"};
statement = QUOTE([ARR_2(_player,_target)] call EFUNC(medical_treatment,loadUnit));
icon = QPATHTOF(ui\cross.paa);
insertChildren = QUOTE(call DEFUNC(medical_treatment,addLoadPatientActions));
};
class ACE_UnloadPatient {
displayName = CSTRING(UnloadPatient);
condition = QUOTE([ARR_2(_player,_target)] call EFUNC(medical_treatment,canUnloadUnit));
exceptions[] = {"isNotDragging", "isNotCarrying", "isNotInside"};
statement = QUOTE([ARR_2(_player,_target)] call EFUNC(medical_treatment,unloadUnit));
icon = QPATHTOF(ui\cross.paa);
};
};
};
};
};