Skip to content

Commit e091e2f

Browse files
authored
Merge branch 'KAT-Advanced-Medical:dev-Tomcat' into dev-Tomcat
2 parents aa55900 + 712d4c7 commit e091e2f

56 files changed

Lines changed: 1923 additions & 522 deletions

Some content is hidden

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

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ keys/*
8080
####
8181
hemtt.exe
8282
ArmaScriptCompiler.exe
83+
.hemttprivatekey
8384

8485
#SQF-VM Server
8586
.vscode\sqfvm-lsp
86-
.vscode
87+
.vscode

addons/airway/CfgSounds.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,4 @@ class CfgSounds {
1515
sound[] = {QPATHTOF_SOUND(sounds\puking3.wav), "db + 2", 1, 15};
1616
titles[] = {};
1717
};
18-
class GVAR(suction) {
19-
name = QGVAR(suction);
20-
sound[] = {QPATHTOF_SOUND(sounds\suction.wav), "db + 2", 1, 15};
21-
titles[] = {};
22-
};
2318
};

addons/airway/initSettings.inc.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"SLIDER",
5656
[LLSTRING(SETTING_occlusion_cooldownPeriod), LLSTRING(SETTING_occlusion_cooldownPeriod_DESC)],
5757
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
58-
[0, 60, 6, 1],
58+
[0, 1200, 6, 1],
5959
true
6060
] call CBA_fnc_addSetting;
6161

addons/airway/stringtable.xml

Lines changed: 115 additions & 46 deletions
Large diffs are not rendered by default.

addons/breathing/CfgSounds.hpp

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,6 @@
11
class CfgSounds
22
{
33
sounds[] = {};
4-
class normalbreathing {
5-
name = "clear_lungs";
6-
7-
// filename, volume, pitch, distance (optional)
8-
sound[] = { QPATHTOF(audio\Clear_Lung_Sounds.ogg), 2, 1, 3 };
9-
titles[] = {};
10-
};
11-
class tensionpneumothoraxbreathing {
12-
name = "tension_lungs";
13-
14-
// filename, volume, pitch, distance (optional)
15-
sound[] = { QPATHTOF(audio\Tension_sounds.ogg), 2, 1, 3 };
16-
titles[] = {};
17-
};
18-
class hemothoraxbreathing {
19-
name = "hemo_lungs";
20-
21-
// filename, volume, pitch, distance (optional)
22-
sound[] = { QPATHTOF(audio\hemo_sounds.ogg), 2, 1, 3 };
23-
titles[] = {};
24-
};
25-
264
class GVAR(pneumothoraxcough) {
275
name = QGVAR(pneumothoraxcough);
286

@@ -37,4 +15,4 @@ class CfgSounds
3715
sound[] = { QPATHTOF(audio\respiratorTone.ogg), 5, 1, 2 };
3816
titles[] = {};
3917
};
40-
};
18+
};

addons/breathing/config.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ class CfgPatches {
1313
"kat_Pulseoximeter",
1414
"kat_chestSeal",
1515
"kat_stethoscope",
16-
"kat_nasal"
16+
"kat_nasal",
17+
"kat_aatKit",
18+
"kat_ncdKit",
19+
"kat_BVM",
20+
"kat_pocketBVM",
21+
"kat_oxygenTank_150_Empty",
22+
"kat_oxygenTank_300_Empty"
1723
};
1824
magazines[] = {};
1925
requiredAddons[] = {

addons/breathing/functions/fnc_attachPersonalOxygen.sqf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ _patient setVariable [QGVAR(oxygenMaskActive), true, true];
2727
private _availableTanks = (magazinesAmmo [_patient, false]) select {(_x select 0) isEqualTo "kat_personal_oxygen"};
2828
private _largestTank = 0;
2929

30-
{
31-
if (_x select 1 > ((_availableTanks select _largestTank) select 1)) then {
32-
_largestTank = _y;
33-
};
30+
{
31+
if (_x select 1 > ((_availableTanks select _largestTank) select 1)) then {
32+
_largestTank = _forEachIndex;
33+
};
3434
} forEach _availableTanks;
3535

3636
private _largestTankValue = (_availableTanks select _largestTank) select 1;
@@ -52,7 +52,7 @@ _patient setVariable [QGVAR(oxygenMaskStatus), [(_largestTankValue + 1), 1], tru
5252
_patient call FUNC(detachPersonalOxygen);
5353
_pfhID call CBA_fnc_removePerFrameHandler;
5454
};
55-
55+
5656
}, 5, [
5757
_patient
5858
]] call CBA_fnc_addPerFrameHandler;

addons/breathing/functions/fnc_useBVM.sqf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ GVAR(BVM_timeOut) = true;
118118
};
119119
} forEach magazinesAmmo _medic;
120120

121-
if (count _heldPreferredTanks > 0) then {
121+
if (_heldPreferredTanks isNotEqualTo []) then {
122122
_carriedTanks = _heldPreferredTanks;
123123
};
124124
} else {
@@ -129,7 +129,7 @@ GVAR(BVM_timeOut) = true;
129129
} forEach magazinesAmmo _medic;
130130
};
131131

132-
if (count _carriedTanks > 0) then {
132+
if (_carriedTanks isNotEqualTo []) then {
133133
_patient setVariable [QGVAR(oxygenTankConnected), true, true];
134134

135135
private _tank = _carriedTanks select - 1;
@@ -158,7 +158,7 @@ GVAR(BVM_timeOut) = true;
158158
};
159159
} forEach (magazinesAmmoCargo _vehicle);
160160

161-
if (count _oxygenTanks > 0) then {
161+
if (_oxygenTanks isNotEqualTo []) then {
162162
_patient setVariable [QGVAR(oxygenTankConnected), true, true];
163163

164164
private _tank = _oxygenTanks select - 1;

addons/breathing/stringtable.xml

Lines changed: 342 additions & 90 deletions
Large diffs are not rendered by default.

addons/chemical/CfgAmmo.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ class CfgAmmo {
7373
smokeColor[] = {0.671, 0.765, 0.184,1};
7474
};
7575

76-
class BombCore;
7776
//class Bo_GBU12_LGB;
7877
class BombCluster_01_Ammo_F;
7978
class KAT_CAS_M43_Ammo: BombCluster_01_Ammo_F {

0 commit comments

Comments
 (0)