Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: nugget850 on November 11, 2016, 07:47:03 pm
Title: How to change the max amount of zombies that spawn per round?
Post by: nugget850 on November 11, 2016, 07:47:03 pm
Is there a way I can change the amount of zombies that spawn per round? My map is pretty small and I would like the classic amount of zombies per round from World at War.
Title: Re: How to change the max amount of zombies that spawn per round?
Post by: Doodles_Inc on November 12, 2016, 04:56:53 pm
Yes, you can change the amount of zombies alive per round
Add <below> to your Usermap GSC Script in Function Main.
The default number is 24 and the maximum is 31.
Hope it helps ;)
Title: Re: How to change the max amount of zombies that spawn per round?
Post by: nugget850 on November 12, 2016, 08:38:14 pm
Doesn't that just change the maximum amount of zombies that can be alive at one time? I'm looking for something that will only spawn 24 zombies per round.
Title: Re: How to change the max amount of zombies that spawn per round?
Post by: reckfullies on November 12, 2016, 09:12:44 pm
Doesn't that just change the maximum amount of zombies that can be alive at one time? I'm looking for something that will only spawn 24 zombies per round.
The amount of zombies are calculated differently per round.
These are all the level vars I could find so you can just edit them in your mapname.gsc(NOTE: Don't edit the actual _zm.gsc file since it won't work)
Spoiler: click to open...
Title: Re: How to change the max amount of zombies that spawn per round?
Post by: nugget850 on November 12, 2016, 11:08:04 pm
I found this in the _zm.gsc
Could this possibly be modified to cap the amount of zombies there are per round?
Title: Re: How to change the max amount of zombies that spawn per round?
Post by: Xylozi on November 13, 2016, 04:02:46 pm
If you assign a function to level.max_zombie_func you can override the result from that function.
To do that, you'd add something like this to your mod/map:
You'd change myCustionFunction to the algorithm you want to use for the zombie count per round.