Skip to content

Commit

Permalink
Update fnc_handleBreathingConditions.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
mazinskihenry authored Jan 14, 2025

Verified

This commit was signed with the committer’s verified signature.
ssbarnea Sorin Sbarnea
1 parent 50bf5ac commit 33ba7b1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions addons/breathing/functions/fnc_handleBreathingConditions.sqf
Original file line number Diff line number Diff line change
@@ -40,4 +40,17 @@ params ["_unit"];
["kat_LSDF"] call ACEFUNC(advanced_fatigue,removeDutyFactor);
};
};

if (EGVAR(chemical,maskStaminaLoss)) then {
if (goggles _target in (missionNamespace getVariable [QGVAR(availGasmaskList), []]) then {
if (ACEGVAR(advanced_fatigue,enabled)) then {
["kat_CMSK", 1.5] call ACEFUNC(advanced_fatigue,addDutyFactor);
} else {
_unit setStamina(getStamina _unit - 3);
};
} else {
["kat_CMSK", 1.5] call ACEFUNC(advanced_fatigue,removeDutyFactor);
};

Check failure on line 53 in addons/breathing/functions/fnc_handleBreathingConditions.sqf

GitHub Actions / windows

unparseable syntax

unparseable syntax
};

}, 10, [_unit]] call CBA_fnc_addPerFrameHandler;

0 comments on commit 33ba7b1

Please sign in to comment.