Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions addons/airway/functions/fnc_handleAirway.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ params ["_unit"];
//Other mods can utilise KAT_Obstruction_Exclussion variable to prevent obstructions from happening
if ( !(GVAR(enable)) || (_unit getVariable ["KAT_Obstruction_Exclussion", false])) exitWith {};

private _isUnconscious = _unit getVariable ["ACE_isUnconscious", false];

if (!_isUnconscious || (_unit getVariable [QGVAR(airway_item), ""] in ["Larynxtubus","Guedeltubus"])) exitWith {
_unit setVariable [QGVAR(obstruction), false, true];
};

if (random(100) < GVAR(probability_obstruction)) then {
_unit setVariable [QGVAR(obstruction), true, true];
};
Loading