Repository navigation
Conversation
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>
|
Test build of 6ea3d68: Windows zip, Linux tarball and Steam Deck kit, unsigned, kept 14 days. |
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.
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 (
0x1cf58a4sets LOCK_TGT_MAN's reset,+0x2822), and first person's facing is that bit.With Lock-on in first person on:
+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;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
-Wall -Wextra;plugin_abi_testpasses.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