RadarSpotAll: mode 1 (zm only) show spotted cts too
This commit is contained in:
parent
b7628fce22
commit
1ac5191046
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user