Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --"==" returns true if the two values are equal or false if they are not equal
- --"~=" returns true if the two values are not equal or false if they are equal
- --">" greater than returns true if a value is greater than the other or false if it isn't
- --"<" less than returns true if a value is less than the other or false if it isn't
- --">=" greater than or equal to, returns true if a value is greater than or equal to the other or false if it isn't
- -- "<=" less than or equal to, returns true if a value is less than or equal to the other or false if it isn't
- local globals_realtime = globals.realtime
- local globals_curtime = globals.curtime
- local globals_maxplayers = globals.maxplayers
- local globals_tickcount = globals.tickcount
- local globals_tickinterval = globals.tickinterval
- local globals_mapname = globals.mapname
- local client_set_event_callback = client.set_event_callback
- local client_console_log = client.log
- local client_console_cmd = client.exec
- local client_userid_to_entindex = client.userid_to_entindex
- local client_get_cvar = client.get_cvar
- local client_draw_debug_text = client.draw_debug_text
- local client_draw_hitboxes = client.draw_hitboxes
- local client_random_int = client.random_int
- local client_random_float = client.random_float
- local client_draw_text = client.draw_text
- local client_draw_rectangle = client.draw_rectangle
- local client_draw_line = client.draw_line
- local client_world_to_screen = client.world_to_screen
- local client_is_local_player = client.is_local_player
- local client_delay_call = client.delay_call
- local client_visible = client.visible
- local get_cvar = client.get_cvar
- local set_cvar = client.set_cvar
- local entity_get_local_player, entity_is_enemy, entity_hitbox_position, entity_get_player_name, entity_get_steam64, entity_get_bounding_box, entity_get_all, entity_set_prop = entity.get_local_player, entity.is_enemy, entity.hitbox_position, entity.get_player_name, entity.get_steam64, entity.get_bounding_box, entity.get_all, entity.set_prop
- local ui_new_checkbox = ui.new_checkbox
- local ui_new_slider = ui.new_slider
- local ui_new_button = ui.new_button
- local ui_new_combobox = ui.new_combobox
- local ui_new_color_picker = ui.new_color_picker
- local ui_new_hotkey = ui.new_hotkey
- local ui_reference = ui.reference
- local ui_set = ui.set
- local ui_get = ui.get
- local ui_set_visible = ui.set_visible
- local entity_get_local_player = entity.get_local_player
- local entity_get_all = entity.get_all
- local entity_get_players = entity.get_players
- local entity_get_classname = entity.get_classname
- local entity_set_prop = entity.set_prop
- local entity_get_prop = entity.get_prop
- local entity_is_enemy = entity.is_enemy
- local entity_get_player_name = entity.get_player_name
- local entity_get_player_weapon = entity.get_player_weapon
- local delay_time = 0
- local delay_time2 = 0
- local delay_time3 = 0
- local client_draw_rectangle = client.draw_rectangle
- local client_draw_text = client.draw_text
- local ui_new_checkbox = ui.new_checkbox
- local ui_new_combobox = ui.new_combobox
- local ui_get = ui.get
- local math_fmod = math.fmod
- local math_sqrt = math.sqrt
- local math_min = math.min
- local client_screen_size = client.screen_size
- local to_number = tonumber
- local math_floor = math.floor
- local math_random = math.random
- local string_format = string.format
- -------------------------------------Menu References--------------------------------------------------
- local pitch = ui.reference("aa", "anti-aimbot angles", "Pitch")
- local yaw, yaw_slider = ui.reference("aa", "anti-aimbot angles", "Yaw")
- local fyaw, fake_slider = ui.reference("aa", "anti-aimbot angles", "Body Yaw")
- local FLM = ui.reference("AA", "Other", "Fix leg movement")
- local ID = ui.reference("AA", "Other", "Infinite duck")
- local Fl = ui.reference("aa", "Fake lag", "enabled")
- local fakelagref = ui.reference("aa", "Fake lag", "Amount")
- local varref = ui.reference("aa", "Fake lag", "Variance")
- local ammount = ui.reference("aa", "Fake lag", "Limit")
- local freestand = ui_reference("aa", "anti-aimbot angles", "Freestanding")
- local limit = ui_reference("aa", "Fake lag", "Limit")
- local yaw_base = ui_reference("aa", "anti-aimbot angles", "Yaw base")
- local lby_ref = ui_reference("aa", "anti-aimbot angles", "Lower body yaw")
- local crouchjump = ui_reference("MISC", "Miscellaneous", "Air duck")
- local AUTref = ui_reference("MISC", "Settings", "Anti-untrusted")
- local fake_limit = ui_reference("aa", "anti-aimbot angles", "Fake yaw limit")
- local Slowmo_ref = ui_reference("aa", "Other", "Slow motion")
- local SlomoOpt_ref = ui_reference("aa", "Other", "Slow motion type")
- local onshot_ref = ui_reference('AA', "Other", "On shot anti-aim")
- -------------------------------------External Dependancies----------------------------------------------
- function hsv_to_rgb(h, s, v, a)
- local r, g, b
- local i = math_floor(h * 6);
- local f = h * 6 - i;
- local p = v * (1 - s);
- local q = v * (1 - f * s);
- local t = v * (1 - (1 - f) * s);
- i = i % 6
- if i == 0 then r, g, b = v, t, p
- elseif i == 1 then r, g, b = q, v, p
- elseif i == 2 then r, g, b = p, v, t
- elseif i == 3 then r, g, b = p, q, v
- elseif i == 4 then r, g, b = t, p, v
- elseif i == 5 then r, g, b = v, p, q
- end
- return r * 255, g * 255, b * 255, a * 255
- end
- local function while_timings()
- info_antiaim_status = "Unknown"
- local function fl_onground( ent )
- local flags = entity_get_prop( ent, "m_fFlags" )
- local flags_on_ground = bit.band( flags, 1 )
- if flags_on_ground == 1 then
- return true
- end
- return false
- end
- local function fl_induck( ent )
- local flags = entity_get_prop( ent, "m_fFlags" )
- local flags_induck = bit.band( flags, 2 )
- if flags_induck == 2 then
- return true
- end
- return false
- end
- local vel_x, vel_y = entity_get_prop( entity_get_local_player( ), "m_vecVelocity" )
- local vel_real = math_floor( math_min( 10000, math_sqrt( vel_x*vel_x + vel_y*vel_y ) + 0.5 ))
- if fl_onground(entity_get_local_player()) and not fl_induck(entity_get_local_player()) and not fakewalk_enabled then
- info_antiaim_status = "Standing"
- end
- if fl_onground (entity_get_local_player()) and not fl_induck(entity_get_local_player()) and vel_real> 1.0 then
- info_antiaim_status = "Running"
- end
- if fl_onground (entity_get_local_player()) == false then
- info_antiaim_status = "Jumping"
- end
- if fl_onground(entity_get_local_player()) and fl_induck(entity_get_local_player()) then
- info_antiaim_status = "Crouching"
- end
- end
- --client.delay_call(time_in_seconds, ui.set, reference, value)
- --Page number
- local page_num = 1
- local i = 0
- local side = 0
- -- Menu elements
- local fake_butt = ui_new_checkbox("AA", "Other", "Flag color")
- local color_pick = ui_new_color_picker("AA", "Other", "Flag_Color")
- local aamodedesync = ui_new_combobox("AA", "Other", "Desync", "Off", "K-Breakerv2", "Manual", "Lowerbody Exploit" )
- local nospreaddesnyc = ui_new_combobox("AA","Other","Ant-Aims","Off","Verse","Inverse","HalfBack")
- local lbymode = ui_new_combobox("AA","Other", "Lby Mode", "Slow", "Fast", "Randomize")
- local side_key = ui_new_hotkey("AA", "Other", "Manual key")
- local function subtract_page(m)
- page_num = page_num - 1
- if page_num <= 0 then
- page_num = page_num + 1
- end
- client.color_log(0, 200, 100, "Changed page to ", page_num)
- end
- local function add_page(a)
- page_num = page_num + 1
- if page_num >= 3 and ui_get(AUTref) == true then
- page_num = page_num - 1
- elseif page_num >= 4 and ui_get(AUTref) == false then
- page_num = page_num - 1
- end
- client.color_log(0, 200, 100, "Changed page to ", page_num)
- end
- local function print(p)
- client_console_log(page_num)
- end
- local function New_menu(new)
- if page_num == 1 then
- ui_set_visible(FLM, true)
- ui_set_visible(Slowmo_ref, true)
- ui_set_visible(ID, true)
- ui_set_visible(fake_butt, false)
- ui_set_visible(color_pick, false)
- ui_set_visible(aamodedesync, false)
- ui_set_visible(onshot_ref, true)
- ui_set_visible(side_key, false)
- ui_set_visible(SlomoOpt_ref, true)
- ui_set_visible(nospreaddesnyc, false)
- ui_set_visible(lbymode, false)
- end
- if page_num == 2 then
- ui_set_visible(FLM, false)
- ui_set_visible(Slowmo_ref, false)
- ui_set_visible(ID, false)
- ui_set_visible(fake_butt, true)
- ui_set_visible(aamodedesync, true)
- ui_set_visible(onshot_ref, false)
- ui_set_visible(side_key, true)
- ui_set_visible(SlomoOpt_ref, false)
- ui_set_visible(nospreaddesnyc, false)
- end
- if page_num == 3 then
- ui_set_visible(side_key, false)
- ui_set_visible(FLM, false)
- ui_set_visible(Slowmo_ref, false)
- ui_set_visible(ID, false)
- ui_set_visible(fake_butt, false)
- ui_set_visible(color_pick, false)
- ui_set_visible(aamodedesync, false)
- ui_set_visible(onshot_ref, false)
- ui_set_visible(side_key, false)
- ui_set_visible(SlomoOpt_ref, false)
- ui_set_visible(nospreaddesnyc, true)
- ui_set_visible(lbymode, false)
- end
- end
- -- Indicators :P
- local function Arrows(ctp)
- selected2 = ui_get(aamodedesync)
- if (side == 1) then
- renderer.indicator(0, 0, 255, 255, "⮜")
- else
- renderer.indicator(0, 0, 255, 255, "⮞")
- end
- --Lby exploit indicator
- if (selected2 == "Lowerbody Exploit" and ui_get(yaw_slider) ~= 0) then
- renderer.indicator(255, 0, 0, 255, "LBY")
- elseif (selected2 == "Lowerbody Exploit" and ui_get(yaw_slider) == 0) then
- renderer.indicator(0, 255, 0, 255, "LBY")
- end
- end
- local function on_paint(ctx)
- local screen_width, screen_height = client_screen_size()
- local screen_center_x, screen_center_y = screen_width * 0.5, screen_height * 0.497
- local r1, g1, b1, a1 = ui_get(color_pick)
- if ui_get(fake_butt) == true then
- ui_set_visible(color_pick, true)
- else
- ui_set_visible(color_pick, false)
- end
- if selected2 ~= "Off" then
- if ui_get(fake_butt) == true then
- client_draw_text(ctx, screen_center_x+10, screen_center_y+10, r1, g1, b1, a1, "L", 0,"Antiaim:")
- client_draw_text(ctx, screen_center_x+60, screen_center_y+10, r1, g1, b1, a1, "L", 0, selected2)
- client_draw_text(ctx, screen_center_x+9.5, screen_center_y-20, r1, g1, b1, a1, "L", 0, "Current flag:")
- client_draw_text(ctx, screen_center_x+75, screen_center_y-19.5, r1, g1, b1, a1, "L", 0, info_antiaim_status)
- elseif ui_get(fake_butt) == false then
- client_draw_text(ctx, screen_center_x+10, screen_center_y+10, 0, 200, 0, 255, "L", 0,"AntiAim:")
- client_draw_text(ctx, screen_center_x+60, screen_center_y+10, 0, 200, 0, 255, "L", 0, selected2)
- client_draw_text(ctx, screen_center_x+9.5, screen_center_y-20, 0, 200, 0, 255, "L", 0, "Current flag:")
- client_draw_text(ctx, screen_center_x+75, screen_center_y-19.5, 0, 200, 0, 255, "L", 0, info_antiaim_status)
- end
- end
- if (ui_get(aamodedesync) == "Lowerbody Exploit") then
- ui_set_visible(lbymode, true)
- elseif (ui_get(aamodedesync) ~= "Lowerbody Exploit" or page_num ~= 2) then
- ui_set_visible(lbymode, false)
- end
- end
- local function AA(e)
- selected2 = ui_get(aamodedesync)
- if ui_get(side_key) == true then
- side = 1
- else
- side = 0
- end
- if globals_realtime() >= delay_time and selected2 == "K-Breakerv2" then
- ui_set(yaw, "180")
- ui_set(fyaw, "Opposite")
- client_delay_call(0.01, ui_set, yaw_slider, 0)
- client_delay_call(0.02, ui_set, yaw_slider, 180)
- delay_time = globals_realtime() + 0.02
- end
- -- test p2
- if globals_realtime() >= delay_time2 and selected2 == "K-Breakerv2" then
- client_delay_call(1, ui_set, fake_slider, -180)
- client_delay_call(2, ui_set, fake_slider, 180)
- delay_time2 = globals_realtime() + 1.7
- end
- if globals_realtime() >= delay_time and side == 0 and selected2 == "Manual" then
- ui_set(yaw, "180")
- ui_set(fyaw, "Static")
- ui_set(yaw_slider, 0)
- ui_set(fake_slider, 90)
- delay_time = globals_realtime() + 0.02
- elseif globals_realtime() >= delay_time and side == 1 and selected2 == "Manual" then
- ui_set(yaw, "180")
- ui_set(fyaw, "Static")
- ui_set(yaw_slider, -15)
- ui_set(fake_slider, -90)
- delay_time = globals_realtime() + 0.02
- end
- if (ui_get(lbymode) == "Slow") then
- if globals_realtime() >= delay_time and side == 0 and selected2 == "Lowerbody Exploit" then
- ui_set(yaw, "180")
- ui_set(fyaw, "Static")
- ui_set(fake_slider, -90)
- client_delay_call(0.05, ui_set, yaw_slider, 0)
- client_delay_call(1.1, ui_set, yaw_slider, -90)
- delay_time = globals_realtime() + 1.1
- end
- if globals_realtime() >= delay_time and side == 1 and selected2 == "Lowerbody Exploit" then
- ui_set(yaw, "180")
- ui_set(fyaw, "Static")
- ui_set(fake_slider, 90)
- client_delay_call(0.05, ui_set, yaw_slider, 0)
- client_delay_call(1.1, ui_set, yaw_slider, 90)
- delay_time = globals_realtime() + 1.1
- end
- end
- if (ui_get(lbymode) == "Fast") then
- if globals_realtime() >= delay_time and side == 0 and selected2 == "Lowerbody Exploit" then
- ui_set(yaw, "180")
- ui_set(fyaw, "Static")
- ui_set(fake_slider, -90)
- client_delay_call(0.05, ui_set, yaw_slider, 0)
- client_delay_call(0.5, ui_set, yaw_slider, -90)
- delay_time = globals_realtime() + 0.5
- end
- if globals_realtime() >= delay_time and side == 1 and selected2 == "Lowerbody Exploit" then
- ui_set(yaw, "180")
- ui_set(fyaw, "Static")
- ui_set(fake_slider, 90)
- client_delay_call(0.05, ui_set, yaw_slider, 0)
- client_delay_call(0.5, ui_set, yaw_slider, 90)
- delay_time = globals_realtime() + 0.5
- end
- end
- if (ui_get(lbymode) == "Randomize") then
- if globals_realtime() >= delay_time and side == 0 and selected2 == "Lowerbody Exploit" then
- ui_set(yaw, "180")
- ui_set(fyaw, "Static")
- ui_set(fake_slider, -90)
- client_delay_call(0.05, ui_set, yaw_slider, 0)
- client_delay_call(0.1, ui_set, yaw_slider, client.random_int(-58, 0))
- delay_time = globals_realtime() + 0.1
- end
- if globals_realtime() >= delay_time and side == 1 and selected2 == "Lowerbody Exploit" then
- ui_set(yaw, "180")
- ui_set(fyaw, "Static")
- ui_set(fake_slider, 90)
- client_delay_call(0.05, ui_set, yaw_slider, 0)
- client_delay_call(0.06, ui_set, yaw_slider, client.random_int(0, 58))
- delay_time = globals_realtime() + 0.06
- end
- end
- end
- local function main(hide)
- if selected2 ~= "Off" then
- ui_set_visible(fake_slider, false)
- ui_set_visible(fake_limit, false)
- ui_set_visible(yaw_slider, false)
- elseif selected2 == "Off" then
- ui_set_visible(fake_slider, true)
- ui_set_visible(fake_limit, true)
- ui_set_visible(fake_slider, true)
- end
- end
- --[[ Pointless Below
- ---
- ----
- ---
- --
- -
- local function on_shot(e)
- if (client_userid_to_entindex(e.userid) == entity_get_local_player() and ui_get(shot_check) == true) then
- ui_set(yaw, "180")
- ui_set(yaw_slider, -90)
- ui_set(yaw_base, "Local view")
- ui_set(limit, 1) --change this if u want
- ui_set(fakelagref, "Maximum")
- end
- end
- -
- --
- ---
- ----
- ---
- -- Pointless Above
- ]]
- client.set_event_callback('paint', New_menu)
- client.set_event_callback('paint', Arrows)
- client.set_event_callback('paint', AA)
- client.set_event_callback('paint', while_timings)
- client.set_event_callback('paint', on_paint)
- client.set_event_callback('paint', main)
- client.set_event_callback("player_hurt", aa_change)
- --client.set_event_callback('weapon_fire', on_shot)
- client.set_event_callback("round_prestart", prestart)
- local forward = ui_new_button("AA", "Other", "Next", add_page)
- local back = ui_new_button("AA", "Other", "Back", subtract_page)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement