Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- globalalloc(speedmult,4)
- speedmult:
- db 0
- globalalloc(myCamera,12)
- myCamera:
- dq 0
- {$lua}
- if syntaxcheck then return end
- if freeCamT then freeCamT.destroy(); freeCamT = nil end
- [ENABLE]
- freeCamT = createTimer(nil, true)
- freeCamT.Interval = 5
- freeCamT.OnTimer = function(t)
- -- check for alt+tab
- --local alttab = readFloat("ACOrigins.exe+3BBD6A0")
- --if alttab==0 then return end
- --if node == nil then
- -- freeCamT.destroy()
- -- showMessage( "Something very wrong!" )
- --end
- local node = getAddress("[[[ACOrigins.exe+4B18798]+A8]+0]")
- --local radh = readFloat("[[[[ACOrigins.exe+4B18798]+A8]+0]+340]+C4") -- Horiz Rad
- local mult = readFloat("speedmult")
- --writeFloat("sinhmult",sinh)
- --writeFloat("coshmult",cosh)
- --local sinv = math.sin(radv)
- --local cosv = math.cos(radv)
- --writeFloat("sinvmult",sinv)
- --writeFloat("cosvmult",cosv)
- --readFloat("ACOrigins.exe+51B38D4") --sin
- --readFloat("ACOrigins.exe+51B38CC") --cos
- -- MOVEMENTS
- if isKeyPressed(VK_T) then -- move Forward
- writeFloat(node + 0x60, readFloat(node + 0x60) - (readFloat("ACOrigins.exe+51B38D4") * mult))
- writeFloat(node + 0x64, readFloat(node + 0x64) + (readFloat("ACOrigins.exe+51B38CC") * mult))
- end
- if isKeyPressed(VK_G) then -- move Back
- writeFloat(node + 0x60, readFloat(node + 0x60) + (readFloat("ACOrigins.exe+51B38D4") * mult))
- writeFloat(node + 0x64, readFloat(node + 0x64) - (readFloat("ACOrigins.exe+51B38CC") * mult))
- end
- if isKeyPressed(VK_H) then -- move Right
- writeFloat(node + 0x60, readFloat(node + 0x60) + (readFloat("ACOrigins.exe+51B38CC") * mult))
- writeFloat(node + 0x64, readFloat(node + 0x64) + (readFloat("ACOrigins.exe+51B38D4") * mult))
- end
- if isKeyPressed(VK_F) then -- move Left
- writeFloat(node + 0x60, readFloat(node + 0x60) - (readFloat("ACOrigins.exe+51B38CC") * mult))
- writeFloat(node + 0x64, readFloat(node + 0x64) - (readFloat("ACOrigins.exe+51B38D4") * mult))
- end
- if isKeyPressed(VK_U) then -- Move Up
- writeFloat(node + 0x68, readFloat(node + 0x68) + (mult))
- elseif isKeyPressed(VK_J) then -- Move Down
- writeFloat(node + 0x68, readFloat(node + 0x68) - (mult))
- end
- if isKeyPressed(VK_B) then
- writeFloat("speedmult", readFloat("speedmult") + 0.01) -- Increase Speed Mult
- elseif isKeyPressed(VK_N) then
- writeFloat("speedmult", 0.01) -- Decrease Speed Mult
- else
- writeFloat("speedmult", 0.11) -- Speed Mult Back to Normal
- end
- end
- [DISABLE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement