SHARE
TWEET

Untitled

a guest Apr 20th, 2019 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local gui_set = gui.SetValue
  2. local gui_get = gui.GetValue
  3. local b_toggle = input.IsButtonDown
  4. local auto = gui_get("rbot_autosniper_autostop")
  5. local awp = gui_get("rbot_sniper_autostop")
  6. local ssg = gui_get("rbot_scout_autostop")
  7. local rev = gui_get("rbot_revolver_autostop")
  8. local pist = gui_get("rbot_pistol_autostop")
  9. local smg = gui_get("rbot_smg_autostop")
  10. local rifle = gui_get("rbot_rifle_autostop")
  11. local shotg = gui_get("rbot_shotgun_autostop")
  12. local lmg = gui_get("rbot_lmg_autostop")
  13. local shared = gui_get("rbot_shared_autostop")
  14. local slowwalk_key = gui_get("msc_slowwalk")
  15.  
  16. local editboxVarNames = { "rab_pmodal_hex_input", "rab_hands_hex_input", "rab_weapons_hex_input", "rab_ghost_hex_input", "rab_glow_hex_input", "rab_crosshair_hex_input" };
  17. local reference =  gui.Reference("SETTINGS", "Miscellaneous")
  18. local indicator = gui.Checkbox(reference, "indicate_on", "Indicators", 0);
  19.  
  20. local indicatorR = gui.Slider(reference, "indicator_red", "Indicators Red", 0, 0, 255);
  21. local indicatorG = gui.Slider(reference, "indicator_green", "Indicators Green", 0, 0, 255);
  22. local indicatorB = gui.Slider(reference, "indicator_blue", "Indicators Blue", 0, 0, 255);
  23. local switchspeed = gui.Slider(reference, "switch_speed", "Switch Speed", 32, 0, 120);  
  24.  
  25. local switchrange1 = gui.Slider(reference, "switch_range", "Switch range", 0, 0, 120);  
  26. local switchrange2 = gui.Slider(reference, "switch_range2", "Switch range 2", 14, 0, 120);  
  27.  
  28. function rangeswitch()
  29. local switchvalue = switchspeed:GetValue()
  30. local switchget = math.floor(switchrange1:GetValue())
  31. local switchget2 = math.floor(switchrange2:GetValue())
  32.  
  33.    if globals.TickCount() % math.floor(switchvalue) == 0 then
  34. if switchget < switchget2 then
  35. local switchrange = math.random(switchget, switchget2)
  36. gui_set("rbot_antiaim_switch_range", switchrange)
  37. end
  38. end
  39. end
  40.  
  41. function drawrange()
  42. if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
  43.  
  44. local font = draw.CreateFont("Gobold", 30)
  45. draw.SetFont(font);
  46.  
  47. local w, h = draw.GetScreenSize()
  48. local w = w/2
  49. local h = h/2
  50.  
  51. local antiaim = gui.GetValue("rbot_antiaim_switch_range")
  52.    draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  53.    draw.Text(w-940.5,h+30, "S: " .. math.floor(antiaim))
  54. draw.TextShadow(w-940.5,h+30, "S: " .. math.floor(antiaim))
  55. end
  56. end
  57.  
  58.  
  59. function desyncindicator()
  60. if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
  61.  
  62. local font = draw.CreateFont("Gobold", 30);
  63.  
  64. draw.SetFont(font);
  65.  
  66. local w, h = draw.GetScreenSize()
  67. local w = w/2
  68. local h = h/2
  69.  
  70. local antiaim2 = gui.GetValue("rbot_antiaim_stand_desync")
  71. local threshold = gui.GetValue("rbot_antiaim_stand_velocity");
  72. local LocalPlayer = entities.GetLocalPlayer();
  73. local velocityX = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[0]");
  74. local velocityY = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[1]");
  75. local velocity = math.sqrt(velocityX^2 + velocityY^2);
  76. local FinalVelocity = tonumber(math.floor(math.min(9999, velocity) + 0.2));
  77.  
  78. if antiaim2 == 0 and FinalVelocity < threshold then
  79. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  80. draw.Text(w-940.5,h+60, "D: Off")
  81. draw.TextShadow(w-940.5,h+60, "D: Off")
  82.    elseif antiaim2 == 1 and FinalVelocity < threshold then
  83. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  84.        draw.Text(w-940.5,h+60, "D: Still")
  85. draw.TextShadow(w-940.5,h+60, "D: Still")
  86.    elseif antiaim2 == 2 and FinalVelocity < threshold then
  87. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  88.        draw.Text(w-940.5,h+60, "D: Balance")
  89. draw.TextShadow(w-940.5,h+60, "D: Balance")
  90. elseif antiaim2 == 3 and FinalVelocity < threshold then
  91. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  92. draw.Text(w-940.5,h+60, "D: Stretch")
  93. draw.TextShadow(w-940.5,h+60, "D: Stretch")
  94. elseif antiaim2 == 4 and FinalVelocity < threshold then
  95. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  96.        draw.Text(w-940.5,h+60, "D: Jitter")
  97. draw.TextShadow(w-940.5,h+60, "D: Jitter")  
  98. elseif FinalVelocity > threshold then
  99. desyncindicatormove()
  100. end
  101. end
  102. end
  103.  
  104. function desyncindicatormove()
  105. if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
  106.  
  107. local font = draw.CreateFont("Gobold", 30);
  108.  
  109. draw.SetFont(font);
  110.  
  111. local w, h = draw.GetScreenSize()
  112. local w = w/2
  113. local h = h/2
  114.  
  115. local antiaim2 = gui.GetValue("rbot_antiaim_move_desync")
  116. local threshold = gui.GetValue("rbot_antiaim_stand_velocity");
  117. local LocalPlayer = entities.GetLocalPlayer();
  118. local velocityX = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[0]");
  119. local velocityY = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[1]");
  120. local velocity = math.sqrt(velocityX^2 + velocityY^2);
  121. local FinalVelocity = tonumber(math.floor(math.min(9999, velocity) + 0.2));
  122.  
  123. if antiaim2 == 0 and FinalVelocity > threshold then
  124. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  125. draw.Text(w-940.5,h+60, "D: Off")
  126. draw.TextShadow(w-940.5,h+60, "D: Off")
  127.    elseif antiaim2 == 1 and FinalVelocity > threshold then
  128. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  129.        draw.Text(w-940.5,h+60, "D: Still")
  130. draw.TextShadow(w-940.5,h+60, "D: Still")
  131.    elseif antiaim2 == 2 and FinalVelocity > threshold then
  132. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  133.        draw.Text(w-940.5,h+60, "D: Balance")
  134. draw.TextShadow(w-940.5,h+60, "D: Balance")
  135. elseif antiaim2 == 3 and FinalVelocity > threshold then
  136. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  137. draw.Text(w-940.5,h+60, "D: Stretch")
  138. draw.TextShadow(w-940.5,h+60, "D: Stretch")
  139. elseif antiaim2 == 4 and FinalVelocity > threshold then
  140. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  141.        draw.Text(w-940.5,h+60, "D: Jitter")
  142. draw.TextShadow(w-940.5,h+60, "D: Jitter")  
  143. elseif FinalVelocity < threshold then
  144. realindicator()
  145. end
  146. end
  147. end
  148.  
  149. function yawindicator()
  150. if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
  151. local font = draw.CreateFont("Gobold", 30);
  152. draw.SetFont(font);
  153. local w, h = draw.GetScreenSize()
  154. local w = w/2
  155. local h = h/2
  156. local autodir = gui.GetValue("rbot_antiaim_autodir")
  157. local antiaimvalue = gui.GetValue("rbot_antiaim_stand_real_add")
  158. local antiaimvalue2 = gui.GetValue("rbot_antiaim_move_real_add")
  159. local threshold = gui.GetValue("rbot_antiaim_stand_velocity");
  160. local LocalPlayer = entities.GetLocalPlayer();
  161. local velocityX = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[0]");
  162. local velocityY = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[1]");
  163. local velocity = math.sqrt(velocityX^2 + velocityY^2);
  164. local FinalVelocity = tonumber(math.floor(math.min(9999, velocity) + 0.2));
  165.  
  166. if autodir ~= 0 then
  167. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  168. draw.Text(w-940.5,h+90, "Y: Auto")
  169. draw.TextShadow(w-940.5,h+90, "Y: Auto")
  170.    elseif FinalVelocity < threshold then
  171. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  172. draw.TextShadow(w-940.5,h+90, "Y: " .. math.floor(antiaimvalue))
  173. draw.TextShadow(w-940.5,h+90, "Y: " .. math.floor(antiaimvalue))
  174. elseif FinalVelocity > threshold then
  175. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  176. draw.TextShadow(w-940.5,h+90, "Y: " .. math.floor(antiaimvalue2))
  177. draw.TextShadow(w-940.5,h+90, "Y: " .. math.floor(antiaimvalue2))
  178. end
  179. end
  180. end
  181.  
  182. function autostopoff()
  183.    local player = entities.GetLocalPlayer()
  184.    slowwalk_key = gui_get("msc_slowwalk")
  185.    if b_toggle(slowwalk_key) and player:IsAlive() then
  186.        local screen_x, screen_y = draw.GetScreenSize()
  187.        gui_set("rbot_autosniper_autostop", 0)
  188.        gui_set("rbot_lmg_autostop", 0)
  189.        gui_set("rbot_pistol_autostop", 0)
  190.        gui_set("rbot_revolver_autostop", 0)
  191.        gui_set("rbot_rifle_autostop", 0)
  192.        gui_set("rbot_scout_autostop", 0)
  193.        gui_set("rbot_shared_autostop", 0)
  194.        gui_set("rbot_shotgun_autostop", 0)
  195.        gui_set("rbot_smg_autostop", 0)
  196.        gui_set("rbot_sniper_autostop", 0)
  197.    else
  198.        gui_set("rbot_autosniper_autostop", auto)
  199.        gui_set("rbot_lmg_autostop", lmg)
  200.        gui_set("rbot_pistol_autostop", pist)
  201.        gui_set("rbot_revolver_autostop", rev)
  202.        gui_set("rbot_rifle_autostop", rifle)
  203.        gui_set("rbot_scout_autostop", ssg)
  204.        gui_set("rbot_shared_autostop", shared)
  205.        gui_set("rbot_shotgun_autostop", shotg)
  206.        gui_set("rbot_smg_autostop", smg)
  207.        gui_set("rbot_sniper_autostop", awp)
  208.  
  209.    end
  210. end
  211.  
  212. function realindicator()
  213. if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
  214.  
  215. local font = draw.CreateFont("Gobold", 30);
  216. draw.SetFont(font);
  217.  
  218. local w, h = draw.GetScreenSize()
  219. local w = w/2
  220. local h = h/2
  221.  
  222. local getyaw = gui.GetValue("rbot_antiaim_stand_real")
  223. local threshold = gui.GetValue("rbot_antiaim_stand_velocity");
  224. local LocalPlayer = entities.GetLocalPlayer();
  225. local velocityX = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[0]");
  226. local velocityY = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[1]");
  227. local velocity = math.sqrt(velocityX^2 + velocityY^2);
  228. local FinalVelocity = tonumber(math.floor(math.min(9999, velocity) + 0.2));
  229.  
  230. if getyaw == 0 and FinalVelocity < threshold then
  231. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  232. draw.TextShadow(w-940.5,h+120, "R: Off")
  233. draw.TextShadow(w-940.5,h+120, "R: Off")
  234. elseif getyaw == 1 and FinalVelocity < threshold then
  235. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  236. draw.TextShadow(w-940.5,h+120, "R: Static")
  237. draw.TextShadow(w-940.5,h+120, "R: Static")
  238. elseif getyaw == 2 and FinalVelocity < threshold then
  239. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  240. draw.TextShadow(w-940.5,h+120, "R: Spinbot")
  241. draw.TextShadow(w-940.5,h+120, "R: Spinbot")
  242. elseif getyaw == 3 and FinalVelocity < threshold then
  243. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  244. draw.Text(w-940.5,h+120, "R: Jitter")
  245. draw.TextShadow(w-940.5,h+120, "R: Jitter")
  246. elseif getyaw == 4 and FinalVelocity < threshold then
  247. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  248. draw.Text(w-940.5,h+120, "R: Zero")
  249. draw.TextShadow(w-940.5,h+120, "R: Zero")
  250.    elseif getyaw == 5 and FinalVelocity < threshold then  
  251. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  252. draw.Text(w-940.5,h+120, "R: Switch")
  253. draw.TextShadow(w-940.5,h+120, "R: Switch")  
  254. elseif FinalVelocity > threshold then
  255. realindicatormove()
  256. end
  257. end
  258. end
  259.  
  260. function realindicatormove()
  261. if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
  262.  
  263. local font = draw.CreateFont("Gobold", 30);
  264. draw.SetFont(font);
  265.  
  266. local w, h = draw.GetScreenSize()
  267. local w = w/2
  268. local h = h/2
  269.  
  270. local getyawmove = gui.GetValue("rbot_antiaim_move_real")
  271. local threshold = gui.GetValue("rbot_antiaim_stand_velocity");
  272. local LocalPlayer = entities.GetLocalPlayer();
  273. local velocityX = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[0]");
  274. local velocityY = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[1]");
  275. local velocity = math.sqrt(velocityX^2 + velocityY^2);
  276. local FinalVelocity = tonumber(math.floor(math.min(9999, velocity) + 0.2));
  277.  
  278. if getyawmove == 0 and FinalVelocity > threshold then
  279. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  280. draw.TextShadow(w-940.5,h+120, "R: Off")
  281. draw.TextShadow(w-940.5,h+120, "R: Off")
  282. elseif getyawmove == 1 and FinalVelocity > threshold then
  283. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  284. draw.TextShadow(w-940.5,h+120, "R: Static")
  285. draw.TextShadow(w-940.5,h+120, "R: Static")
  286. elseif getyawmove == 2 and FinalVelocity > threshold then
  287. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  288. draw.TextShadow(w-940.5,h+120, "R: Spinbot")
  289. draw.TextShadow(w-940.5,h+120, "R: Spinbot")
  290. elseif getyawmove == 3 and FinalVelocity > threshold then
  291. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  292. draw.Text(w-940.5,h+120, "R: Jitter")
  293. draw.TextShadow(w-940.5,h+120, "R: Jitter")
  294. elseif getyawmove == 4 and FinalVelocity > threshold then
  295. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  296. draw.Text(w-940.5,h+120, "R: Zero")
  297. draw.TextShadow(w-940.5,h+120, "R: Zero")
  298.    elseif getyawmove == 5 and FinalVelocity > threshold then  
  299. draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  300. draw.Text(w-940.5,h+120, "R: Switch")
  301. draw.TextShadow(w-940.5,h+120, "R: Switch")  
  302. elseif FinalVelocity < threshold then
  303. realindicator()
  304. end
  305. end
  306. end
  307.  
  308.  
  309. function fadingfake()
  310.   local speed = 3
  311.   local r = 0
  312.   local g = 100
  313.   local b = 255
  314.   local a = math.floor(math.sin(globals.RealTime() * speed + 4) * 70 + 70)
  315.  
  316.   for k,v in pairs({  "clr_chams_ghost_client",
  317.                       "clr_chams_ghost_client",
  318.                       "clr_chams_ghost_client",
  319.                       "clr_chams_ghost_client"}) do
  320.                      
  321.       gui.SetValue(v, r,g,b,a)
  322.      
  323.   end
  324. end
  325.  
  326. function fakelagindicator()
  327.    if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
  328.    
  329.    local font = draw.CreateFont("Gobold", 30);
  330.    draw.SetFont(font);
  331.    
  332.    local w, h = draw.GetScreenSize()
  333.    local w = w/2
  334.    local h = h/2
  335.    
  336. local fakelagon = gui.GetValue("msc_fakelag_enable")
  337.    local fakelagmode = gui.GetValue("msc_fakelag_mode")
  338.  
  339. if fakelagmode == 0 and fakelagon then
  340.        draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  341.        draw.Text(w-940.5,h+150, "F: Factor")
  342.        draw.TextShadow(w-940.5,h+150, "F: Factor")
  343.    elseif fakelagmode == 1 and fakelagon then    
  344.        draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  345.        draw.Text(w-940.5,h+150, "F: Switch")
  346.        draw.TextShadow(w-940.5,h+150, "F: Switch")
  347.    elseif fakelagmode == 2 and fakelagon then    
  348.        draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  349.        draw.Text(w-940.5,h+150, "F: Adaptive")
  350.        draw.TextShadow(w-940.5,h+150, "F: Adaptive")
  351.    elseif fakelagmode == 3 and fakelagon then
  352.        draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  353.        draw.Text(w-940.5,h+150, "F: Random")
  354.        draw.TextShadow(w-940.5,h+150, "F: Random")    
  355.    elseif fakelagmode == 4 and fakelagon then
  356.        draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  357.        draw.Text(w-940.5,h+150, "F: Peek")
  358.        draw.TextShadow(w-940.5,h+150, "F: Peek")
  359.    elseif fakelagmode == 5 and fakelagon then
  360.        draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  361.        draw.Text(w-940.5,h+150, "F: Rapid Peek")
  362.        draw.TextShadow(w-940.5,h+150, "F: Rapid Peek")
  363. else
  364.        draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
  365.        draw.Text(w-940.5,h+150, "F: Off")
  366.        draw.TextShadow(w-940.5,h+150, "F: Off")
  367.       end
  368.    end
  369. end
  370.  
  371. callbacks.Register("CreateMove", "rangeswitch", rangeswitch)
  372. callbacks.Register("Draw", "fadingfake", fadingfake)
  373. callbacks.Register("Draw", "drawrange", drawrange)
  374. callbacks.Register("Draw", "desyncindicator", desyncindicator)
  375. callbacks.Register("Draw", "yawindicator", yawindicator)
  376. callbacks.Register("Draw", "realindicator", realindicator)
  377. callbacks.Register("Draw", "fakelagindicator", fakelagindicator)
  378. callbacks.Register("Draw", "autostopoff", autostopoff)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top