mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-09 14:49:26 -05:00
Remove bot spawn test code
This commit is contained in:
parent
0ec81ce712
commit
61c5ff605f
@ -91,7 +91,6 @@ init()
|
|||||||
level thread unlimited_powerups();
|
level thread unlimited_powerups();
|
||||||
level thread save_teams_on_intermission();
|
level thread save_teams_on_intermission();
|
||||||
level thread all_voice_on_intermission();
|
level thread all_voice_on_intermission();
|
||||||
level thread spawn_bots();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
grief_gamemode_hud()
|
grief_gamemode_hud()
|
||||||
@ -3432,32 +3431,3 @@ increment_score(team, amount = 1, show_lead_msg = true, score_msg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
spawn_bots()
|
|
||||||
{
|
|
||||||
bot_amount = getDvarIntDefault("scr_bot_count_zm", 0);
|
|
||||||
|
|
||||||
level waittill("connected", player);
|
|
||||||
|
|
||||||
wait 1;
|
|
||||||
|
|
||||||
level.bots = [];
|
|
||||||
|
|
||||||
for (i = 0; i < bot_amount; i++)
|
|
||||||
{
|
|
||||||
if (get_players().size == 8)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// fixes bot occasionally not spawning
|
|
||||||
while (!isDefined(level.bots[i]))
|
|
||||||
{
|
|
||||||
level.bots[i] = addtestclient();
|
|
||||||
}
|
|
||||||
|
|
||||||
level.bots[i].pers["isBot"] = 1;
|
|
||||||
|
|
||||||
wait 1;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user