Skip to content

R&D: a restyled health readout drawn by the hook (part of #849) - #882

Draft
ccoventry wants to merge 3 commits into
devfrom
rnd/restyled-hud-849
Draft

ccoventry wants to merge 3 commits into
devfrom
rnd/restyled-hud-849

Conversation

@ccoventry

@ccoventry ccoventry commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Release note: none

R&D proof for #849 (restyled HUD), not for merging as is. Part of #849.

What it does

  • engine.rs swaps one more cldll_func_t slot: 3, HUD_Redraw (checked against F's table: client+0x2a5b0, exported as HUD_Redraw). The trampoline calls the client's own, then restyled_hud::after_redraw().
  • restyled_hud.rs: with ds_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 from opengl32.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.
  • Pair with the stock cl_hud_health 0, which hides DoD's own health block.
  • Name added to Commands.txt, docs/dodstudio_commands.md and the regenerated console_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

Decisions

🤖 Generated with Claude Code

ccoventry and others added 2 commits October 19, 2026 21:54
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>
After #719 the R&D cvar is ds_debug_restyled_health (the #555 table).
Commands.txt and dodstudio_commands.md take dev's side with the row
re-added; console_commands_data.js regenerated; the name is listed in
console_prefix's NEW_SINCE_555.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ccoventry

Copy link
Copy Markdown
Owner Author

Merged dev in (after #719) at b1277402.

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant