Advertisement
Dogmen

sfdg

Dec 12th, 2021 (edited)
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. local fYaw, fYawValue = ui.reference("AA", "Anti-aimbot angles", "Yaw")
  2. local fBodyYaw, fBodyYawValue = ui.reference("AA", "Anti-aimbot angles", "Body Yaw")
  3. local fFakeBodyYawValue = ui.reference("AA", "Anti-aimbot angles", "Fake yaw limit")
  4. local bDoubletap = ui.reference("RAGE", "OTHER", "Double tap")
  5. local GodModeHotkey = ui.new_hotkey("AA", "Anti-aimbot angles", "Godmode Hotkey", 1)
  6.  
  7. local enabled = false
  8. local set = ui.set
  9.  
  10. local bJitter = false
  11. local function SwapJitter()
  12. if bJitter then bJitter = false else bJitter = true end
  13. if ui.get(GodModeHotkey) then enabled = true else enabled = false end
  14. end
  15.  
  16. function AutoDirection(event)
  17. if enabled == true then return end
  18.  
  19. local isMovingLeft = event.in_moveleft == 1
  20. local isMovingRight = event.in_moveright == 1
  21.  
  22. if isMovingLeft ~= true and isMovingRight ~= true then
  23. if bJitter then
  24. set(fFakeBodyYawValue, 35)
  25. else
  26. set(fFakeBodyYawValue, 60)
  27. end
  28.  
  29. set(fYawValue, 0)
  30. set(fBodyYawValue, 60)
  31. else
  32. set(fFakeBodyYawValue, 60)
  33. end
  34.  
  35. if isMovingRight then
  36. set(fYawValue, -7)
  37. set(fBodyYawValue, 60)
  38. else if isMovingLeft then
  39. set(fBodyYawValue, -60)
  40. set(fYawValue, 7)
  41. end
  42. end
  43. end
  44.  
  45. function GodMode(event)
  46. local tickcount = globals.tickcount() % 17
  47. local doubletap = ui.get(bDoubletap)
  48.  
  49. if enabled == false then return end
  50.  
  51. if event.in_forward == 1 or event.in_back == 1 or event.in_moveleft == 1 or event.in_moveright == 1 then return end
  52.  
  53. if doubletap then
  54. ui.set(fYawValue, '0')
  55.  
  56. if tickcount == 15 or tickcount == 17 and doubletap then
  57. if ui.get(GodModeManualHotkey) then
  58. ui.set(fYawValue, '-90')
  59. end
  60.  
  61. if not ui.get(GodModeManualHotkey) then
  62. ui.set(fYawValue, '90')
  63. end
  64. end
  65. end
  66. end
  67.  
  68. function Main(event)
  69. AutoDirection(event)
  70. GodMode(event)
  71. end
  72.  
  73. client.set_event_callback("setup_command", Main)
  74. client.set_event_callback("paint", SwapJitter)
  75.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement