Skip to content

Hunter Cam 1.4: Lock-on in first person and Tank controls - #252

Open
Kyoskii wants to merge 1 commit into
masterfrom
plugin/hunter-cam-1.4
Open

Kyoskii wants to merge 1 commit into
masterfrom
plugin/hunter-cam-1.4

Conversation

@Kyoskii

@Kyoskii Kyoskii commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator

Two new Hunter Cam options, both off by default.

Lock-on in first person

The lock-on button did nothing in first person: the player's update drops the lock each frame the precision-shooting bit is set (0x1cf58a4 sets LOCK_TGT_MAN's reset, +0x2822), and first person's facing is that bit.

With Lock-on in first person on:

  • the check passes while the bit is the plugin's (the monocular's own check stands);
  • once the handler holds a target (ChrIns +0xf8, the lock point at +0x100), the plugin lets the bit go for the lock's length, so the hunter is the game's locked-on hunter: they face the target, strafe around it and sidestep;
  • the view stays at the eyes and eases onto the lock point; the mouse and right stick no longer turn it, they switch targets as the game has it;
  • on unlock the aim camera takes the angles the view had, so nothing jumps.

Tank controls

Tank controls plus Tank turn speed (degrees a second, 120 by default): the left stick's left and right (or A and D) turn the hunter instead of stepping sideways, forward and back walk and back away, and the view stays behind them, as in Resident Evil 4. It works over the shoulder and in first person.

How: hooks on the pad devices' updates (0x2a90090, 0x2a91870) run the update, keep the left stick's x for the plugin and hand the game a centred one; each frame it turns the aim camera's yaw. It only takes the stick while the plugin's aim is active and the player is playing: menus, rolls and a first-person lock keep the game's stick. Both features stand down with the facing in a cutscene or while another camera has the picture (aim_wanted()).

Checks

  • Headless in Central Yharnam (built on 1.3.2): the lock engaged on a huntsman's dog and the view tracked it, with a clean hand-back on unlock; tank turning ran at 120°/s with no sidestep; no crashes.
  • On master's 1.3.4: builds clean with -Wall -Wextra; plugin_abi_test passes.
  • Not tested: feel in windowed play, mouse flicks for switching targets, and the keyboard's A/D.

Limits: with Tank controls on, dodges only go forward or back. Over the shoulder with Tank controls or Always face the camera, the game still blocks lock-on; the new toggle covers first person only.

🤖 Generated with Claude Code

Lock-on in first person (off by default): the player's update drops the lock
each frame the precision-shooting bit is set (0x1cf58a4 sets LOCK_TGT_MAN's
reset, +0x2822), so the lock-on button did nothing in first person. With the
option on, that test passes while the bit is the plugin's (the monocular's own
check stands); once the handler holds a target (ChrIns +0xf8, the lock point
at +0x100) the plugin lets the bit go, so the hunter is the game's locked-on
hunter, and the view, still at the eyes, eases onto the lock point. The mouse
and the right stick switch targets as the game has it; on unlock the aim takes
the angles the view had.

Tank controls (off by default), Tank turn speed (120 degrees a second): the
left stick's sideways axis is taken where the game reads the pad (hooks on the
pad devices' updates, 0x2a90090 and 0x2a91870) and turns the aim's yaw, the
hunter facing it; forward and back walk and back away. Both stand down with
the facing in a cutscene or while another camera has the picture.

Checked headless in Central Yharnam on 1.3.2's base: the lock held on a
huntsman's dog and the view followed it, the turn ran at 120 degrees a second
with no sidestep. On master's 1.3.4 it builds clean (-Wall -Wextra).

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

Copy link
Copy Markdown

Test build of 6ea3d68: Windows zip, Linux tarball and Steam Deck kit, unsigned, kept 14 days.
Download windows, linux or steamdeck (each with its package), or release (everything), from the bottom of the run page:
https://github.com/droogie/bbhost/actions/runs/43744887115#artifacts

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