Spawn those bots!
self.items is the number of teams to spawn self.frags is the number of players per team
- THIS IS RUN AS AN ENTITY'S .think FUNCTION.
- As we cannot do this in for (while) loops because there are no arrays, we have to explicitly say ``spawn a bot with team 2''. There is a short way to do this; just test if ag_numteams is greater than 0/1/2/3 and if it is, spawn botsperteam with the currently-being-tested team's colours and name (done in a for (while) loop).
- Also we have to wait before spawning the members on each team so that we don't overflow the server. For this reason, we set up an entity to do the actual spawning.
- Keeps track of how many teams it has spawned with self.state. This isn't an exact count of how many teams we've spawned, because we need to remove ourself when we get to the end (hence going all the way to state 4 even when we only spawn 2 teams).
- We add players gradually, too. self.lip keeps track of how many we've added for each team.
Definition at line 461 of file misc.mqc.
References create_bot(), snap_misc_bottomforteamnum(), and snap_misc_topforteamnum().
Referenced by agh_world_padclients().