Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. local oldTickCount = 0
  2.  
  3. local font = draw.CreateFont("", 18)
  4.  
  5. local LocalPlayer = entities.GetLocalPlayer()
  6.  
  7. local real = 0
  8. local desync = 0
  9. local realAdd = 0
  10. local lag = 0
  11.  
  12. local text = 0
  13. local textWidth, textHeight = 0
  14.  
  15.  
  16.  
  17. --local w, h = draw.GetScreenSize()
  18.  
  19. function Display()
  20.  
  21. ---------------------------------------------------------------
  22. -- Get Yaw Type
  23. if gui.GetValue("rbot_antiaim_stand_real") == 0 then
  24. real = "off"
  25. elseif gui.GetValue("rbot_antiaim_stand_real") == 1 then
  26. real = "static"
  27. elseif gui.GetValue("rbot_antiaim_stand_real") == 2 then
  28. real = "spinbot"
  29. elseif gui.GetValue("rbot_antiaim_stand_real") == 3 then
  30. real = "jitter"
  31. elseif gui.GetValue("rbot_antiaim_stand_real") == 4 then
  32. real = "zero"
  33. elseif gui.GetValue("rbot_antiaim_stand_real") == 5 then
  34. real = "switch"
  35. end
  36.  
  37. -- Get Desync Type
  38. if gui.GetValue("rbot_antiaim_stand_desync") == 0 then
  39. desync = "off"
  40. elseif gui.GetValue("rbot_antiaim_stand_desync") == 1 then
  41. desync = "still"
  42. elseif gui.GetValue("rbot_antiaim_stand_desync") == 2 then
  43. desync = "balance"
  44. elseif gui.GetValue("rbot_antiaim_stand_desync") == 3 then
  45. desync = "stretch"
  46. elseif gui.GetValue("rbot_antiaim_stand_desync") == 4 then
  47. desync = "jitter"
  48. end
  49.  
  50. lag = "error"
  51.  
  52. ---------------------------------------------------------------
  53.  
  54. -- Draw stuff --
  55. local w, h = draw.GetScreenSize()
  56. h = h-600
  57.  
  58. -- Draw Title of Menu --
  59. text = "Display Information"
  60.  
  61. textWidth, textHeight = draw.GetTextSize(text);
  62.  
  63.  
  64. draw.Color(25,25,25)
  65. draw.FilledRect(5, h, 181, h+textHeight+20)
  66.  
  67. draw.Color(255,0,0)
  68. draw.OutlinedRect(5, h, 181, h+textHeight+20)
  69.  
  70. draw.Color(255,255,255)
  71. draw.Text(25,h+10,text)
  72.  
  73. -- Draw Yaw Information --
  74. text = "Yaw: " .. real
  75.  
  76. textWidth, textHeight = draw.GetTextSize(text);
  77.  
  78. draw.Color(40,40,40)
  79. draw.FilledRect(5, h+textHeight+20, 181, h+3*textHeight+20)
  80.  
  81. draw.Color(255,255,255)
  82. draw.Text(25,h+2*textHeight+12,text)
  83.  
  84. --Draw Desync Information --
  85. text = "Desync: " .. desync
  86.  
  87. textWidth, textHeight = draw.GetTextSize(text);
  88.  
  89. draw.Color(40, 40, 40)
  90. draw.FilledRect(5, h+3*textHeight+20, 181, h+5*textHeight+20)
  91.  
  92. draw.Color(255,255,255)
  93. draw.Text(25,h+4*textHeight+12,text)
  94.  
  95. -- Draw Fakelag Type --
  96. text = "Fakelag: " .. lag
  97.  
  98. textWidth, textHeight = draw.GetTextSize(text)
  99.  
  100. draw.Color(40,40,40)
  101. draw.FilledRect(5, h+5*textHeight+20, 181, h+7*textHeight+20)
  102.  
  103. draw.Color(255,255,255)
  104. draw.Text(25,h+6*textHeight+12,text)
  105.  
  106. -- Draw outline --
  107. draw.Color(255,0,0)
  108. draw.OutlinedRect(5, h, 181, h+7*textHeight+20)
  109.  
  110. ---------------------------------------------------------------
  111.  
  112. end
  113.  
  114. function AntiAim()
  115.  
  116. local aaEnable = 1
  117. local difference = globals.TickCount() - oldTickCount
  118.  
  119. if difference > 1 then
  120.  
  121. --print(difference)
  122.  
  123. -- Random Jitter/Switch Range --
  124.  
  125. local count = math.random(-1,1)
  126. local jitterRange = math.random(0,6)
  127. local switchRange = math.random(0,10)
  128.  
  129. gui.SetValue("rbot_antiaim_jitter_range", jitterRange)
  130. gui.SetValue("rbot_antiaim_switch_range", switchRange)
  131. --
  132.  
  133. -- Antiaim Switch --
  134.  
  135.  
  136.  
  137. -- Combinations;
  138. -- 1: Switch, Balance, yawAdd; 45
  139. -- 2: Switch, Stretch
  140. -- 3: Jitter, Jitter, yawAdd; -180 or 180, jitterRange; 1 to 10
  141. -- 4: Jitter, Balance, yawAdd 0
  142. -- 5: Jitter, Stretch, yawAdd 0
  143. -- 6: Static, Jitter
  144.  
  145. if aaEnable == 1 then
  146.  
  147. if difference > 16 then
  148. local selectAntiAim = math.random(0,10)
  149.  
  150. if selectAntiAim == 1 then
  151.  
  152. -- 1
  153. gui.SetValue("rbot_antiaim_stand_real", 5)
  154. gui.SetValue("rbot_antiaim_stand_desync", 2)
  155. gui.SetValue("rbot_antiaim_stand_real_add", 25)
  156.  
  157. elseif selectAntiAim == 2 then
  158.  
  159. -- 2
  160. gui.SetValue("rbot_antiaim_stand_real", 5)
  161. gui.SetValue("rbot_antiaim_stand_desync", 3)
  162. gui.SetValue("rbot_antiaim_stand_real_add", -25)
  163.  
  164. elseif selectAntiAim == 3 then
  165.  
  166. -- 3
  167. gui.SetValue("rbot_antiaim_stand_real", 3)
  168. gui.SetValue("rbot_antiaim_stand_desync", 4)
  169. gui.SetValue("rbot_antiaim_stand_real_add", 180)
  170.  
  171. elseif selectAntiAim == 4 then
  172.  
  173. -- 4
  174. gui.SetValue("rbot_antiaim_stand_real", 3)
  175. gui.SetValue("rbot_antiaim_stand_desync", 2)
  176. gui.SetValue("rbot_antiaim_stand_real_add", 35)
  177.  
  178. elseif selectAntiAim == 5 then
  179.  
  180. -- 5
  181. gui.SetValue("rbot_antiaim_stand_real", 3)
  182. gui.SetValue("rbot_antiaim_stand_desync", 3)
  183. gui.SetValue("rbot_antiaim_stand_real_add", -35)
  184.  
  185. elseif selectAntiAim == 6 then
  186.  
  187. -- 6
  188. gui.SetValue("rbot_antiaim_stand_real", 1)
  189. gui.SetValue("rbot_antiaim_stand_desync", 4)
  190. gui.SetValue("rbot_antiaim_stand_real_add", 0)
  191.  
  192.  
  193.  
  194. end
  195.  
  196.  
  197. oldTickCount = globals.TickCount();
  198.  
  199.  
  200. end
  201. end
  202.  
  203. --oldTickCount = globals.TickCount()
  204. end
  205. end
  206.  
  207.  
  208.  
  209.  
  210. callbacks.Register( "Draw", "AntiAim", AntiAim);
  211. callbacks.Register( "Draw", "Display", Display);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement