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
14 changes: 14 additions & 0 deletions addons/miscFixes/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,17 @@ addUserActionEventHandler ["toggleRaiseWeapon","Activate",{
};
}, [_nAnim], 0.5] call CBA_fnc_waitAndExecute;
}];


// Clear webknight melee: hide weapon keybind (key 0)
if (hasInterface) then {
private _action = "webknight's melee$ims_weapononback";
private _registry = profileNamespace getVariable "cba_keybinding_registry_v3";
if (isNil "_registry") exitWith {};

private _keybinds = [_registry, _action] call CBA_fnc_hashGet;
if (isNil "_keybinds" || { _keybinds isEqualTo [[11,[false,false,false]]] }) then {
INFO("wiping webknight bad bind");
[_registry, _action, []] call CBA_fnc_hashSet; // updates by ref
};
};