minor updates after talking in admin chat

This commit is contained in:
jenz 2025-12-11 01:13:07 +01:00
parent c72a911bcb
commit 8ff4eee7e0

View File

@ -502,68 +502,24 @@ public void CheckPopulation()
iFakes++;
}
int iFakesNeeded = 0;
int iFakesInTeamNeeded = 0;
int iFakesInTeamNeeded = iPlayers;
int iFakesNeeded = iPlayers;
int max = 2;
int min = 1;
if (iPlayers == 1)
{
max = iPlayers * 5;
min = 3;
}
else if (iPlayers < 6)
{
max = iPlayers * 3;
min = iPlayers * 2;
}
else if (iPlayers < 11)
{
max = iPlayers;
min = iPlayers;
}
else if (iPlayers < 20)
{
max = RoundToFloor(iPlayers * 0.5);
min = RoundToFloor(iPlayers * 0.5);
}
else if (iPlayers < 26)
{
max = RoundToFloor(iPlayers * 0.5);
min = RoundToFloor(iPlayers * 0.3);
}
else if (iPlayers < 36)
{
max = RoundToFloor(iPlayers * 0.3);
min = RoundToFloor(iPlayers * 0.1);
}
else
{
max = RoundToFloor(iPlayers * 0.3);
min = RoundToFloor(iPlayers * 0.1);
}
max += 3;
min += 2;
iFakesNeeded = GetRandomInt(min, max);
//iFakesNeeded = randomAmount - iPlayers;
if (iFakesNeeded < 0 || iPlayers > 50)
if (iPlayers > 50)
{
iFakesNeeded = 0;
iFakesInTeamNeeded = 0;
iFakesNeeded = 0;
}
else
else
{
iFakesInTeamNeeded = (iFakesNeeded / 4);
}
if (iFakesInTeamNeeded < 0 || iPlayers < 10)
if (iFakesInTeamNeeded < 0)
{
iFakesInTeamNeeded = 0;
}
if(g_iAdminFakes != -1)
iFakesNeeded = g_iAdminFakes;
if (iFakes != iFakesNeeded)
{
@ -620,7 +576,7 @@ public void CheckPopulation()
g_bBlockInstantFakeConnects = true;
}
while (iFakes > iFakesNeeded)
if (iFakes > iFakesNeeded)
{
for(int i = 1; i <= MaxClients; i++)
{