Page 1 of 1

LuaPlayer.map_visibility :: boolean

Posted: Sat Nov 06, 2021 10:53 am
by AntiElitz
We have several scenarios where we want to have spectators observing the game in god mod. Unfortunately there does not seem to be any way to turn off the Player dots moving over the map. This is specifically annoying for spectators in an opponent force that are red dots and can be mistakes for enemies. On an allied Player you may turn off the dot by using LuaPlayer.color = {r = 0, g = 0, b = 0, a = 0}. However this wont remove the players Name from (mini-)map view.

Therefore a possibility to turn off the map visibility of any player (at best towards any specific force) would be appreciated.

Re: LuaPlayer.map_visibility :: boolean

Posted: Sat Nov 06, 2021 2:21 pm
by PFQNiet
Can't you use defines.controllers.spectator?

Re: LuaPlayer.map_visibility :: boolean

Posted: Mon Nov 08, 2021 6:07 pm
by AntiElitz
That doesn't fix the issue.

Re: LuaPlayer.map_visibility :: boolean

Posted: Mon Nov 08, 2021 6:37 pm
by Klonan
Is it only an issue with spectator controllers?

I don't see that its a problem if we hide them from enemy players, they are spectators, non participants, even just being somewhere is information leaking through the divide

Re: LuaPlayer.map_visibility :: boolean

Posted: Tue Nov 09, 2021 12:03 am
by Rseding91
I'm slightly confused. To make sure I'm understanding: you're asking for a way to hide spectator dots/names on the map from non-spectators?

Re: LuaPlayer.map_visibility :: boolean

Posted: Tue Nov 09, 2021 6:55 am
by mmmPI
None of my business, but that seems to be the request.

Like you're playing on a competitive server, building your thing, and you see red dots on the map coming at you, one need to make sure those are spectators, not ennemy, which is distracting.

And if you suddenly see 5 or 6 spectators dot/name that are coming from the ennemy side, slowly going at you while avoiding forest and cliff, you may have clues that they are spectating your ennemy attacking you and guess its position, which is more like cheating than just annoying.

Re: LuaPlayer.map_visibility :: boolean

Posted: Tue Nov 09, 2021 8:16 am
by boskid
Added LuaPlayer::show_on_map [RW] for 1.1.47.

Re: LuaPlayer.map_visibility :: boolean

Posted: Tue Nov 09, 2021 10:47 am
by AntiElitz
Thank you so much! That's really cool :)