Suppenbiatch

Untitled

Nov 17th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.73 KB | None | 0 0
  1. local base ="[[[[GlimpseGame.exe+03976680]+B8]+90]+160]+17"
  2. local waypoint="[[[[[[GlimpseGame.exe+037515E0]+130]+50]+20]+380]+90]+1C"
  3.  
  4. local stamina="[[[[[GlimpseGame.exe+03976AF0]+30]+440]+360]+A0]+5B0"
  5.  
  6. local savedpos = {}
  7. local waypointpos = {}
  8. local lastpos = {}
  9.  
  10. function getpos()
  11.     for i = 0, 2 do
  12.         savedpos[i] = readFloat(base..i*4)
  13.     end
  14.     savedpos[2] = savedpos[2] + 10
  15. end
  16.  
  17. function setpos()
  18.     if savedpos[0] ~= 0 then
  19.         for i = 0,2 do
  20.             lastpos[i] = readFloat(base..i*4)
  21.             writeFloat(base..i*4,savedpos[i])
  22.         end
  23.     end
  24. end
  25.  
  26. function noclip(axis,pm)
  27.     writeFloat(base..axis*4,(readFloat(base..axis*4)+(pm*150)))
  28. end
  29.  
  30. function setpostowaypoint()
  31.     for i = 0,2 do
  32.         lastpos[i] = readFloat(base..i*4)
  33.         writeFloat(base..i*4,readFloat(waypoint..i*4))
  34.     end
  35. end
  36.  
  37.  
  38. function backtolast()
  39.     if lastpos[0] ~= 0 then
  40.         for i = 0,2 do
  41.             writeFloat(base..i*4,lastpos[i])
  42.         end
  43.     end
  44. end
  45.  
  46. function Teleport()
  47.     if isKeyPressed(97) then
  48.         playSound(findTableFile("beep.wav"))
  49.         getpos()
  50.     end
  51.     if isKeyPressed(98) then
  52.         setpos()
  53.     end
  54.     if isKeyPressed(99) then
  55.         backtolast()
  56.     end
  57.     if isKeyPressed(100) then
  58.         setpostowaypoint()
  59.     end
  60.     if isKeyPressed(38) then
  61.         noclip(0,1)
  62.     end
  63.     if isKeyPressed(40) then
  64.         noclip(0,-1)
  65.     end
  66.         if isKeyPressed(37) then
  67.         noclip(1,1)
  68.     end
  69.     if isKeyPressed(39) then
  70.         noclip(1,-1)
  71.     end
  72.         if isKeyPressed(107) then
  73.         noclip(2,1)
  74.     end
  75.     if isKeyPressed(109) then
  76.         noclip(2,-1)
  77.     end
  78. end
  79.  
  80. function InfStamina()
  81.     writeFloat(stamina,1.15)
  82. end
  83.  
  84.  
  85. function ActivateTeleport()
  86.     t1=createTimer(nil)
  87.     t1.onTimer=Teleport
  88.     t1.Interval=100
  89.     t1.Enabled=true
  90. end
  91.  
  92. function ActivateStamina()
  93.     t2=createTimer(nil)
  94.     t2.onTimer=InfStamina
  95.     t2.Interval=100
  96.     t2.Enabled=true
  97. end
Add Comment
Please, Sign In to add comment