Repository navigation
Conversation
Hooks HUD_Redraw (cldll_func_t slot 3) and, behind dodstudio_debug_restyled_health, draws a TF2-like health plus in the 2D pass with plain GL quads: POV health from CHudDodIcons::m_iHealth, HLTV in-eye health from the HLTV message's per-player table. Pair with the stock cl_hud_health 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…849) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 20, 2026
Owner
Author
|
Merged
🤖 Generated with Claude Code |
This was referenced Oct 21, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release note: none
R&D proof for #849 (restyled HUD), not for merging as is. Part of #849.
What it does
engine.rsswaps one morecldll_func_tslot: 3,HUD_Redraw(checked againstF's table:client+0x2a5b0, exported asHUD_Redraw). The trampoline calls the client's own, thenrestyled_hud::after_redraw().restyled_hud.rs: withds_debug_restyled_health 1, draws the health as a TF2-like plus in the bottom-left corner in the engine's 2D pass, with plain untextured GL quads fromopengl32.dll(state pushed/popped). Filled from the bottom by the health left (cream > 50, amber > 25, red), with the number in seven-segment quads standing in for a real font.CHudDodIcons::m_iHealth(element+0x14, found by walkinggHUD's element list for the vftable).HLTVmessage keeps (client+0xe913c + player*0x30, After a seek in an HLTV demo, a player who is already scoped in shows no zoom #830).cl_hud_health 0, which hides DoD's own health block.Commands.txt,docs/dodstudio_commands.mdand the regeneratedconsole_commands_data.js.The write-up (every HUD element's primitives, what data exists in POV vs HLTV, options a/b/c, recommendation) is on #849.
Tests
cargo test -p goldsrc-hooks: 667 passed (4 new for the geometry helpers).clippy (1.98.1) host and
i686-pc-windows-msvc: clean.command_suggest.test.js: 15 passed.In game,
game_probe.py,ktps8w2-element_over_railyard_h2at 150 s (POV): PRE and POST, see the screenshots on [R&D] A restyled HUD for movies: how far can we move, resize and redraw DoD's HUD (a TF2-style look, for example) #849.Re-run after merging dev (In-game commands get shorter names grouped by what they change: ds_hud_hide_scoreboard and so on (#555) #719), PRE and POST, DLL rebuilt into
local\test-849\: same demo at 150 s,ds_debug_restyled_health 1draws the plus with "100" bottom left,0removes it. Reports:local\game-probe\882-ds-pre\,882-ds-post\(cmp.png). After the merge: hook tests (691), workspace tests, clippy (both targets), fmt andnpm run test:unitpass. The name is listed inconsole_prefix'sNEW_SINCE_555.Decisions
ds_debug_name: it's an R&D switch, not a setting (after In-game commands get shorter names grouped by what they change: ds_hud_hide_scoreboard and so on (#555) #719,ds_debug_restyled_health, as the Rename the in-game commands: area as the second word (spec_, hud_, world_...), and a shorter prefix #555 table lists it).deathmsg/font.rs's surface path.🤖 Generated with Claude Code