Skip to content

Instantly share code, notes, and snippets.

@ThomasJClark
Last active April 27, 2024 21:40
Show Gist options
  • Save ThomasJClark/4bbc6693a2425e5d1a571042d59cc750 to your computer and use it in GitHub Desktop.
Save ThomasJClark/4bbc6693a2425e5d1a571042d59cc750 to your computer and use it in GitHub Desktop.
An HKS snippet to disable ray tracing in ELDEN RING mods. Requires Scripts-Data-Exposer-FS.dll (https://discord.com/channels/529802828278005773/529900741998149643/1217831611274498138)
local WritePointerChain = 10000
local GAME_BASE = 0
local SIGNED_INT = 5
local CS_WINDOW = 0x4502490
function Update()
-- Copy this into the Update() function in action\script\c0000.hks to
-- disable ray tracin while your mod is loaded
act(WritePointerChain, GAME_BASE, SIGNED_INT, 0, CS_WINDOW, 0x120)
-- ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment