mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - Fix FUNC(baseAttachment)
returning non-CBA item modes (#9916)
Update fnc_baseAttachment.sqf
This commit is contained in:
parent
558849b91c
commit
a72b3a43a5
@ -26,6 +26,14 @@ private _cfgWeapons = configfile >> "CfgWeapons";
|
|||||||
private _config = _cfgWeapons >> _item;
|
private _config = _cfgWeapons >> _item;
|
||||||
_item = configName _config;
|
_item = configName _config;
|
||||||
|
|
||||||
|
// If the switch config entries are inherited, ignore
|
||||||
|
if (
|
||||||
|
(inheritsFrom (_config >> "MRT_SwitchItemNextClass") isNotEqualTo (_config >> "MRT_SwitchItemNextClass")) ||
|
||||||
|
{inheritsFrom (_config >> "MRT_SwitchItemPrevClass") isNotEqualTo (_config >> "MRT_SwitchItemPrevClass")}
|
||||||
|
) exitWith {
|
||||||
|
_item // return
|
||||||
|
};
|
||||||
|
|
||||||
while {
|
while {
|
||||||
_config = _cfgWeapons >> getText (_config >> "MRT_SwitchItemNextClass");
|
_config = _cfgWeapons >> getText (_config >> "MRT_SwitchItemNextClass");
|
||||||
isClass _config && {_switchableClasses pushBackUnique configName _config != -1}
|
isClass _config && {_switchableClasses pushBackUnique configName _config != -1}
|
||||||
|
Loading…
Reference in New Issue
Block a user