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,8 +82,19 @@ public void OnThinkPost(int entity)
if(!g_RadarMode) if(!g_RadarMode)
return; return;
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); SetEntDataArray(entity, g_hPlayerSpotted, g_aSpottedPlayers, MAXPLAYERS+1, 1, true);
} }
}
public void Event_Spawn(Event event, const char[] name, bool dontBroadcast) public void Event_Spawn(Event event, const char[] name, bool dontBroadcast)