Add G3A3 with attachment support

Thx to SyNcRoNiCzZ for this wonderful addon
This commit is contained in:
A Man
2021-08-20 13:12:27 +02:00
parent 474f2fce6d
commit a3a4cf9003
4 changed files with 207 additions and 12 deletions

View File

@@ -67,7 +67,7 @@ if (!isNil "_magazines") then {
_class = _x select 0;
};
if (_class in _magazines) then {
local _MatchedCount = {_compare = if (typeName _x == "ARRAY") then {_x select 0;} else {_x}; _compare == _class} count _magTemp;
local _MatchedCount = {local _compare = if (typeName _x == "ARRAY") then {_x select 0;} else {_x}; _compare == _class} count _magTemp;
local _CountedActual = {_x == _class} count _magazines;
if (_MatchedCount > _CountedActual) then {
_magTemp set [_forEachIndex, "0"];