From e4fddbcf04b3823685fc646ceb0c93e7b8ca3dcc Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Thu, 28 Dec 2017 19:59:14 -0600 Subject: [PATCH 1/2] Arsenal - Filter items with scopeArsenal = 0 --- addons/arsenal/functions/fnc_scanConfig.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/arsenal/functions/fnc_scanConfig.sqf b/addons/arsenal/functions/fnc_scanConfig.sqf index c74a368e1a3..54641db8a11 100644 --- a/addons/arsenal/functions/fnc_scanConfig.sqf +++ b/addons/arsenal/functions/fnc_scanConfig.sqf @@ -125,7 +125,7 @@ private _magazineGroups = [[],[]] call CBA_fnc_hashCreate; (_cargo select 17) pushBackUnique _className; }; }; -} foreach configProperties [_configCfgWeapons, "isClass _x && {getNumber (_x >> 'scope') == 2} && {getNumber (_x >> 'ace_arsenal_hide') != 1}", true]; +} foreach configProperties [_configCfgWeapons, "isClass _x && {2 == (if (isNumber (_x >> 'scopeArsenal')) then {getNumber (_x >> 'scopeArsenal')} else {getNumber (_x >> 'scope')})} && {getNumber (_x >> 'ace_arsenal_hide') != 1}", true]; { private _className = configName _x; From bc6e343a5db15692a1b87bfaf8ccc7df7b039500 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Thu, 28 Dec 2017 21:50:51 -0600 Subject: [PATCH 2/2] change order --- addons/arsenal/functions/fnc_scanConfig.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/arsenal/functions/fnc_scanConfig.sqf b/addons/arsenal/functions/fnc_scanConfig.sqf index 54641db8a11..28f90b9ae61 100644 --- a/addons/arsenal/functions/fnc_scanConfig.sqf +++ b/addons/arsenal/functions/fnc_scanConfig.sqf @@ -125,7 +125,7 @@ private _magazineGroups = [[],[]] call CBA_fnc_hashCreate; (_cargo select 17) pushBackUnique _className; }; }; -} foreach configProperties [_configCfgWeapons, "isClass _x && {2 == (if (isNumber (_x >> 'scopeArsenal')) then {getNumber (_x >> 'scopeArsenal')} else {getNumber (_x >> 'scope')})} && {getNumber (_x >> 'ace_arsenal_hide') != 1}", true]; +} foreach configProperties [_configCfgWeapons, "isClass _x && {(if (isNumber (_x >> 'scopeArsenal')) then {getNumber (_x >> 'scopeArsenal')} else {getNumber (_x >> 'scope')}) == 2} && {getNumber (_x >> 'ace_arsenal_hide') != 1}", true]; { private _className = configName _x;