From 65fe101aaf7b7a357cbee248e6ddf412dfc8bca8 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Fri, 29 Dec 2017 12:39:24 -0600 Subject: [PATCH] Arsenal - Filter items with scopeArsenal = 0 (#5988) * Arsenal - Filter items with scopeArsenal = 0 * 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 c74a368e1a3..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 && {getNumber (_x >> 'scope') == 2} && {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;