Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fYaw, fYawValue = ui.reference("AA", "Anti-aimbot angles", "Yaw")
- local fBodyYaw, fBodyYawValue = ui.reference("AA", "Anti-aimbot angles", "Body Yaw")
- local fFakeBodyYawValue = ui.reference("AA", "Anti-aimbot angles", "Fake yaw limit")
- local bDoubletap = ui.reference("RAGE", "OTHER", "Double tap")
- local GodModeHotkey = ui.new_hotkey("AA", "Anti-aimbot angles", "Godmode Hotkey", 1)
- local enabled = false
- local set = ui.set
- local bJitter = false
- local function SwapJitter()
- if bJitter then bJitter = false else bJitter = true end
- if ui.get(GodModeHotkey) then enabled = true else enabled = false end
- end
- function AutoDirection(event)
- if enabled == true then return end
- local isMovingLeft = event.in_moveleft == 1
- local isMovingRight = event.in_moveright == 1
- if isMovingLeft ~= true and isMovingRight ~= true then
- if bJitter then
- set(fFakeBodyYawValue, 35)
- else
- set(fFakeBodyYawValue, 60)
- end
- set(fYawValue, 0)
- set(fBodyYawValue, 60)
- else
- set(fFakeBodyYawValue, 60)
- end
- if isMovingRight then
- set(fYawValue, -7)
- set(fBodyYawValue, 60)
- else if isMovingLeft then
- set(fBodyYawValue, -60)
- set(fYawValue, 7)
- end
- end
- end
- function GodMode(event)
- local tickcount = globals.tickcount() % 17
- local doubletap = ui.get(bDoubletap)
- if enabled == false then return end
- if event.in_forward == 1 or event.in_back == 1 or event.in_moveleft == 1 or event.in_moveright == 1 then return end
- if doubletap then
- ui.set(fYawValue, '0')
- if tickcount == 15 or tickcount == 17 and doubletap then
- if ui.get(GodModeManualHotkey) then
- ui.set(fYawValue, '-90')
- end
- if not ui.get(GodModeManualHotkey) then
- ui.set(fYawValue, '90')
- end
- end
- end
- end
- function Main(event)
- AutoDirection(event)
- GodMode(event)
- end
- client.set_event_callback("setup_command", Main)
- client.set_event_callback("paint", SwapJitter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement