View Single Post
Re: Problem with bots on map change.
Old
  (#14)
happybattles
Member
 
Status: Offline
Posts: 15
Join Date: Apr 2006
Default Re: Problem with bots on map change. - 27-04-2006

Well, it's still kicking bots over and over and over and over again.

It's about once a second. If one person joins the server, then the map changes, it seems to do this... (pseudoscript)


Code:
 
while (bots < maxbots)
 
  addbot(botname)
 
if (playersingame > maxbots)
  kick(botname)
end if
 
wend
So, it first adds a bot, then checks to see if maxbots has been triggered. If there are too many players it kicks a bot to reduce the total players to maxbot. But then it checks again to see how many bots are there. It's an endless loop.

That's what I see happening anyways. I don't know how to make bots, but this might help.
  
Reply With Quote