Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Workaround for bug with Zafir legacy ammo in 1.42
if !(isServer) exitWith {};
[] spawn {
sleep 0.1;
{
_unit = _x;
if ({_x == '150Rnd_762x51_Box' || _x == '150Rnd_762x51_Box_Tracer'} count magazines _unit > 0) then {
{
if (_x == "150Rnd_762x51_Box") then {
_unit removeMagazineGlobal _x;
_unit addMagazineGlobal "150Rnd_762x54_Box";
};
if (_x == "150Rnd_762x51_Box_Tracer") then {
_unit removeMagazineGlobal _x;
_unit addMagazineGlobal "150Rnd_762x54_Box_Tracer";
};
} forEach magazines _unit ;
};
} forEach playableUnits;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment