Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.07 KB | None | 0 0
  1. local client_latency, client_set_clan_tag, client_draw_indicator, client_log, client_draw_rectangle, client_world_to_screen, client_draw_circle_outline, client_timestamp, client_draw_circle = client.latency, client.set_clan_tag, client.draw_indicator, client.log, client.draw_rectangle, client.world_to_screen, client.draw_circle_outline, client.timestamp, client.draw_circle
  2. local client_userid_to_entindex, client_trace_line, client_draw_gradient, client_set_event_callback, client_screen_size, client_trace_bullet, client_draw_text = client.userid_to_entindex, client.trace_line, client.draw_gradient, client.set_event_callback, client.screen_size, client.trace_bullet, client.draw_text
  3. local client_color_log, client_system_time, client_delay_call, client_visible, client_exec, client_eye_position, client_set_cvar = client.color_log, client.system_time, client.delay_call, client.visible, client.exec, client.eye_position, client.set_cvar
  4. local client_scale_damage, client_draw_hitboxes, client_get_cvar, client_draw_line, client_camera_angles, client_draw_debug_text, client_random_int = client.scale_damage, client.draw_hitboxes, client.get_cvar, client.draw_line, client.camera_angles, client.draw_debug_text, client.random_int
  5. local entity_get_player_resource, entity_get_local_player, entity_is_enemy, entity_get_bounding_box, entity_is_dormant, entity_get_steam64, entity_get_player_name, entity_hitbox_position, entity_get_game_rules, entity_get_all = entity.get_player_resource, entity.get_local_player, entity.is_enemy, entity.get_bounding_box, entity.is_dormant, entity.get_steam64, entity.get_player_name, entity.hitbox_position, entity.get_game_rules, entity.get_all
  6. local entity_set_prop, entity_is_alive, entity_get_player_weapon, entity_get_prop, entity_get_players, entity_get_classname = entity.set_prop, entity.is_alive, entity.get_player_weapon, entity.get_prop, entity.get_players, entity.get_classname
  7. local globals_realtime, globals_absoluteframetime, globals_tickcount, globals_lastoutgoingcommand, globals_curtime, globals_mapname, globals_tickinterval = globals.realtime, globals.absoluteframetime, globals.tickcount, globals.lastoutgoingcommand, globals.curtime, globals.mapname, globals.tickinterval
  8. local globals_framecount, globals_frametime, globals_maxplayers = globals.framecount, globals.frametime, globals.maxplayers
  9. local ui_new_slider, ui_new_combobox, ui_reference, ui_is_menu_open, ui_set_visible, ui_new_textbox, ui_new_color_picker, ui_set_callback, ui_set = ui.new_slider, ui.new_combobox, ui.reference, ui.is_menu_open, ui.set_visible, ui.new_textbox, ui.new_color_picker, ui.set_callback, ui.set
  10. local ui_new_checkbox, ui_new_hotkey, ui_new_button, ui_new_multiselect, ui_get = ui.new_checkbox, ui.new_hotkey, ui.new_button, ui.new_multiselect, ui.get
  11. local math_ceil, math_tan, math_cos, math_sinh, math_pi, math_max, math_atan2, math_floor, math_sqrt, math_deg, math_atan, math_fmod, math_acos = math.ceil, math.tan, math.cos, math.sinh, math.pi, math.max, math.atan2, math.floor, math.sqrt, math.deg, math.atan, math.fmod, math.acos
  12. local math_pow, math_abs, math_min, math_sin, math_log, math_exp, math_cosh, math_asin, math_rad = math.pow, math.abs, math.min, math.sin, math.log, math.exp, math.cosh, math.asin, math.rad
  13. local table_sort, table_remove, table_concat, table_insert = table.sort, table.remove, table.concat, table.insert
  14. local string_find, string_format, string_gsub, string_len, string_gmatch, string_match, string_reverse, string_upper, string_lower, string_sub = string.find, string.format, string.gsub, string.len, string.gmatch, string.match, string.reverse, string.upper, string.lower, string.sub
  15. local renderer_circle_outline, renderer_rectangle, renderer_gradient, renderer_circle, renderer_text, renderer_line, renderer_measure_text, renderer_indicator, renderer_world_to_screen = renderer.circle_outline, renderer.rectangle, renderer.gradient, renderer.circle, renderer.text, renderer.line, renderer.measure_text, renderer.indicator, renderer.world_to_screen
  16. --end of local variables
  17.  
  18. local chkbox_manual = ui_new_checkbox("AA", "Anti-aimbot angles", "Desync Renanzinho")
  19. local hotkey_switch = ui_new_hotkey("AA", "Anti-aimbot angles", "Troca de Lado hotkey")
  20.  
  21. local ref_yaw_base = ui_reference("AA", "Anti-aimbot angles", "Yaw base")
  22. local ref_yaw, ref_yaw_val = ui_reference("AA", "Anti-aimbot angles", "Yaw")
  23. local ref_yaw_fake, ref_yaw_fake_val = ui_reference("AA", "Anti-aimbot angles", "Yaw while running")
  24. local ref_yaw, ref_yaw_val2 = ui_reference("AA", "Anti-aimbot angles", "Fake yaw")
  25. local ref_yaw, ref_yaw_val3 = ui_reference("AA", "Anti-aimbot angles", "Yaw jitter")
  26.  
  27. local sx, sy = client_screen_size()
  28. local sx_c, sy_c = sx / 2, sy / 2
  29. local hotkey_prev = false
  30. local iSide = 0
  31.  
  32. client_set_event_callback("run_command", function()
  33.     if not ui_get(chkbox_manual) then return end
  34.  
  35.     if ui_get(hotkey_switch) and not hotkey_prev then
  36.         iSide = iSide == 1 and 0 or 1
  37.     end
  38.  
  39.     hotkey_prev = ui_get(hotkey_switch)
  40.  
  41.     if iSide == 0 and ui_get(ref_yaw_val) ~= 0 then
  42.         ui_set(ref_yaw_val, 0)
  43.     elseif iSide == 1 and ui_get(ref_yaw_val) ~= 0 then
  44.         ui_set(ref_yaw_val, 0)
  45.     end
  46.     if iSide == 0 and ui_get(ref_yaw_val2) ~= 90 then
  47.         ui_set(ref_yaw_val2, 90)
  48.     elseif iSide == 1 and ui_get(ref_yaw_val2) ~= -90 then
  49.         ui_set(ref_yaw_val2, -90)
  50.     end
  51.     if iSide == 0 and ui_get(ref_yaw_val3) ~= -25 then
  52.         ui_set(ref_yaw_val3, -25)
  53.     elseif iSide == 1 and ui_get(ref_yaw_val3) ~= 25 then
  54.         ui_set(ref_yaw_val3, 25)
  55.     end
  56.     if iSide == 0 and ui_get(ref_yaw_fake_val) ~= 0 then
  57.         ui_set(ref_yaw_fake_val, 0)
  58.     elseif iSide == 1 and ui_get(ref_yaw_fake_val) ~= 0 then
  59.         ui_set(ref_yaw_fake_val, 0)
  60.     end
  61. end)
  62.  
  63. client_set_event_callback("paint", function(e)
  64.     if not ui_get(chkbox_manual) then return end
  65.  
  66.     if iSide == 0 then
  67.         renderer_text(sx_c - 100, sy_c, 123, 194, 21, 255, "c+", 0, "??                  ")
  68.         client_draw_indicator(c, 123, 194, 21, 255, "Desync Left")
  69.     elseif iSide == 1 then
  70.         renderer_text(sx_c + 100, sy_c, 123, 194, 21, 255, "c+", 0, "                  ??")
  71.         client_draw_indicator(c, 123, 194, 21, 255, "Desync Right")
  72.     end
  73. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement