Answered BO3 Change Zombie Spawn Delay code?

Guilherme_INFR

Veteran
Messages
82
Reaction score
21
Points
793
I'm trying to add a option to change the Spawn delay of the zombies to a Mod Menu but i just can't find the code for this anywere on the web.
Could someone please post the code here?

I've seen it on some Mod Menus.

Edit: Nevermind i finally got it working :smile:
 
Last edited:

ytjusteli

Known Member
Messages
2
Reaction score
0
Points
101
hey ik it been years from when u post it but what is the spawn delay code?? i been working on a map and zombies take to long to be hard
 

VUFLUB22

Insane-Known Member
Messages
1
Reaction score
0
Points
351
Here

C++:
ZombieInstantSpawn()
{
    level.ZombieInstantSpawn = isDefined(level.ZombieInstantSpawn) ? undefined : true;
    while(isDefined(level.ZombieInstantSpawn))
    {
        level.zombie_utility["zombie_spawn_delay"].func_get_zombie_spawn_delay =  zombie_utility::set_zombie_var("zombie_spawn_delay", 0.001, false);
        wait 0.025;
    }
}

Just add a toggle to ZombieInstantSpawn and that's it :smile:
 
Last edited by a moderator:
Top