entWatch4: Use team of person you're spectating.
This commit is contained in:
parent
25a6dbef58
commit
36148dd1c3
@ -126,7 +126,14 @@ public Action OnDisplayHUD(Handle timer)
|
|||||||
|
|
||||||
int iTeamLine;
|
int iTeamLine;
|
||||||
if ((iTeamLine = GetClientTeam(client) - 2) < 0)
|
if ((iTeamLine = GetClientTeam(client) - 2) < 0)
|
||||||
continue;
|
{
|
||||||
|
int spectatingClient;
|
||||||
|
if ((spectatingClient = Client_GetObserverTarget(client)) < 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if ((iTeamLine = GetClientTeam(spectatingClient) - 2) < 0)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (sTeamLines[iTeamLine][0])
|
if (sTeamLines[iTeamLine][0])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user