Advertisement
Guest User

Untitled

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