Skip to content

Instantly share code, notes, and snippets.

@vinevi
vinevi / realtime.lua
Last active December 31, 2021 17:37
The mod removes pause from most of the gameplay mechanics.
-- Realtime mod v0.1
-- Removes pause from most of the game aspects
mem.nop(0x00425ff8) -- cast spell
mem.nop(0x004194b6) -- cast spell - select target
mem.nop(0x0042cd8a) -- cast screen
mem.nop(0x0042bef4) -- options screen
@vinevi
vinevi / zoom.lua
Last active April 24, 2021 15:42
MM6 - MMExtension - Camera Zoom (outdoor only)
local fovManager = {
FOV = 170,
increment = 4,
timer = nil
}
fovManager.update = function(self)
local hexFOV = '0x' .. bit.tohex(self.FOV);
mem.asmpatch(0x004789f5, 'AND EAX, ' .. hexFOV);
mem.call(0x004582cd)
@vinevi
vinevi / ui_toggle.lua
Last active April 24, 2021 15:43
MM6 - MMExtension - UI Toggle
local UIManager = {
isShown = true,
toggleState = true
}
UIManager.init = function(self)
self:initHooks()
function Keys.F12(t)
self:toggle()
end