params ["_turretPaths", "_seatCategory", "_outArr"];
{
	_path = _x;
	if (_path isEqualTo []) then {_path = [-1]};
	_weps = _vic weaponsTurret _path;
	private _thisArr = [];
	if (count _weps isNotEqualTo 0) then {
		_magsHere = _vic magazinesTurret _path call BIS_fnc_consolidateArray;

		private _wepMags = [];
		{
			private _wepDet = [_vic, _path, _x, _magsHere, _pylons] call milsim_fbcb2_assets_fnc_getMagsForWeapon;
			if (!(_wepDet isEqualTo [[]])) then {
				_wepMags pushBack _wepDet;
			};
		} forEach _weps;

		if (count _wepMags > 0) then {
		// "debug_console" callExtension (format["_wepMags Driver = %1", [_wepMags] call CBA_fnc_encodeJSON] + "#1100");
		{
			_thisArr pushBack _x # 0;
			if (count _x > 1) then {
			{
				_thisArr pushBack _x;
			} forEach (_x # 1);
			}
		} forEach _wepMags;
		};
	};// else {
		// "debug_console" callExtension (format["Running Mags Only."] + "#1100");
		// "debug_console" callExtension (format["Vic: %1",_vic] + "#1100");
		// "debug_console" callExtension (format["Path: %1", _path] + "#1100");
	// 	_mags = ([_vic, _path] call _getMags);

	// 	if (count _mags > 0) then {
	// 		{
	// 			_thisArr pushBack _x;
	// 		} forEach _mags;
	// 	};
	// };

	if (count _thisArr > 0) then {
		private _turretConfig = [_vic, _x] call BIS_fnc_turretConfig;
		private _turretDisplayName = [_turretConfig] call BIS_fnc_displayName;
		if (_turretDisplayName != "") then {
			_outArr pushBack format["    <font color='#f6dcbf' face='PuristaSemiBold'>%1 (""%2"")</font>", _seatCategory, _turretDisplayName];
		} else {
			_outArr pushBack format["    <font color='#f6dcbf' face='PuristaSemiBold'>%1</font>", _seatCategory];
		};

		{
			_outArr pushBack _x;
		} forEach _thisArr;
	}
} forEach _turretPaths;