I assumed this would be easy but our inclusion of bots has left this in a
bit of a mess.

I was just using the CountPlayers function in the multiplay gamerules and
noticed that when I kick a bot it's still counted as a player.

ie.

I'm on the server alone, players == 1,
I add a bot, players == 2,
I kick the bot, players still == 2

Now the bot's not listed any more and the server doesn't count it in it's
player count, all that stuff is fine, just this isn't.

Now I presume I can just set edict->free to true when a bot disconnects to
rectify this (as UTIL_PlayerByIndex will ignore it then), but I don't want
to just do that without knowing if that's going to have more far flung
implications. Is this safe to do?

Paul

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to