probably last edits for now

This commit is contained in:
jenz 2026-04-07 11:32:34 +02:00
parent 13f4727826
commit 7e3ad44699

View File

@ -195,7 +195,7 @@ public void OnMapEnd()
//----------------------------------------------------------------------------------------------------
public Action RunPopulationCheck(Handle timer)
{
RequestFrame(CheckPopulation);
CheckPopulation();
return Plugin_Continue;
}
@ -406,13 +406,13 @@ public void CheckPopulation()
{
iPlayers = 16;
}
int iFakesInTeamNeeded = iPlayers / 5;
int iFakesInTeamNeeded = iPlayers / 2;
int iFakesNeeded = iPlayers;
iPlayers = 0;
for(int i = 1; i <= MaxClients; i++)
{
if(IsClientConnected(i) && IsClientInGame(i) && IsClientAuthorized(i) && !IsFakeClient(i) && !IsClientAutismBot(i) && !IsClientSourceTV(i) && GetClientTeam(i) > CS_TEAM_SPECTATOR)
if (IsClientConnected(i))
iPlayers++;
}
@ -448,7 +448,7 @@ public void CheckPopulation()
}
//LogMessage("specs: %i", specs);
if (specs >= 13 && iFakesNeeded > 0)
if (specs >= 14 && iFakesNeeded > 0)
{
iFakesInTeamNeeded = iFakes;
if (iFakes >= 5)
@ -458,7 +458,7 @@ public void CheckPopulation()
okay_to_change_count = true;
//LogMessage("iFakesInTeamNeeded: %i", iFakesInTeamNeeded);
}
else if (specs <= 10)
else if (specs <= 9)
{
iFakesInTeamNeeded = (iFakesNeeded / 5);
}
@ -519,7 +519,6 @@ public void CheckPopulation()
CS_SetClientClanTag(iIndex, "");
}
iFakes++;
}
if (iFakes > iFakesNeeded)