Skip to content

Commit

Permalink
Requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-MF committed Dec 14, 2024
1 parent 8ba7de7 commit 8a83d1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion addons/medical/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (isServer) then {
["ace_unconscious", {
params ["_unit", "_state"];

if !(GVAR(unconsciousFXEnabled)) exitWith {};
if (GVAR(unconsciousFXChance) == 0) exitWith {};

if (isPlayer _unit && _state) then {
// Knock out sound
Expand Down
9 changes: 0 additions & 9 deletions addons/medical/initSettings.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@ private _category = format ["TAC %1", QUOTE(COMPONENT_BEAUTIFIED)];
true // isGlobal
] call CBA_fnc_addSetting;

[
QGVAR(unconsciousFXEnabled),
"CHECKBOX",
[LSTRING(UnconsciousFX_DisplayName), LSTRING(UnconsciousFX_Description)],
_category,
true,
1
] call CBA_fnc_addSetting;

[
QGVAR(unconsciousFXChance),
"SLIDER",
Expand Down

0 comments on commit 8a83d1b

Please sign in to comment.