Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[CS:S] Feature request: improve HudMsg (game_text) rendering – real opacity, background box, multi-color text

Open claymancss1337 opened this issue 1 month ago • 1 comments

Summary

Server plugins (SourceMod ShowHudText / ShowSyncHudText, and the game_text entity) rely on the HudMsg user message to show custom HUD text. In the current Steam version of CS:S this text is hard to read and very limited visually. I'd like to request three improvements.

1. Respect the alpha value (allow fully opaque text)

Even with alpha set to 255, HudMsg text is still rendered semi-transparent: the world behind the letters remains visible through them, which hurts readability on bright maps. Alpha 255 should render fully opaque text.

2. Optional background box

Add an optional background (e.g. a configurable color + alpha, with padding) drawn behind the HudMsg text, similar to how other HUD elements are drawn on a dark rounded panel.

3. Multiple colors in a single message

Allow more than one color inside the same message (e.g. inline color tags), so a label and a value can have different colors.

Current workaround and why it's not good enough

See the attached screenshot ("Listos: [0/10]"):

  • "Listos: [ ]" and "0/10" are two separate HudMsg messages on two channels, positioned so they overlap, just to get two colors.
  • The black box behind them is a r_screenoverlay VTF material.

Problems with this:

  • It uses 2 of the only 6 HudMsg channels for a single line of text.
  • The overlapping messages and the overlay don't stay aligned across different resolutions and aspect ratios.
  • There's only one screen overlay, so it conflicts with any other overlay the server or map uses.
  • Clients have to download the custom VTF.

Native support for opacity, a background box and multi-color text in HudMsg would remove all of these hacks and make server HUDs much more readable.

Environment

  • Counter-Strike: Source (Steam), current build
  • Dedicated server with SourceMod
Image

claymancss1337 avatar Oct 12 '26 18:10 claymancss1337

Hello @claymancss1337, this looks like it's the same feature request as #2. Closing as a duplicate.

kisak-valve avatar Oct 12 '26 19:10 kisak-valve