Hiding radar in csgo?

Please post any questions about developing your plugin here. Please use the search function before posting!
inf
Junior Member
Posts: 20
Joined: Mon Aug 07, 2017 2:46 am

Hiding radar in csgo?

Postby inf » Fri Sep 01, 2017 2:43 am

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.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Hiding radar in csgo?

Postby L'In20Cible » Fri Sep 01, 2017 3:51 am

It used to works. What is your complete code?
inf
Junior Member
Posts: 20
Joined: Mon Aug 07, 2017 2:46 am

Re: Hiding radar in csgo?

Postby inf » Fri Sep 01, 2017 4:40 am

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
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Hiding radar in csgo?

Postby L'In20Cible » Fri Sep 01, 2017 5:10 am

This is why. You are using PreEvent and that flag is reset when the players are spawning. Use a regular @Event.
inf
Junior Member
Posts: 20
Joined: Mon Aug 07, 2017 2:46 am

Re: Hiding radar in csgo?

Postby inf » Fri Sep 01, 2017 6:27 am

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!
decompile
Senior Member
Posts: 416
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Re: Hiding radar in csgo?

Postby decompile » Thu Sep 07, 2017 6:11 pm

Somehow only works for me when using it 1 tick after the player_spawn event.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 21 guests