Skip to content

Fix Freeze World character smearing/jittering and add KB+M controls for Free Cam - #149

Open
meotify wants to merge 4 commits into
borgCode:masterfrom
meotify:freeze-world-taa-and-freecam-kbm
Open

meotify wants to merge 4 commits into
borgCode:masterfrom
meotify:freeze-world-taa-and-freecam-kbm

Conversation

@meotify

@meotify meotify commented Nov 23, 2026

Copy link
Copy Markdown

Freeze World: Fix Character Smearing and Jittering

  • Disables Temporal Anti-Aliasing (TAA) while Freeze World is active by toggling the renderer's TAA override flag ([GxRenderer + 0x13A60] + 0x9), eliminating both character smearing and sub-pixel jittering on frozen entities.
  • Keeps the original IsWorldPaused patch intact, preserving frame advance with Triangle and avoiding any game speed workarounds.
  • Adds GxRenderer.Base (0x47F67C8 for 2.7.2 / 1.17.2) with an AOB pattern fallback in Pattern.cs and AobScanner.cs, plus null/base-address guards so other patches are unaffected.
  • Resets IsFreezeWorldEnabled = false in UtilityViewModel.OnGameNotLoaded() (matching IsFreeCamEnabled) so TAA and Freeze World restore cleanly on loading screens and warps.

Free Cam: Native Keyboard & Mouse Controls

  • Adds FreeCamInputController using Windows Raw Input (WM_INPUT) for smooth mouse look (yaw/pitch) and GetAsyncKeyState for movement:
    • W / S — forward / backward
    • A / D — strafe left / right
    • Space / Ctrl — move up / down
    • Shift — speed boost
  • Updates CSDebugCam directly via its 4x4 transform matrix (+0x10..+0x4F), requiring no new game offsets (works across all supported game versions) while keeping full gamepad Free Cam compatibility.
  • Blocks player action requests (Hooks.SetActionRequested) while Free Cam is active with player movement disabled (CamMode == 1), preventing Space, Shift, Ctrl, and gamepad buttons from triggering jumps, rolls, backsteps, or attacks on the character. Controls restore automatically when Free Cam is disabled or Enable Player Movement is enabled (and skips patching if ActionRequestIntercept hook is installed).

Tested on 1.17.2 (2.7.2):

  • Freezing mid-attack with AA High/Max: zero character smearing and zero jittering, Triangle frame advance works.
  • Free Cam movement (W/A/S/D, Space/Ctrl, Shift) and mouse look alongside gamepad Free Cam.
  • Verified Space/Shift/Ctrl no longer trigger player jump/backstep/roll while Free Cam is active without player movement, and restore immediately on toggle off or Enable Player Movement.

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