[CS:GO] Removing Warmup HUD

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
velocity
Senior Member
Posts: 187
Joined: Sat May 10, 2014 6:17 pm

[CS:GO] Removing Warmup HUD

Postby velocity » Sun May 26, 2019 8:37 pm

Is it possible to remove only the warmup hud in CS:GO? The reason for this is, in the new cs:go update it is only possible to record demos in warmup or freezetime.
User avatar
Ayuto
Project Leader
Posts: 2022
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: [CS:GO] Removing Warmup HUD

Postby Ayuto » Tue May 28, 2019 7:20 pm

Do you mean the warmup countdown?
User avatar
velocity
Senior Member
Posts: 187
Joined: Sat May 10, 2014 6:17 pm

Re: [CS:GO] Removing Warmup HUD

Postby velocity » Wed May 29, 2019 6:27 pm

Yes,
User avatar
Ayuto
Project Leader
Posts: 2022
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: [CS:GO] Removing Warmup HUD

Postby Ayuto » Fri May 31, 2019 1:52 pm

I first thought that it's sent by a user message, but that wasn't the case. However, this works fine:

Syntax: Select all

from players.entity import Player
from events import Event
from players.constants import HIDEHUD_MISCSTATUS

@Event('player_say')
def player_say(event):
# Hide the warmup countdown if the player says something
player = Player.from_userid(event['userid'])
player.hidden_huds |= HIDEHUD_MISCSTATUS
User avatar
velocity
Senior Member
Posts: 187
Joined: Sat May 10, 2014 6:17 pm

Re: [CS:GO] Removing Warmup HUD

Postby velocity » Tue Jun 11, 2019 8:56 pm

Works, but it hides ALL menues !admin and other stuff
User avatar
Ayuto
Project Leader
Posts: 2022
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: [CS:GO] Removing Warmup HUD

Postby Ayuto » Tue Jun 11, 2019 9:08 pm

I don't think there is another way, because it seems to be controlled by the client.

There is one last thing you could try: send some fake convar values to the client using <Player>.send_convar_value() to make the client think he's not playing in warmup mode.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 7 guests