Skip to content

Instantly share code, notes, and snippets.

@vinevi
vinevi / realtime.lua
Last active Dec 1, 2021
The mod removes pause from most of the gameplay mechanics.
View realtime.lua
-- 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 Apr 24, 2021
MM6 - MMExtension - Camera Zoom (outdoor only)
View zoom.lua
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 Apr 24, 2021
MM6 - MMExtension - UI Toggle
View ui_toggle.lua
local UIManager = {
isShown = true,
toggleState = true
}
UIManager.init = function(self)
self:initHooks()
function Keys.F12(t)
self:toggle()
end