Solved. See reply on the bottom for more infos.
Hi,
this has cost me way too much time and is starting to get annoying. Maybe somebody here has a solution for me.
The setup: All players are in the same team (T), mp_teammates_are_enemies is set to 1, CS:GO.
The issue: When a player dies and is spectating, he is able to see the spectator x-ray on other clients. SendConvarValue'ing
PHP Code:
mp_teammates_are_enemies 0
to just this client removes the x-ray, but in the same step allows usage of +cl_show_team_equipment, as well as shows the "arrow" above a player (this one:
http://i.kinsi.me/aako7EQV1jj+Rhuo.png)
What i need: A way to completely hide all this bullshit for spectators, so that spectator see no more than the person they are spectating. I've already tried to move the spectating client to CT (since i have a custom spectating solution where you can only spectate certain clients anways, so m_hObserverTarget is manually set), but that did not seem to fix this either.
Note: I am aware that using customplayerskins and then render_none'ing the players does fix this, however i'd really like to avoid this method, and its also not an accepted solution.
Reward: 5 CS:GO keys, after making sure that the solution works in my environment that is ofc.
__________________