entWatch4: Use team of person you're spectating.
This commit is contained in:
		
							parent
							
								
									4e07ce5f1a
								
							
						
					
					
						commit
						5d7b841833
					
				@ -126,8 +126,15 @@ public Action OnDisplayHUD(Handle timer)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			int iTeamLine;
 | 
								int iTeamLine;
 | 
				
			||||||
			if ((iTeamLine = GetClientTeam(client) - 2) < 0)
 | 
								if ((iTeamLine = GetClientTeam(client) - 2) < 0)
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									int spectatingClient;
 | 
				
			||||||
 | 
									if ((spectatingClient = Client_GetObserverTarget(client)) < 0)
 | 
				
			||||||
					continue;
 | 
										continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									if ((iTeamLine = GetClientTeam(spectatingClient) - 2) < 0)
 | 
				
			||||||
 | 
										continue;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (sTeamLines[iTeamLine][0])
 | 
								if (sTeamLines[iTeamLine][0])
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				Handle hMessage = StartMessageOne("KeyHintText", client);
 | 
									Handle hMessage = StartMessageOne("KeyHintText", client);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user