-
-
Save Wolfenswan/6f47be48591dc23aa103 to your computer and use it in GitHub Desktop.
Workaround for bug with Zafir legacy ammo in 1.42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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