MapChooser: Exclude bots from rtv count.
Commented out the old code instead of removing. For science!
This commit is contained in:
parent
324b5c55ae
commit
0e4b21116b
@ -154,7 +154,20 @@ public void OnPlayerChangedTeam(Handle event, const char[] name, bool dontBroadc
|
||||
|
||||
void UpdateRTV()
|
||||
{
|
||||
g_Voters = GetTeamClientCount(2) + GetTeamClientCount(3);
|
||||
g_Voters = 0;
|
||||
|
||||
for (int i=1; i<=MAXPLAYERS; i++)
|
||||
{
|
||||
if (IsClientInGame(i) && !IsFakeClient(i))
|
||||
{
|
||||
if (GetClientTeam(i) == 2 || GetClientTeam(i) == 3)
|
||||
{
|
||||
g_Voters++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// g_Voters = GetTeamClientCount(2) + GetTeamClientCount(3);
|
||||
g_VotesNeeded = RoundToFloor(float(g_Voters) * GetConVarFloat(g_Cvar_Needed));
|
||||
|
||||
if (!g_CanRTV)
|
||||
|
Loading…
Reference in New Issue
Block a user