mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Update fnc_replaceUniqueItemsLoadout.sqf (#9297)
This commit is contained in:
parent
add312cbf1
commit
7ef9d19bc5
@ -100,11 +100,14 @@ private _cfgVehicles = configFile >> "CfgVehicles";
|
||||
{
|
||||
// Magazines in weapons have 2 entries: Name and ammo count
|
||||
if (_forEachIndex in [4, 5]) then {
|
||||
_x params ["_magazine"];
|
||||
_x params [["_magazine", ""], "_count"];
|
||||
|
||||
if (_magazine != "") then {
|
||||
_uniqueBaseCfgText = (getText (_cfgMagazines >> _magazine >> QGVAR(uniqueBase))) call EFUNC(common,getConfigName);
|
||||
|
||||
if (_uniqueBaseCfgText != "") then {
|
||||
_weaponsInfo set [_forEachIndex, _uniqueBaseCfgText];
|
||||
_weaponsInfo set [_forEachIndex, [_uniqueBaseCfgText, _count]];
|
||||
};
|
||||
};
|
||||
} else {
|
||||
// Other
|
||||
|
Loading…
Reference in New Issue
Block a user