Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.31 KB | None | 0 0
  1. --"==" returns true if the two values are equal or false if they are not equal
  2. --"~=" returns true if the two values are not equal or false if they are equal
  3. --">" greater than returns true if a value is greater than the other or false if it isn't
  4. --"<" less than returns true if a value is less than the other or false if it isn't
  5. --">=" greater than or equal to, returns true if a value is greater than or equal to the other or false if it isn't
  6. -- "<=" less than or equal to, returns true if a value is less than or equal to the other or false if it isn't
  7.  
  8.  
  9. local globals_realtime = globals.realtime
  10. local globals_curtime = globals.curtime
  11. local globals_maxplayers = globals.maxplayers
  12. local globals_tickcount = globals.tickcount
  13. local globals_tickinterval = globals.tickinterval
  14. local globals_mapname = globals.mapname
  15.  
  16. local client_set_event_callback = client.set_event_callback
  17. local client_console_log = client.log
  18. local client_console_cmd = client.exec
  19. local client_userid_to_entindex = client.userid_to_entindex
  20. local client_get_cvar = client.get_cvar
  21. local client_draw_debug_text = client.draw_debug_text
  22. local client_draw_hitboxes = client.draw_hitboxes
  23. local client_random_int = client.random_int
  24. local client_random_float = client.random_float
  25. local client_draw_text = client.draw_text
  26. local client_draw_rectangle = client.draw_rectangle
  27. local client_draw_line = client.draw_line
  28. local client_world_to_screen = client.world_to_screen
  29. local client_is_local_player = client.is_local_player
  30. local client_delay_call = client.delay_call
  31. local client_visible = client.visible
  32. local get_cvar = client.get_cvar
  33. local set_cvar = client.set_cvar
  34. 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
  35.  
  36. local ui_new_checkbox = ui.new_checkbox
  37. local ui_new_slider = ui.new_slider
  38. local ui_new_button = ui.new_button
  39. local ui_new_combobox = ui.new_combobox
  40. local ui_new_color_picker = ui.new_color_picker
  41. local ui_new_hotkey = ui.new_hotkey
  42. local ui_reference = ui.reference
  43. local ui_set = ui.set
  44. local ui_get = ui.get
  45. local ui_set_visible = ui.set_visible
  46.  
  47. local entity_get_local_player = entity.get_local_player
  48. local entity_get_all = entity.get_all
  49. local entity_get_players = entity.get_players
  50. local entity_get_classname = entity.get_classname
  51. local entity_set_prop = entity.set_prop
  52. local entity_get_prop = entity.get_prop
  53. local entity_is_enemy = entity.is_enemy
  54. local entity_get_player_name = entity.get_player_name
  55. local entity_get_player_weapon = entity.get_player_weapon
  56. local delay_time = 0
  57. local delay_time2 = 0
  58. local delay_time3 = 0
  59. local client_draw_rectangle = client.draw_rectangle
  60. local client_draw_text = client.draw_text
  61. local ui_new_checkbox = ui.new_checkbox
  62. local ui_new_combobox = ui.new_combobox
  63. local ui_get = ui.get
  64. local math_fmod = math.fmod
  65. local math_sqrt = math.sqrt
  66. local math_min = math.min
  67. local client_screen_size = client.screen_size
  68.  
  69. local to_number = tonumber
  70. local math_floor = math.floor
  71. local math_random = math.random
  72. local string_format = string.format
  73.  
  74.  
  75. -------------------------------------Menu References--------------------------------------------------
  76. local pitch = ui.reference("aa", "anti-aimbot angles", "Pitch")
  77. local yaw, yaw_slider = ui.reference("aa", "anti-aimbot angles", "Yaw")
  78. local fyaw, fake_slider = ui.reference("aa", "anti-aimbot angles", "Body Yaw")
  79. local FLM = ui.reference("AA", "Other", "Fix leg movement")
  80. local ID = ui.reference("AA", "Other", "Infinite duck")
  81. local Fl = ui.reference("aa", "Fake lag", "enabled")
  82. local fakelagref = ui.reference("aa", "Fake lag", "Amount")
  83. local varref = ui.reference("aa", "Fake lag", "Variance")
  84. local ammount = ui.reference("aa", "Fake lag", "Limit")
  85. local freestand = ui_reference("aa", "anti-aimbot angles", "Freestanding")
  86. local limit = ui_reference("aa", "Fake lag", "Limit")
  87. local yaw_base = ui_reference("aa", "anti-aimbot angles", "Yaw base")
  88. local lby_ref = ui_reference("aa", "anti-aimbot angles", "Lower body yaw")
  89. local crouchjump = ui_reference("MISC", "Miscellaneous", "Air duck")
  90. local AUTref = ui_reference("MISC", "Settings", "Anti-untrusted")
  91. local fake_limit = ui_reference("aa", "anti-aimbot angles", "Fake yaw limit")
  92. local Slowmo_ref = ui_reference("aa", "Other", "Slow motion")
  93. local SlomoOpt_ref = ui_reference("aa", "Other", "Slow motion type")
  94. local onshot_ref = ui_reference('AA', "Other", "On shot anti-aim")
  95.  
  96.  
  97. -------------------------------------External Dependancies----------------------------------------------
  98.  
  99. function hsv_to_rgb(h, s, v, a)
  100.  
  101. local r, g, b
  102.  
  103. local i = math_floor(h * 6);
  104. local f = h * 6 - i;
  105. local p = v * (1 - s);
  106. local q = v * (1 - f * s);
  107. local t = v * (1 - (1 - f) * s);
  108.  
  109. i = i % 6
  110.  
  111. if i == 0 then r, g, b = v, t, p
  112.  
  113. elseif i == 1 then r, g, b = q, v, p
  114. elseif i == 2 then r, g, b = p, v, t
  115. elseif i == 3 then r, g, b = p, q, v
  116. elseif i == 4 then r, g, b = t, p, v
  117. elseif i == 5 then r, g, b = v, p, q
  118.  
  119. end
  120.  
  121. return r * 255, g * 255, b * 255, a * 255
  122.  
  123. end
  124. local function while_timings()
  125.  
  126. info_antiaim_status = "Unknown"
  127. local function fl_onground( ent )
  128. local flags = entity_get_prop( ent, "m_fFlags" )
  129. local flags_on_ground = bit.band( flags, 1 )
  130.  
  131. if flags_on_ground == 1 then
  132. return true
  133. end
  134. return false
  135. end
  136.  
  137. local function fl_induck( ent )
  138. local flags = entity_get_prop( ent, "m_fFlags" )
  139. local flags_induck = bit.band( flags, 2 )
  140.  
  141. if flags_induck == 2 then
  142. return true
  143. end
  144. return false
  145. end
  146.  
  147. local vel_x, vel_y = entity_get_prop( entity_get_local_player( ), "m_vecVelocity" )
  148. local vel_real = math_floor( math_min( 10000, math_sqrt( vel_x*vel_x + vel_y*vel_y ) + 0.5 ))
  149.  
  150.  
  151. if fl_onground(entity_get_local_player()) and not fl_induck(entity_get_local_player()) and not fakewalk_enabled then
  152.  
  153. info_antiaim_status = "Standing"
  154.  
  155. end
  156.  
  157. if fl_onground (entity_get_local_player()) and not fl_induck(entity_get_local_player()) and vel_real> 1.0 then
  158. info_antiaim_status = "Running"
  159.  
  160.  
  161. end
  162.  
  163. if fl_onground (entity_get_local_player()) == false then
  164. info_antiaim_status = "Jumping"
  165.  
  166.  
  167. end
  168.  
  169. if fl_onground(entity_get_local_player()) and fl_induck(entity_get_local_player()) then
  170. info_antiaim_status = "Crouching"
  171.  
  172.  
  173. end
  174.  
  175. end
  176.  
  177. --client.delay_call(time_in_seconds, ui.set, reference, value)
  178. --Page number
  179. local page_num = 1
  180. local i = 0
  181. local side = 0
  182.  
  183.  
  184.  
  185. -- Menu elements
  186.  
  187. local fake_butt = ui_new_checkbox("AA", "Other", "Flag color")
  188. local color_pick = ui_new_color_picker("AA", "Other", "Flag_Color")
  189. local aamodedesync = ui_new_combobox("AA", "Other", "Desync", "Off", "K-Breakerv2", "Manual", "Lowerbody Exploit" )
  190. local nospreaddesnyc = ui_new_combobox("AA","Other","Ant-Aims","Off","Verse","Inverse","HalfBack")
  191. local lbymode = ui_new_combobox("AA","Other", "Lby Mode", "Slow", "Fast", "Randomize")
  192.  
  193. local side_key = ui_new_hotkey("AA", "Other", "Manual key")
  194.  
  195.  
  196.  
  197. local function subtract_page(m)
  198. page_num = page_num - 1
  199.  
  200. if page_num <= 0 then
  201. page_num = page_num + 1
  202. end
  203. client.color_log(0, 200, 100, "Changed page to ", page_num)
  204. end
  205.  
  206. local function add_page(a)
  207. page_num = page_num + 1
  208.  
  209. if page_num >= 3 and ui_get(AUTref) == true then
  210. page_num = page_num - 1
  211. elseif page_num >= 4 and ui_get(AUTref) == false then
  212. page_num = page_num - 1
  213. end
  214. client.color_log(0, 200, 100, "Changed page to ", page_num)
  215. end
  216.  
  217. local function print(p)
  218. client_console_log(page_num)
  219. end
  220.  
  221. local function New_menu(new)
  222.  
  223.  
  224. if page_num == 1 then
  225. ui_set_visible(FLM, true)
  226. ui_set_visible(Slowmo_ref, true)
  227. ui_set_visible(ID, true)
  228. ui_set_visible(fake_butt, false)
  229. ui_set_visible(color_pick, false)
  230. ui_set_visible(aamodedesync, false)
  231. ui_set_visible(onshot_ref, true)
  232. ui_set_visible(side_key, false)
  233. ui_set_visible(SlomoOpt_ref, true)
  234. ui_set_visible(nospreaddesnyc, false)
  235. ui_set_visible(lbymode, false)
  236. end
  237.  
  238. if page_num == 2 then
  239. ui_set_visible(FLM, false)
  240. ui_set_visible(Slowmo_ref, false)
  241. ui_set_visible(ID, false)
  242. ui_set_visible(fake_butt, true)
  243. ui_set_visible(aamodedesync, true)
  244. ui_set_visible(onshot_ref, false)
  245. ui_set_visible(side_key, true)
  246. ui_set_visible(SlomoOpt_ref, false)
  247. ui_set_visible(nospreaddesnyc, false)
  248.  
  249. end
  250. if page_num == 3 then
  251. ui_set_visible(side_key, false)
  252. ui_set_visible(FLM, false)
  253. ui_set_visible(Slowmo_ref, false)
  254. ui_set_visible(ID, false)
  255. ui_set_visible(fake_butt, false)
  256. ui_set_visible(color_pick, false)
  257. ui_set_visible(aamodedesync, false)
  258. ui_set_visible(onshot_ref, false)
  259. ui_set_visible(side_key, false)
  260. ui_set_visible(SlomoOpt_ref, false)
  261. ui_set_visible(nospreaddesnyc, true)
  262. ui_set_visible(lbymode, false)
  263. end
  264.  
  265. end
  266.  
  267. -- Indicators :P
  268. local function Arrows(ctp)
  269. selected2 = ui_get(aamodedesync)
  270. if (side == 1) then
  271. renderer.indicator(0, 0, 255, 255, "⮜")
  272. else
  273. renderer.indicator(0, 0, 255, 255, "⮞")
  274. end
  275. --Lby exploit indicator
  276. if (selected2 == "Lowerbody Exploit" and ui_get(yaw_slider) ~= 0) then
  277. renderer.indicator(255, 0, 0, 255, "LBY")
  278. elseif (selected2 == "Lowerbody Exploit" and ui_get(yaw_slider) == 0) then
  279. renderer.indicator(0, 255, 0, 255, "LBY")
  280. end
  281.  
  282.  
  283. end
  284.  
  285.  
  286. local function on_paint(ctx)
  287.  
  288. local screen_width, screen_height = client_screen_size()
  289. local screen_center_x, screen_center_y = screen_width * 0.5, screen_height * 0.497
  290. local r1, g1, b1, a1 = ui_get(color_pick)
  291.  
  292. if ui_get(fake_butt) == true then
  293. ui_set_visible(color_pick, true)
  294. else
  295. ui_set_visible(color_pick, false)
  296. end
  297.  
  298.  
  299.  
  300.  
  301. if selected2 ~= "Off" then
  302.  
  303. if ui_get(fake_butt) == true then
  304.  
  305. client_draw_text(ctx, screen_center_x+10, screen_center_y+10, r1, g1, b1, a1, "L", 0,"Antiaim:")
  306. client_draw_text(ctx, screen_center_x+60, screen_center_y+10, r1, g1, b1, a1, "L", 0, selected2)
  307. client_draw_text(ctx, screen_center_x+9.5, screen_center_y-20, r1, g1, b1, a1, "L", 0, "Current flag:")
  308. client_draw_text(ctx, screen_center_x+75, screen_center_y-19.5, r1, g1, b1, a1, "L", 0, info_antiaim_status)
  309. elseif ui_get(fake_butt) == false then
  310. client_draw_text(ctx, screen_center_x+10, screen_center_y+10, 0, 200, 0, 255, "L", 0,"AntiAim:")
  311. client_draw_text(ctx, screen_center_x+60, screen_center_y+10, 0, 200, 0, 255, "L", 0, selected2)
  312. client_draw_text(ctx, screen_center_x+9.5, screen_center_y-20, 0, 200, 0, 255, "L", 0, "Current flag:")
  313. client_draw_text(ctx, screen_center_x+75, screen_center_y-19.5, 0, 200, 0, 255, "L", 0, info_antiaim_status)
  314. end
  315.  
  316. end
  317.  
  318. if (ui_get(aamodedesync) == "Lowerbody Exploit") then
  319. ui_set_visible(lbymode, true)
  320. elseif (ui_get(aamodedesync) ~= "Lowerbody Exploit" or page_num ~= 2) then
  321. ui_set_visible(lbymode, false)
  322. end
  323.  
  324. end
  325.  
  326. local function AA(e)
  327. selected2 = ui_get(aamodedesync)
  328.  
  329.  
  330. if ui_get(side_key) == true then
  331. side = 1
  332. else
  333. side = 0
  334. end
  335.  
  336.  
  337. if globals_realtime() >= delay_time and selected2 == "K-Breakerv2" then
  338. ui_set(yaw, "180")
  339. ui_set(fyaw, "Opposite")
  340.  
  341. client_delay_call(0.01, ui_set, yaw_slider, 0)
  342. client_delay_call(0.02, ui_set, yaw_slider, 180)
  343. delay_time = globals_realtime() + 0.02
  344. end
  345.  
  346. -- test p2
  347. if globals_realtime() >= delay_time2 and selected2 == "K-Breakerv2" then
  348.  
  349.  
  350. client_delay_call(1, ui_set, fake_slider, -180)
  351. client_delay_call(2, ui_set, fake_slider, 180)
  352.  
  353. delay_time2 = globals_realtime() + 1.7
  354.  
  355.  
  356. end
  357.  
  358.  
  359. if globals_realtime() >= delay_time and side == 0 and selected2 == "Manual" then
  360. ui_set(yaw, "180")
  361. ui_set(fyaw, "Static")
  362.  
  363. ui_set(yaw_slider, 0)
  364. ui_set(fake_slider, 90)
  365.  
  366. delay_time = globals_realtime() + 0.02
  367.  
  368.  
  369. elseif globals_realtime() >= delay_time and side == 1 and selected2 == "Manual" then
  370. ui_set(yaw, "180")
  371. ui_set(fyaw, "Static")
  372.  
  373. ui_set(yaw_slider, -15)
  374. ui_set(fake_slider, -90)
  375.  
  376. delay_time = globals_realtime() + 0.02
  377. end
  378.  
  379. if (ui_get(lbymode) == "Slow") then
  380.  
  381. if globals_realtime() >= delay_time and side == 0 and selected2 == "Lowerbody Exploit" then
  382. ui_set(yaw, "180")
  383. ui_set(fyaw, "Static")
  384. ui_set(fake_slider, -90)
  385.  
  386. client_delay_call(0.05, ui_set, yaw_slider, 0)
  387. client_delay_call(1.1, ui_set, yaw_slider, -90)
  388.  
  389.  
  390.  
  391. delay_time = globals_realtime() + 1.1
  392. end
  393.  
  394. if globals_realtime() >= delay_time and side == 1 and selected2 == "Lowerbody Exploit" then
  395. ui_set(yaw, "180")
  396. ui_set(fyaw, "Static")
  397. ui_set(fake_slider, 90)
  398.  
  399. client_delay_call(0.05, ui_set, yaw_slider, 0)
  400. client_delay_call(1.1, ui_set, yaw_slider, 90)
  401.  
  402.  
  403.  
  404. delay_time = globals_realtime() + 1.1
  405. end
  406. end
  407.  
  408. if (ui_get(lbymode) == "Fast") then
  409.  
  410. if globals_realtime() >= delay_time and side == 0 and selected2 == "Lowerbody Exploit" then
  411. ui_set(yaw, "180")
  412. ui_set(fyaw, "Static")
  413. ui_set(fake_slider, -90)
  414.  
  415. client_delay_call(0.05, ui_set, yaw_slider, 0)
  416. client_delay_call(0.5, ui_set, yaw_slider, -90)
  417.  
  418.  
  419.  
  420. delay_time = globals_realtime() + 0.5
  421. end
  422.  
  423. if globals_realtime() >= delay_time and side == 1 and selected2 == "Lowerbody Exploit" then
  424. ui_set(yaw, "180")
  425. ui_set(fyaw, "Static")
  426. ui_set(fake_slider, 90)
  427.  
  428. client_delay_call(0.05, ui_set, yaw_slider, 0)
  429. client_delay_call(0.5, ui_set, yaw_slider, 90)
  430.  
  431.  
  432.  
  433. delay_time = globals_realtime() + 0.5
  434. end
  435. end
  436.  
  437. if (ui_get(lbymode) == "Randomize") then
  438.  
  439. if globals_realtime() >= delay_time and side == 0 and selected2 == "Lowerbody Exploit" then
  440. ui_set(yaw, "180")
  441. ui_set(fyaw, "Static")
  442. ui_set(fake_slider, -90)
  443.  
  444. client_delay_call(0.05, ui_set, yaw_slider, 0)
  445. client_delay_call(0.1, ui_set, yaw_slider, client.random_int(-58, 0))
  446.  
  447.  
  448.  
  449. delay_time = globals_realtime() + 0.1
  450. end
  451.  
  452. if globals_realtime() >= delay_time and side == 1 and selected2 == "Lowerbody Exploit" then
  453. ui_set(yaw, "180")
  454. ui_set(fyaw, "Static")
  455. ui_set(fake_slider, 90)
  456.  
  457. client_delay_call(0.05, ui_set, yaw_slider, 0)
  458. client_delay_call(0.06, ui_set, yaw_slider, client.random_int(0, 58))
  459.  
  460.  
  461.  
  462. delay_time = globals_realtime() + 0.06
  463. end
  464. end
  465.  
  466. end
  467.  
  468. local function main(hide)
  469. if selected2 ~= "Off" then
  470.  
  471. ui_set_visible(fake_slider, false)
  472. ui_set_visible(fake_limit, false)
  473. ui_set_visible(yaw_slider, false)
  474.  
  475. elseif selected2 == "Off" then
  476.  
  477. ui_set_visible(fake_slider, true)
  478. ui_set_visible(fake_limit, true)
  479. ui_set_visible(fake_slider, true)
  480. end
  481. end
  482.  
  483.  
  484.  
  485.  
  486.  
  487. --[[ Pointless Below
  488. ---
  489. ----
  490. ---
  491. --
  492. -
  493.  
  494. local function on_shot(e)
  495. if (client_userid_to_entindex(e.userid) == entity_get_local_player() and ui_get(shot_check) == true) then
  496.  
  497. ui_set(yaw, "180")
  498. ui_set(yaw_slider, -90)
  499. ui_set(yaw_base, "Local view")
  500. ui_set(limit, 1) --change this if u want
  501. ui_set(fakelagref, "Maximum")
  502.  
  503. end
  504. end
  505.  
  506. -
  507. --
  508. ---
  509. ----
  510. ---
  511. -- Pointless Above
  512. ]]
  513.  
  514. client.set_event_callback('paint', New_menu)
  515. client.set_event_callback('paint', Arrows)
  516. client.set_event_callback('paint', AA)
  517. client.set_event_callback('paint', while_timings)
  518. client.set_event_callback('paint', on_paint)
  519. client.set_event_callback('paint', main)
  520. client.set_event_callback("player_hurt", aa_change)
  521. --client.set_event_callback('weapon_fire', on_shot)
  522. client.set_event_callback("round_prestart", prestart)
  523. local forward = ui_new_button("AA", "Other", "Next", add_page)
  524. local back = ui_new_button("AA", "Other", "Back", subtract_page)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement