just some minor adjustments to placing fakes on teams
This commit is contained in:
parent
fca3e99528
commit
72bd0c3ce5
@ -515,34 +515,36 @@ public void CheckPopulation()
|
|||||||
}
|
}
|
||||||
else if (iPlayers < 6)
|
else if (iPlayers < 6)
|
||||||
{
|
{
|
||||||
max = iPlayers * 5;
|
max = iPlayers * 3;
|
||||||
min = iPlayers * 2;
|
min = iPlayers * 2;
|
||||||
}
|
}
|
||||||
else if (iPlayers < 11)
|
else if (iPlayers < 11)
|
||||||
{
|
{
|
||||||
max = RoundToFloor(iPlayers * 1.5);
|
max = iPlayers;
|
||||||
min = iPlayers;
|
min = iPlayers;
|
||||||
}
|
}
|
||||||
else if (iPlayers < 20)
|
else if (iPlayers < 20)
|
||||||
{
|
{
|
||||||
max = iPlayers;
|
max = RoundToFloor(iPlayers * 0.5);
|
||||||
min = RoundToFloor(iPlayers * 0.5);
|
min = RoundToFloor(iPlayers * 0.5);
|
||||||
}
|
}
|
||||||
else if (iPlayers < 26)
|
else if (iPlayers < 26)
|
||||||
{
|
{
|
||||||
max = iPlayers;
|
max = RoundToFloor(iPlayers * 0.5);
|
||||||
min = RoundToFloor(iPlayers * 0.3);
|
min = RoundToFloor(iPlayers * 0.3);
|
||||||
}
|
}
|
||||||
else if (iPlayers < 36)
|
else if (iPlayers < 36)
|
||||||
{
|
{
|
||||||
max = RoundToFloor(iPlayers * 0.5);
|
max = RoundToFloor(iPlayers * 0.3);
|
||||||
min = RoundToFloor(iPlayers * 0.3);
|
min = RoundToFloor(iPlayers * 0.1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
max = RoundToFloor(iPlayers * 0.3);
|
max = RoundToFloor(iPlayers * 0.3);
|
||||||
min = RoundToFloor(iPlayers * 0.1);
|
min = RoundToFloor(iPlayers * 0.1);
|
||||||
}
|
}
|
||||||
|
max += 3;
|
||||||
|
min += 2;
|
||||||
|
|
||||||
iFakesNeeded = GetRandomInt(min, max);
|
iFakesNeeded = GetRandomInt(min, max);
|
||||||
//iFakesNeeded = randomAmount - iPlayers;
|
//iFakesNeeded = randomAmount - iPlayers;
|
||||||
@ -553,7 +555,7 @@ public void CheckPopulation()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
iFakesInTeamNeeded = iFakesNeeded / 3;
|
iFakesInTeamNeeded = (iFakesNeeded / 4);
|
||||||
}
|
}
|
||||||
if (iFakesInTeamNeeded < 0)
|
if (iFakesInTeamNeeded < 0)
|
||||||
{
|
{
|
||||||
@ -640,9 +642,9 @@ public void CheckPopulation()
|
|||||||
iFakesInTeam++;
|
iFakesInTeam++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iFakes == iFakesNeeded && iFakesInTeam != iFakesInTeamNeeded && g_iAdminFakes == -1)
|
if (iFakesInTeam != iFakesInTeamNeeded && g_iAdminFakes == -1)
|
||||||
{
|
{
|
||||||
while (iFakesInTeam < iFakesInTeamNeeded)
|
if (iFakesInTeam < iFakesInTeamNeeded)
|
||||||
{
|
{
|
||||||
for(int i = 1; i <= MaxClients; i++)
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
@ -656,7 +658,7 @@ public void CheckPopulation()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (iFakesInTeam > iFakesInTeamNeeded)
|
if (iFakesInTeam > iFakesInTeamNeeded)
|
||||||
{
|
{
|
||||||
for(int i = 1; i <= MaxClients; i++)
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user