Skip to content

Instantly share code, notes, and snippets.

@Wolfenswan
Created April 9, 2015 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wolfenswan/6f47be48591dc23aa103 to your computer and use it in GitHub Desktop.
Save Wolfenswan/6f47be48591dc23aa103 to your computer and use it in GitHub Desktop.
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