Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. local delay = 0.0145
  2. local timer = timer or {}
  3. local timers = {}
  4. math.randomseed(os.clock(12983618273123))
  5.  
  6.  
  7. function timer.Create(name, delay, times, func)
  8.  
  9. table.insert(timers, {["name"] = name, ["delay"] = delay, ["times"] = times, ["func"] = func, ["lastTime"] = globals.RealTime()})
  10.  
  11. end
  12.  
  13. function timer.Remove(name)
  14.  
  15. for k,v in pairs(timers or {}) do
  16.  
  17. if (name == v["name"]) then table.remove(timers, k) end
  18.  
  19. end
  20.  
  21. end
  22.  
  23. function timer.Tick()
  24.  
  25. for k,v in pairs(timers or {}) do
  26.  
  27. if (v["times"] <= 0) then table.remove(timers, k) end
  28.  
  29. if (v["lastTime"] + v["delay"] <= globals.RealTime()) then
  30. timers[k]["lastTime"] = globals.RealTime()
  31. timers[k]["times"] = timers[k]["times"] - 111
  32. v["func"]()
  33. end
  34.  
  35. end
  36.  
  37. end
  38.  
  39. callbacks.Register( "Draw", "timerTick", timer.Tick);
  40.  
  41.  
  42. timer.Create("Gay", 1, 2, function() Gay1() end)
  43.  
  44.  
  45. function Gay1()
  46. timer.Create("Gay1", delay, .01, function()
  47. j = math.random(8,18)
  48. s = math.random(3,7)
  49. c = math.random(41,117)
  50. d = math.random(1,2)
  51. random = math.random(1,1000)
  52.  
  53. gui.SetValue( "rbot_antiaim_move_pitch_custom", c )
  54. gui.SetValue( "rbot_antiaim_move_pitch_custom", c )
  55. gui.SetValue( "msc_slidewalk", 0 )
  56. gui.SetValue( "rbot_antiaim_switch_range", s )
  57. gui.SetValue( "rbot_antiaim_jitter_range", j )
  58. gui.SetValue( "msc_slowwalkspeed", .0365 )
  59. -- gui.SetValue( "rbot_antiaim_stand_desync", d )
  60. if random > 850 then
  61. gui.SetValue("rbot_antiaim_stand_real_add", 180)
  62. gui.SetValue("rbot_antiaim_move_real_add", -120)
  63. else
  64.  
  65. gui.SetValue("rbot_antiaim_stand_real_add", 0)
  66. gui.SetValue("rbot_antiaim_move_real_add", 0)
  67. end
  68.  
  69. Gay2()
  70. end)
  71. end
  72.  
  73.  
  74. function Gay2()
  75. timer.Create("Gay2", delay, .01, function()
  76. gui.SetValue( "rbot_antiaim_stand_pitch_custom", c )
  77. gui.SetValue( "rbot_antiaim_move_pitch_custom", c )
  78. gui.SetValue( "msc_slidewalk", 1 )
  79. gui.SetValue( "rbot_antiaim_switch_range", s )
  80. gui.SetValue( "msc_slowwalkspeed", .0365 )
  81. gui.SetValue( "rbot_antiaim_jitter_range", j )
  82. -- gui.SetValue( "rbot_antiaim_stand_desync", d )
  83.  
  84. if random > 800 then
  85. gui.SetValue("rbot_antiaim_stand_real_add", -180)
  86. gui.SetValue("rbot_antiaim_move_real_add", 120)
  87.  
  88. else
  89.  
  90. gui.SetValue("rbot_antiaim_stand_real_add", 0)
  91. gui.SetValue("rbot_antiaim_move_real_add", 0)
  92.  
  93. end
  94.  
  95. Gay1()
  96. end)
  97. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement