The_Belch

Legit AA

Jul 20th, 2019
698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. local direction = true;
  2. local iconFont = draw.CreateFont('Marlett', 45, 700);
  3. local antiAimRef = gui.Reference('LEGIT', 'Extra');
  4. gui.Text(antiAimRef, " Legit Anti Aim");
  5. local right = gui.Keybox(antiAimRef, 'lbot_legitaa_right', 'Right Key', 0);
  6. local left = gui.Keybox(antiAimRef, 'lbot_legitaa_left', 'Left Key', 0);
  7.  
  8. local function isButtonDown(key)
  9. return key > 0 and input.IsButtonDown(key);
  10. end
  11.  
  12. local func = function()
  13. local lp = entities.GetLocalPlayer();
  14. if (lp == nil or not lp:IsAlive()) then
  15. return
  16. end
  17.  
  18. -- Update Values
  19. local lbot_key = gui.GetValue('lbot_key')
  20. gui.SetValue('rbot_active', not ((lbot_key > 0 and input.IsButtonPressed(lbot_key)) or isButtonDown(lbot_key)));
  21.  
  22. if isButtonDown(left:GetValue()) then
  23. direction = true;
  24. end
  25. if isButtonDown(right:GetValue()) then
  26. direction = false;
  27. end
  28.  
  29. -- Update Desync
  30. local w, h = draw.GetScreenSize();
  31. local desyncValue = direction and 2 or 3;
  32. gui.SetValue('rbot_antiaim_stand_desync', desyncValue);
  33. gui.SetValue('rbot_antiaim_move_desync', desyncValue);
  34. draw.SetFont(iconFont);
  35. draw.Color(249, 0, 0, 255);
  36. draw.Text(w / 2 + (direction and -100 or 60), h / 2, direction and '4' or '3');
  37. draw.TextShadow(w / 2 + (direction and -100 or 60), h / 2, direction and '4' or '3');
  38.  
  39. -- Update Values
  40. for _, v in ipairs({
  41. { 'at_targets', 0 },
  42. { 'autodir', 0 },
  43. { 'move_pitch_real', 0 },
  44. { 'move_real_add', -180 },
  45. { 'stand_pitch_real', 0 },
  46. { 'stand_real', 1 },
  47. { 'stand_velocity', 250 },
  48. { 'stand_real_add', -180 },
  49. }) do
  50. gui.SetValue('rbot_antiaim_' .. v[1], v[2]);
  51. end
  52. end
  53.  
  54. callbacks.Register('Draw', func);
Add Comment
Please, Sign In to add comment