Quote:
Originally Posted by hlstriker
Here is the bug report that made me think this:
https://bugs.alliedmods.net/show_bug.cgi?id=5757
So if GetMaxHumanPlayers only returns the number of humans, then the only option for CS:GO is to use MaxClients which always returns 64. Is there no function to get the number of humans + bots so we don't need to iterate over 64 indexes every time when most of the time only 1/2 - 1/3 of those indexes will actually have players.
Even after adding bots to the server GetMaxHumanPlayers is still showing 16 (which is what I have maxplayers set to).
|
It's on a game-by-game basis since that function can be implemented differently in different games.
In this specific case, you can use it for the count of players that can be in the server, including bots, since CS:GO doesn't add bots beyond that count. It just uses them to replace humans when desired, up to that count.