Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. script_name("GuruGuru69's Earthquake Adjuster (tm)")
  2.  
  3. local bEnable = true
  4. local fIntensityMin = 0.0
  5. local fIntensityMax = 1.0
  6.  
  7. local memory = require 'memory'
  8. local math = require 'math'
  9. math.randomseed (os.clock())
  10.  
  11. local CWeather__Earthquake = 0xC81340
  12.  
  13. function main()
  14.     if not bEnable then return end
  15.     while true do
  16.         wait(0)    
  17.         if testCheat("quake") then
  18.             local fIntensity = randomFloat(fIntensityMin,fIntensityMax)
  19.             printHelpString("HABE A FUNZ")
  20.             memory.setfloat(CWeather__Earthquake,fIntensity,false)
  21.         end
  22.        
  23.         printStringNow("Earthquake intensity : "..memory.getfloat(CWeather__Earthquake,4,false))
  24.     end
  25. end
  26.  
  27. function randomFloat(lower, greater) return lower + math.random()  * (greater - lower); end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement