mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
add support for getting vehicle magazine from magwells
This commit is contained in:
@ -28,7 +28,6 @@ private _bestMag = "#";
|
|||||||
private _bestMagCount = -1;
|
private _bestMagCount = -1;
|
||||||
|
|
||||||
{
|
{
|
||||||
private _weapon = _x;
|
|
||||||
{
|
{
|
||||||
if ((getNumber (_carryGroupCfg >> _x)) == 1) then {
|
if ((getNumber (_carryGroupCfg >> _x)) == 1) then {
|
||||||
private _xAmmo = getNumber (configFile >> "CfgMagazines" >> _x >> "ammo");
|
private _xAmmo = getNumber (configFile >> "CfgMagazines" >> _x >> "ammo");
|
||||||
@ -37,7 +36,7 @@ private _bestMagCount = -1;
|
|||||||
_bestMagCount = _xAmmo;
|
_bestMagCount = _xAmmo;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} forEach (getArray (configFile >> "CfgWeapons" >> _weapon >> "magazines"));
|
} forEach (GVAR(compatibleVehicleMagsCache) get _x);
|
||||||
} forEach (_vehicle weaponsTurret _turret);
|
} forEach (_vehicle weaponsTurret _turret);
|
||||||
TRACE_3("best fit",_desiredAmmo,_bestMag,_bestMagCount);
|
TRACE_3("best fit",_desiredAmmo,_bestMag,_bestMagCount);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user