Advertisement
sunbeam906

Untitled

Feb 23rd, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.46 KB | None | 0 0
  1. globalalloc(speedmult,4)
  2. speedmult:
  3. db 0
  4.  
  5. globalalloc(myCamera,12)
  6. myCamera:
  7. dq 0
  8.  
  9. {$lua}
  10.  
  11. if syntaxcheck then return end
  12. if freeCamT then freeCamT.destroy(); freeCamT = nil end
  13.  
  14. [ENABLE]
  15.  
  16. freeCamT = createTimer(nil, true)
  17. freeCamT.Interval = 5
  18. freeCamT.OnTimer = function(t)
  19.  
  20. -- check for alt+tab
  21. --local alttab = readFloat("ACOrigins.exe+3BBD6A0")
  22. --if alttab==0 then return end
  23.  
  24. --if node == nil then
  25. --  freeCamT.destroy()
  26. --  showMessage( "Something very wrong!" )
  27. --end
  28.  
  29. local node = getAddress("[[[ACOrigins.exe+4B18798]+A8]+0]")
  30.  
  31. --local radh = readFloat("[[[[ACOrigins.exe+4B18798]+A8]+0]+340]+C4") -- Horiz Rad
  32. local mult = readFloat("speedmult")
  33.  
  34.  
  35. --writeFloat("sinhmult",sinh)
  36. --writeFloat("coshmult",cosh)
  37.  
  38. --local sinv = math.sin(radv)
  39. --local cosv = math.cos(radv)
  40. --writeFloat("sinvmult",sinv)
  41. --writeFloat("cosvmult",cosv)
  42.  
  43. --readFloat("ACOrigins.exe+51B38D4") --sin
  44. --readFloat("ACOrigins.exe+51B38CC") --cos
  45.  
  46.  
  47.  
  48.   -- MOVEMENTS
  49.   if isKeyPressed(VK_T) then  -- move Forward
  50.     writeFloat(node + 0x60, readFloat(node + 0x60) - (readFloat("ACOrigins.exe+51B38D4") * mult))
  51.     writeFloat(node + 0x64, readFloat(node + 0x64) + (readFloat("ACOrigins.exe+51B38CC") * mult))
  52.   end
  53.   if isKeyPressed(VK_G) then  -- move Back
  54.     writeFloat(node + 0x60, readFloat(node + 0x60) + (readFloat("ACOrigins.exe+51B38D4") * mult))
  55.     writeFloat(node + 0x64, readFloat(node + 0x64) - (readFloat("ACOrigins.exe+51B38CC") * mult))
  56.   end
  57.   if isKeyPressed(VK_H) then  -- move Right
  58.     writeFloat(node + 0x60, readFloat(node + 0x60) + (readFloat("ACOrigins.exe+51B38CC") * mult))
  59.     writeFloat(node + 0x64, readFloat(node + 0x64) + (readFloat("ACOrigins.exe+51B38D4") * mult))
  60.   end
  61.   if isKeyPressed(VK_F) then  -- move Left
  62.     writeFloat(node + 0x60, readFloat(node + 0x60) - (readFloat("ACOrigins.exe+51B38CC") * mult))
  63.     writeFloat(node + 0x64, readFloat(node + 0x64) - (readFloat("ACOrigins.exe+51B38D4") * mult))
  64.   end
  65.  
  66.  
  67.   if isKeyPressed(VK_U) then  -- Move Up
  68.    writeFloat(node + 0x68, readFloat(node + 0x68) + (mult))
  69.   elseif isKeyPressed(VK_J) then  -- Move Down
  70.    writeFloat(node + 0x68, readFloat(node + 0x68) - (mult))
  71.   end
  72.  
  73.   if isKeyPressed(VK_B) then
  74.    writeFloat("speedmult", readFloat("speedmult") + 0.01) -- Increase Speed Mult
  75.   elseif isKeyPressed(VK_N) then
  76.    writeFloat("speedmult", 0.01) -- Decrease Speed Mult
  77.   else
  78.    writeFloat("speedmult", 0.11) -- Speed Mult Back to Normal
  79.   end
  80.  
  81.  
  82. end
  83.  
  84. [DISABLE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement