From 919844182f444e46a94d7705d87f906599d07a53 Mon Sep 17 00:00:00 2001 From: mazinskihenry <33608576+mazinskihenry@users.noreply.github.com> Date: Tue, 3 Dec 2024 13:25:25 -0800 Subject: [PATCH] Headers and handleRespawn change --- addons/breathing/functions/fnc_checkAircraftOxygen.sqf | 2 +- addons/breathing/functions/fnc_checkPersonalOxygen.sqf | 2 +- addons/breathing/functions/fnc_fullHealLocal.sqf | 3 --- addons/breathing/functions/fnc_handleRespawn.sqf | 3 +++ addons/breathing/functions/fnc_init.sqf | 3 +++ 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/addons/breathing/functions/fnc_checkAircraftOxygen.sqf b/addons/breathing/functions/fnc_checkAircraftOxygen.sqf index b86580b23..62a9ca228 100644 --- a/addons/breathing/functions/fnc_checkAircraftOxygen.sqf +++ b/addons/breathing/functions/fnc_checkAircraftOxygen.sqf @@ -11,7 +11,7 @@ * None * * Example: - * [player] call kat_breathing_fnc_attachVehicleOxygen; + * [player] call kat_breathing_fnc_checkAircraftOxygen; * * Public: No */ diff --git a/addons/breathing/functions/fnc_checkPersonalOxygen.sqf b/addons/breathing/functions/fnc_checkPersonalOxygen.sqf index 6c9e50776..4af1f6db2 100644 --- a/addons/breathing/functions/fnc_checkPersonalOxygen.sqf +++ b/addons/breathing/functions/fnc_checkPersonalOxygen.sqf @@ -11,7 +11,7 @@ * None * * Example: - * [player] call kat_breathing_fnc_attachVehicleOxygen; + * [player] call kat_breathing_fnc_checkPersonalOxygen; * * Public: No */ diff --git a/addons/breathing/functions/fnc_fullHealLocal.sqf b/addons/breathing/functions/fnc_fullHealLocal.sqf index 50e8fed45..9791dd752 100644 --- a/addons/breathing/functions/fnc_fullHealLocal.sqf +++ b/addons/breathing/functions/fnc_fullHealLocal.sqf @@ -28,9 +28,6 @@ _patient setVariable [QGVAR(etco2Monitor), [], true]; _patient setVariable [QGVAR(breathRate), 15, true]; _patient setVariable [QGVAR(nasalCannula), false, true]; -_patient setVariable [QGVAR(oxygenMaskActive), false, true]; -_patient setVariable [QGVAR(oxygenMaskStatus), [0,0], true]; - if (ACEGVAR(advanced_fatigue,enabled)) then { ["kat_LSDF"] call ACEFUNC(advanced_fatigue,removeDutyFactor); }; diff --git a/addons/breathing/functions/fnc_handleRespawn.sqf b/addons/breathing/functions/fnc_handleRespawn.sqf index fcf114ebb..6336bd964 100644 --- a/addons/breathing/functions/fnc_handleRespawn.sqf +++ b/addons/breathing/functions/fnc_handleRespawn.sqf @@ -36,3 +36,6 @@ _unit setVariable ["kat_PulseoxiInUse_PFH", nil, true]; _unit setVariable ["kat_O2Breathing_PFH", nil, true]; _unit setVariable [QGVAR(usingStethoscope), nil]; + +_unit setVariable [QGVAR(oxygenMaskActive), false, true]; +_unit setVariable [QGVAR(oxygenMaskStatus), [0,0], true]; diff --git a/addons/breathing/functions/fnc_init.sqf b/addons/breathing/functions/fnc_init.sqf index 3bf92c07e..ff579259c 100644 --- a/addons/breathing/functions/fnc_init.sqf +++ b/addons/breathing/functions/fnc_init.sqf @@ -25,3 +25,6 @@ if !(GVAR(enable)) exitWith {}; _unit setVariable [QGVAR(pulseoximeter), false, true]; _unit setVariable [QGVAR(PulseOximeter_Volume), true, true]; _unit setVariable [QGVAR(PulseOximeter_VolumePatient), false, true]; + +_unit setVariable [QGVAR(oxygenMaskActive), false, true]; +_unit setVariable [QGVAR(oxygenMaskStatus), [0,0], true]; \ No newline at end of file