Skip to content

Commit 292f4e8

Browse files
authored
Merge branch 'KAT-Advanced-Medical:dev-Tomcat' into dev-Tomcat
2 parents 83a45e2 + a36f536 commit 292f4e8

22 files changed

Lines changed: 177 additions & 130 deletions

.hemtt/launch.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ workshop = [
44
"463939057", # ACE3's Workshop ID
55
"2369477168" # Advanced Developer Tools's Workshop ID
66
]
7+
8+
[rhs]
9+
extends = "default"
10+
workshop = [
11+
"843577117", # RHS USAF Workshop ID
12+
]

addons/chemical/functions/fnc_poison.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if (_gasLevel == 0) exitWith {
4545
};
4646

4747
// We assume that oxygen masks only cover the mouth and nose, leaving the eyes exposed to CS gas
48-
if ((_unit getVariable [QEGVAR(breathing,oxygenMaskActive)])) exitWith {
48+
if ((_unit getVariable [QEGVAR(breathing,oxygenMaskActive), false])) exitWith {
4949
TRACE_1("unit has oxygen mask",_unit);
5050
};
5151

addons/circulation/CfgVehicles.hpp

Lines changed: 78 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,15 @@ class CfgVehicles {
235235

236236
class LandVehicle;
237237
class Car: LandVehicle {
238+
class ACE_SelfActions {
239+
class KAT_ArterialTest {
240+
displayName = CSTRING(Arterial_Test_Action);
241+
condition = QUOTE(_target call ACEFUNC(medical_treatment,isMedicalVehicle));
242+
statement = "";
243+
insertChildren = QUOTE([ARR_2(_target,_player)] call FUNC(addArterialTestActions));
244+
icon = QACEPATHTOF(medical_gui,ui\cross.paa);
245+
};
246+
};
238247
class ACE_Actions {
239248
class ACE_MainActions {
240249
class KAT_ArterialTest {
@@ -250,6 +259,15 @@ class CfgVehicles {
250259

251260
class Car_F: Car {};
252261
class Quadbike_01_base_F: Car_F {
262+
class ACE_SelfActions {
263+
class KAT_ArterialTest {
264+
displayName = CSTRING(Arterial_Test_Action);
265+
condition = QUOTE(_target call ACEFUNC(medical_treatment,isMedicalVehicle));
266+
statement = "";
267+
insertChildren = QUOTE([ARR_2(_target,_player)] call FUNC(addArterialTestActions));
268+
icon = QACEPATHTOF(medical_gui,ui\cross.paa);
269+
};
270+
};
253271
class ACE_Actions: ACE_Actions {
254272
class ACE_MainActions: ACE_MainActions {
255273
class KAT_ArterialTest {
@@ -264,6 +282,15 @@ class CfgVehicles {
264282
};
265283

266284
class Kart_01_Base_F: Car_F {
285+
class ACE_SelfActions {
286+
class KAT_ArterialTest {
287+
displayName = CSTRING(Arterial_Test_Action);
288+
condition = QUOTE(_target call ACEFUNC(medical_treatment,isMedicalVehicle));
289+
statement = "";
290+
insertChildren = QUOTE([ARR_2(_target,_player)] call FUNC(addArterialTestActions));
291+
icon = QACEPATHTOF(medical_gui,ui\cross.paa);
292+
};
293+
};
267294
class ACE_Actions: ACE_Actions {
268295
class ACE_MainActions: ACE_MainActions {
269296
class KAT_ArterialTest {
@@ -278,6 +305,15 @@ class CfgVehicles {
278305
};
279306

280307
class Tank: LandVehicle {
308+
class ACE_SelfActions {
309+
class KAT_ArterialTest {
310+
displayName = CSTRING(Arterial_Test_Action);
311+
condition = QUOTE(_target call ACEFUNC(medical_treatment,isMedicalVehicle));
312+
statement = "";
313+
insertChildren = QUOTE([ARR_2(_target,_player)] call FUNC(addArterialTestActions));
314+
icon = QACEPATHTOF(medical_gui,ui\cross.paa);
315+
};
316+
};
281317
class ACE_Actions {
282318
class ACE_MainActions {
283319
class KAT_ArterialTest {
@@ -292,6 +328,15 @@ class CfgVehicles {
292328
};
293329

294330
class Motorcycle: LandVehicle {
331+
class ACE_SelfActions {
332+
class KAT_ArterialTest {
333+
displayName = CSTRING(Arterial_Test_Action);
334+
condition = QUOTE(_target call ACEFUNC(medical_treatment,isMedicalVehicle));
335+
statement = "";
336+
insertChildren = QUOTE([ARR_2(_target,_player)] call FUNC(addArterialTestActions));
337+
icon = QACEPATHTOF(medical_gui,ui\cross.paa);
338+
};
339+
};
295340
class ACE_Actions {
296341
class ACE_MainActions {
297342
class KAT_ArterialTest {
@@ -307,6 +352,15 @@ class CfgVehicles {
307352

308353
class Air;
309354
class Helicopter: Air {
355+
class ACE_SelfActions {
356+
class KAT_ArterialTest {
357+
displayName = CSTRING(Arterial_Test_Action);
358+
condition = QUOTE(_target call ACEFUNC(medical_treatment,isMedicalVehicle));
359+
statement = "";
360+
insertChildren = QUOTE([ARR_2(_target,_player)] call FUNC(addArterialTestActions));
361+
icon = QACEPATHTOF(medical_gui,ui\cross.paa);
362+
};
363+
};
310364
class ACE_Actions {
311365
class ACE_MainActions {
312366
class KAT_ArterialTest {
@@ -321,6 +375,15 @@ class CfgVehicles {
321375
};
322376

323377
class Plane: Air {
378+
class ACE_SelfActions {
379+
class KAT_ArterialTest {
380+
displayName = CSTRING(Arterial_Test_Action);
381+
condition = QUOTE(_target call ACEFUNC(medical_treatment,isMedicalVehicle));
382+
statement = "";
383+
insertChildren = QUOTE([ARR_2(_target,_player)] call FUNC(addArterialTestActions));
384+
icon = QACEPATHTOF(medical_gui,ui\cross.paa);
385+
};
386+
};
324387
class ACE_Actions {
325388
class ACE_MainActions {
326389
class KAT_ArterialTest {
@@ -336,6 +399,15 @@ class CfgVehicles {
336399

337400
class Ship;
338401
class Ship_F: Ship {
402+
class ACE_SelfActions {
403+
class KAT_ArterialTest {
404+
displayName = CSTRING(Arterial_Test_Action);
405+
condition = QUOTE(_target call ACEFUNC(medical_treatment,isMedicalVehicle));
406+
statement = "";
407+
insertChildren = QUOTE([ARR_2(_target,_player)] call FUNC(addArterialTestActions));
408+
icon = QACEPATHTOF(medical_gui,ui\cross.paa);
409+
};
410+
};
339411
class ACE_Actions {
340412
class ACE_MainActions {
341413
class KAT_ArterialTest {
@@ -354,12 +426,12 @@ class CfgVehicles {
354426
class ACE_Actions {
355427
class ACE_MainActions {
356428
class KAT_ApplyBloodTest {
357-
displayName = CSTRING(Arterial_Test);
358-
condition = "true";
359-
statement = "true";
360-
insertChildren = QUOTE([ARR_2(_target,_player)] call FUNC(addArterialApplyActions));
361-
icon = QACEPATHTOF(medical_gui,ui\cross.paa);
362-
};
429+
displayName = CSTRING(Arterial_Test);
430+
condition = QUOTE(GVAR(abgEnable));
431+
statement = "true";
432+
insertChildren = QUOTE([ARR_2(_target,_player)] call FUNC(addArterialApplyActions));
433+
icon = QACEPATHTOF(medical_gui,ui\cross.paa);
434+
};
363435
};
364436
class ACE_Head {
365437
class CheckBloodPressure {}; // Remove the ability to check blood pressure at the head

addons/circulation/functions/fnc_addArterialApplyActions.sqf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ private _fnc_getActions = {
3030

3131
if (_idNumber > 0) then {
3232
private _resultSampleMap = missionNamespace getVariable [QEGVAR(circulation,resultSampleMap), []];
33-
_resultSampleMap = _resultSampleMap get _idNumber;
34-
_resultSampleMap = _resultSampleMap select 1;
35-
private _patient = _resultSampleMap select 0;
33+
_resultSampleArray = _resultSampleMap get _idNumber;
34+
_resultSampleActual = _resultSampleArray select 1;
35+
private _patient = _resultSampleArray select 0;
3636

3737
_actions pushBack [
3838
[
@@ -45,7 +45,7 @@ private _fnc_getActions = {
4545
[]
4646
] call ACEFUNC(interact_menu,createAction),
4747
[],
48-
[_resultSampleMap, _target, _idNumber, _player]
48+
[_resultSampleActual, _target, _idNumber, _player]
4949
];
5050
};
5151
} forEach ([_player, 0] call ACEFUNC(common,uniqueItems));
@@ -54,4 +54,4 @@ private _fnc_getActions = {
5454
};
5555

5656

57-
[[], _fnc_getActions, _player, QGVAR(actionsCache), 9999, "cba_events_loadoutEvent"] call ACEFUNC(common,cachedCall);
57+
[[], _fnc_getActions, _player, QGVAR(actionsCache), 9999, "cba_events_loadoutEvent"] call ACEFUNC(common,cachedCall);

addons/circulation/functions/fnc_addArterialTestActions.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ private _fnc_getActions = {
5656
};
5757

5858

59-
[[], _fnc_getActions, _player, QGVAR(actionsCache), 9999, "cba_events_loadoutEvent"] call ACEFUNC(common,cachedCall);
59+
[[], _fnc_getActions, _player, QGVAR(actionsCache), 9999, "cba_events_loadoutEvent"] call ACEFUNC(common,cachedCall);

addons/circulation/functions/fnc_attachBloodGas.sqf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
*/
1717
params ["_entries"];
1818
_entries params ["_bloodGas", "_patient", "_idNumber", "_player"];
19-
_bloodGas params ["_patientName", "_bloodGasArray"];
2019

21-
_patient setVariable [QGVAR(testedBloodGas), _bloodGasArray, true];
20+
_patient setVariable [QGVAR(testedBloodGas), _bloodGas, true];
2221

2322
_player removeItem (format ["KAT_bloodResult_%1",_idNumber]);

addons/circulation/functions/fnc_showBloodGas.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private _resultSampleMap = missionNamespace getVariable [QEGVAR(circulation,resu
2828
_resultCounter = [_resultCounter +1, 1] select (_resultCounter == 20);
2929
missionNamespace setVariable [QEGVAR(circulation,resultCounter), _resultCounter, true];
3030

31-
_resultSampleMap set [_resultCounter, [name(_patient), _bloodGas]];
31+
_resultSampleMap set [_resultCounter, [_patientName, _bloodGasArray]];
3232
missionNamespace setVariable [QEGVAR(circulation,resultSampleMap), _resultSampleMap, true];
3333

3434
private _itemStr = format ["KAT_bloodResult_%1", _resultCounter];

addons/compat_rhs_usf3/$PBOPREFIX$

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
x\kat\addons\compat_rhs_usf3
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
class CfgVehicles {
2+
class Truck_01_base_F;
3+
class rhsusf_fmtv_base: Truck_01_base_F {};
4+
class rhsusf_M1078A1P2_fmtv_usarmy: rhsusf_fmtv_base {};
5+
class rhsusf_M1078A1P2_D_fmtv_usarmy: rhsusf_M1078A1P2_fmtv_usarmy {
6+
kat_stretcherPos[] = {0,-1,-0.4};
7+
kat_stretcherVector[] = {{0, 0, 0}, {0, 0, 0}};
8+
};
9+
class rhsusf_M1083A1P2_fmtv_usarmy: rhsusf_M1078A1P2_fmtv_usarmy {};
10+
class rhsusf_M1083A1P2_B_fmtv_usarmy: rhsusf_M1083A1P2_fmtv_usarmy {};
11+
class rhsusf_M1085A1P2_B_Medical_fmtv_usarmy: rhsusf_M1083A1P2_B_fmtv_usarmy {
12+
kat_stretcherPos[] = {-0.9,3,0.67};
13+
kat_stretcherVector[] = {{0,0,0},{0,0,0}};
14+
};
15+
16+
class Heli_Transport_01_base_F;
17+
class RHS_UH60_Base: Heli_Transport_01_base_F {
18+
kat_stretcherPos[] = {0,1.25,-1.86};
19+
kat_stretcherVector[] = {{1, 0, 0}, {0, 0, 1}};
20+
};
21+
22+
class Heli_Transport_02_base_F;
23+
class RHS_CH_47F_base: Heli_Transport_02_base_F {
24+
kat_stretcherPos[] = {0,-0.43,-2.63};
25+
kat_stretcherVector[] = {{0, 0, 0}, {0, 0, 0}};
26+
};
27+
28+
class MRAP_01_base_F;
29+
class rhsusf_hmmwe_base: MRAP_01_base_F {
30+
kat_stretcherPos[] = {0,-0.5,-0.85};
31+
kat_stretcherVector[] = {{0, 0, 0}, {0, 0, 0}};
32+
};
33+
34+
class APC_Tracked_03_base_F;
35+
class RHS_M2A2_Base: APC_Tracked_03_base_F {
36+
kat_stretcherPos[] = {-1.19,-0.6,-0.45};
37+
kat_stretcherVector[] = {{0,0,0},{0,0,0}};
38+
};
39+
40+
class Tank_F;
41+
class APC_Tracked_02_base_F: Tank_F {};
42+
class rhsusf_m113tank_base: APC_Tracked_02_base_F {
43+
kat_stretcherPos[] = {0,-0.5,-2.05};
44+
kat_stretcherVector[] = {{0,0,0},{0,0,0}};
45+
};
46+
};
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@
33
class CfgPatches {
44
class ADDON {
55
name = COMPONENT_NAME;
6-
requiredVersion = REQUIRED_VERSION;
76
units[] = {};
87
weapons[] = {};
9-
magazines[] = {};
10-
requiredAddons[] = {
11-
"kat_misc",
12-
"rhsusf_main"
13-
};
8+
requiredVersion = REQUIRED_VERSION;
9+
requiredAddons[] = {"kat_main", "rhsusf_main_loadorder"};
10+
skipWhenMissingDependencies = 1;
1411
author = "Katalam";
15-
authors[] = {"Katalam"};
12+
authors[] = {"MiszczuZPolski", "Katalam"};
1613
url = ECSTRING(main,URL);
1714
VERSION_CONFIG;
1815
};
1916
};
2017

2118
#include "CfgVehicles.hpp"
19+

0 commit comments

Comments
 (0)