Game Modding | Call of Duty: Black Ops 3 | Scripting
ConvictioNDR:
Fills magazine with max ammo as well like in Cold War/BO4 without adding more mess to you map.gsc.
Copy _zm_powerup_full_ammo.gsc from your raw\scripts\zm folder into your map's scripts\zm folder. Open it and near the bottom of the file you will see
players[i] GiveMaxAmmo( primary_weapons[x] );
players[i] SetWeaponAmmoClip( primary_weapons[x], 999 );
if ( players[i] HasWeapon( primary_weapons[x] ) )
players[i] GiveMaxAmmo( primary_weapons[x] );
players[i] SetWeaponAmmoClip( primary_weapons[x], 999 );
scriptparsetree,scripts/zm/_zm_powerup_full_ammo.gsc
Example video
Spiki:
Or just use a function instead of modifying a whole script
https://forum.modme.co/threads/black-ops-4-max-ammo.1415/
ConvictioNDR:
Or just use a function instead of modifying a whole script