Page 1 of 1
Hiding radar in csgo?
Posted: Fri Sep 01, 2017 2:43 am
by inf
Is this still possible to do?
Syntax: Select all
player.hidden_huds = HideHudFlags.RADAR
# and
player.hidden_huds = player.hidden_huds | HideHudFlags.RADAR
Don't seem to work.
Re: Hiding radar in csgo?
Posted: Fri Sep 01, 2017 3:51 am
by L'In20Cible
It used to works. What is your complete code?
Re: Hiding radar in csgo?
Posted: Fri Sep 01, 2017 4:40 am
by inf
Syntax: Select all
@PreEvent('player_spawn')
def _player_spawn(game_event):
client = client_manager.find_by_entity_index(index_from_userid(game_event.get_int('userid')))
if client is None:
return EventAction.CONTINUE
client.reset()
client.player.set_godmode(True)
# hide radar
client.player.hidden_huds = client.player.hidden_huds | HideHudFlags.RADAR
return EventAction.CONTINUE
Re: Hiding radar in csgo?
Posted: Fri Sep 01, 2017 5:10 am
by L'In20Cible
This is why. You are using PreEvent and that flag is reset when the players are spawning. Use a regular @Event.
Re: Hiding radar in csgo?
Posted: Fri Sep 01, 2017 6:27 am
by inf
L'In20Cible wrote:This is why. You are using PreEvent and that flag is reset when the players are spawning. Use a regular @Event.
This works, thanks!
Re: Hiding radar in csgo?
Posted: Thu Sep 07, 2017 6:11 pm
by decompile
Somehow only works for me when using it 1 tick after the player_spawn event.