No, not one, three. But all three are really simple functions that only return player counts.
Total clients (including bots), go to 32 here:
Code:
00752638 <_ZNK18CServerGameClients15GetPlayerLimitsERiS0_S0_>:
752638: 8b 4c 24 08 mov 0x8(%esp),%ecx
75263c: c7 01 12 00 00 00 movl $0x12,(%ecx)
752642: 8b 44 24 0c mov 0xc(%esp),%eax
752646: c7 00 12 00 00 00 movl $0x12,(%eax)
75264c: 8b 11 mov (%ecx),%edx
75264e: 8b 44 24 10 mov 0x10(%esp),%eax
752652: 89 10 mov %edx,(%eax)
752654: c3 ret
Number of human clients after which server begins to reject new human clients:
Code:
005c3d48 <_Z20GetNumPlayersForMode8GameMode>:
5c3d48: 8b 54 24 04 mov 0x4(%esp),%edx
5c3d4c: b8 04 00 00 00 mov $0x4,%eax
5c3d51: 83 fa 06 cmp $0x6,%edx
5c3d54: 77 07 ja 5c3d5d <_Z20GetNumPlayersForMode8GameMode+0x15>
5c3d56: 8b 04 95 94 5f f0 00 mov 0xf05f94(,%edx,4),%eax
5c3d5d: f3 c3 repz ret
And finally number of human client slots visible in server queries:
Code:
005a79d0 <_ZNK16CTerrorGameRules18GetMaxHumanPlayersEv>:
...
5a7aa6: ba 04 00 00 00 mov $0x4,%edx
5a7aab: 85 c0 test %eax,%eax
5a7aad: 75 06 jne 5a7ab5 <_ZNK16CTerrorGameRules18GetMaxHumanPlayersEv+0xe5>
5a7aaf: 90 nop
5a7ab0: ba 08 00 00 00 mov $0x8,%edx
5a7ab5: 89 d0 mov %edx,%eax
5a7ab7: 83 c4 0c add $0xc,%esp
5a7aba: c3 ret
Ok, there is also a 4th non-essential one, for max players visible in steam group servers:
Code:
0002982c <_ZN11CMatchTitle27GetTotalNumPlayersSupportedEv>:
2982c: b8 08 00 00 00 mov $0x8,%eax
29831: c3 ret