Skip to content

Commit

Permalink
Add KAT-Advanced-Medical#700 keybinding
Browse files Browse the repository at this point in the history
  • Loading branch information
Apricot-ale committed Jan 15, 2025
1 parent a8ffdeb commit 40966d2
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion addons/watch/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,29 @@ if (!hasInterface) exitWith {};
};

true
}, { false }, [37, [false, false, true]], false] call CBA_fnc_addKeybind;
}, { false }, [37, [false, false, true]], false] call CBA_fnc_addKeybind;

[CBA_KEYBIND_CAT, QGVAR(katminTimeKey), CSTRING(TimeModifier_Settings), {
switch true do{
case (('KAT_Katmin' in assignedItems ACE_player)): {
private _katminSeconds = ACE_player getVariable [QGVAR(katminSeconds), false];

if (_katminSeconds) then {
ACE_player setVariable [QGVAR(katminSeconds),false,true];
} else {
ACE_player setVariable [QGVAR(katminSeconds),true,true];
};
};
case (('KAT_Ranger' in assignedItems ACE_player)): {
private _rangerHands = ACE_player getVariable [QGVAR(rangerHands), false];

if (_rangerHands) then {
ACE_player setVariable [QGVAR(rangerHands),false,true];
} else {
ACE_player setVariable [QGVAR(rangerHands),true,true];
};
};
};

true
}, { false }, [25, [false, false, true]], false] call CBA_fnc_addKeybind;

0 comments on commit 40966d2

Please sign in to comment.