Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local client, ui, client_set_event_callback, client_get_cvar, client_draw_indicator, client_draw_text, client_screensize = client, ui, client.set_event_callback, client.get_cvar, client.draw_indicator, client.draw_text, client.screen_size
- local ui_get, ui_set, ui_ref = ui.get, ui.set, ui.reference
- local entity_get_local_player, entity_get_prop, entity_is_alive = entity.get_local_player, entity.get_prop, entity.is_alive
- -- Anti-aim references
- local pitch = ui_ref("AA", "Anti-aimbot angles", "Pitch")
- local base = ui_ref("AA", "Anti-aimbot angles", "Yaw base")
- local yaw, yaw_slider = ui_ref("AA", "Anti-aimbot angles", "Yaw")
- local yawjitter, yawjitter_slider = ui_ref("AA", "Anti-aimbot angles", "Yaw jitter")
- local bodyyaw, bodyyaw_slider = ui_ref("AA", "Anti-aimbot angles", "Body yaw")
- local limit = ui_ref("AA", "Anti-aimbot angles", "Fake yaw limit")
- local edgeyaw = ui_ref("AA", "Anti-aimbot angles", "Edge yaw")
- local freestanding = ui_ref("AA", "Anti-aimbot angles", "Freestanding")
- local lby = ui_ref("AA", "Anti-aimbot angles", "Lower body yaw")
- -- New UI elements
- local desync = ui.new_checkbox("AA", "Anti-aimbot angles", "Manual Desync")
- local color = ui.new_color_picker("AA", "Anti-aimbot angles", "Arrow color", 124, 195, 13, 220)
- local desyncstyle = ui.new_combobox("AA", "Anti-aimbot angles", "Manual desync style", "Off", "superiorStatic", "superiorLegit")
- local desynckey1 = ui.new_hotkey("AA", "Anti-aimbot angles", "Swap hotkey")
- local ind = ui.new_combobox("AA", "Anti-aimbot angles", "Anti-aim angle indicator", "Off", "Text", "Arrows", "Text & Arrows")
- local isLeft, isRight = false
- -- End of local variables
- local function aadir()
- isLeft = ui_get(desynckey1)
- isRight = not isLeft
- end
- local function left()
- if ui_get(desyncstyle) == "superiorStatic" then
- ui_set(pitch, "Default")
- ui_set(base, "At Targets")
- ui_set(yaw, "180")
- ui_set(yaw_slider, "-20")
- ui_set(yawjitter, "Offset")
- ui_set(yawjitter_slider, "0")
- ui_set(bodyyaw, "Static")
- ui_set(bodyyaw_slider, "-180")
- ui_set(limit, "58")
- ui_set(edgeyaw, "Static")
- ui_set(freestanding, "Edge")
- ui_set(lby, false)
- else if ui_get(desyncstyle) == "superiorLegit" then
- ui_set(pitch, "Off")
- ui_set(base, "Local view")
- ui_set(yaw, "180")
- ui_set(yaw_slider, "180")
- ui_set(yawjitter, "Off")
- ui_set(yawjitter_slider, "0")
- ui_set(bodyyaw, "Static")
- ui_set(bodyyaw_slider, "-85")
- ui_set(limit, "58")
- ui_set(edgeyaw, "Off")
- ui_set(freestanding, "-")
- ui_set(lby, false)
- end
- end
- end
- local function right()
- if ui_get(desyncstyle) == "superiorStatic" then
- ui_set(pitch, "Default")
- ui_set(base, "At Targets")
- ui_set(yaw, "180")
- ui_set(yaw_slider, "20")
- ui_set(yawjitter, "Offset")
- ui_set(yawjitter_slider, "0")
- ui_set(bodyyaw, "Static")
- ui_set(bodyyaw_slider, "180")
- ui_set(limit, "58")
- ui_set(edgeyaw, "Static")
- ui_set(freestanding, "Edge")
- ui_set(lby, false)
- else if ui_get(desyncstyle) == "superiorLegit" then
- ui_set(pitch, "Off")
- ui_set(base, "Local view")
- ui_set(yaw, "180")
- ui_set(yaw_slider, "-180")
- ui_set(yawjitter, "Off")
- ui_set(yawjitter_slider, "0")
- ui_set(bodyyaw, "Static")
- ui_set(bodyyaw_slider, "85")
- ui_set(limit, "58")
- ui_set(edgeyaw, "Off")
- ui_set(lby, false)
- end
- end
- end
- local function on_paint(c)
- if not ui_get(desync) then
- return
- end
- local local_player = entity_get_local_player()
- if local_player == nil or entity_get_prop(local_player, "m_lifeState") ~= 0 then
- return
- end
- local scrsize_x, scrsize_y = client_screensize()
- local center_x, center_y = scrsize_x / 2, scrsize_y / 2
- local indcombo = ui_get(ind)
- if indcombo == "Text" then
- else if indcombo == "Arrows" then
- client_draw_text(c, center_x - 40, center_y, ind_r, ind_g, ind_b, ind_a, "c+", 0, "⬖")
- client_draw_text(c, center_x + 40, center_y, ind_r, ind_g, ind_b, ind_a, "c+", 0, "⬗")
- else if indcombo == "Text & Arrows" then
- client_draw_text(c, center_x - 40, center_y, ind_r, ind_g, ind_b, ind_a, "c+", 0, "⬖")
- client_draw_text(c, center_x + 40, center_y, ind_r, ind_g, ind_b, ind_a, "c+", 0, "⬗")
- end
- end
- end
- local ind_r, ind_g, ind_b, ind_a = ui_get(color)
- aadir()
- if isLeft then
- left()
- if indcombo == "Text" then
- client_draw_indicator(ctx, 124, 195, 13, 237, "LEFT")
- else if indcombo == "Arrows" then
- client_draw_text(c, center_x - 40, center_y, ind_r, ind_g, ind_b, ind_a, "c+", 0, "⬖")
- else if indcombo == "Text & Arrows" then
- client_draw_indicator(ctx, 124, 195, 13, 237, "LEFT")
- client_draw_text(c, center_x - 40, center_y, ind_r, ind_g, ind_b, ind_a, "c+", 0, "⬖")
- end
- end
- end
- elseif isRight then
- right()
- if indcombo == "Text" then
- client_draw_indicator(ctx, 124, 195, 13, 237, "RIGHT")
- else if indcombo == "Arrows" then
- client_draw_text(c, center_x + 40, center_y, ind_r, ind_g, ind_b, ind_a, "c+", 0, "⬗")
- else if indcombo == "Text & Arrows" then
- client_draw_indicator(ctx, 124, 195, 13, 237, "RIGHT")
- client_draw_text(c, center_x + 40, center_y, ind_r, ind_g, ind_b, ind_a, "c+", 0, "⬗")
- end
- end
- end
- end
- end
- client_set_event_callback("paint", on_paint)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement