lots of changes

This commit is contained in:
2026-10-22 16:17:56 +01:00
parent e4a75367aa
commit ac3ffd5be2
53 changed files with 7716 additions and 193 deletions
+1 -3
View File
@@ -12,7 +12,6 @@ bool g_bHasSomebodyToHide[MAXPLAYERS + 1];
/* INTEGERS */
int g_iHideRange[MAXPLAYERS+1];
int g_iLeader = 0;
int g_iHideCapacity = 8;
/* HANDLES */
@@ -203,7 +202,7 @@ public Action UpdateHide(Handle timer)
{
GetClientAbsOrigin(target, fOriginTarget);
//PrintToChatAll("%N--%N::::::%f", client, target, GetVectorDistance(fOriginTarget, fOriginClient, false));
if((GetVectorDistance(fOriginTarget, fOriginClient, true) <= float(g_iHideRange[client])) && (g_iLeader != target))
if((GetVectorDistance(fOriginTarget, fOriginClient, true) <= float(g_iHideRange[client])) && !Leader_Is(target))
{
g_bHidePlayers[client][target] = true;
g_bHasSomebodyToHide[client] = true;
@@ -219,7 +218,6 @@ public Action UpdateHide(Handle timer)
}
}
}
g_iLeader = Leader_CurrentLeader()
return Plugin_Continue;
}