From 655dc27548998a7c8b6d7ef9c785dc1881bdfa7a Mon Sep 17 00:00:00 2001 From: "eugene.tretyak" Date: Tue, 3 Aug 2021 13:11:14 +0300 Subject: [PATCH 1/2] Removes action from pointers while not in slot fnc_switchAttachment operates only mounted items, but inventory action was available eveywhere --- addons/accessory/XEH_preInit.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/accessory/XEH_preInit.sqf b/addons/accessory/XEH_preInit.sqf index 1bc968a22..2b633496e 100644 --- a/addons/accessory/XEH_preInit.sqf +++ b/addons/accessory/XEH_preInit.sqf @@ -21,7 +21,7 @@ if (!hasInterface) exitWith {}; }, {}, [DIK_SUBTRACT, [true, false, false]]] call CBA_fnc_addKeybind; [ - "##AccessoryPointer", "ALL", [LSTRING(railNext), LSTRING(railNext_tooltip)], nil, nil, { + "##AccessoryPointer", "POINTER", [LSTRING(railNext), LSTRING(railNext_tooltip)], nil, nil, { params ["", "", "_item"]; count (_item call CBA_fnc_switchableAttachments) > 1 // return }, { @@ -31,7 +31,7 @@ if (!hasInterface) exitWith {}; ] call CBA_fnc_addItemContextMenuOption; [ - "##AccessorySights", "ALL", [LSTRING(opticNext), LSTRING(opticNext_tooltip)], nil, nil, { + "##AccessorySights", "POINTER", [LSTRING(opticNext), LSTRING(opticNext_tooltip)], nil, nil, { params ["", "", "_item"]; count (_item call CBA_fnc_switchableAttachments) > 1 // return }, { From fc6dff4da97bd3cebc0bb5001e67ff7f9cb76aa7 Mon Sep 17 00:00:00 2001 From: "eugene.tretyak" Date: Tue, 3 Aug 2021 19:07:49 +0300 Subject: [PATCH 2/2] Fixes wrong slot for optics attachements --- addons/accessory/XEH_preInit.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/accessory/XEH_preInit.sqf b/addons/accessory/XEH_preInit.sqf index 2b633496e..9f6bf1f75 100644 --- a/addons/accessory/XEH_preInit.sqf +++ b/addons/accessory/XEH_preInit.sqf @@ -31,7 +31,7 @@ if (!hasInterface) exitWith {}; ] call CBA_fnc_addItemContextMenuOption; [ - "##AccessorySights", "POINTER", [LSTRING(opticNext), LSTRING(opticNext_tooltip)], nil, nil, { + "##AccessorySights", "OPTIC", [LSTRING(opticNext), LSTRING(opticNext_tooltip)], nil, nil, { params ["", "", "_item"]; count (_item call CBA_fnc_switchableAttachments) > 1 // return }, {