just further adjustments to autism
This commit is contained in:
parent
d48a5b14c1
commit
c819974dd6
@ -186,11 +186,25 @@ public void OnMapStart()
|
|||||||
|
|
||||||
public Action addfakes(Handle timer)
|
public Action addfakes(Handle timer)
|
||||||
{
|
{
|
||||||
|
int fakes = 0;
|
||||||
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
|
{
|
||||||
|
if (IsClientConnected(i) && IsClientInGame(i) && IsClientAuthorized(i))
|
||||||
|
{
|
||||||
|
if (IsFakeClient(i) && !IsClientSourceTV(i))
|
||||||
|
{
|
||||||
|
fakes++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (fakes < 16)
|
||||||
|
{
|
||||||
CreateFake();
|
CreateFake();
|
||||||
if (GetRandomInt(0, 10) <= 3)
|
if (GetRandomInt(0, 10) <= 3)
|
||||||
{
|
{
|
||||||
SetFakeToTeam();
|
SetFakeToTeam();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -411,19 +425,7 @@ public void CheckPopulation()
|
|||||||
{
|
{
|
||||||
KickFakes();
|
KickFakes();
|
||||||
}
|
}
|
||||||
else if (iPlayers > 50 && iFakesInTeam + iFakesSpectate >= 10)
|
else if (iPlayers < 48)
|
||||||
{
|
|
||||||
KickFakes();
|
|
||||||
}
|
|
||||||
else if (iPlayers >= 46 && iFakesInTeam + iFakesSpectate > 16)
|
|
||||||
{
|
|
||||||
KickFakes();
|
|
||||||
}
|
|
||||||
else if (48 > iPlayers > 44 && iFakesSpectate + iFakesInTeam < 13)
|
|
||||||
{
|
|
||||||
ManageFakes(iPlayersSpectate, iPlayersInTeam, iFakesInTeam, iFakesSpectate);
|
|
||||||
}
|
|
||||||
else if (iPlayers < 42)
|
|
||||||
{
|
{
|
||||||
ManageFakes(iPlayersSpectate, iPlayersInTeam, iFakesInTeam, iFakesSpectate);
|
ManageFakes(iPlayersSpectate, iPlayersInTeam, iFakesInTeam, iFakesSpectate);
|
||||||
}
|
}
|
||||||
@ -469,15 +471,16 @@ public void KickFakes()
|
|||||||
|
|
||||||
public void ManageFakes(int iPlayersSpectate, int iPlayersInTeam, int iFakesInTeam, int iFakesSpectate)
|
public void ManageFakes(int iPlayersSpectate, int iPlayersInTeam, int iFakesInTeam, int iFakesSpectate)
|
||||||
{
|
{
|
||||||
if (iPlayersSpectate + iPlayersInTeam + 4 < iFakesSpectate + iFakesInTeam)
|
int limit = 16;
|
||||||
|
if (iPlayersSpectate + iPlayersInTeam + 4 < iFakesSpectate + iFakesInTeam || iFakesSpectate + iFakesInTeam > limit)
|
||||||
{
|
{
|
||||||
KickFakes();
|
KickFakes();
|
||||||
}
|
}
|
||||||
else if (iPlayersSpectate + iPlayersInTeam > iFakesSpectate + iFakesInTeam)
|
else if (iPlayersSpectate + iPlayersInTeam > iFakesSpectate + iFakesInTeam && iFakesSpectate + iFakesInTeam < limit)
|
||||||
{
|
{
|
||||||
CreateFake();
|
CreateFake();
|
||||||
int max = 3;
|
int max = 3;
|
||||||
if (iPlayersSpectate + iFakesSpectate > 16)
|
if (iPlayersSpectate + iFakesSpectate > limit)
|
||||||
{
|
{
|
||||||
max = 7;
|
max = 7;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user