Advertisement
Dogmen

dgsdg

Dec 12th, 2021
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. -- local variables for API functions. any changes to the line below will be lost on re-generation
  2. local client_set_event_callback, ui_reference, ui_set = client.set_event_callback, ui.reference, ui.set
  3.  
  4. local fYaw, fYawValue = ui_reference("AA", "Anti-aimbot angles", "Yaw")
  5. local fBodyYaw, fBodyYawValue = ui_reference("AA", "Anti-aimbot angles", "Body Yaw")
  6. local fFakeBodyYawValue = ui_reference("AA", "Anti-aimbot angles", "Fake yaw limit")
  7. local bJitter = false
  8. -- 35 and 60
  9. function SwapJitter()
  10. if bJitter then bJitter = false else bJitter = true end
  11. end
  12.  
  13. function Main(event)
  14. local isMovingLeft = event.in_moveleft == 1
  15. local isMovingRight = event.in_moveright == 1
  16.  
  17. if isMovingLeft ~= true and isMovingRight ~= true then
  18. if bJitter then
  19. ui_set(fFakeBodyYawValue, 35)
  20. else
  21. ui_set(fFakeBodyYawValue, 60)
  22. end
  23.  
  24. ui_set(fYawValue, 0)
  25. ui_set(fBodyYawValue, 60)
  26. else
  27. ui_set(fFakeBodyYawValue, 60)
  28. end
  29.  
  30. if isMovingRight then
  31. ui_set(fYawValue, -7)
  32. ui_set(fBodyYawValue, 60)
  33. else if isMovingLeft then
  34. ui_set(fBodyYawValue, -60)
  35. ui_set(fYawValue, 7)
  36. end
  37. end
  38. end
  39.  
  40. client_set_event_callback("setup_command", Main)
  41. client_set_event_callback("paint", SwapJitter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement