Skip to content

Commit ed9fb49

Browse files
committed
Merge branch 'dev-Tomcat' of https://github.com/Cplhardcore/KAM into dev-Tomcat
2 parents 306855f + b71dc6d commit ed9fb49

File tree

169 files changed

+22751
-21302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+22751
-21302
lines changed

addons/airway/XEH_PREP.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PREP(checkAirway);
2-
PREP(checkRecovery);
32
PREP(checkMask);
3+
PREP(checkRecovery);
44
PREP(fullHealLocal);
55
PREP(gui_updateBodyImage);
66
PREP(gui_updateInjuryListGeneral);
@@ -22,4 +22,4 @@ PREP(treatmentAdvanced_hyperextendHead);
2222
PREP(treatmentAdvanced_RecoveryPosition);
2323
PREP(treatmentAdvanced_RecoveryPositionLocal);
2424
PREP(treatmentAdvanced_RemoveAirwayItem);
25-
PREP(treatmentAdvanced_RemoveAirwayItemLocal);
25+
PREP(treatmentAdvanced_RemoveAirwayItemLocal);

addons/airway/XEH_preInit.sqf

Lines changed: 3 additions & 261 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ PREP_RECOMPILE_START;
66
#include "XEH_PREP.hpp"
77
PREP_RECOMPILE_END;
88

9-
#define CBA_SETTINGS_CAT "KAT - ADV Medical: Airway"
9+
#define CBA_SETTINGS_CAT LSTRING(cba_name)
10+
#include "initSettings.inc.sqf"
1011

1112
/*
1213
When a patient enters the unconscious state, there are two things that can happen.
@@ -18,263 +19,4 @@ It will stay in there and can block the airway too. The right treatment here, is
1819
In real life, this will happen sometimes, not quiet often.
1920
*/
2021

21-
// Enable airway injuries
22-
[
23-
QGVAR(enable),
24-
"CHECKBOX",
25-
LLSTRING(SETTING_ENABLE),
26-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
27-
[true],
28-
true
29-
] call CBA_Settings_fnc_init;
30-
31-
// Settable action time for CheckAirway
32-
[
33-
QGVAR(CheckAirway_time),
34-
"SLIDER",
35-
[LLSTRING(TIME_CHECKAIRWAY),LLSTRING(TIME_CHECKAIRWAY_DESC)],
36-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
37-
[1, 10, 2, 0],
38-
true
39-
] call CBA_Settings_fnc_init;
40-
41-
// airway Injuries probability obstruction
42-
[
43-
QGVAR(probability_obstruction),
44-
"SLIDER",
45-
[LLSTRING(SETTING_obstruction),LLSTRING(SETTING_obstruction_DESC)],
46-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
47-
[0, 100, 15, 0],
48-
true
49-
] call CBA_Settings_fnc_init;
50-
51-
// airway Injuries probability occluded
52-
[
53-
QGVAR(probability_occluded),
54-
"SLIDER",
55-
[LLSTRING(SETTING_occluded),LLSTRING(SETTING_occluded_DESC)],
56-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
57-
[0, 100, 10, 0],
58-
true
59-
] call CBA_Settings_fnc_init;
60-
61-
// Occlusion repeat timer
62-
[
63-
QGVAR(occlusion_repeatTimer),
64-
"SLIDER",
65-
LLSTRING(SETTING_occlusion_repeatTimer),
66-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
67-
[1, 1200, 60, 0],
68-
true
69-
] call CBA_Settings_fnc_init;
70-
71-
// Set period during which patient cannot get another occlusion after last occlusion was cleared, disabled if 0
72-
[
73-
QGVAR(occlusion_cooldownPeriod),
74-
"SLIDER",
75-
LLSTRING(SETTING_occlusion_cooldownPeriod),
76-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
77-
[0, 60, 6, 1],
78-
true
79-
] call CBA_Settings_fnc_init;
80-
81-
// Succes for headturning
82-
[
83-
QGVAR(probability_headturning),
84-
"SLIDER",
85-
[LLSTRING(SUCCES_HEADTURNING),LLSTRING(SUCCES_HEADTURNING_DESC)],
86-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
87-
[1, 100, 50, 0],
88-
true
89-
] call CBA_Settings_fnc_init;
90-
91-
// Settable action time for Head turning
92-
[
93-
QGVAR(HeadTurn_Interval),
94-
"SLIDER",
95-
[LLSTRING(SETTING_HeadTurning_Interval), LLSTRING(SETTING_HeadTurning_Interval_DESC)],
96-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
97-
[1, 30, 3, 0],
98-
true
99-
] call CBA_Settings_fnc_init;
100-
101-
// Blocks head turning if patient has Guedel Tube or KingLT inserted
102-
[
103-
QGVAR(block_headTurning_ifAirwayItem),
104-
"CHECKBOX",
105-
[LLSTRING(BLOCK_HEADTURNING),LLSTRING(BLOCK_HEADTURNING_DESC)],
106-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
107-
[true],
108-
true
109-
] call CBA_Settings_fnc_init;
110-
111-
// airway puking sound yes or no?
112-
// somebody told me that the sound which is played then someone is puking is super annoying and now you can remove it easily
113-
[
114-
QGVAR(checkbox_puking_sound),
115-
"CHECKBOX",
116-
LLSTRING(SETTING_puking_sound),
117-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
118-
[true],
119-
true
120-
] call CBA_Settings_fnc_init;
121-
122-
[
123-
QGVAR(string_exit),
124-
"LIST",
125-
["keko_wasPunched string", LLSTRING(SETTING_exit)],
126-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
127-
[["", "keko_wasPunched"], ["", "keko_wasPunched"], 0],
128-
true
129-
] call CBA_Settings_fnc_init;
130-
131-
//Settable list for using Larynxtubus per medical class
132-
[
133-
QGVAR(medLvl_Larynxtubus),
134-
"LIST",
135-
[LLSTRING(ALLOW_LARYNXTUBUS),LLSTRING(ALLOW_LARYNXTUBUS_DESC)],
136-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_Items)],
137-
[[0, 1, 2], ["STR_ACE_Medical_Treatment_Anyone", "STR_ACE_Medical_Treatment_Medics", "STR_ACE_Medical_Treatment_Doctors"], 0],
138-
true
139-
] call CBA_settings_fnc_init;
140-
141-
//Settable list for using Guedeltubus per medical class
142-
[
143-
QGVAR(medLvl_Guedeltubus),
144-
"LIST",
145-
[LLSTRING(ALLOW_GUEDELTUBUS),LLSTRING(ALLOW_GUEDELTUBUS_DESC)],
146-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_Items)],
147-
[[0, 1, 2], ["STR_ACE_Medical_Treatment_Anyone", "STR_ACE_Medical_Treatment_Medics", "STR_ACE_Medical_Treatment_Doctors"], 0],
148-
true
149-
] call CBA_settings_fnc_init;
150-
151-
//Settable list for using Accuvac per medical class
152-
[
153-
QGVAR(medLvl_Accuvac),
154-
"LIST",
155-
[LLSTRING(ALLOW_ACCUVAC),LLSTRING(ALLOW_ACCUVAC_DESC)],
156-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_Suction)],
157-
[[0, 1, 2], ["STR_ACE_Medical_Treatment_Anyone", "STR_ACE_Medical_Treatment_Medics", "STR_ACE_Medical_Treatment_Doctors"], 0],
158-
true
159-
] call CBA_settings_fnc_init;
160-
161-
// Settable action time for Accuvac
162-
[
163-
QGVAR(Accuvac_time),
164-
"SLIDER",
165-
[LLSTRING(TIME_ACCUVAC),LLSTRING(TIME_ACCUVAC_DESC)],
166-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_Suction)],
167-
[1, 30, 8, 0],
168-
true
169-
] call CBA_Settings_fnc_init;
170-
171-
//Settable list for using Manual Suction Pump per medical class
172-
[
173-
QGVAR(medLvl_Suction),
174-
"LIST",
175-
[LLSTRING(ALLOW_SUCTION),LLSTRING(ALLOW_SUCTION_DESC)],
176-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_Suction)],
177-
[[0, 1, 2], ["STR_ACE_Medical_Treatment_Anyone", "STR_ACE_Medical_Treatment_Medics", "STR_ACE_Medical_Treatment_Doctors"], 0],
178-
true
179-
] call CBA_settings_fnc_init;
180-
181-
// Settable action time for Manual Suction Pump
182-
[
183-
QGVAR(Suction_time),
184-
"SLIDER",
185-
[LLSTRING(TIME_SUCTION),LLSTRING(TIME_SUCTION_DESC)],
186-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_Suction)],
187-
[1, 30, 12, 0],
188-
true
189-
] call CBA_Settings_fnc_init;
190-
191-
// Reuse Item checkbox for Manual Suction Pump
192-
[
193-
QGVAR(Suction_reuse),
194-
"CHECKBOX",
195-
[LLSTRING(SUCTION_REUSE),LLSTRING(SUCTION_REUSE_DESC)],
196-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_Suction)],
197-
[false],
198-
true
199-
] call CBA_Settings_fnc_init;
200-
201-
// Settable action time for Larynxtubus
202-
[
203-
QGVAR(Larynxtubus_time),
204-
"SLIDER",
205-
[LLSTRING(TIME_LARYNXTUBUS),LLSTRING(TIME_LARYNXTUBUS_DESC)],
206-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_Items)],
207-
[1, 10, 3, 0],
208-
true
209-
] call CBA_Settings_fnc_init;
210-
211-
// Settable action time for Guedeltubus
212-
[
213-
QGVAR(Guedeltubus_time),
214-
"SLIDER",
215-
[LLSTRING(TIME_GUEDELTUBUS),LLSTRING(TIME_GUEDELTUBUS_DESC)],
216-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_Items)],
217-
[1, 20, 6, 0],
218-
true
219-
] call CBA_Settings_fnc_init;
220-
221-
// Enable reuasble Larynxtubus & Guedeltubus
222-
[
223-
QGVAR(ReusableAirwayItems),
224-
"CHECKBOX",
225-
[LLSTRING(Reusable_AirwayItems),LLSTRING(Reusable_AirwayItems_DESC)],
226-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_Items)],
227-
[false],
228-
true
229-
] call CBA_Settings_fnc_init;
230-
231-
// Settable action time for Head overstretching
232-
[
233-
QGVAR(Hyperextend_Time),
234-
"SLIDER",
235-
[LLSTRING(Hyperextend_Time), LLSTRING(Hyperextend_Time_DESC)],
236-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_RecoveryPositionHyperextend)],
237-
[1, 10, 3, 0],
238-
true
239-
] call CBA_Settings_fnc_init;
240-
241-
// Settable action time for Recovery position
242-
[
243-
QGVAR(RecoveryPosition_Time),
244-
"SLIDER",
245-
[LLSTRING(SETTING_RecoveryPosition_Time), LLSTRING(SETTING_RecoveryPosition_Time_DESC)],
246-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_RecoveryPositionHyperextend)],
247-
[1, 60, 6, 0],
248-
true
249-
] call CBA_Settings_fnc_init;
250-
251-
// Settable action time for Cancel recovery position
252-
[
253-
QGVAR(CancelRecoveryPosition_Time),
254-
"SLIDER",
255-
[LLSTRING(SETTING_CancelRecoveryPosition_Time), LLSTRING(SETTING_CancelRecoveryPosition_Time_DESC)],
256-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_RecoveryPositionHyperextend)],
257-
[1, 60, 3, 0],
258-
true
259-
] call CBA_Settings_fnc_init;
260-
261-
// Settable maximum time required for occlusion to be cleared from patient in recovery position
262-
[
263-
QGVAR(RecoveryPosition_TimeToDrain),
264-
"SLIDER",
265-
[LLSTRING(SETTING_RecoveryPosition_TimeToDrain), LLSTRING(SETTING_RecoveryPosition_TimeToDrain_DESC)],
266-
[CBA_SETTINGS_CAT, LSTRING(SubCategory_RecoveryPositionHyperextend)],
267-
[0, 30, 10, 0],
268-
true
269-
] call CBA_Settings_fnc_init;
270-
271-
[
272-
QGVAR(autoTriage),
273-
"CHECKBOX",
274-
[LLSTRING(AutoTriage),LLSTRING(AutoTriage_Desc)],
275-
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
276-
[true],
277-
true
278-
] call CBA_Settings_fnc_init;
279-
280-
ADDON = true;
22+
ADDON = true;

addons/airway/functions/fnc_gui_updateBodyImage.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private _ctrlKingLT = _ctrlGroup controlsGroupCtrl IDC_BODY_HEAD_KINGLT;
2424

2525
private _airwayItem = _target getVariable [QGVAR(airway_item), ""];
2626

27-
if !(_airwayItem isEqualTo "") then {
27+
if (_airwayItem isNotEqualTo "") then {
2828
if (_airwayItem isEqualTo "Larynxtubus") then {
2929
_ctrlGuedelTube ctrlShow false;
3030
_ctrlKingLT ctrlShow true;

addons/airway/functions/fnc_gui_updateInjuryListPart.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (_target getVariable [QGVAR(overstretch), false] && _selectionN isEqualTo 0)
2626

2727
if (_target getVariable [QGVAR(airway), false] && _selectionN isEqualTo 0) then {
2828
private _a = _target getVariable [QGVAR(airway_item), ""];
29-
if !(_a isEqualTo "") then {
29+
if (_a isNotEqualTo "") then {
3030
private _text = format [LSTRING(%1_Display), _a];
3131
_entries pushBack [localize _text, [0.1, 1, 1, 1]];
3232
};

addons/airway/functions/fnc_startHeadTurning.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ GVAR(headTurn_timeOut) = true;
6161

6262
private _patientCondition = (!(IS_UNCONSCIOUS(_patient)) && alive _patient || _patient isEqualTo objNull);
6363
private _medicCondition = (!(alive _medic) || IS_UNCONSCIOUS(_medic) || _medic isEqualTo objNull);
64-
private _vehicleCondition = !(objectParent _medic isEqualTo objectParent _patient);
64+
private _vehicleCondition = (objectParent _medic isNotEqualTo objectParent _patient);
6565
private _distanceCondition = (_patient distance2D _medic > ACEGVAR(medical_gui,maxDistance));
6666

6767
if (_patientCondition || _medicCondition || !(_patient getVariable [QGVAR(headTurningActive), false]) || dialog || {(!_notInVehicle && _vehicleCondition) || {(_notInVehicle && _distanceCondition)}}) exitWith {

0 commit comments

Comments
 (0)