Modme Forums
Menu:

Black ops 4 Max Ammo

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: SKALV
I Cant script so if anyone wants to help ill credit them

I want to be able to make the max ammo in my map to act like it does in BO4 where it fills the clip and not just the reserve.


ModmeBot:

Reply By: mathfag
Since you asked so nicely:

function ammo_upgrade()
{
while(1)
	{
	level waittill( "zmb_max_ammo_level" );	
	//IPrintLnBold("ammo");
	foreach(player in GetPlayers())
		{
		player.ScreecherPrimaryWeapons = player GetWeaponsListPrimaries();
		foreach(gun in player.ScreecherPrimaryWeapons)
			{
			weap = GetWeapon(gun.name);
			player SetWeaponAmmoClip(gun, weap.clipSize); 	
			}
		} 
	}
}


ModmeBot:

Reply By: SKALV

mathfag
Since you asked so nicely: function ammo_upgrade() { while(1) { level waittill( "zmb_max_ammo_level" ); //IPrintLnBold("ammo"); foreach(player in GetPlayers()) { player.ScreecherPrimaryWeapons = player GetWeaponsListPrimaries(); foreach(gun in player.ScreecherPrimaryWeapons) { weap = GetWeapon(gun.name); player SetWeaponAmmoClip(gun, weap.clipSize); } } } }

Thanks Very much kind sir.


Reaper_9382:

thank you so much i have been searching for this script from a long time but i was patient till i found it lol, thanks btw


Reaper_9382:

it didnt work any idea on how to make it work?? i just pasted in the bottom of the gsc file do i need to paste it in the csc file too?


Pepergogo:

it didnt work any idea on how to make it work?? i just pasted in the bottom of the gsc file do i need to paste it in the csc file too?

You need to call the function from the main
Inside "function main (){" just put "level thread ammo_upgrade ();"
Should work, I'm using this script and works fine


Reaper_9382:

You need to call the function from the main
Inside "function main (){" just put "level thread ammo_upgrade ();"
Should work, I'm using this script and works fine


thanks it worked