User File #638322849643526254

Upload All User Files

#638322849643526254 - Streemerz: Super Strength Emergency Squad Zeta Lua Script

4015S.lua
69 downloads
Uploaded 10/7/2023 2:16 PM by TASVideoAgent (see all 129)
lastXpos = 0
lastYpos = 0
lasttimer = 0
lastXcam = 0
lastYcam = 0
lagged = false
 
function Stuff()
    Xpos = memory.readbyte(0x4c1)
    Ypos = memory.readbyte(0x4c3)
    timer = memory.readbyte(0xd9)
    Xcam = memory.readbyte(0x368)
    Ycam = memory.readbyte(0x369)
    
    Xspd = Xpos - lastXpos
    Yspd = Ypos - lastYpos
    Xcamspd = Xcam - lastXcam
    Ycamspd = Ycam - lastYcam
    
    gui.text( 0, 8, string.format("X: %d\nY: %d",Xpos,Ypos))
    gui.text(170, 8, string.format("Xcam: %4d\nYcam: %4d",Xcam,Ycam))
    gui.text(115, 8, string.format("Tmr: %d",timer))
    gui.text(Xpos, Ypos, string.format("%.2f\n%.2f",Xspd,Yspd), "#00ff00ff")
 
    lastXpos = Xpos
    lastYpos = Ypos
    lasttimer = timer
    lastXcam = Xcam
    lastYcam = Ycam
 
end
 
function DetectLag()
    lagflag = true
end
function SetLag()
        if lagflag then
                emu.setlagflag(false);
                lagflag = false;
        else
                emu.setlagflag(true);
        end
end
memory.registerexecute(0xfd7d, DetectLag)
memory.registerexecute(0x802E, SetLag)
emu.registerafter(Stuff)