updated the previous client to exclude the correct indexes of previous clients
This commit is contained in:
parent
714dbe9571
commit
a479a6d9ac
@ -218,11 +218,11 @@ public Action Hook_SetTransmit(int target, int client)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//October 2023 edit: using OnGameFrame to just hide 1 player per frame. supposedly (a rumor) that is good enough to actually work.
|
//October 2023 edit: using OnGameFrame to just hide 5 player per frame. supposedly (a rumor) that is good enough to actually work.
|
||||||
public void OnGameFrame()
|
public void OnGameFrame()
|
||||||
{
|
{
|
||||||
static int client = 0;
|
static int client = 0;
|
||||||
int iterate_amount = 1;
|
int iterate_amount = 5;
|
||||||
for (int i = 0; i < iterate_amount; i++)
|
for (int i = 0; i < iterate_amount; i++)
|
||||||
{
|
{
|
||||||
//restart from the beginning
|
//restart from the beginning
|
||||||
@ -239,10 +239,10 @@ public void OnGameFrame()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int previous_client = client - 1;
|
int previous_client = client - (i + 1);
|
||||||
if (previous_client < 1)
|
if (previous_client < 1)
|
||||||
{
|
{
|
||||||
previous_client = MAXPLAYERS - 1;
|
previous_client = MAXPLAYERS - (i + 1);
|
||||||
}
|
}
|
||||||
for (int target = 1; target <= MaxClients; target++)
|
for (int target = 1; target <= MaxClients; target++)
|
||||||
{
|
{
|
||||||
@ -361,4 +361,3 @@ public void MenuHandler_CookieMenu(int client, CookieMenuAction action, any info
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user