did not actually change that much, maybe it just shows more than actual is changed due to tabs/spaces

This commit is contained in:
jenz 2024-05-01 11:21:54 +02:00
parent aaec53ec79
commit 5ecfc920c4

View File

@ -345,10 +345,6 @@ public void CheckPopulation()
iPlayers--; iPlayers--;
} }
bool bServerDying;
if(iPlayers < (g_iPopulation - 10))
bServerDying = true;
int iFakes = 0; int iFakes = 0;
int iFakesInTeam = 0; int iFakesInTeam = 0;
@ -361,66 +357,16 @@ public void CheckPopulation()
int iFakesNeeded = 0; int iFakesNeeded = 0;
int iFakesInTeamNeeded = 0; int iFakesInTeamNeeded = 0;
if(bServerDying) //24 to account for 4 autismbots.
{ iFakesNeeded = 24 - RoundToFloor(iPlayers / 1.5);
if (iPlayers > 45) if (iFakesNeeded < 0)
{
iFakesNeeded = 6;
iFakesInTeamNeeded = 2;
}
else if (iPlayers > 20)
{
iFakesNeeded = 7;
iFakesInTeamNeeded = 3;
}
else if (iPlayers > 10)
{
iFakesNeeded = 6;
iFakesInTeamNeeded = 2;
}
else
{
iFakesNeeded = 5;
iFakesInTeamNeeded = 0;
}
}
else
{
if (iPlayers > 61)
{ {
iFakesNeeded = 0; iFakesNeeded = 0;
iFakesInTeamNeeded = 0; iFakesInTeamNeeded = 0;
} }
else if(iPlayers > 59)
{
iFakesNeeded = 1;
iFakesInTeamNeeded = 0;
}
else if(iPlayers > 57)
{
iFakesNeeded = 2;
iFakesInTeamNeeded = 1;
}
else if(iPlayers > 55)
{
iFakesNeeded = 3;
iFakesInTeamNeeded = 1;
}
else if (iPlayers > 20)
{
iFakesNeeded = 5;
iFakesInTeamNeeded = 2;
}
else if (iPlayers > 10)
{
iFakesNeeded = 5;
iFakesInTeamNeeded = 1;
}
else else
{ {
iFakesNeeded = 5; iFakesInTeamNeeded = iFakesNeeded / 3;
iFakesInTeamNeeded = 0;
}
} }
if(g_iAdminFakes != -1) if(g_iAdminFakes != -1)