RadarSpotAll: mode 1 (zm only) show spotted cts too

This commit is contained in:
BotoX 2019-11-03 21:38:11 +01:00
parent b7628fce22
commit 1ac5191046

View File

@ -82,7 +82,18 @@ public void OnThinkPost(int entity)
if(!g_RadarMode)
return;
SetEntDataArray(entity, g_hPlayerSpotted, g_aSpottedPlayers, MAXPLAYERS+1, 1, true);
if(g_RadarMode == 1)
{
for(int client = 1; client < MaxClients; client++)
{
if(g_aSpottedPlayers[client])
SetEntData(entity, g_hPlayerSpotted + client, 1, 1, true);
}
}
else
{
SetEntDataArray(entity, g_hPlayerSpotted, g_aSpottedPlayers, MAXPLAYERS+1, 1, true);
}
}