Skip to content

Fix animated HUD FOV#199

Merged
themrdemonized merged 1 commit intothemrdemonized:landerfrom
Lander-Modding:animated-hud-fov-fix
May 1, 2025
Merged

Fix animated HUD FOV#199
themrdemonized merged 1 commit intothemrdemonized:landerfrom
Lander-Modding:animated-hud-fov-fix

Conversation

@ProfLander
Copy link
Contributor

The nearwall changes inadvertently replaced HUD FOV interpolation with an interpolation on the near-wall factor, failing to cover the case where HUD FOV changes outside of nearwall.

I've removed the animation from the base factor, reinstated it on HUD FOV, added a new animated value for the positional offset, and restructured the interface as appropriate. It now exposes the animated values via dumb non-virtual getters, and their target values via virtuals, allowing CWeapon to modify as needed without needing to know about any interpolation.

- Separate CHUDItem getters for current and target HUD FOV / nearwall offset
- Switched from interpolating base factor to interpolating final quantities
- Updated CWeapon overrides accordingly
@themrdemonized themrdemonized changed the base branch from all-in-one-vs2022-wpo to lander May 1, 2025 15:20
@themrdemonized themrdemonized merged commit fe498bd into themrdemonized:lander May 1, 2025
9 of 10 checks passed
@ProfLander ProfLander deleted the animated-hud-fov-fix branch May 24, 2025 06:12
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.

2 participants