Modme Forums
Menu:

How to get infinite/endless zombies spawning

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


Maxxan4:

Hey.
Im very new too this scripting/modding.
I Have tried a few scripts here on the site but it havent worked.
if someone have a .gsc file for infinite spawns for the start map you get in the bo3 mod tool please could i get a copy.
me and my friends just wanna have a endless game too just kill never ending zombies spawning.
(by never ending i mean i want more than 30 too spawn at the sametime)
script i tried latest :
#using scripts\codescripts\struct;

#using scripts\shared\array_shared;
#using scripts\shared\callbacks_shared;
#using scripts\shared\clientfield_shared;
#using scripts\shared\compass;
#using scripts\shared\exploder_shared;
#using scripts\shared\flag_shared;
#using scripts\shared\laststand_shared;
#using scripts\shared\math_shared;
#using scripts\shared\scene_shared;
#using scripts\shared\util_shared;

#insert scripts\shared\shared.gsh;
#insert scripts\shared\version.gsh;

#insert scripts\zm\_zm_utility.gsh;

#insert scripts\shared\shared.gsh;

#using scripts\zm\_load;
#using scripts\zm\_zm;
#using scripts\zm\_zm_audio;
#using scripts\zm\_zm_powerups;
#using scripts\zm\_zm_utility;
#using scripts\zm\_zm_weapons;
#using scripts\zm\_zm_zonemgr;

#using scripts\shared\ai\zombie_utility;

//Perks
#using scripts\zm\_zm_pack_a_punch;
#using scripts\zm\_zm_pack_a_punch_util;
#using scripts\zm\_zm_perk_additionalprimaryweapon;
#using scripts\zm\_zm_perk_doubletap2;
#using scripts\zm\_zm_perk_deadshot;
#using scripts\zm\_zm_perk_juggernaut;
#using scripts\zm\_zm_perk_quick_revive;
#using scripts\zm\_zm_perk_sleight_of_hand;
#using scripts\zm\_zm_perk_staminup;

//Powerups
#using scripts\zm\_zm_powerup_double_points;
#using scripts\zm\_zm_powerup_carpenter;
#using scripts\zm\_zm_powerup_fire_sale;
#using scripts\zm\_zm_powerup_free_perk;
#using scripts\zm\_zm_powerup_full_ammo;
#using scripts\zm\_zm_powerup_insta_kill;
#using scripts\zm\_zm_powerup_nuke;
//#using scripts\zm\_zm_powerup_weapon_minigun;

//Traps
#using scripts\zm\_zm_trap_electric;

#using scripts\zm\zm_usermap;

//*****************************************************************************
// MAIN
//*****************************************************************************

function main()

{

level.dog_rounds_allowed = false;

function infinite_zombies()
{
spawner = GetEnt("zombie_spawner","script_noteworthy");

zm_count = zombie_utility::get_current_zombie_count();

while(1)
{
while(zm_count<100)
{
zombie = zombie_utility::spawn_zombie( spawner );

zm_count = zombie_utility::get_current_zombie_count();

wait(1);
}
zm_count = zombie_utility::get_current_zombie_count();
wait(5);
}
}


Spiki:

First of all use code tags.

If you want the rounds to continue, use this

otherwise

function catwalk_spawning()
{
    level endon("end_catwalk_spawning");

    spawner = GetEnt("zombie_spawner","script_noteworthy");
    zm_count = zombie_utility::get_current_zombie_count();

    while(1)
        {   
        while(zm_count&lt;30)
            {
            level.zombie_total = 10;
            zombie = zombie_utility::spawn_zombie( spawner );
            zm_count = zombie_utility::get_current_zombie_count();
            wait(0.1);
            }
        zm_count = zombie_utility::get_current_zombie_count();
        wait(5);
        }
}

To control max AI in game at a time:
zombie_utility::set_zombie_var( "zombie_max_ai", 32, false, column );


Maxxan4:

Thanks ill try this


Maxxan4:

Hey again hehe, tried the script and when i loaded the map in bo3 i got this.
ERROR
Server disconnected - clientfield mismatch


Spiki:

Hey again hehe, tried the script and when i loaded the map in bo3 i got this.
ERROR
Server disconnected - clientfield mismatch

not from my script


Maxxan4:

not from my script

hey is there any chance u could fix me a map with the script in it? or make a youtube tutorial?
like what i want is that zombies will constantly spawn like never stop spawning
but im too stupid too understand scripts... so i dont get things too work or i dont know what im doing too be honest -__-


ironratchett:

How to increase the time limit to infinite