ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.72k stars 625 forks source link

[GoldSource/CS][Bug/Feature] Disable help & hud (autohelp) #2205

Open ArmynC opened 5 years ago

ArmynC commented 5 years ago

Block messages of the type "HudTextArgs" (ex. "Press the BUY key to purchase items")

This should be cvar toggleable.

Source & Code

I. The function is bugged. See Splatt581's reply II. There's no block for HUD/DHUD (as plugins messages). See perforatorRU's reply

mikela-valve commented 5 years ago

Are there definitely no HUD messages that should be displayed that this would suppress? If it's only help messages and nothing else this would be reasonable to add.

ArmynC commented 5 years ago

@mikela-valve So here are all the types of msg [ related bug #1170 ]

Also, for example, plugins display mostly work via dhud messages for plugins we would need a separate cvar (these messages are everywhere)..

I don't think that that will affect anything.. But I do not want to pronounce myself unknowingly.

@Mistrick @SamVanheer @voed any opinion?

perforatorRU commented 5 years ago

Can you add cvar "hud_msg 1/0" (For HUD and DHUD messages) like this "hud_saytext_internal 1/0" ?

Splatt581 commented 5 years ago

Auto-help in Counter-Strike is controlled by the setting, which is located in Options -> Multiplayer tab -> Advanced button. This setting adjusts the _ah key in the client userinfo.

1 1

The problem is that this key does not block all hints: yes, it will block the "Press the BUY key to purchase items" hint, which appears at the beginning of the round, but if a terrorist player tries to using the hostage, the hint will appear, regardless of the value key _ah.

1 2

ArmynC commented 5 years ago

So it was added in a later update but it is bugged? I'll change the tag then. PS: but it can't block other functions (see client_print, set_(d)hudmessage ...), right?

Also, this bug applies just to hostages?

Splatt581 commented 5 years ago

So it was added in a later update but it is bugged? I'll change the tag then. PS: but it can't block other functions (see client_print, set_(d)hudmessage ...), right?

Also, this bug applies just to hostages?

This functionality has been around for a long time. The bug with sending some autohelp messages is on the server side, the client side does not block any messages, such as hud, dhud and other.