Repository navigation
feat: per-player HUD in Halo CE, 2, 3, ODST and Reach; Halo 2 ultrawide HUD option, Halo 4 HUD fit for every split view - #43
Merged
megabitt01 merged 10 commits intoNov 19, 2026
Conversation
…each What the per-player HUD reads and hooks: the player whose HUD is being drawn in Halo CE, 2, 3 and ODST (Reach's is XiaoDanny's DAT_CURRENT_HUD_PLAYER), the HUD canvas in Halo 3 and ODST (Reach's is PV_HUD_CANVAS), Halo 2's HUD view bounds and offset unit scale, Halo CE's hud_calculate_point and the view it places points in, and where Reach's per-widget transform ask returns. Also Halo 2's "HUD anchor: Centered" global and the je that skips its centred 16:9 HUD frame, with a COVER entry: a patch there relies on the jump's distance. Each has byte patterns (gen_patterns.py): offset_test finds all 237 patterned offsets exactly, 13 of them new. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs
With MCC's "HUD anchor: Centered" (the profiles' LockMaxAspectRatio, the default) and a screen wider than 16:9, Halo 2 insets the whole-screen HUD frame to a centred 16:9 box (0x954DD0) and splits that box among the players (0x7E0A40): every split-screen HUD bunched toward the middle of the screen and the crosshairs left their views' centres. A new embedded patch, "HUD at screen edges" (0x954DF2: je -> jmp, on by default), skips the inset - MCC's "HUD anchor: Edge" - so each player's HUD sits at the edges of their own view. It applies with one player too; unchecking it in Dev Tools brings "Centered" back. Nothing changes on a 16:9 or narrower screen. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs
Halo CE, 2, 3, ODST and Reach ask MCC's host for an override of each HUD element right before placing it (CGameManager vtable +0x300, then the anchor at +0x2F8), with the player being drawn in a global of their own, and Halo 3, ODST and Reach pass every HUD colour through +0x308. CGameManagerHud.cpp hooks the three and keeps MCC's answer; src/mcc/hud adds the drawing player's settings on top: - a size for the whole HUD; - a HUD area: the HUD's left and right elements moved to the sides of a centred box of another shape (Screen edges, 21:9, 16:9, 4:3); - each element's offset, size and visibility; - in Halo 3, ODST and Reach, a recolour toward a hue (whites and enemy reds keep theirs). A table per game gives its drawing-player global, MCC's element ids, the units its offsets are in (the HUD canvas, or Halo 2's pixels per unit scale) and which side of its HUD box each element is on. Halo CE adds the host's offsets to x only, so its offsets come from a hook on hud_calculate_point, added to each placed point in the view being drawn; its sizes and hiding go through the host. Reach asks for the motion sensor twice - once per view for the radar centre, again per widget - so the per-widget ask, told apart by its return address, is left to MCC. With a player's settings at their defaults nothing is added, and the callbacks' outputs are only written when there is something to add, so the games get MCC's answers as before. The settings live in memory for the session; nothing reads or writes a file. Each game's answers are a Feature of every offset they read: in an MCC build without one, that game's HUD is left as it is, logged once. Halo CE's require its hook's feature, and the hook moves points only while they're available. Halo 2's area presets also need the aspect-lock offsets to know where its HUD box is; without them they leave Halo 2's HUD alone. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs
A HUD item in the overlay's menu bar, after Splitscreen, opens a window with a tab per player: the whole HUD's size, its area, a recolour (hue and strength), each element's left/right, down/up, size and Hide, and Reset / Copy to all players. MCC::Hud::ImGuiContext draws it, as Splitscreen and Network draw theirs. Edits apply at once and last until MCC closes. Profile saving is off until the profiles are reworked, so the window writes no file, not even its place in imgui.ini (NoSavedSettings). Sliders clamp typed-in values to their ranges. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs
The HUD fit answered only for Left/Right halves. With the black bars removed a Top / Bottom view is 1280x360 HUD units for the two-player layout's 960x360, so its HUD kept to the left three quarters of the view, and on a screen that isn't 16:9 the split views took the whole screen's fit rather than their own. Every split view whose shape differs from its HUD layout now gets its own fit (reported by nanomohchine on my fork). A view its layout fits keeps the game's answers, as every stock view on a 16:9 screen does, so nothing changes there. The hook on the frame moves from splitscreen.cpp to hud_fit.cpp, under the fit's feature: it runs Left/Right's frame work when Left/Right's hooks are in (Splitscreen::Frame), then the fit's, so the bars-removed fit doesn't depend on Left/Right-only offsets. Left/Right still requires the fit's feature. Compute's extras stay on one axis: a view with room both ways (a Left/Right half wider than 16:9, a bars-removed view on 4:3) is centred one way only, since the world-marker projection cancels only Wide()'s extra. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs
The host's HUD callbacks, each game's drawing-player global and offset units, Reach's second motion-sensor ask and Halo 2's "HUD anchor: Centered" inset, in docs/REVERSE_ENGINEERING.md. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs
On a screen wider than 16:9 with MCC's "HUD anchor: Centered", the patch puts Halo 2's HUD at the view's edges with one player too, overriding that setting, so with it on by default a single player's ultrawide HUD didn't match an unmodified game. It's now off by default: turn it on in Dev Tools -> halo2 for split screen on an ultrawide or multi-monitor screen, where "Centered" bunches every player's HUD toward the middle. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs
The HUD window edited the settings in place - fields, and whole structs on Reset and Copy to all players - while the games' HUD callbacks read them on other threads: a data race, and a callback could see half of an edit (a new position with the old size, say). The settings now sit behind an SRW lock, as SplitscreenConfigStore's writes do. A callback copies the drawing player's settings whole under the shared lock and works from that copy; the window edits a copy and publishes it whole under the exclusive lock when something changed (to every player on Copy to all players). Player(), which handed out a mutable reference, becomes Settings(n), a copy, and SetSettings(n, hud), which publishes: what a profile would load and save. The once-per-game "stays off" log flag is an atomic too. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs
Halo 3, ODST and Reach ask MCC for the motion sensor while they set each view's HUD up, before they store that view's canvas (Halo 3 0x2ED267, then 0x2ED40C; ODST 0x3287F5, then 0x328991; Reach 0x2D96B7, then 0x2D984E): the canvas then is still the previous view's. Wherever the views differ in size - 3 players, Top / Bottom or Left/Right - the radar's offset and HUD area preset were worked out with another view's canvas. Every other element is asked for while the view's widgets are placed, after the canvas is set (Halo 3 0x2EDD80, ODST 0x3292E4, Reach 0x2D93A4). Each user's canvas is now kept from those asks (an atomic per game and user), and the motion sensor's ask gets its own view's, as of the frame before; until a view has been seen, the game's value is used as before. That is the canvas the game itself ends up with for the view, its ultrawide widening and Left/Right height included. Halo 2 reads its view bounds right after each ask, so it isn't affected. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs
megabitt01
pushed a commit
that referenced
this pull request
Nov 20, 2026
…Halo CE, 2, 3, ODST), a menu per player on the D-pad (#46) * fix: restore the Halo CE and Halo 2 HUD offsets lost merging #43 Merging master-chief into #43 (after #44) resolved the conflicts in the Halo CE and Halo 2 offset headers by keeping #44's side only, so the per-player HUD's offsets and byte patterns there were dropped while the code using them stayed: master-chief stopped compiling (C2065 'OFFSET_HALO2_PF_HUD_ASPECT_LOCK' in CModule.cpp, and the HUD files). Both blocks are kept now, as the two PRs had them: - offset_halo1.h / patterns_halo1.inc: hud_calculate_point, the HUD viewport bounds and the drawing player (3); - offset_halo2.h / patterns_halo2.inc: the "HUD anchor: Centered" je and global, the drawing player, the HUD view bounds and the offset unit scale (5). Only lines are added; the values and patterns are #43's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(offsets): spawning addresses for Halo CE, 2, 3 and ODST The addresses the spawn menus use, as DefOffsets with their byte patterns (gen_patterns.py; values and patterns as in the kirklandsig fork, same 1.3528 build): - Halo CE (11): the console-script compiler the commands come in through, the players array, tag iteration and lookup, object placement, creation, origin and lookup, actor_customize_unit and ai_attach_free; - Halo 2 (14): the console-script compiler, the tag table and names, the map's and the shared map's tag bases, the object headers and memory, object placement, creation and origin, ai_place and the living count; - Halo 3 (4): the tag base, the scenario, ai_place and the loaded-tag test (its tags header and object functions were already here); - ODST (9): the same as Halo 3's. Halo 2's ai_living_count (0x619B10) is a 13-byte thunk no pattern can find again, so the fork left it to the known build. The offset is now the function it jumps to (0x6198E0), which the spawn code calls with the thunk's own arguments (0, null, null). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs * feat(spawn): spawning in Halo CE, 2, 3 and ODST, and the Spawn window Vehicles, weapons, equipment and AI characters (their own side, ally or enemy, with a chosen weapon) in front of any player, ported from the kirklandsig fork (src/mcc/spawn): - Command: spawning calls into the game, so it runs on the game's thread through two fixed verbs registered in code, spawn_list and spawn, posted only by AlphaRing's menus. Halo 3 and ODST run them on their World tick (the task queue in module/entry/halo3/world.cpp and halo3odst/world.cpp, which only get a registration; one task a tick, as before). Halo CE and Halo 2 get them through MCC's execute_command ("HS: @ar ...") at their console-script compiler, which is hooked (module/entry/halo1/console.cpp, halo2/console.cpp): text starting with "@ar " goes to the registered handlers, anything else to the game unchanged. A task is dropped once another map has loaded (CGameManager::load_generation, counted from MCC's Loading state), and a handler's temporary edits to game data are put back if the game faults in one of its calls. - Backends: objects with each engine's object_placement_data_new and object_new. Halo CE characters are a unit armed by actor_customize_unit and given a free actor (ai_attach_free); Halo 2, 3 and ODST place a character by pointing the nearest starting location of an empty mission squad at the player for one ai_place, armed from the scenario's weapon palette, then putting it back. - The Spawn window, in the debug overlay's menu bar beside Splitscreen and HUD: player, page, search, side and weapon. It writes no file, its place in imgui.ini included (ImGuiWindowFlags_NoSavedSettings). Each game's spawning is an AlphaRing::Feature of every offset it uses, with the hook that runs its commands: the World hook's offset for Halo 3 and ODST; for Halo CE and Halo 2 the console hook is an EntryFeature that requires the spawning feature, so it goes in only with all of it. On an MCC build missing one of them the game offers no spawning. Halo 2's characters also need ai_place and the living count; without them objects still spawn. check_gates.py reviews gen3.cpp's features, which are built from each game's table of offsets, as in the fork. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs * feat(spawn): each player's own spawn menu, in their part of the screen In a campaign mission each player presses D-pad Down on their own controller and drives a menu in their own view while their Spartan holds still: LB / RB for the page (vehicles, weapons, equipment, characters, their HUD), up / down to choose, A to spawn in front of them, Y to refresh, B to close; on characters left / right picks the side and LT / RT the weapon. Ported from the kirklandsig fork (PlayerMenu.cpp), with what this tree needs: - Controllers: with AlphaRing's split screen on, get_key_state hands the menu the pad it has just read for that player (get_controller, the dashboard's assignment) and zeroes it while the menu has it, the press that opened it and the buttons held as it closes included. With one player MCC reads the pads itself, so player 1's menu reads the dashboard's player 1 controller (GetXInputGetState) and the game gets no input from player 1 while it's open. The keyboard-and-mouse player has no menu (the Spawn window is theirs). No menu opens while the debug overlay or the dashboard is up. - The button is spawn_menu_controller in alpha_ring_menu.cfg (a button or combo, NONE turns the menus off; DPAD_DOWN by default). It's only read: the default file MenuConfig writes is unchanged. - Drawing: ImGui also runs a frame while a menu is open and the overlays are hidden, with no cursor and no input fed to it (Window.cpp is unchanged), and RenderPlayerMenus draws on the foreground list. The menus use the dashboard's bundled Segoe UI at 34 px. - The HUD page (area, size, colour, reset) edits the player's settings through Hud::Settings / SetSettings, so like the HUD window's edits they last until MCC closes. Hud gets Supported() and kAreaNames. The fork's page also had SPLIT, ANNIV 3-4P and SPECIES rows; they're left out, as they save to alpha_ring_splitscreen.cfg or to the player's profile (the first two are in Dev Tools). Where the HUD page has no rows (Halo 4, or a build without the HUD's offsets) it isn't offered, and with no spawning either (Halo 4) the menu doesn't open. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs * feat(spawn): Halo CE Anniversary's three players get their menus in quarters With Anniversary graphics for 3-4 players, Halo CE draws three players in quarters, the fourth left black, where the menus were laid out for the Classic three-player layout (player 1 on the top half). The menus now follow what CE draws: Splitscreen::AnniversaryQuartersShown asks the CE module whether its quad mode drew at the last sync (QuadShown, false once the module unloads). Halo 2's mode keeps its own grid, player 1 on the top half, so its menus stay where they are. As in the kirklandsig fork's v2.0.1. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs * fix(spawn): don't lend a Halo 3 / ODST squad again before it's put back Halo 3 and ODST put a squad lent to a character spawn back 60 ticks later, as the engine reads its spawn point again while it finishes placing the actor. A second spawn in that time could pick the same squad - it still counts as empty while its actor is being placed, or when the placement failed - and save the first spawn's changes as the squad's own: the first restore put the original back, then the second put the changes back over it, and the mission's own squad kept the player's position, character, team and no objective for the rest of the map. A squad isn't lent again until its restore has run (the list starts over with each map, whose pending restores are dropped). The kirklandsig fork has the same gap; Halo 2 puts its squad back right after ai_place, so it doesn't. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs * fix(spawn): put Halo 3 / ODST squads back by ticks, not queued tasks A squad lent to a character spawn was put back by a task that queued itself 60 times. The kirklandsig fork's World queue ran every task due on a tick, so that was 61 ticks; this tree's queue runs one task a tick, so each restore step waited behind every other queued task: four spawns in a row kept each squad lent for about 244 ticks, and any other command stretched it further - the squad's borrowed definition stayed live to the mission's AI, and lent squads stayed out of later spawns, for that long. Command gets ScheduleAfter(game, ticks, task) and Tick(game): the World hooks call Tick at the start of each tick (one line each in module/entry/halo3/world.cpp and halo3odst/world.cpp), which counts ticks and runs every task due, beside the queue, which still runs one ordinary task a tick. A task is dropped if another map loads first, as queued ones are. The restore now runs on the 61st tick after the spawn's, as in the fork, however many commands are queued. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs * fix(spawn): keep each input held as a spawn menu closes, triggers too As a menu closed, the pad stayed with it while any of its buttons was held, and the triggers weren't counted: hold RT choosing a character's weapon, close with B, let go of B with RT still down, and RT reached the game at once (a shot; LT a grenade). It also held back every input, movement included, while any button at all was down, even one pressed after the menu closed. Now the menu records what's held as it closes, the triggers past XInput's threshold included, and takes each of those out of the pad the game gets until that input is released; everything else goes through. HandlePlayerInput edits the pad in place for that. With one player MCC reads the pad itself, so player 1 gets no input while anything is held back, as before but for the kept inputs only. The kirklandsig fork has the same trigger leak (its gate checks wButtons only). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs * fix(spawn): the debug overlay and the dashboard close open spawn menus A spawn menu couldn't open while the debug overlay or the dashboard was up, but one already open stayed open when either came up: with the dashboard, the menu kept taking that player's controller, so navigating the dashboard also moved through the menu and could spawn from it; with the debug overlay (which stops the game's input poll), the menu kept acting on the last pad it had seen, a held direction scrolling on. Now either overlay closes every open menu, on the input thread (HandlePlayerInput) and before the menus act in a frame (RenderPlayerMenus), whichever sees it first. What's held then stays out of the game until released, as with B. A menu opened again starts from the pad as it is: its press, a held direction and a held trigger aren't actions until released (the weapon turn's edge is set as the list's already was). The kirklandsig fork has the debug overlay half of this (an open menu acts on its last pad while the overlay is up); it has no dashboard. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs * fix(spawn): read what's held at a menu's close from the next pad A closing menu recorded what was held from the last pad it had seen: the previous poll's when an overlay closed it on the input thread, and on the render thread one poll old or more - a whole debug overlay's worth, as the overlay stops the game's input polls. A trigger first pulled in between wasn't recorded, so holding it through the close fired, or threw a grenade, with no new press. Closing now only marks the menu, and the first pad polled after it (HandlePlayerInput) gives what's held: no input has reached the game since the close, so that's everything held as it closed, plus at most what was pressed in the same poll. Each is kept from the game until released, as before. The kirklandsig fork doesn't record inputs at a close (its gate holds the whole pad while any button is down, and leaks triggers: the previous fix). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs * fix(spawn): only spawn from the catalog of the map that's loaded The catalog was dropped when a new map loaded only once a menu asked for a refresh, and the Spawn window asked at the end of its frame, after reading the catalog and posting a pick. Its first frame after another map of the same game had loaded (with the window hidden meanwhile) could still list the last map's items and spawn one: the reads checked the game, not the map, and the command, posted in the new map, passed the scheduler's map check - a tag or palette index of the last map's, so another object or character, or a tag the engine can't take. Halo CE and Halo 2 had no map check on their commands at all. - The catalog keeps the map load it was listed in, and Read, Size, Get and Spawn only use it in that map (Fresh). - Catalog::Spawn takes the item's index and looks the item and the weapon up under one lock, then posts the catalog's map with the command; CmdSpawn drops a command from another map ("Not spawned: the map changed"), in every game. - The Spawn window and the players' menus refresh before they read or pick anything in a frame. The kirklandsig fork has this in its Spawn window (its players' menus refresh before picking), and no map check on Halo CE and Halo 2 commands. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs * fix(spawn): find a local user's player through the game's own mapping A spawn menu belongs to a local user - the controller slot MCC polls - and every backend used that slot as an index into the players array, which only holds while the game hands out players in slot order. With any other mapping (a network co-op guest, a slot freed and refilled) a spawn went in front of another player, or found no player at all. Each backend now asks the game: - Halo 3 and ODST: their player mapping, through its input user -> player getter (OFFSET_HALO3_PF_PLAYER_OF_INPUT_USER 0xEE0D4, OFFSET_HALO3ODST_PF_PLAYER_OF_INPUT_USER 0x108EA8, new, with patterns). The mapping lives behind thread-local slot +0x110 (ODST +0x108): input user -> player int[4] at +0x4, player -> input user at +0x74, set together at 0xEDF70 (0x108D44), output users (views) from +0xB4 - the count the split-screen player count reads. - Halo CE: the same mapping, kept in its players globals (OFFSET_HALO1_PV_LOCAL_PLAYERS, already patterned): input user -> player at +0x4, set at 0xAE43FC with the unit at +0x14. - Halo 2: its handle per local player (Players::Handle, players globals +0xC, written by user index at 0x69E53A), OFFSET_HALO2_PV_RESPAWN joining the spawning feature. A user without a player spawns nothing, and each new offset is in the feature that gates its game's spawning, so a build without it offers none rather than falling back to the slot. The kirklandsig fork has the same assumption in all four games. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPJBucDk2kQ8oms9Kf7NLs --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
41 tasks
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.
Per-player HUD, PR 7 of the series: each player's own HUD size, area, element positions and colour in Halo CE, 2, 3, ODST and Reach, through MCC's own HUD callbacks. It also brings a Halo 2 ultrawide HUD option and a Halo 4 HUD fit for every split view shaped unlike its layout.
What players get
imgui.ini(NoSavedSettings).Settings(n)/SetSettings(n, hud)are the hooks a profile would load and save through later.0x954DF2, je -> jmp) skips the inset, which is MCC's "Edge". It's off by default because it applies with one player too, which would change a single player's ultrawide HUD.How it works
CGameManagertable at +0x300, then the anchor at +0x2F8). The player being drawn is in a global of each game's own. Halo 3, ODST and Reach pass every HUD colour through +0x308.CGameManagerHud.cpphooks the three and keeps MCC's answer, andsrc/mcc/hudadds the drawing player's settings on top.hud_calculate_point, added to each point placed in the view being drawn. Its sizes and hiding go through the host.splitscreen.cpptohud_fit.cpp, under the fit's feature. It runs Left/Right's frame work when Left/Right's hooks are in, then the fit's, so the bars-removed fit doesn't depend on Left/Right-only offsets. Left/Right still requires the fit.DefOffsetwith byte patterns. Reach's drawing player and canvas are XiaoDanny's existingDAT_CURRENT_HUD_PLAYERandPV_HUD_CANVAS. Each game's answers are a feature of every offset they read, so on an MCC build missing one, that game's HUD is left as it is (logged once).check_gates.pypasses.docs/REVERSE_ENGINEERING.md.Known limits
Testing (MCC 1.3528, Steam under Proton on Batocera; not on Windows)
master-chief(0335fe3, after feat: split screen side by side in every game, plus 3-4 player fixes (Halo CE, 2, ODST, 4) #40).check_gates.pypasses. The rebase onto feat: split screen side by side in every game, plus 3-4 player fixes (Halo CE, 2, ODST, 4) #40's squash brought no line changes.Doesn't depend on any open PR. #44 (Anniversary 3-4 players) also builds on #40 and adds lines at the same spots in
offset_halo1.h,offset_halo2.handpatterns_halo1/2.inc. Whichever of the two merges second needs a small rebase (keep both blocks), and I'll do it as soon as the first is in.🤖 Generated with Claude Code