SHARE
TWEET

CustomAa's

a guest Nov 17th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  2. -- <><> CREATED BY CRIM,SPOEZY,STEPH,JAKE (Main Coder),SODUOSYN AND CONTRIBUTORS ON THE CRIMWALK DISCORD
  3. -- <><> IF YOU HAVE ANY ISSUES OR QUESTIONS WITH MY MESSY CODE, FEEL FREE TO ADD ME ON DISCORD: no, no add.  <><>
  4. -- <><> IF YOU HAVE ANY RECOMMENDATIONS FOR THE CODE, PLEASE DO LEAVE SOME                                   <><>
  5. -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  6.  
  7. -- TABLE OF CONTENTS:
  8.  
  9. -- CONTROL + F TO FIND THEM
  10. -- [LOCALS]                                 A LIST OF ALL THE LOCAL REFERENCES, CLIENTS, ENTITIES, ETC.
  11. -- [ANTIAIM REFERENCES]                     ALL THE REFERENCES OF THE ANTIAIM TAB
  12. -- [LIST OF PRESET ANTIAIMS]                ADD TO THIS LIST IF YOU WOULD LIKE TO MAKE MORE ANTI-AIMS
  13. -- [PRESET ANTIAIMS]                        THIS IS WHERE YOU CAN CHANGE THE PRESETS
  14. -- [FORCE RESET]                            REFERENCES TO RESET ANTIAIMS
  15. -- [RESET BUTTONS]                          LOCALS CREATING NEW BUTTONS
  16. -- [ADAPTIVE ANTIAIMS WHILES]               FUNCTIONS FOR TRYING TO FIND CURRENT FLAGS (THANK YOU RAZER FOR HAVING SOME CODE TO LOOK AT)
  17. -- [DRAW ON SCREEN]                         DRAWS ANTIAIMS/FLAGS ON THE SCREEN
  18. -- [CALLBACKS]                              CALLBACKS
  19.  
  20. -- TO-DO LIST FOR PUBLIC BUILD
  21.     -- MAKE SURE THAT NOTHINGS OVERLY BUGGY
  22.     -- MAKE A CUSTOM ANTIAIM IN GAME/IN MENU THAT PLAYERS CAN SAVE
  23.     -- LEARN HOW TO CODE PROPERLY
  24.  
  25. -- LOCALS <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  26.  
  27. local client_latency, client_log, client_draw_rectangle, client_draw_circle_outline, client_userid_to_entindex, client_draw_indicator, client_draw_gradient, client_set_event_callback, client_screen_size, client_eye_position = client.latency, client.log, client.draw_rectangle, client.draw_circle_outline, client.userid_to_entindex, client.draw_indicator, client.draw_gradient, client.set_event_callback, client.screen_size, client.eye_position
  28. local client_draw_circle, client_color_log, client_delay_call, client_draw_text, client_visible, client_exec, client_trace_line, client_set_cvar = client.draw_circle, client.color_log, client.delay_call, client.draw_text, client.visible, client.exec, client.trace_line, client.set_cvar
  29. local client_world_to_screen, client_draw_hitboxes, client_get_cvar, client_draw_line, client_camera_angles, client_draw_debug_text, client_random_int, client_random_float = client.world_to_screen, client.draw_hitboxes, client.get_cvar, client.draw_line, client.camera_angles, client.draw_debug_text, client.random_int, client.random_float
  30. 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
  31. local entity_is_alive, entity_get_player_weapon, entity_get_prop, entity_get_players, entity_get_classname = entity.is_alive, entity.get_player_weapon, entity.get_prop, entity.get_players, entity.get_classname
  32. local globals_realtime, globals_absoluteframetime, globals_tickcount, globals_curtime, globals_mapname, globals_tickinterval, globals_framecount, globals_frametime, globals_maxplayers = globals.realtime, globals.absoluteframetime, globals.tickcount, globals.curtime, globals.mapname, globals.tickinterval, globals.framecount, globals.frametime, globals.maxplayers
  33. local ui_new_slider, ui_new_combobox, ui_reference, ui_set_visible, ui_is_menu_open, ui_new_color_picker, ui_set_callback, ui_set, ui_new_checkbox, ui_new_hotkey, ui_new_button, ui_new_multiselect, ui_get = ui.new_slider, ui.new_combobox, ui.reference, ui.set_visible, ui.is_menu_open, ui.new_color_picker, ui.set_callback, ui.set, ui.new_checkbox, ui.new_hotkey, ui.new_button, ui.new_multiselect, ui.get
  34. local math_ceil, math_tan, math_log10, math_randomseed, math_cos, math_sinh, math_random, math_huge, math_pi, math_max, math_atan2, math_ldexp, math_floor, math_sqrt, math_deg, math_atan, math_fmod = math.ceil, math.tan, math.log10, math.randomseed, math.cos, math.sinh, math.random, math.huge, math.pi, math.max, math.atan2, math.ldexp, math.floor, math.sqrt, math.deg, math.atan, math.fmod
  35. local math_acos, math_pow, math_abs, math_min, math_sin, math_frexp, math_log, math_tanh, math_exp, math_modf, math_cosh, math_asin, math_rad = math.acos, math.pow, math.abs, math.min, math.sin, math.frexp, math.log, math.tanh, math.exp, math.modf, math.cosh, math.asin, math.rad
  36. local table_maxn, table_foreach, table_sort, table_remove, table_foreachi, table_move, table_getn, table_concat, table_insert = table.maxn, table.foreach, table.sort, table.remove, table.foreachi, table.move, table.getn, table.concat, table.insert
  37. local string_find, string_format, string_rep, string_gsub, string_len, string_gmatch, string_dump, string_match, string_reverse, string_byte, string_char, string_upper, string_lower, string_sub = string.find, string.format, string.rep, string.gsub, string.len, string.gmatch, string.dump, string.match, string.reverse, string.byte, string.char, string.upper, string.lower, string.sub
  38.  
  39. local client_set_event_callback = client.set_event_callback
  40. local client_draw_text = client.draw_text
  41. local client_get_cvar = client.get_cvar
  42. local client_screensize = client.screen_size
  43. local client_exec = client.exec
  44.  
  45. -- ANTIAIM REFERENCES<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  46.  
  47. local antiaims = {}
  48.  
  49. antiaims.ui_get, ui_set = ui.get, ui.set
  50. antiaims.pitch = ui.reference("AA", "Anti-aimbot angles", "Pitch")
  51. antiaims.yawbase = ui.reference("AA", "Anti-aimbot angles", "Yaw base")
  52. antiaims.yaw, antiaims.yaw_slider = ui.reference("AA", "Anti-aimbot angles", "Yaw")
  53. antiaims.yawjitter, antiaims.yawjitter_slider = ui.reference("AA", "Anti-aimbot angles", "Yaw jitter")
  54. antiaims.fakeyaw, antiaims.fakeyaw_slider = ui.reference("AA", "Anti-aimbot angles", "Body yaw")
  55. antiaims.freestandbodyyaw = ui.reference("AA", "Anti-aimbot angles", "Freestanding body yaw")
  56. antiaims.lowerbodyyaw = ui.reference("AA", "Anti-aimbot angles", "Lower body yaw target")
  57. antiaims.edgeyaw = ui.reference("AA", "Anti-aimbot angles", "Edge yaw")
  58. antiaims.edgeyaw_offset = ui.reference("AA", "Anti-aimbot angles", "Edge fake yaw offset")
  59. antiaims.freestanding = ui.reference("AA", "Anti-aimbot angles", "Freestanding")
  60. antiaims.freestanding_duck = ui.reference("AA", "Anti-aimbot angles", "Freestanding ignore duck")
  61. antiaims.twist = ui.reference("AA", "Anti-aimbot angles", "Twist")
  62. antiaims.ref_fakewalk, antiaims.ref_fakewalk_key = ui_reference("AA", "Other", "Slow motion")
  63.  
  64. menu_fakeyaw_ref, menu_fakeyaw_offset_ref = ui.reference("AA", "Anti-aimbot angles", "Body yaw")
  65.  
  66. -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  67.  
  68. local to_number = tonumber
  69. local math_floor = math.floor
  70. local math_random = math.random
  71. local table_insert = table.insert
  72. local table_remove = table.remove
  73. local table_size = table.getn
  74. local string_format = string.format
  75. local delay_time = 0
  76.  
  77. -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  78.  
  79. local interface = {
  80.     ref = ui.reference,
  81.     visible = ui.set_visible,
  82.     callback = ui.set_callback,
  83.     multiselect = ui.new_multiselect,
  84.     checkbox = ui.new_checkbox,
  85.     slider = ui.new_slider,
  86.     hotkey = ui.new_hotkey,
  87.     combobox = ui.new_combobox,
  88.     colorpicker = ui.new_color_picker
  89. }
  90.  
  91. local cl = {
  92.     log = client.log,
  93.     indicator = client.draw_indicator,
  94.     circle_outline = client.draw_circle_outline,
  95.     circle = client.draw_circle,
  96.     eye_pos = client.eye_position,
  97.     camera_angles = client.camera_angles
  98. }
  99.  
  100. local selector = interface.combobox("Lua", "A", "State", "Standing", "Moving", "Jumping", "Slow motion", "Crouching")
  101.  
  102. local standpitch = interface.combobox("Lua", "A", "Stand: Pitch", "Off", "Default", "Up", "Down", "Minimal", "Random")
  103. local standyawbase = interface.combobox("Lua", "A", "Stand: Yaw base", "Local view", "At targets")
  104. local standyaw = interface.combobox("Lua", "A", "Stand: Yaw", "Off", "180", "Spin", "Static", "180 Z", "Crosshair")
  105. local standyawslider = interface.slider("Lua", "A", "Stand: Yaw angle", -180, 180, 0, true)
  106. local standyawjitter = interface.combobox("Lua", "A", "Stand: Yaw jitter", "Off", "Offset", "Center", "Random")
  107. local standyawjitter_slider = interface.slider("Lua", "A", "Stand: Yaw jitter range", -180, 180, 0, true)
  108. local standfakeyaw = interface.combobox("Lua", "A", "Stand: Body yaw", "Off", "Opposite", "Jitter", "Static")
  109. local standfakeyaw_slider = interface.slider("Lua", "A", "Stand: Body yaw angle", -180, 180, 0, true)
  110. local standfreestandbodyyaw = interface.checkbox("Lua", "A", "Stand: Freestanding body yaw")
  111. local standlowerbodyyaw = interface.combobox("Lua", "A", "Stand: Lower body yaw target", "Off", "Sway", "Opposite", "Eye yaw")
  112. --local standedgeyaw = interface.combobox("Lua", "A", "Stand: Edge yaw", "Off", "Static")
  113. --local standedgeyaw_offset = interface.slider("Lua", "A", "Stand: Edge fake yaw offset", -180, 180, 0, true)
  114. local standtwist = interface.checkbox("Lua", "A", "Stand: Twist")
  115.  
  116. local movepitch = interface.combobox("Lua", "A", "Move: Pitch", "Off", "Default", "Up", "Down", "Minimal", "Random")
  117. local moveyawbase = interface.combobox("Lua", "A", "Move: Yaw base", "Local view", "At targets")
  118. local moveyaw = interface.combobox("Lua", "A", "Move: Yaw", "Off", "180", "Spin", "Static", "180 Z", "Crosshair")
  119. local moveyawslider = interface.slider("Lua", "A", "Move: Yaw angle", -180, 180, 0, true)
  120. local moveyawjitter = interface.combobox("Lua", "A", "Move: Yaw jitter", "Off", "Offset", "Center", "Random")
  121. local moveyawjitter_slider = interface.slider("Lua", "A", "Move: Yaw jitter range", -180, 180, 0, true)
  122. local movefakeyaw = interface.combobox("Lua", "A", "Move: Body yaw", "Off", "Opposite", "Jitter", "Static")
  123. local movefakeyaw_slider = interface.slider("Lua", "A", "Move: Body yaw angle", -180, 180, 0, true)
  124. local movefreestandbodyyaw = interface.checkbox("Lua", "A", "Move: Freestanding body yaw")
  125. local movelowerbodyyaw = interface.combobox("Lua", "A", "Move: Lower body yaw target", "Off", "Sway", "Opposite", "Eye yaw")
  126. --local moveedgeyaw = interface.combobox("Lua", "A", "Move: Edge yaw", "Off", "Static")
  127. --local moveedgeyaw_offset = interface.slider("Lua", "A", "Move: Edge fake yaw offset", -180, 180, 0, true)
  128. local movetwist = interface.checkbox("Lua", "A", "Move: Twist")
  129.  
  130. local jumppitch = interface.combobox("Lua", "A", "Jump: Pitch", "Off", "Default", "Up", "Down", "Minimal", "Random")
  131. local jumpyawbase = interface.combobox("Lua", "A", "Jump: Yaw base", "Local view", "At targets")
  132. local jumpyaw = interface.combobox("Lua", "A", "Jump: Yaw", "Off", "180", "Spin", "Static", "180 Z", "Crosshair")
  133. local jumpyawslider = interface.slider("Lua", "A", "Jump: Yaw angle", -180, 180, 0, true)
  134. local jumpyawjitter = interface.combobox("Lua", "A", "Jump: Yaw jitter", "Off", "Offset", "Center", "Random")
  135. local jumpyawjitter_slider = interface.slider("Lua", "A", "Jump: Yaw jitter range", -180, 180, 0, true)
  136. local jumpfakeyaw = interface.combobox("Lua", "A", "Jump: Body yaw", "Off", "Opposite", "Jitter", "Static")
  137. local jumpfakeyaw_slider = interface.slider("Lua", "A", "Jump: Body yaw angle", -180, 180, 0, true)
  138. local jumpfreestandbodyyaw = interface.checkbox("Lua", "A", "Jump: Freestanding body yaw")
  139. local jumplowerbodyyaw = interface.combobox("Lua", "A", "Jump: Lower body yaw target", "Off", "Sway", "Opposite", "Eye yaw")
  140. --local jumpedgeyaw = interface.combobox("Lua", "A", "Jump: Edge yaw", "Off", "Static")
  141. --local jumpedgeyaw_offset = interface.slider("Lua", "A", "Jump: Edge fake yaw offset", -180, 180, 0, true)
  142. local jumptwist = interface.checkbox("Lua", "A", "Jump: Twist")
  143.  
  144. local slowmotionpitch = interface.combobox("Lua", "A", "Slow motion: Pitch", "Off", "Default", "Up", "Down", "Minimal", "Random")
  145. local slowmotionyawbase = interface.combobox("Lua", "A", "Slow motion: Yaw base", "Local view", "At targets")
  146. local slowmotionyaw = interface.combobox("Lua", "A", "Slow motion: Yaw", "Off", "180", "Spin", "Static", "180 Z", "Crosshair")
  147. local slowmotionyawslider = interface.slider("Lua", "A", "Slow motion: Yaw angle", -180, 180, 0, true)
  148. local slowmotionyawjitter = interface.combobox("Lua", "A", "Slow motion: Yaw jitter", "Off", "Offset", "Center", "Random")
  149. local slowmotionyawjitter_slider = interface.slider("Lua", "A", "Slow motion: Yaw jitter range", -180, 180, 0, true)
  150. local slowmotionfakeyaw = interface.combobox("Lua", "A", "Slow motion: Body yaw", "Off", "Opposite", "Jitter", "Static")
  151. local slowmotionfakeyaw_slider = interface.slider("Lua", "A", "Slow motion: Body yaw angle", -180, 180, 0, true)
  152. local slowmotionfreestandbodyyaw = interface.checkbox("Lua", "A", "Slow motion: Freestanding body yaw")
  153. local slowmotionlowerbodyyaw = interface.combobox("Lua", "A", "Slow motion: Lower body yaw target", "Off", "Sway", "Opposite", "Eye yaw")
  154. --local slowmotionedgeyaw = interface.combobox("Lua", "A", "Slow motion: Edge yaw", "Off", "Static")
  155. --local slowmotionedgeyaw_offset = interface.slider("Lua", "A", "Slow motion: Edge fake yaw offset", -180, 180, 0, true)
  156. local slowmotiontwist = interface.checkbox("Lua", "A", "Slow motion: Twist")
  157.  
  158. local crouchpitch = interface.combobox("Lua", "A", "Crouch: Pitch", "Off", "Default", "Up", "Down", "Minimal", "Random")
  159. local crouchyawbase = interface.combobox("Lua", "A", "Crouch: Yaw base", "Local view", "At targets")
  160. local crouchyaw = interface.combobox("Lua", "A", "Crouch: Yaw", "Off", "180", "Spin", "Static", "180 Z", "Crosshair")
  161. local crouchyawslider = interface.slider("Lua", "A", "Crouch: Yaw angle", -180, 180, 0, true)
  162. local crouchyawjitter = interface.combobox("Lua", "A", "Crouch: Yaw jitter", "Off", "Offset", "Center", "Random")
  163. local crouchyawjitter_slider = interface.slider("Lua", "A", "Crouch: Yaw jitter range", -180, 180, 0, true)
  164. local crouchfakeyaw = interface.combobox("Lua", "A", "Crouch: Body yaw", "Off", "Opposite", "Jitter", "Static")
  165. local crouchfakeyaw_slider = interface.slider("Lua", "A", "Crouch: Body yaw angle", -180, 180, 0, true)
  166. local crouchfreestandbodyyaw = interface.checkbox("Lua", "A", "Crouch: Freestanding body yaw")
  167. local crouchlowerbodyyaw = interface.combobox("Lua", "A", "Crouch: Lower body yaw target", "Off", "Sway", "Opposite", "Eye yaw")
  168. --local crouchedgeyaw = interface.combobox("Lua", "A", "Crouch: Edge yaw", "Off", "Static")
  169. --local crouchedgeyaw_offset = interface.slider("Lua", "A", "Crouch: Edge fake yaw offset", -180, 180, 0, true)
  170. local crouchtwist = interface.checkbox("Lua", "A", "Crouch: Twist")
  171.  
  172. -- AA PRESETS <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  173.  
  174. function Standing()
  175.  
  176.     ui_set(antiaims.pitch, ui_get(standpitch))
  177.     ui_set(antiaims.yawbase, ui_get(standyawbase))
  178.     ui_set(antiaims.yaw, ui_get(standyaw))
  179.     ui_set(antiaims.yaw_slider, ui_get(standyawslider))
  180.     ui_set(antiaims.yawjitter, ui_get(standyawjitter))
  181.     ui_set(antiaims.yawjitter_slider, ui_get(standyawjitter_slider))
  182.     ui_set(antiaims.fakeyaw, ui_get(standfakeyaw))
  183.     ui_set(antiaims.fakeyaw_slider, ui_get(standfakeyaw_slider))
  184.     ui_set(antiaims.freestandbodyyaw, ui_get(standfreestandbodyyaw))
  185.     ui_set(antiaims.lowerbodyyaw, ui_get(standlowerbodyyaw))
  186.     --ui_set(antiaims.edgeyaw, ui_get(standedgeyaw))
  187.     --ui_set(antiaims.edgeyaw_offset, ui_get(standedgeyaw_offset))
  188.     --ui_set(antiaims.freestanding, "-")
  189.     ui_set(antiaims.twist, ui_get(standtwist))
  190.    
  191. end
  192.  
  193. function Moving()
  194.  
  195.     ui_set(antiaims.pitch, ui_get(movepitch))
  196.     ui_set(antiaims.yawbase, ui_get(moveyawbase))
  197.     ui_set(antiaims.yaw, ui_get(moveyaw))
  198.     ui_set(antiaims.yaw_slider, ui_get(moveyawslider))
  199.     ui_set(antiaims.yawjitter, ui_get(moveyawjitter))
  200.     ui_set(antiaims.yawjitter_slider, ui_get(moveyawjitter_slider))
  201.     ui_set(antiaims.fakeyaw, ui_get(movefakeyaw))
  202.     ui_set(antiaims.fakeyaw_slider, ui_get(movefakeyaw_slider))
  203.     ui_set(antiaims.lowerbodyyaw, ui_get(movelowerbodyyaw))
  204.     --ui_set(antiaims.edgeyaw, "Off")
  205.     --ui_set(antiaims.freestanding, "-")
  206.     ui_set(antiaims.twist, ui_get(movetwist))
  207.    
  208. end
  209.  
  210. function Jumping()
  211.    
  212.     ui_set(antiaims.pitch, ui_get(jumppitch))
  213.     ui_set(antiaims.yawbase, ui_get(jumpyawbase))
  214.     ui_set(antiaims.yaw, ui_get(jumpyaw))
  215.     ui_set(antiaims.yaw_slider, ui_get(jumpyawslider))
  216.     ui_set(antiaims.yawjitter, ui_get(jumpyawjitter))
  217.     ui_set(antiaims.yawjitter_slider, ui_get(jumpyawjitter_slider))
  218.     ui_set(antiaims.fakeyaw, ui_get(jumpfakeyaw))
  219.     ui_set(antiaims.fakeyaw_slider, ui_get(jumpfakeyaw_slider))
  220.     ui_set(antiaims.lowerbodyyaw, ui_get(jumplowerbodyyaw))
  221.     --ui_set(antiaims.edgeyaw, "Off")
  222.     --ui_set(antiaims.freestanding, "-")
  223.     ui_set(antiaims.twist, ui_get(jumptwist))
  224.    
  225. end
  226.  
  227. function Slowmotion()
  228.        
  229.     ui_set(antiaims.pitch, ui_get(slowmotionpitch))
  230.     ui_set(antiaims.yawbase, ui_get(slowmotionyawbase))
  231.     ui_set(antiaims.yaw, ui_get(slowmotionyaw))
  232.     ui_set(antiaims.yaw_slider, ui_get(slowmotionyawslider))
  233.     ui_set(antiaims.yawjitter, ui_get(slowmotionyawjitter))
  234.     ui_set(antiaims.yawjitter_slider, ui_get(slowmotionyawjitter_slider))
  235.     ui_set(antiaims.fakeyaw, ui_get(slowmotionfakeyaw))
  236.     ui_set(antiaims.fakeyaw_slider, ui_get(slowmotionfakeyaw_slider))
  237.     ui_set(antiaims.lowerbodyyaw, ui_get(slowmotionlowerbodyyaw))
  238.     --ui_set(antiaims.edgeyaw, "Off")
  239.     --ui_set(antiaims.freestanding, "-")
  240.     ui_set(antiaims.twist, ui_get(slowmotiontwist))
  241.    
  242. end
  243.  
  244. function Crouching()
  245.        
  246.     ui_set(antiaims.pitch, ui_get(crouchpitch))
  247.     ui_set(antiaims.yawbase, ui_get(crouchyawbase))
  248.     ui_set(antiaims.yaw, ui_get(crouchyaw))
  249.     ui_set(antiaims.yaw_slider, ui_get(crouchyawslider))
  250.     ui_set(antiaims.yawjitter, ui_get(crouchyawjitter))
  251.     ui_set(antiaims.yawjitter_slider, ui_get(crouchyawjitter_slider))
  252.     ui_set(antiaims.fakeyaw, ui_get(crouchfakeyaw))
  253.     ui_set(antiaims.fakeyaw_slider, ui_get(crouchfakeyaw_slider))
  254.     ui_set(antiaims.lowerbodyyaw, ui_get(crouchlowerbodyyaw))
  255.     --ui_set(antiaims.edgeyaw, "Off")
  256.     --ui_set(antiaims.freestanding, "-")
  257.     ui_set(antiaims.twist, ui_get(crouchtwist))
  258.    
  259. end
  260.  
  261. -- ADAPTIVE ANTIAIMS WHILES <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  262.  
  263. local function while_timings()
  264.     info_antiaim_status = "Unknown"
  265.     local function fl_onground(ent)
  266.         local flags = entity_get_prop(ent, "m_fFlags")
  267.         local flags_on_ground = bit.band( flags, 1 )
  268.    
  269.         if flags_on_ground == 1 then
  270.             return true
  271.         end
  272.         return false
  273.     end
  274.  
  275.     local function fl_induck(ent)
  276.         local flags = entity_get_prop(ent, "m_fFlags")
  277.         local flags_induck = bit.band(flags, 2)
  278.    
  279.         if flags_induck == 2 then
  280.             return true
  281.         end
  282.         return false
  283.     end
  284.  
  285.     local vel_x, vel_y = entity_get_prop(entity_get_local_player(), "m_vecVelocity")
  286.     local vel_real = math_floor(math_min(10000, math_sqrt(vel_x*vel_x + vel_y*vel_y) + 0.5 ))
  287.     local fakewalk_enabled = ui_get(antiaims.ref_fakewalk) and ui_get(antiaims.ref_fakewalk_key)
  288.  
  289. -- IF STANDING <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  290.  
  291.     if fl_onground(entity_get_local_player()) and not fl_induck(entity_get_local_player()) and not fakewalk_enabled then
  292.  
  293.         info_antiaim_status = "Standing"
  294.        
  295.         if adaptive_default ~= "Off" and fl_onground(entity_get_local_player()) and not fl_induck(entity_get_local_player()) and not fakewalk_enabled then
  296.             Standing()
  297.         end
  298.     end
  299.    
  300. -- IF RUNNING <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  301.  
  302.     if fl_onground (entity_get_local_player()) and not fakewalk_enabled and not fl_induck(entity_get_local_player()) and vel_real> 1.0 then
  303.         info_antiaim_status = "Moving"
  304.        
  305.         if adaptive_running ~= "Off" and fl_onground (entity_get_local_player()) and not fakewalk_enabled and not fl_induck(entity_get_local_player()) and vel_real> 1.0 then
  306.             Moving()
  307.         end
  308.     end
  309.  
  310. -- IF JUMPING <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  311.  
  312.     if fl_onground (entity_get_local_player()) == false then
  313.         info_antiaim_status = "Jumping"
  314.        
  315.         if adaptive_jumping ~= "Off" and fl_onground(entity_get_local_player()) == false then
  316.             Jumping()
  317.         end
  318.     end
  319.  
  320. -- IF CROUCHING <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  321.    
  322.     if fl_onground(entity_get_local_player()) and fl_induck(entity_get_local_player()) then
  323.         info_antiaim_status = "Crouching"
  324.        
  325.         if adaptive_crouching ~= "Off" and fl_onground(entity_get_local_player()) and fl_induck(entity_get_local_player())then
  326.             Crouching()
  327.         end
  328.     end
  329.    
  330. -- IF SLOWMOTION <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  331.  
  332.     if fl_onground(entity_get_local_player()) and fakewalk_enabled then
  333.         info_antiaim_status = "Slow motion"
  334.        
  335.         if adaptive_fake ~= "Off" and fl_onground(entity_get_local_player()) and fakewalk_enabled then
  336.             Slowmotion()
  337.         end    
  338.     end
  339. end
  340.  
  341. -- DRAW ON SCREEN <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  342.  
  343. local showflags = ui_new_checkbox("Lua", "A", "Display current state")
  344. --local color_picker = ui_new_color_picker("AA", "Other", "Show Flags", 0, 200, 0, 255)
  345.  
  346. local function visible()
  347.     if ui_get(selector) == "Standing" then
  348.         ui_set_visible(standpitch, true)
  349.         ui_set_visible(standyawbase, true)
  350.         ui_set_visible(standyaw, true)
  351.         ui_set_visible(standyawslider, true)
  352.         ui_set_visible(standyawjitter, true)
  353.         ui_set_visible(standyawjitter_slider, true)
  354.         ui_set_visible(standfakeyaw, true)
  355.         ui_set_visible(standfakeyaw_slider, true)
  356.         ui_set_visible(standfreestandbodyyaw, true)
  357.         ui_set_visible(standlowerbodyyaw, true)
  358.         --ui_set_visible(standedgeyaw, true)
  359.         --ui_set_visible(standedgeyaw_offset, true)
  360.         ui_set_visible(standtwist, true)
  361.     else
  362.         ui_set_visible(standpitch, false)
  363.         ui_set_visible(standyawbase, false)
  364.         ui_set_visible(standyaw, false)
  365.         ui_set_visible(standyawslider, false)
  366.         ui_set_visible(standyawjitter, false)
  367.         ui_set_visible(standyawjitter_slider, false)
  368.         ui_set_visible(standfakeyaw, false)
  369.         ui_set_visible(standfakeyaw_slider, false)
  370.         ui_set_visible(standfreestandbodyyaw, false)
  371.         ui_set_visible(standlowerbodyyaw, false)
  372.         --ui_set_visible(standedgeyaw, false)
  373.         --ui_set_visible(standedgeyaw_offset, false)
  374.         ui_set_visible(standtwist, false)
  375.     end
  376.  
  377.     if ui_get(selector) == "Moving" then
  378.         ui_set_visible(movepitch, true)
  379.         ui_set_visible(moveyawbase, true)
  380.         ui_set_visible(moveyaw, true)
  381.         ui_set_visible(moveyawslider, true)
  382.         ui_set_visible(moveyawjitter, true)
  383.         ui_set_visible(moveyawjitter_slider, true)
  384.         ui_set_visible(movefakeyaw, true)
  385.         ui_set_visible(movefakeyaw_slider, true)
  386.         ui_set_visible(movefreestandbodyyaw, true)
  387.         ui_set_visible(movelowerbodyyaw, true)
  388.         --ui_set_visible(moveedgeyaw, true)
  389.         --ui_set_visible(moveedgeyaw_offset, true)
  390.         ui_set_visible(movetwist, true)
  391.     else
  392.         ui_set_visible(movepitch, false)
  393.         ui_set_visible(moveyawbase, false)
  394.         ui_set_visible(moveyaw, false)
  395.         ui_set_visible(moveyawslider, false)
  396.         ui_set_visible(moveyawjitter, false)
  397.         ui_set_visible(moveyawjitter_slider, false)
  398.         ui_set_visible(movefakeyaw, false)
  399.         ui_set_visible(movefakeyaw_slider, false)
  400.         ui_set_visible(movefreestandbodyyaw, false)
  401.         ui_set_visible(movelowerbodyyaw, false)
  402.         --ui_set_visible(moveedgeyaw, false)
  403.         --ui_set_visible(moveedgeyaw_offset, false)
  404.         ui_set_visible(movetwist, false)
  405.     end
  406.        
  407.     if ui_get(selector) == "Jumping" then
  408.         ui_set_visible(jumppitch, true)
  409.         ui_set_visible(jumpyawbase, true)
  410.         ui_set_visible(jumpyaw, true)
  411.         ui_set_visible(jumpyawslider, true)
  412.         ui_set_visible(jumpyawjitter, true)
  413.         ui_set_visible(jumpyawjitter_slider, true)
  414.         ui_set_visible(jumpfakeyaw, true)
  415.         ui_set_visible(jumpfakeyaw_slider, true)
  416.         ui_set_visible(jumpfreestandbodyyaw, true)
  417.         ui_set_visible(jumplowerbodyyaw, true)
  418.         --ui_set_visible(jumpedgeyaw, true)
  419.         --ui_set_visible(jumpedgeyaw_offset, true)
  420.         ui_set_visible(jumptwist, true)
  421.     else
  422.         ui_set_visible(jumppitch, false)
  423.         ui_set_visible(jumpyawbase, false)
  424.         ui_set_visible(jumpyaw, false)
  425.         ui_set_visible(jumpyawslider, false)
  426.         ui_set_visible(jumpyawjitter, false)
  427.         ui_set_visible(jumpyawjitter_slider, false)
  428.         ui_set_visible(jumpfakeyaw, false)
  429.         ui_set_visible(jumpfakeyaw_slider, false)
  430.         ui_set_visible(jumpfreestandbodyyaw, false)
  431.         ui_set_visible(jumplowerbodyyaw, false)
  432.         --ui_set_visible(jumpedgeyaw, false)
  433.         --ui_set_visible(jumpedgeyaw_offset, false)
  434.         ui_set_visible(jumptwist, false)
  435.     end
  436.  
  437.     if ui_get(selector) == "Slow motion" then
  438.         ui_set_visible(slowmotionpitch, true)
  439.         ui_set_visible(slowmotionyawbase, true)
  440.         ui_set_visible(slowmotionyaw, true)
  441.         ui_set_visible(slowmotionyawslider, true)
  442.         ui_set_visible(slowmotionyawjitter, true)
  443.         ui_set_visible(slowmotionyawjitter_slider, true)
  444.         ui_set_visible(slowmotionfakeyaw, true)
  445.         ui_set_visible(slowmotionfakeyaw_slider, true)
  446.         ui_set_visible(slowmotionfreestandbodyyaw, true)
  447.         ui_set_visible(slowmotionlowerbodyyaw, true)
  448.         --ui_set_visible(slowmotionedgeyaw, true)
  449.         --ui_set_visible(slowmotionedgeyaw_offset, true)
  450.         ui_set_visible(slowmotiontwist, true)
  451.     else
  452.         ui_set_visible(slowmotionpitch, false)
  453.         ui_set_visible(slowmotionyawbase, false)
  454.         ui_set_visible(slowmotionyaw, false)
  455.         ui_set_visible(slowmotionyawslider, false)
  456.         ui_set_visible(slowmotionyawjitter, false)
  457.         ui_set_visible(slowmotionyawjitter_slider, false)
  458.         ui_set_visible(slowmotionfakeyaw, false)
  459.         ui_set_visible(slowmotionfakeyaw_slider, false)
  460.         ui_set_visible(slowmotionfreestandbodyyaw, false)
  461.         ui_set_visible(slowmotionlowerbodyyaw, false)
  462.         --ui_set_visible(slowmotionedgeyaw, false)
  463.         --ui_set_visible(slowmotionedgeyaw_offset, false)
  464.         ui_set_visible(slowmotiontwist, false)
  465.     end
  466.  
  467.     if ui_get(selector) == "Crouching" then
  468.         ui_set_visible(crouchpitch, true)
  469.         ui_set_visible(crouchyawbase, true)
  470.         ui_set_visible(crouchyaw, true)
  471.         ui_set_visible(crouchyawslider, true)
  472.         ui_set_visible(crouchyawjitter, true)
  473.         ui_set_visible(crouchyawjitter_slider, true)
  474.         ui_set_visible(crouchfakeyaw, true)
  475.         ui_set_visible(crouchfakeyaw_slider, true)
  476.         ui_set_visible(crouchfreestandbodyyaw, true)
  477.         ui_set_visible(crouchlowerbodyyaw, true)
  478.         --ui_set_visible(crouchedgeyaw, true)
  479.         --ui_set_visible(crouchedgeyaw_offset, true)
  480.         ui_set_visible(crouchtwist, true)
  481.     else
  482.         ui_set_visible(crouchpitch, false)
  483.         ui_set_visible(crouchyawbase, false)
  484.         ui_set_visible(crouchyaw, false)
  485.         ui_set_visible(crouchyawslider, false)
  486.         ui_set_visible(crouchyawjitter, false)
  487.         ui_set_visible(crouchyawjitter_slider, false)
  488.         ui_set_visible(crouchfakeyaw, false)
  489.         ui_set_visible(crouchfakeyaw_slider, false)
  490.         ui_set_visible(crouchfreestandbodyyaw, false)
  491.         ui_set_visible(crouchlowerbodyyaw, false)
  492.         --ui_set_visible(crouchedgeyaw, false)
  493.         --ui_set_visible(crouchedgeyaw_offset, false)
  494.         ui_set_visible(crouchtwist, false)
  495.     end
  496. end
  497.  
  498. client.set_event_callback('paint', visible)
  499.  
  500. local function on_paint(ctx)
  501.     local screen_width, screen_height = client_screen_size()
  502.     --local r, g, b, a = ui_get(color_picker)
  503.     if ui_get(showflags, true) then
  504.         client_draw_text(ctx, screen_width / 2 - 55, screen_height / 2 + 20, 0, 200, 0, 255, "", 0, "Current state: ")
  505.         client_draw_text(ctx, screen_width / 2 + 20, screen_height / 2 + 20, 0, 200, 0, 255, "", 0, info_antiaim_status)
  506.     end
  507. end
  508.  
  509. -- CALLBACKS <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  510.  
  511. client.set_event_callback("run_command", while_timings)
  512. client.set_event_callback("paint", on_paint)
  513. client.set_event_callback("paint", get_antiaim)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top