When I spectate I can see that when a player look at one of his team mate he can see a small blue or orange circle depending on the team color which make it very easy to spot it a team mate.
When I play, I sometime shoot friendly because I dont see this circle and I need to look at the mini map in order to understand if this is one of my teammate or enemy.