Files
Thomas MartinandClaude Opus 5.5 dbb8c73b23 Widescreen: the HUD at the 16:9 edges
The match HUD's two clusters are hier meshes on coordinate systems the game
hangs in front of the camera each frame (Hud::updateHUDPosition 0x13CC90:
the view's matrix, its translation plus the cluster's camera-space offset,
Hud + 0x810 the radar's, + 0x820 the weapon's; x right, y the depth). Seen
through the same focal length they kept their 4:3 places. With the views
wide, each cluster's x goes out by the width gained on its side,
(w - 640) / 2 * y / D (D the views' focal length, viewFovH), for the call,
and is put back after it, so a narrowed view finds the game's values. The
radar's centre and blips follow (computed in the same call); the markers
and bars over the cars are the world's.

The game reaches Hud::updateHUDPosition and Hud::Update by a jump from
TheGame::HudUpdateHUDPosition (0x15BD20) and TheGame::HudUpdate
(0x15BD40), so those are the ones overridden (a jump does not reach an
override). The HUD text Hud::Update draws from a 640 layout through
fontSpritePrintXY / CenteredXY (the ammo count and KILLS on the right,
DEMO in the middle) goes with its cluster: x past 400 by the width gained,
past 240 by half of it.

Checked: the 11 native suites pass; the 1P and 4P replays match main on
every recorded field, RAM image and sound; the pinned boot and match1p
checks match. Hidden window runs with widescreen on: the radar, name and
health at the top left, the weapon panel, its ammo count, energy and lives
at the bottom right, in the single view and the rear-view layout; the
markers over the cars on them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 02:16:41 +01:00
..
2026-11-27 01:12:43 +01:00
2026-11-27 01:12:43 +01:00
2026-11-27 01:12:43 +01:00