mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 07:08:06 -05:00
Grief: add code for spawning bots
This commit is contained in:
@ -26,6 +26,7 @@ init()
|
||||
level thread set_grief_vars();
|
||||
level thread init_round_start_wait(5);
|
||||
level thread unlimited_zombies();
|
||||
//level thread spawn_bots(7);
|
||||
}
|
||||
|
||||
on_player_connect()
|
||||
@ -559,4 +560,16 @@ unlimited_zombies()
|
||||
|
||||
wait 1;
|
||||
}
|
||||
}
|
||||
|
||||
spawn_bots(num)
|
||||
{
|
||||
level waittill( "connected", player );
|
||||
|
||||
for(i = 0; i < num; i++)
|
||||
{
|
||||
bot = addtestclient();
|
||||
|
||||
wait 0.5; // need wait or bots don't spawn at correct origin
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user