· 6 years ago · Mar 13, 2020, 11:14 AM
1--local variables for API. Automatically generated by https://github.com/simpleavaster/gslua/blob/master/authors/sapphyrus/generate_api.lua
2client_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
3client_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
4client_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
5entity_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
6entity_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
7globals_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
8ui_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
9math_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
10math_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
11table_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
12string_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
13bit_band, client_delay_call, client_set_event_callback, entity_get_local_player, entity_get_player_weapon, entity_get_prop, print, func, select, table_insert, table_sort, type, ui_get, ui_name, ui_new_checkbox, ui_new_combobox, ui_new_multiselect, ui_reference, ui_set, ui_set_callback, ui_set_visible, xpcall, pairs = bit.band, client.delay_call, client.set_event_callback, entity.get_local_player, entity.get_player_weapon, entity.get_prop, print, func, select, table.insert, table.sort, type, ui.get, ui.name, ui.new_checkbox, ui.new_combobox, ui.new_multiselect, ui.reference, ui.set, ui.set_callback, ui.set_visible, xpcall, pairs
14--end of local variables
15namerr = "nigahook"
16function lua_log(...)
17 client.color_log(234, 237, 37, "[" .. namerr .. "]\0")
18 local argIndex = 1
19 while select(argIndex, ...) ~= nil do
20 client.color_log(126, 215, 135, " ", select(argIndex, ...), "\0")
21 argIndex = argIndex + 1
22 end
23 client.color_log(126, 215, 135, " ")
24end
25
26----------------------------------------------------------------------------------
27client.color_log(255, 255, 255, "---------------------------------------------------------------------------")
28lua_log("Welcome ", user, ", Lua date: March 6th, 2020, 9:33 AM CST")
29client.color_log(255, 255, 255, "---------------------------------------------------------------------------")
30----------------------------------------------------------------------------------
31
32
33adaptive_weapons = {
34
35 ["Global"] = {},
36 ["Auto"] = { 11, 38 },
37 ["Awp"] = { 9 },
38 ["Scout"] = { 40 },
39 ["Heavy pistol"] = { 1, 64 },
40 ["Pistol"] = { 2, 3, 4, 30, 32, 36, 61, 63 },
41 ["Rifle"] = { 7, 8, 10, 13, 16, 39, 60 },
42 --["Submachine gun"] = {17, 19, 24, 26, 33, 34},
43 --["Machine gun"] = {14, 28},
44 --["Shotgun"] = {25, 27, 29, 35},
45}
46
47function collect_keys(tbl, sort)
48 local keys = {}
49 sort = sort or true
50 for k in pairs(tbl) do
51 keys[#keys + 1] = k
52 end
53 if sort then
54 table_sort(keys)
55 end
56 return keys
57end
58
59------------ -----UI----- ------------
60
61adaptive_config2 = ui_new_combobox("LUA", "A", "Current weapon", collect_keys(adaptive_weapons))
62
63------------TRIGGERMAGNET
64
65tm_cb = ui.new_checkbox("LUA", "A", "Triggermagnet")
66triggermagnet = ui.new_hotkey("LUA", "A", "Triggermagnet", true)
67
68------------DYNAMIC FOV
69
70global_dynamicfov_enable = ui_new_checkbox('LUA', 'A', 'Global Dynamic FOV')
71auto_dynamicfov_enable = ui_new_checkbox('LUA', 'A', 'Auto Dynamic FOV')
72awp_dynamicfov_enable = ui_new_checkbox('LUA', 'A', 'Awp Dynamic FOV')
73scout_dynamicfov_enable = ui_new_checkbox('LUA', 'A', 'Scout Dynamic FOV')
74heavypistol_dynamicfov_enable = ui_new_checkbox('LUA', 'A', 'Heavy pistol Dynamic FOV')
75pistol_dynamicfov_enable = ui_new_checkbox('LUA', 'A', 'Pistol Dynamic FOV')
76rifle_dynamicfov_enable = ui_new_checkbox('LUA', 'A', 'Rifle Dynamic FOV')
77
78--pistols
79
80dynamicfov_minpistol = ui_new_slider('LUA', 'A', 'Pistol Dynamic FOV Min', 1, 180, 3, true, '°', 1)
81dynamicfov_maxpistol = ui_new_slider('LUA', 'A', 'Pistol Dynamic FOV Max', 1, 180, 69, true, '°', 1)
82
83--heavy pistols
84dynamicfov_minheavypistol = ui_new_slider('LUA', 'A', 'Heavy pistol Dynamic FOV Min', 1, 180, 3, true, '°', 1)
85dynamicfov_maxheavypistol = ui_new_slider('LUA', 'A', 'Heavy pistol Dynamic FOV Max', 1, 180, 69, true, '°', 1)
86
87--rifle
88
89dynamicfov_minrifle = ui_new_slider('LUA', 'A', 'Rifle Dynamic FOV Min', 1, 180, 3, true, '°', 1)
90dynamicfov_maxrifle = ui_new_slider('LUA', 'A', 'Rifle Dynamic FOV Max', 1, 180, 69, true, '°', 1)
91
92--awp
93
94dynamicfov_minawp = ui_new_slider('LUA', 'A', 'Awp FOV Min', 1, 180, 3, true, '°', 1)
95dynamicfov_maxawp = ui_new_slider('LUA', 'A', 'Awp Dynamic FOV Max', 1, 180, 69, true, '°', 1)
96
97--scout
98
99dynamicfov_minscout = ui_new_slider('LUA', 'A', 'Scout FOV Min', 1, 180, 3, true, '°', 1)
100dynamicfov_maxscout = ui_new_slider('LUA', 'A', 'Scout Dynamic FOV Max', 1, 180, 69, true, '°', 1)
101
102--auto
103
104dynamicfov_minauto = ui_new_slider('LUA', 'A', 'Auto FOV Min', 1, 180, 3, true, '°', 1)
105dynamicfov_maxauto = ui_new_slider('LUA', 'A', 'Auto Dynamic FOV Max', 1, 180, 69, true, '°', 1)
106
107--other
108
109dynamicfov_minother = ui_new_slider('LUA', 'A', 'Global Dynamic FOV Min', 1, 180, 3, true, '°', 1)
110dynamicfov_maxother = ui_new_slider('LUA', 'A', 'Global Dynamic FOV Max', 1, 180, 69, true, '°', 1)
111dynamicfov_auto_factor_pistol = ui_new_slider('LUA', 'A', 'Pistol Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
112dynamicfov_auto_factor_heavypistol = ui_new_slider('LUA', 'A', 'Heavy Pistol Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
113dynamicfov_auto_factor_rifle = ui_new_slider('LUA', 'A', 'Rifle Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
114dynamicfov_auto_factor_awp = ui_new_slider('LUA', 'A', 'Awp Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
115dynamicfov_auto_factor_scout = ui_new_slider('LUA', 'A', 'Scout Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
116dynamicfov_auto_factor_auto = ui_new_slider('LUA', 'A', 'Auto Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
117dynamicfov_auto_factor_other = ui_new_slider('LUA', 'A', 'Other Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
118
119------------DYNAMIC LEGIT AA
120
121legitAA = ui_new_checkbox("AA", "Anti-aimbot angles", "Legit anti-aim")
122legitAAbase = ui_new_combobox("AA", "Anti-aimbot angles", "\n aa_legit_base", "Manual", "Dynamic")
123LegitAAHotkey = ui_new_hotkey("AA", "Anti-aimbot angles", "Anti-aim switch key", true)
124flip_key = ui.new_hotkey("AA", "Anti-aimbot angles", "Flip Key", true)
125legitaa_freestand_type = ui_new_combobox("AA", "Anti-aimbot angles", "Freestanding type", "Edge", "Damage", "Flip + Manual")
126legitaasafe = ui.new_multiselect("AA", "Anti-aimbot angles", "Anti-aim improvements", "High ping", "Low FPS")
127disableaaping = ui.new_slider('AA', 'Anti-aimbot angles', 'Ping to disable AA', 1, 1000, 69)
128disableaafps = ui.new_slider('AA', 'Anti-aimbot angles', 'FPS to disable AA', 1, 1000, 69)
129LegitAABreaker = ui_new_combobox("AA", "Anti-aimbot angles", "Anti-aim mode", "Smart", "Maximum", "Fast", "Break bruteforce")
130brutemode2 = ui.new_combobox("aa", "anti-aimbot angles", "Break Mode", "Slow", "Fast", "Jitter")
131ui_indicator_combobox4 = ui.new_combobox("AA", "Anti-aimbot angles", "Anti-aim indicator", "Off", "Metro", "Point arrows", "Dashes")
132ui_indicator_color_picker4 = ui.new_color_picker("AA", "Anti-aimbot angles", "Indicator colour", "0", "115", "255", "255")
133enableaawm = ui.new_checkbox('AA', 'Anti-aimbot angles', 'Custom AA While moving')
134legitaamoving = ui.new_combobox("AA", "Anti-aimbot angles", "\n aa_legit_bases", 'Off', 'Slow walk', 'Moving', 'Standing')
135
136--slow walk
137
138slowmode = ui.new_combobox('AA', 'Anti-aimbot angles', "Slow walk AA", "Smart", "Maximum", "Fast", "Break bruteforce")
139
140--move
141
142movemode = ui.new_combobox('AA', 'Anti-aimbot angles', "Moving AA", "Smart", "Maximum", "Fast", "Break bruteforce")
143
144--stand
145
146standmode = ui.new_combobox('AA', 'Anti-aimbot angles', "Stand AA", "Smart", "Maximum", "Fast", "Break bruteforce")
147
148
149------------AUTOWALL
150
151global_autowall_check = ui.new_checkbox("LUA", "A", "Global Autoball")
152pistol_autowall_check = ui.new_checkbox("LUA", "A", "Pistol Autoball")
153heavypistol_autowall_check = ui.new_checkbox("LUA", "A", "Heavy pistol Autoball")
154rifle_autowall_check = ui.new_checkbox("LUA", "A", "Rifle Autoball")
155awp_autowall_check = ui.new_checkbox("LUA", "A", "Awp Autoball")
156auto_autowall_check = ui.new_checkbox("LUA", "A", "Auto Autoball")
157scout_autowall_check = ui.new_checkbox("LUA", "A", "Scout Autoball")
158pistol_auto_autowall = ui.new_multiselect("LUA", "A", "Pistol Auto autoball", "Dynamic autowall FOV", "Edge autowall")
159heavypistol_auto_autowall = ui.new_multiselect("LUA", "A", "Heavy pistol Auto autoball", "Dynamic autowall FOV", "Edge autowall")
160rifle_auto_autowall = ui.new_multiselect("LUA", "A", "Rifle Auto autoball", "Dynamic autowall FOV", "Edge autowall")
161awp_auto_autowall = ui.new_multiselect("LUA", "A", "Awp Auto autoball", "Dynamic autowall FOV", "Edge autowall")
162auto_auto_autowall = ui.new_multiselect("LUA", "A", "Auto Auto autoball", "Dynamic autowall FOV", "Edge autowall")
163scout_auto_autowall = ui.new_multiselect("LUA", "A", "Scout Auto autoball", "Dynamic autowall FOV", "Edge autowall")
164global_auto_autowall = ui.new_multiselect("LUA", "A", "Other Auto autoball", "Dynamic autowall FOV", "Edge autowall")
165global_legit_pen_threshold_ref = ui.new_slider("LUA", "A", "Global Visible hitbox threshold", 1, 18, 4, true)
166pistol_legit_pen_threshold_ref = ui.new_slider("LUA", "A", "Pistol Visible hitbox threshold", 1, 18, 4, true)
167heavypistol_legit_pen_threshold_ref = ui.new_slider("LUA", "A", "Heavy pistol Visible hitbox threshold", 1, 18, 4, true)
168rifle_legit_pen_threshold_ref = ui.new_slider("LUA", "A", "Rifle Visible hitbox threshold", 1, 18, 4, true)
169awp_legit_pen_threshold_ref = ui.new_slider("LUA", "A", "Awp Visible hitbox threshold", 1, 18, 4, true)
170auto_legit_pen_threshold_ref = ui.new_slider("LUA", "A", "Auto Visible hitbox threshold", 1, 18, 4, true)
171scout_legit_pen_threshold_ref = ui.new_slider("LUA", "A", "Scout Visible hitbox threshold", 1, 18, 4, true)
172global_dynamicfov_minaw = ui_new_slider('LUA', 'A', 'Global AW Dynamic FOV Min', 1, 180, 3, true, '°', 1)
173global_dynamicfov_maxaw = ui_new_slider('LUA', 'A', 'Global AW Dynamic FOV Max', 1, 180, 69, true, '°', 1)
174pistol_dynamicfov_minaw = ui_new_slider('LUA', 'A', 'Pistol AW Dynamic FOV Min', 1, 180, 3, true, '°', 1)
175pistol_dynamicfov_maxaw = ui_new_slider('LUA', 'A', 'Pistol AW Dynamic FOV Max', 1, 180, 69, true, '°', 1)
176heavypistol_dynamicfov_minaw = ui_new_slider('LUA', 'A', 'Heavy pistol AW Dynamic FOV Min', 1, 180, 3, true, '°', 1)
177heavypistol_dynamicfov_maxaw = ui_new_slider('LUA', 'A', 'Heavy pistol AW Dynamic FOV Max', 1, 180, 69, true, '°', 1)
178rifle_dynamicfov_minaw = ui_new_slider('LUA', 'A', 'Rifle AW Dynamic FOV Min', 1, 180, 3, true, '°', 1)
179rifle_dynamicfov_maxaw = ui_new_slider('LUA', 'A', 'Rifle AW Dynamic FOV Max', 1, 180, 69, true, '°', 1)
180awp_dynamicfov_minaw = ui_new_slider('LUA', 'A', 'Awp AW Dynamic FOV Min', 1, 180, 3, true, '°', 1)
181awp_dynamicfov_maxaw = ui_new_slider('LUA', 'A', 'Awp AW Dynamic FOV Max', 1, 180, 69, true, '°', 1)
182auto_dynamicfov_minaw = ui_new_slider('LUA', 'A', 'Auto AW Dynamic FOV Min', 1, 180, 3, true, '°', 1)
183auto_dynamicfov_maxaw = ui_new_slider('LUA', 'A', 'Auto AW Dynamic FOV Max', 1, 180, 69, true, '°', 1)
184scout_dynamicfov_minaw = ui_new_slider('LUA', 'A', 'Scout AW Dynamic FOV Min', 1, 180, 3, true, '°', 1)
185scout_dynamicfov_maxaw = ui_new_slider('LUA', 'A', 'Scout AW Dynamic FOV Max', 1, 180, 69, true, '°', 1)
186dynamicfov_auto_factor_pistolaw = ui_new_slider('LUA', 'A', 'Pistol AW Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
187dynamicfov_auto_factor_heavypistolaw = ui_new_slider('LUA', 'A', 'Heavy Pistol AW Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
188dynamicfov_auto_factor_rifleaw = ui_new_slider('LUA', 'A', 'Rifle AW Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
189dynamicfov_auto_factor_awpaw = ui_new_slider('LUA', 'A', 'Awp AW Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
190dynamicfov_auto_factor_scoutaw = ui_new_slider('LUA', 'A', 'Scout AW Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
191dynamicfov_auto_factor_autoaw = ui_new_slider('LUA', 'A', 'Auto AW Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
192dynamicfov_auto_factor_otheraw = ui_new_slider('LUA', 'A', 'Other AW Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
193non_adaptive_aw_check = ui.new_checkbox("LUA", "A", "Non adaptive Autoball")
194non_adaptive_auto_autowall = ui.new_multiselect("LUA", "A", "Non adaptive autoball", "Autowall if shot me", "Autowall if was visible", "Autowall on key", "Show autowall damage", "Penetration reticle")
195autowalltoggle = ui.new_hotkey("LUA", "A", "Autoball toggle", true)
196pistol_autowall_var = false
197heavypistol_autowall_var = false
198rifle_autowall_var = false
199awp_autowall_var = false
200auto_autowall_var = false
201scout_autowall_var = false
202global_autowall_var = false
203all_autowallifshot_var = false
204all_autowallwasvisible_var = false
205all_autowallkey_var = false
206beforedelay = ui.new_slider("LUA", "A", "How long until autowall turns on", 1, 1000, 1, true, 's')
207autodely = ui.new_slider("LUA", "A", "How long autowall stays on", 1, 1000, 1, true, 's')
208_autowall_mode_auto_trigger_delay = ui.new_slider('LUA', 'A', 'How long autowall stays on after seeing player', 0, 2500, 850, true, 'ms')
209autowalldamage_position = ui.new_combobox("LUA", "A", "Damage position", "Top", "Bottom")
210autowalldamage_color = ui.new_color_picker("LUA", "A", "Autowall damage indicator")
211autowalldamage_type = ui.new_combobox("LUA", "A", "Damage type", "Show body damage", "Show head damage", "Both", "Combined")
212autowalldamage_labelhead = ui.new_label("LUA", "A", "Autowall damage head color")
213autowalldamage_colorhead = ui.new_color_picker("LUA", "A", "Autowall damage head color")
214autowalldamage_labelbody = ui.new_label("LUA", "A", "Autowall damage body color")
215autowalldamage_colorbody = ui.new_color_picker("LUA", "A", "Autowall damage body color")
216
217------------INDICATORS
218
219indicator_label = ui.new_label("LUA", "B", "-------INDICATORS-------")
220indicate_enable = ui.new_checkbox("LUA", "B", "Indicators")
221indicate_on = ui.new_combobox("LUA", "B", "Indicators (drag to move small and big)", "Off", "Small", "Big", "Default")
222indicate_color = ui.new_color_picker("LUA", "B", "Indicators")
223indicate_select = ui.new_multiselect("LUA", "B", "Indicator select", "Triggermagnet", "Silent aim", "Autowall", "Legitbot improvements", "FOV", "Bruteforce", "Force body aim", "Safe point")
224indicateposition = ui.new_slider("LUA", "B", "Reposition Indicators X", 0, 40, 0, true, "x")
225
226------------FLAGS
227
228flag_enable = ui.new_checkbox("LUA", "B", "Flags")
229flag_color = ui.new_color_picker("LUA", "B", "\n flags")
230flag_select = ui.new_multiselect("LUA", "B", "\n flags", "Override")
231indicator_label2 = ui.new_label("LUA", "B", "-------INDICATORS-------")
232indicator_label3 = ui.new_label("LUA", "B", "----------MISC----------")
233
234------------FAKELAG
235
236flcheckbox = ui.new_checkbox("AA", "Fake lag", "Fake lag")
237flmulti = ui.new_multiselect("AA", "Fake lag", "Fake lag", "Fakelag presets", "Custom fake lag while moving")
238legitflmode = ui_new_combobox("AA", "Fake lag", "\n aa_legit_fl_mode", { "On peek", "On peek & visibility", "Always on", })
239
240------------SILENT AIM
241
242global_silentcheck = ui.new_checkbox("LUA", "A", "Global Silent aim settings")
243pistol_silentcheck = ui.new_checkbox("LUA", "A", "Pistol Silent aim settings")
244heavypistol_silentcheck = ui.new_checkbox("LUA", "A", "Heavy pistol Silent aim settings")
245rifle_silentcheck = ui.new_checkbox("LUA", "A", "Rifle Silent aim settings")
246awp_silentcheck = ui.new_checkbox("LUA", "A", "Awp Silent aim settings")
247auto_silentcheck = ui.new_checkbox("LUA", "A", "Auto Silent aim settings")
248scout_silentcheck = ui.new_checkbox("LUA", "A", "Scout Silent aim settings")
249global_silentmulti = ui.new_multiselect("LUA", "A", "Global Silent aim settings", "Silent aim if in fov", "Silent aim in distance", "Silent aim while slow walking")
250pistol_silentmulti = ui.new_multiselect("LUA", "A", "Pistol Silent aim settings", "Silent aim if in fov", "Silent aim in distance", "Silent aim while slow walking")
251heavypistol_silentmulti = ui.new_multiselect("LUA", "A", "Heavy pistol Silent aim settings", "Silent aim if in fov", "Silent aim in distance", "Silent aim while slow walking")
252rifle_silentmulti = ui.new_multiselect("LUA", "A", "Rifle Silent aim settings", "Silent aim if in fov", "Silent aim in distance", "Silent aim while slow walking")
253awp_silentmulti = ui.new_multiselect("LUA", "A", "Awp Silent aim settings", "Silent aim if in fov", "Silent aim in distance", "Silent aim while slow walking")
254auto_silentmulti = ui.new_multiselect("LUA", "A", "Auto Silent aim settings", "Silent aim if in fov", "Silent aim in distance", "Silent aim while slow walking")
255scout_silentmulti = ui.new_multiselect("LUA", "A", "Scout Silent aim settings", "Silent aim if in fov", "Silent aim in distance", "Silent aim while slow walking")
256global_silentkey_var = false
257pistol_silentkey_var = false
258heavypistol_silentkey_var = false
259awp_silentkey_var = false
260auto_silentkey_var = false
261scout_silentkey_var = false
262rifle_silentkey_var = false
263global_silent_var = false
264pistol_silent_var = false
265heavypistol_silent_var = false
266rifle_silent_var = false
267awp_silent_var = false
268auto_silent_var = false
269scout_silent_var = false
270global_silent_var_fov = false
271pistol_silent_var_fov = false
272heavypistol_silent_var_fov = false
273rifle_silent_var_fov = false
274awp_silent_var_fov = false
275auto_silent_var_fov = false
276scout_silent_var_fov = false
277global_slowwalk_var = false
278pistol_slowwalk_var = false
279heavypistol_slowwalk_var = false
280rifle_slowwalk_var = false
281awp_slowwalk_var = false
282auto_slowwalk_var = false
283scout_slowwalk_var = false
284
285--SILENT AIM IF FOV
286
287global_silentfovslider = ui.new_slider("LUA", "A", "Global Silent aim if in fov", 1, 180, 1, true, "°")
288pistol_silentfovslider = ui.new_slider("LUA", "A", "Pistol Silent aim if in fov", 1, 180, 1, true, "°")
289heavypistol_silentfovslider = ui.new_slider("LUA", "A", "Heavy pistolSilent aim if in fov", 1, 180, 1, true, "°")
290rifle_silentfovslider = ui.new_slider("LUA", "A", "Rifle Silent aim if in fov", 1, 180, 1, true, "°")
291awp_silentfovslider = ui.new_slider("LUA", "A", "Awp Silent aim if in fov", 1, 180, 1, true, "°")
292auto_silentfovslider = ui.new_slider("LUA", "A", "Auto Silent aim if in fov", 1, 180, 1, true, "°")
293scout_silentfovslider = ui.new_slider("LUA", "A", "Scout Silent aim if in fov", 1, 180, 1, true, "°")
294
295--SILENT AIM IN DISTANCE
296
297global_silentdistance = ui.new_slider('LUA', 'A', 'Global Silent aim enable in distance', 1, 3000, 1)
298pistol_silentdistance = ui.new_slider('LUA', 'A', 'Pistol Silent aim enable in distance', 1, 3000, 1)
299heavypistol_silentdistance = ui.new_slider('LUA', 'A', 'Heavy pistol Silent aim enable in distance', 1, 3000, 1)
300rifle_silentdistance = ui.new_slider('LUA', 'A', 'Rifle Silent aim enable in distance', 1, 3000, 1)
301awp_silentdistance = ui.new_slider('LUA', 'A', 'Awp Silent aim enable in distance', 1, 3000, 1)
302auto_silentdistance = ui.new_slider('LUA', 'A', 'Auto Silent aim enable in distance', 1, 3000, 1)
303scout_silentdistance = ui.new_slider('LUA', 'A', 'Scout Silent aim enable in distance', 1, 3000, 1)
304non_adaptive_silentcheck = ui.new_checkbox("LUA", "A", "Non adaptive Silent aim settings")
305non_adaptive_silentaim = ui.new_multiselect("LUA", "A", "Non adaptive Silent aim settings", "Silent aim on key")
306silentkey = ui.new_hotkey("LUA", "A", "Silent Aim On Toggle")
307
308------------MIN DAMAGE OPTIONS
309
310global_mindmg_check = ui.new_checkbox("LUA", "A", "Global Minimum damage options")
311pistol_mindmg_check = ui.new_checkbox("LUA", "A", "Pistol Minimum damage options")
312heavypistol_mindmg_check = ui.new_checkbox("LUA", "A", "Heavy pistol Minimum damage options")
313rifle_mindmg_check = ui.new_checkbox("LUA", "A", "Rifle Minimum damage options")
314awp_mindmg_check = ui.new_checkbox("LUA", "A", "Awp Minimum damage options")
315auto_mindmg_check = ui.new_checkbox("LUA", "A", "Auto Minimum damage options")
316scout_mindmg_check = ui.new_checkbox("LUA", "A", "Scout Minimum damage options")
317global_mindmg_multi = ui.new_multiselect("LUA", "A", "\n Global Minimum damage options", "Visible and non visible override")
318pistol_mindmg_multi = ui.new_multiselect("LUA", "A", "\n Pistol Minimum damage options", "Visible and non visible override")
319heavypistol_mindmg_multi = ui.new_multiselect("LUA", "A", "\n Heavy pistol Minimum damage options", "Visible and non visible override")
320rifle_mindmg_multi = ui.new_multiselect("LUA", "A", "\n Rifle Minimum damage options", "Visible and non visible override")
321awp_mindmg_multi = ui.new_multiselect("LUA", "A", "\n Awp Minimum damage options", "Visible and non visible override")
322auto_mindmg_multi = ui.new_multiselect("LUA", "A", "\n Auto Minimum damage options", "Visible and non visible override")
323scout_mindmg_multi = ui.new_multiselect("LUA", "A", "\n Scout Minimum damage options", "Visible and non visible override")
324global_visible_mindmg = ui.new_slider("LUA", "A", "Global Visible minimum damage", 1, 126, 1, true)
325pistol_visible_mindmg = ui.new_slider("LUA", "A", "Pistol Visible minimum damage", 1, 126, 1, true)
326heavypistol_visible_mindmg = ui.new_slider("LUA", "A", "Heavy pistol Visible minimum damage", 1, 126, 1, true)
327rifle_visible_mindmg = ui.new_slider("LUA", "A", "Rifle Visible minimum damage", 1, 126, 1, true)
328awp_visible_mindmg = ui.new_slider("LUA", "A", "Awp Visible minimum damage", 1, 126, 1, true)
329auto_visible_mindmg = ui.new_slider("LUA", "A", "Auto Visible minimum damage", 1, 126, 1, true)
330scout_visible_mindmg = ui.new_slider("LUA", "A", "Scout Visible minimum damage", 1, 126, 1, true)
331global_nonvisible_mindmg = ui.new_slider("LUA", "A", "Global Non visible minimum damage", 1, 126, 1, true)
332pistol_nonvisible_mindmg = ui.new_slider("LUA", "A", "Pistol Non visible minimum damage", 1, 126, 1, true)
333heavypistol_nonvisible_mindmg = ui.new_slider("LUA", "A", "Heavy pistol Non visible minimum damage", 1, 126, 1, true)
334rifle_nonvisible_mindmg = ui.new_slider("LUA", "A", "Rifle Non visible minimum damage", 1, 126, 1, true)
335awp_nonvisible_mindmg = ui.new_slider("LUA", "A", "Awp Non visible minimum damage", 1, 126, 1, true)
336auto_nonvisible_mindmg = ui.new_slider("LUA", "A", "Auto Non visible minimum damage", 1, 126, 1, true)
337scout_nonvisible_mindmg = ui.new_slider("LUA", "A", "Scout Non visible minimum damage", 1, 126, 1, true)
338
339------------NEAREST HITBOXES
340
341global_hitbox_check = ui.new_checkbox("LUA", "A", "Global Nearest hitboxes")
342pistol_hitbox_check = ui.new_checkbox("LUA", "A", "Pistol Nearest hitboxes")
343heavypistol_hitbox_check = ui.new_checkbox("LUA", "A", "Heavy pistol Nearest hitboxes")
344rifle_hitbox_check = ui.new_checkbox("LUA", "A", "Rifle Nearest hitboxes")
345awp_hitbox_check = ui.new_checkbox("LUA", "A", "Awp Nearest hitboxes")
346auto_hitbox_check = ui.new_checkbox("LUA", "A", "Auto Nearest hitboxes")
347scout_hitbox_check = ui.new_checkbox("LUA", "A", "Scout Nearest hitboxes")
348global_nearest_multi = ui.new_multiselect("LUA", "A", "Global Nearest hitboxes", "Head", "Chest", "Stomach", "Arms", "Legs", "Feet")
349pistol_nearest_multi = ui.new_multiselect("LUA", "A", "Pistol Nearest hitboxes", "Head", "Chest", "Stomach", "Arms", "Legs", "Feet")
350heavypistol_nearest_multi = ui.new_multiselect("LUA", "A", "Heavy pistol Nearest hitboxes", "Head", "Chest", "Stomach", "Arms", "Legs", "Feet")
351rifle_nearest_multi = ui.new_multiselect("LUA", "A", "Rifle Nearest hitboxes", "Head", "Chest", "Stomach", "Arms", "Legs", "Feet")
352awp_nearest_multi = ui.new_multiselect("LUA", "A", "Awp Nearest hitboxes", "Head", "Chest", "Stomach", "Arms", "Legs", "Feet")
353auto_nearest_multi = ui.new_multiselect("LUA", "A", "Auto Nearest hitboxes", "Head", "Chest", "Stomach", "Arms", "Legs", "Feet")
354scout_nearest_multi = ui.new_multiselect("LUA", "A", "Scout Nearest hitboxes", "Head", "Chest", "Stomach", "Arms", "Legs", "Feet")
355
356------------RESOLVER
357
358--OVERRIDE
359
360overridebutton = ui.new_checkbox("LUA", "B", "Resolver")
361resolverselect = ui.new_combobox("LUA", "B", "Resolver", "Override", "Opposite resolver")
362override_type = ui.new_combobox("LUA", "B", "Key type", "1 key", "2 keys")
363overridekey = ui.new_hotkey("LUA", "B", "Override key: Right/Left/Off")
364brute_key = ui.new_hotkey("LUA", "B", "Left/right key")
365brute_key_disable = ui.new_hotkey("LUA", "B", "Disable key")
366oppositeenable = ui.new_checkbox("PLAYERS", "Adjustments", "Enable resolver")
367
368------------LEGITBOT IMPROVEMENTS
369
370legitbotimprovements = ui.new_checkbox("LUA", "B", "Legitbot improvements")
371
372------------CUSTOM FAKELAG TRIGGERS
373
374enablecflcombo = ui.new_combobox('AA', 'Fake lag', 'Custom fake lag triggers', 'Off', 'Slow walk', 'Moving', 'Standing', 'Jumping')
375
376--slow walk
377
378slowvariance = ui.new_slider('AA', 'Fake lag', 'Slowwalk variance', 0, 100, 0, true, '%')
379slowlimit = ui.new_slider('AA', 'Fake lag', 'Slowwalk limit', 1, 6, 1, true)
380slowamount = ui.new_combobox('AA', 'Fake lag', 'Slowwalk amount', 'Dynamic', 'Maximum', 'Fluctuate')
381
382--move
383
384movevariance = ui.new_slider('AA', 'Fake lag', 'Moving variance', 0, 100, 0, true, '%')
385movelimit = ui.new_slider('AA', 'Fake lag', 'Moving limit', 1, 6, 1, true)
386moveamount = ui.new_combobox('AA', 'Fake lag', 'Moving amount', 'Dynamic', 'Maximum', 'Fluctuate')
387
388--stand
389
390standvariance = ui.new_slider('AA', 'Fake lag', 'Standing variance', 0, 100, 0, true, '%')
391standlimit = ui.new_slider('AA', 'Fake lag', 'Standing limit', 1, 6, 1, true)
392standamount = ui.new_combobox('AA', 'Fake lag', 'Standing amount', 'Dynamic', 'Maximum', 'Fluctuate')
393
394--stand
395
396jumpvariance = ui.new_slider('AA', 'Fake lag', 'Jumping variance', 0, 100, 0, true, '%')
397jumplimit = ui.new_slider('AA', 'Fake lag', 'Jumping limit', 1, 6, 1, true)
398jumpamount = ui.new_combobox('AA', 'Fake lag', 'Jumping amount', 'Dynamic', 'Maximum', 'Fluctuate')
399
400------------killsay
401
402talkshitenable = ui.new_checkbox('LUA', 'B', 'Killsay')
403talkshittype = ui.new_combobox('LUA', 'B', "Killsay type", 'Basic kill says', 'Custom')
404talkshittext = ui.new_textbox('LUA', 'B', "\n text")
405
406------------advanced log
407
408advancedlog = ui.new_checkbox("LUA", "B", "Advanced logging")
409log_options = ui.new_multiselect("LUA", "B", "Logs", "Bomb info", "Votes", "Damage")
410log_type = ui.new_multiselect("LUA", "B", "Log type", "Console", "Say in chat", "Print in chat")
411ngahooktag_enabled = ui.new_checkbox("LUA", "B", "nigahook tag")
412
413------------ --REFRENCE-- ------------
414
415ragebot_maximum_fov = ui.reference('RAGE', 'Aimbot', 'maximum fov')
416forcesafepoint = ui.reference('RAGE', 'Aimbot', 'Force safe point')
417reload_scripts = ui.reference('CONFIG', 'LUA', 'Reload active scripts')
418aaenablers = ui.reference("AA", "Anti-aimbot angles", "Enabled")
419pitch = ui.reference("AA", "Anti-aimbot angles", "Pitch")
420yaw_base = ui.reference("AA", "Anti-aimbot angles", "Yaw base")
421yaw_check, yaw_num = ui.reference("AA", "Anti-aimbot angles", "Yaw")
422yaw_jitter = ui.reference("AA", "Anti-aimbot angles", "Yaw jitter")
423body, body_num = ui.reference("AA", "Anti-aimbot angles", "Body yaw")
424limit = ui.reference("AA", "Anti-aimbot angles", "Fake yaw limit")
425lby = ui.reference("AA", "Anti-aimbot angles", "Lower body yaw target")
426rageautofire = ui.reference("Rage", "Aimbot", "Automatic Fire")
427ragebot, ragebotmode = ui.reference("Rage", "Aimbot", "Enabled")
428autowall = ui.reference("RAGE", "Aimbot", "Automatic Penetration")
429min_dmg = ui.reference('rage', 'aimbot', 'minimum damage')
430trans = ui.reference('VISUALS', 'Effects', 'Transparent props')
431FOVS5 = ui.reference('RAGE', 'AIMBOT', 'Maximum FOV')
432preticle = ui.reference("VISUALS", "Other ESP", "Penetration reticle")
433ref_fl = ui.reference("AA", "Fake lag", "Limit")
434ref_fakeduck = ui.reference("Rage", "Other", "Duck peek assist")
435trigger = ui.reference("RAGE", "Aimbot", "Automatic fire")
436rage_enabl = ui.reference("RAGE", "Aimbot", "Enabled")
437silent = ui.reference("RAGE", "Aimbot", "Silent aim")
438force_body_aim = ui.reference("RAGE", "Other", "Force body aim")
439Max_f0v = ui.reference("RAGE", "Aimbot", "Maximum FOV")
440selectedplayer = ui.reference("players", "players", "player list")
441forcebody1, forcebodyyaw1 = ui.reference("players", "adjustments", "force body yaw")
442resetlist = ui.reference("players", "players", "reset all")
443applyall = ui.reference("players", "adjustments", "Apply to all")
444triggers = ui.reference("AA", "Fake lag", "Triggers")
445fakelag_enable, fakelag_key = ui.reference("AA", "Fake lag", "Enabled")
446triggerz = ui.reference("AA", "Fake lag", "Customize triggers")
447fl, fl_enable = ui.reference("AA", "Fake lag", "Enabled")
448ref_aimbot_enabled = ui.reference("RAGE", "Aimbot", "Enabled")
449ui_fd = ui.reference("Rage", "Other", "Duck peek assist")
450forcebody, forcebodyyaw = ui.reference("players", "adjustments", "force body yaw")
451resetlist = ui.reference("players", "players", "reset all")
452applyall = ui.reference("players", "adjustments", "Apply to all")
453autodirection, autodirection_key = ui.reference("AA", "Anti-aimbot angles", "Freestanding")
454edgeyaw = ui.reference("AA", "Anti-aimbot angles", "Edge yaw")
455bodyyaw_freestand = ui.reference("AA", "Anti-aimbot angles", "Freestanding body yaw")
456fakelag_limit = ui.reference("AA", "Fake lag", "Limit")
457checkbox_reference, hotkey_reference = ui.reference("AA", "Other", "Slow motion")
458brightness, adjustment = ui.reference("Visuals", "Effects", "Brightness adjustment")
459variance = ui.reference("AA", "Fake lag", "Variance")
460amount = ui.reference("AA", "Fake lag", "Amount")
461hitchance = ui.reference("RAGE", "Aimbot", "Minimum hit chance")
462plistoverride = ui.reference("players", "adjustments", "Override anti-aim correction")
463thirdpersonk, forcethirdpkey = ui.reference("VISUALS", "Effects", "Force third person (alive)")
464thirdpersondead = ui.reference("VISUALS", "Effects", "Force third person (dead)")
465infiniteduck = ui.reference("MISC", "Movement", "Infinite duck")
466
467getui = ui.get
468
469function table_contains(tbl, value)
470 for i = 1, #tbl do
471 if tbl[i] == value then
472 return true
473 end
474 end
475 return false
476end
477
478--adaptive weapon
479
480bit_band, client_delay_call, client_set_event_callback, entity_get_local_player, entity_get_player_weapon, entity_get_prop, print, func, select, table_insert, table_sort, type, ui.get, ui_name, ui_new_checkbox, ui_new_combobox, ui_new_multiselect, ui_reference, ui.set, ui.set_callback, ui.set_visible, xpcall, pairs = bit.band, client.delay_call, client.set_event_callback, entity.get_local_player, entity.get_player_weapon, entity.get_prop, print, func, select, table.insert, table.sort, type, ui.get, ui.name, ui.new_checkbox, ui.new_combobox, ui.new_multiselect, ui.reference, ui.set, ui.set_callback, ui.set_visible, xpcall, pairs
481
482local adaptive = {}
483local references = {}
484local callbacks = {}
485local active_config = "Global"
486local weapon_id_lookup_table
487local run_command
488
489function create_lookup_table(tbl)
490 local result = {}
491 for name, weapon_ids in pairs(tbl) do
492 for i = 1, #weapon_ids do
493 result[weapon_ids[i]] = name
494 end
495 end
496 return result
497end
498
499adaptive_options2 = ui_new_multiselect("RAGE", "Other", "asddd", "Log", "Visible")
500ui.set_visible(adaptive_options2, false)
501current_weapon = nil
502function update_menu(visible)
503 ui.set(adaptive_config2, active_config)
504 current_weapon = active_config
505end
506
507run_command = function()
508 local local_player = entity_get_local_player()
509 local weapon_entindex = entity_get_player_weapon(local_player)
510 local item_definition_index = bit_band(65535, entity_get_prop(weapon_entindex, "m_iItemDefinitionIndex"))
511 local config_name = weapon_id_lookup_table[item_definition_index] or "Global"
512 if config_name ~= active_config then
513 active_config = config_name
514 local options = ui.get(adaptive_options2)
515 if table_contains(options, "Log") then
516 print(active_config, " config loaded.")
517 end
518 update_menu(table_contains(options, "Visible"))
519 end
520end
521
522function init()
523 -- Create and reference menu items
524
525 -- Create the lookup table
526 weapon_id_lookup_table = create_lookup_table(adaptive_weapons)
527
528 -- Set custom callbacks for the default menu items
529 for name, reference in pairs(references) do
530 set_callback(reference, update_settings)
531 end
532
533 -- Set callbacks for all of the adaptive menu items
534 for config, items in pairs(adaptive) do
535 for name, reference in pairs(items) do
536 ui.set_callback(reference, handle_adaptive_config)
537 end
538 end
539 client.set_event_callback("run_command", run_command)
540end
541
542init()
543
544--dynamic fov
545hitbox_head, hitbox_neck, hitbox_pelvis, hitbox_spine_0, hitbox_spine_1, hitbox_spine_2, hitbox_spine_3, hitbox_leg_upper_L, hitbox_leg_upper_R, hitbox_leg_lower_L, hitbox_leg_lower_R, hitbox_ankle_L, hitbox_ankle_R, hitbox_hand_L, hitbox_hand_R, hitbox_arm_upper_L, hitbox_arm_lower_L, hitbox_arm_upper_R, hitbox_arm_lower_R = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
546
547dynamicfov_new_fov = 0
548bool_in_fov = false
549closest_enemy = nil
550min_fovaw = nil
551max_fovaw = nil
552current_autofactoraw = nil
553min_fov = nil
554max_fov = nil
555current_autofactor = nil
556visible_hitbox_threshold = 1
557function cmnd()
558 if current_weapon == "Heavy pistol" then
559 max_fov = ui.get(dynamicfov_maxheavypistol)
560 min_fov = ui.get(dynamicfov_minheavypistol)
561 max_fovaw = ui.get(heavypistol_dynamicfov_maxaw)
562 min_fovaw = ui.get(heavypistol_dynamicfov_minaw)
563 current_autofactor = ui.get(dynamicfov_auto_factor_pistol)
564 current_autofactoraw = ui.get(dynamicfov_auto_factor_pistolaw)
565 visible_hitbox_threshold = ui.get(heavypistol_legit_pen_threshold_ref)
566 else
567 if current_weapon == "Pistol" then
568 max_fov = ui.get(dynamicfov_maxpistol)
569 min_fov = ui.get(dynamicfov_minpistol)
570 current_autofactor = ui.get(dynamicfov_auto_factor_heavypistol)
571 current_autofactoraw = ui.get(dynamicfov_auto_factor_heavypistolaw)
572 max_fovaw = ui.get(pistol_dynamicfov_maxaw)
573 min_fovaw = ui.get(pistol_dynamicfov_minaw)
574 visible_hitbox_threshold = ui.get(pistol_legit_pen_threshold_ref)
575 elseif current_weapon == "Rifle" then
576 max_fov = ui.get(dynamicfov_maxrifle)
577 min_fov = ui.get(dynamicfov_minrifle)
578 current_autofactor = ui.get(dynamicfov_auto_factor_rifle)
579 current_autofactoraw = ui.get(dynamicfov_auto_factor_rifleaw)
580 max_fovaw = ui.get(rifle_dynamicfov_maxaw)
581 min_fovaw = ui.get(rifle_dynamicfov_minaw)
582 visible_hitbox_threshold = ui.get(rifle_legit_pen_threshold_ref)
583 elseif current_weapon == "Awp" then
584 max_fov = ui.get(dynamicfov_maxawp)
585 min_fov = ui.get(dynamicfov_minawp)
586 current_autofactor = ui.get(dynamicfov_auto_factor_awp)
587 current_autofactoraw = ui.get(dynamicfov_auto_factor_rifleaw)
588 max_fovaw = ui.get(awp_dynamicfov_maxaw)
589 min_fovaw = ui.get(awp_dynamicfov_minaw)
590 visible_hitbox_threshold = ui.get(awp_legit_pen_threshold_ref)
591 elseif current_weapon == "Auto" then
592 max_fov = ui.get(dynamicfov_maxauto)
593 min_fov = ui.get(dynamicfov_minauto)
594 current_autofactor = ui.get(dynamicfov_auto_factor_auto)
595 current_autofactoraw = ui.get(dynamicfov_auto_factor_autoaw)
596 max_fovaw = ui.get(auto_dynamicfov_maxaw)
597 min_fovaw = ui.get(auto_dynamicfov_minaw)
598 visible_hitbox_threshold = ui.get(auto_legit_pen_threshold_ref)
599 elseif current_weapon == "Scout" then
600 max_fov = ui.get(dynamicfov_maxscout)
601 min_fov = ui.get(dynamicfov_minscout)
602 current_autofactor = ui.get(dynamicfov_auto_factor_scout)
603 current_autofactoraw = ui.get(dynamicfov_auto_factor_scoutaw)
604 max_fovaw = ui.get(scout_dynamicfov_maxaw)
605 min_fovaw = ui.get(scout_dynamicfov_minaw)
606 visible_hitbox_threshold = ui.get(scout_legit_pen_threshold_ref)
607 elseif current_weapon == "Global" then
608 max_fov = ui.get(dynamicfov_maxother)
609 min_fov = ui.get(dynamicfov_minother)
610 current_autofactor = ui.get(dynamicfov_auto_factor_other)
611 current_autofactoraw = ui.get(dynamicfov_auto_factor_otheraw)
612 max_fovaw = ui.get(pistol_dynamicfov_maxaw)
613 min_fovaw = ui.get(pistol_dynamicfov_minaw)
614 visible_hitbox_threshold = ui.get(global_legit_pen_threshold_ref)
615 end
616 end
617
618end
619
620client.set_event_callback("paint", cmnd)
621function dynamicfov_logic()
622 if min_fov == nil or max_fov == nil or current_autofactor == nil then
623 return
624 end
625 local old_fov = ui.get(ragebot_maximum_fov)
626 dynamicfov_new_fov = old_fov
627 local enemy_players = entity_get_players(true)
628
629 if min_fov > max_fov then
630 store_min_fov = min_fov
631 min_fov = max_fov
632 max_fov = store_min_fov
633 end
634
635 if #enemy_players ~= 0 then
636 local own_x, own_y, own_z = client_eye_position()
637 local own_pitch, own_yaw = client_camera_angles()
638 closest_enemy = nil
639 local closest_distance = 999999999
640
641 for i = 1, #enemy_players do
642 local enemy = enemy_players[i]
643 local enemy_x, enemy_y, enemy_z = entity_hitbox_position(enemy, 0)
644
645 local x = enemy_x - own_x
646 local y = enemy_y - own_y
647 local z = enemy_z - own_z
648
649 local yaw = ((math_atan2(y, x) * 180 / math_pi))
650 local pitch = -(math_atan2(z, math_sqrt(math_pow(x, 2) + math_pow(y, 2))) * 180 / math_pi)
651
652 local yaw_dif = math_abs(own_yaw % 360 - yaw % 360) % 360
653 local pitch_dif = math_abs(own_pitch - pitch) % 360
654
655 if yaw_dif > 180 then
656 yaw_dif = 360 - yaw_dif
657 end
658
659 local real_dif = math_sqrt(math_pow(yaw_dif, 2) + math_pow(pitch_dif, 2))
660
661 if closest_distance > real_dif then
662 closest_distance = real_dif
663 closest_enemy = enemy
664 end
665 end
666
667 if closest_enemy ~= nil
668 then
669 local closest_enemy_x, closest_enemy_y, closest_enemy_z = entity_hitbox_position(closest_enemy, 0)
670 local real_distance = math_sqrt(math_pow(own_x - closest_enemy_x, 2) + math_pow(own_y - closest_enemy_y, 2) + math_pow(own_z - closest_enemy_z, 2))
671
672 dynamicfov_new_fov = (3800 / real_distance) * (current_autofactor * 0.01)
673
674 if (dynamicfov_new_fov > max_fov) then
675 dynamicfov_new_fov = max_fov
676 elseif dynamicfov_new_fov < min_fov then
677 dynamicfov_new_fov = min_fov
678 end
679 end
680
681 dynamicfov_new_fov = math_floor(dynamicfov_new_fov + 0.5)
682
683 if (dynamicfov_new_fov > closest_distance) then
684 bool_in_fov = true
685 else
686 bool_in_fov = false
687 end
688 else
689
690 dynamicfov_new_fov = min_fov
691 bool_in_fov = false
692 end
693
694 --global
695
696 if dynamicfov_new_fov ~= old_fov and ui.get(global_dynamicfov_enable) and current_weapon == "Global" then
697 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
698 end
699
700 --pistol
701
702 if dynamicfov_new_fov ~= old_fov and ui.get(pistol_dynamicfov_enable) and current_weapon == "Pistol" then
703 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
704 end
705
706 --heavy pistol
707
708 if dynamicfov_new_fov ~= old_fov and ui.get(heavypistol_dynamicfov_enable) and current_weapon == "Heavy pistol" then
709 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
710 end
711
712 --awp
713
714 if dynamicfov_new_fov ~= old_fov and ui.get(awp_dynamicfov_enable) and current_weapon == "Awp" then
715 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
716 end
717
718 --scout
719
720 if dynamicfov_new_fov ~= old_fov and ui.get(scout_dynamicfov_enable) and current_weapon == "Scout" then
721 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
722 end
723
724 --auto
725
726 if dynamicfov_new_fov ~= old_fov and ui.get(auto_dynamicfov_enable) and current_weapon == "Auto" then
727 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
728 end
729
730 --rifle
731
732 if dynamicfov_new_fov ~= old_fov and ui.get(rifle_dynamicfov_enable) and current_weapon == "Rifle" then
733 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
734 end
735end
736--drawing
737function on_paint(ctx)
738 dynamicfov_logic()
739end
740
741client.set_event_callback('paint', on_paint)
742
743
744local render_text = renderer.text
745local GetBoundingBox = entity.get_bounding_box
746
747local world_to_screen = function(x, y, z, func)
748 local x, y = renderer.world_to_screen(x, y, z)
749 if x ~= nil and y ~= nil then
750 func(x, y)
751 end
752end
753--end of local variables
754local leftdamage = 0
755local rightdamage = 0
756local rad2deg = function(rad)
757 return (rad * 180 / math.pi)
758end
759local deg2rad = function(deg)
760 return (deg * math.pi / 180)
761end
762local trace_line = function(entity, start, _end)
763 return client.trace_line(entity, start.x, start.y, start.z, _end.x, _end.y, _end.z)
764end
765
766local screenx, screeny = client_screen_size()
767
768local vector = function(x, y, z)
769 x = x ~= nil and x or 0
770 y = y ~= nil and y or 0
771 z = z ~= nil and z or 0
772
773 return {
774 ["x"] = x,
775 ["y"] = y,
776 ["z"] = z
777 }
778end
779
780local vector_add = function(vector1, vector2)
781 return {
782 ["x"] = vector1.x + vector2.x,
783 ["y"] = vector1.y + vector2.y,
784 ["z"] = vector1.z + vector2.z
785 }
786end
787
788local vector_substract = function(vector1, vector2)
789 return {
790 ["x"] = vector1.x - vector2.x,
791 ["y"] = vector1.y - vector2.y,
792 ["z"] = vector1.z - vector2.z
793 }
794end
795function slot136(slot0, slot1)
796 for slot5 = 1, #slot0, 1 do
797 if slot0[slot5] == slot1 then
798 return true
799 end
800 end
801
802 return false
803end
804
805function slot137(slot0, slot1)
806 for slot5, slot6 in ipairs(slot0) do
807 if slot6 == slot1 then
808 return true, slot5
809 end
810 end
811
812 return false
813end
814
815function slot138()
816 if ui.get(otherref.tp_alive) and ui.get(otherref.tp_alive_key) then
817 ui.set_visible(otherref.tp_dead, true)
818 else
819 ui.set_visible(otherref.tp_dead, false)
820 end
821end
822local clamp_angles = function(angle)
823 angle = angle % 360
824 angle = (angle + 360) % 360
825
826 if angle > 180 then
827 angle = angle - 360
828 end
829
830 return angle
831end
832
833function LAASetup()
834 if ui.get(legitAA) then
835 if ui.get(legitAAbase) == "Manual" then
836 ui.set_visible(LegitAAHotkey, true)
837 elseif ui.get(legitAAbase) == "Dynamic" then
838 ui.set_visible(LegitAAHotkey, false)
839 end
840 else
841 ui.set_visible(LegitAAHotkey, false)
842 end
843end
844
845function LAAFunc()
846
847 ----------------------------------------------------------------------LEGITAA
848
849 local legita = ui.get(legitAA)
850 local base = ui.get(legitAAbase)
851 local aamodes = ui.get(LegitAABreaker)
852 local aamoving = ui.get(enableaawm)
853 local movingbox = ui.get(legitaamoving)
854
855 local disping = table_contains(ui.get(legitaasafe), "High ping")
856 local disfps = table_contains(ui.get(legitaasafe), "Low FPS")
857
858 local edge_freestand_type = ui.get(legitaa_freestand_type)
859 ui.set_visible(legitAAbase, legita)
860 ui.set_visible(LegitAABreaker, legita)
861 ui.set_visible(legitaa_freestand_type, legita and base == "Dynamic")
862 ui.set_visible(brutemode2, legita and aamodes == "Break bruteforce")
863 ui.set_visible(ui_indicator_combobox4, legita)
864 ui.set_visible(ui_indicator_color_picker4, legita)
865 ui.set_visible(legitaasafe, legita)
866 ui.set_visible(disableaaping, legita and disping)
867 ui.set_visible(disableaafps, legita and disfps)
868
869 ----------------------------------------------------------------------LEGITAA WHILE MOVING
870
871 ui.set_visible(enableaawm, legita)
872 ui.set_visible(legitaamoving, legita and aamoving)
873 ui.set_visible(slowmode, aamoving and legita and movingbox == "Slow walk")
874 ui.set_visible(movemode, aamoving and legita and movingbox == "Moving")
875 ui.set_visible(standmode, aamoving and legita and movingbox == "Standing")
876 ui.set_visible(LegitAAHotkey, legita and base == "Manual")
877 ui.set_visible(flip_key, edge_freestand_type == "Flip + Manual" and legita and base == "Dynamic")
878
879 if not ui.get(legitAA) then
880 ui.set(yaw_check, "Off")
881 ui.set(body, "Off")
882 ui.set(autodirection, "-")
883 ui.set(autodirection_key, "On hotkey")
884 ui.set(aaenablers, false)
885 elseif ui.get(legitAA) then
886 ui.set(yaw_check, "180")
887 ui.set(yaw_num, 180)
888 ui.set(body, "Static")
889 ui.set(autodirection, "-")
890 ui.set(autodirection_key, "On hotkey")
891 ui.set(aaenablers, true)
892 end
893end
894
895LAAFunc()
896ui.set_callback(legitAA, LAAFunc)
897ui.set_callback(legitAAbase, LAAFunc)
898ui.set_callback(LegitAAHotkey, LAAFunc)
899ui.set_callback(LegitAABreaker, LAAFunc)
900ui.set_callback(enableaawm, LAAFunc)
901ui.set_callback(legitaamoving, LAAFunc)
902ui.set_callback(legitaasafe, LAAFunc)
903ui.set_callback(legitaa_freestand_type, LAAFunc)
904
905local get_atan = function(ent, eye_pos, camera)
906 local data = { id = nil, dst = 2147483647, fov = 360 }
907 local screenx, screeny = client_screen_size()
908 local crosshair = screenx / 2, screeny / 2
909 for i = 0, 19 do
910 local hitbox = vector(entity.hitbox_position(ent, i))
911 local ext = vector_substract(hitbox, eye_pos)
912
913 local yaw = rad2deg(math.atan2(ext.y, ext.x))
914 local pitch = -rad2deg(math.atan2(ext.z, math.sqrt(ext.x ^ 2 + ext.y ^ 2)))
915
916 local yaw_dif = math.abs(camera.y % 360 - yaw % 360) % 360
917 local pitch_dif = math.abs(camera.x - pitch) % 360
918
919 if yaw_dif > 180 then
920 yaw_dif = 360 - yaw_dif
921 end
922
923 local dst = math.sqrt(yaw_dif ^ 2 + pitch_dif ^ 2)
924 local dstcorrect = math.sqrt(ext.x ^ 2 + ext.y ^ 2 + ext.z ^ 2)
925 if dstcorrect < data.dst then
926 data.dst = dstcorrect
927 data.id = i
928 data.fov = yaw - crosshair
929 end
930 end
931
932 return data.id, data.dst, data.fov
933end
934
935local function getdistance()
936 local get_players = entity.get_players(true)
937
938 if #get_players == 0 then
939 return
940 end
941 local eye_pos = vector(client.eye_position())
942 local camera = vector(client.camera_angles())
943 camera.z = z_pos ~= nil and 64 or camera.z
944 local distance = math.huge
945 local closest_enemy = nil
946 local adv_fov = 1000
947 local screenx, screeny = client_screen_size()
948 local crosshair = screenx / 2, screeny / 2
949 for i = 1, #get_players do
950 local hitbox_id, dist, fov = get_atan(get_players[i], eye_pos, camera)
951 if distance > dist then
952 distance = dist
953 hitbox = hitbox_id
954 closest_enemy = get_players[i]
955 adv_fov = fov
956 end
957 end
958
959 return closest_enemy, hitbox, distance, adv_fov
960end
961
962function slot158()
963 if ui.get(yaw) == "Off" then
964 return
965 end
966
967 if entity_get_prop(entity.get_game_rules(), "m_bFreezePeriod") == 1 then
968 return
969 end
970
971 local screenx, screeny = client_screen_size()
972 local lx, ly, lz = entity_get_prop(entity_get_local_player(), "m_angEyeAngles")
973 local divisor = screenx / 2
974 local divisor2 = screeny / 2
975 local size = 15 * cvar.cl_crosshairsize:get_float() * 0.67
976
977 if ui.get(yaw_num) ~= 180 and ui.get(yaw_num) ~= -180 then
978 render_text(divisor, divisor2, 255, 0, 0, 255, "c-", 0, "AA IS BROKEN, SET YAW SLIDER TO 180 OR -180")
979 render_text(divisor, divisor2 + 10, 255, 0, 0, 255, "c-", 0, "CURRENT YAW: ", ly)
980 end
981end
982
983function slot159()
984 ui.set(pitch, "Off")
985 ui.set(yaw_base, "Local view")
986 ui.set(yaw_check, "180")
987 ui.set(yaw_jitter, "Off")
988 ui.set(edgeyaw, "Off")
989 ui.set(bodyyaw_freestand, false)
990 ui.set(autodirection_key, "On hotkey")
991end
992
993function slot160()
994 if not ui.get(legitAA) or ui.get(ref_fakeduck) or ui.get(legitAAbase) == "Dynamic" or entity_get_local_player() == nil or entity_get_prop(entity_get_local_player(), "m_lifeState") ~= 0 then
995 return
996 end
997
998 if entity_get_prop(entity.get_game_rules(), "m_bFreezePeriod") == 1 then
999 return
1000 end
1001
1002 local screenx, screeny = client_screen_size()
1003 local halfx = screenx / 2
1004 local halfy = screeny / 2
1005
1006 if ui.get(legitAA) then
1007 if ui.get(legitAAbase) == "Manual" then
1008 ui.set(LegitAAHotkey, "Toggle")
1009
1010 if ui.get(LegitAAHotkey) then
1011 slot159()
1012 ui.set(yaw_num, 180)
1013 ui.set(body_num, 60)
1014
1015 slot94 = "RIGHT"
1016 else
1017 slot159()
1018 ui.set(yaw_num, 180)
1019 ui.set(body_num, -60)
1020
1021 slot94 = "LEFT"
1022 end
1023 else
1024 end
1025 end
1026end
1027local edge_count = { [1] = 7, [2] = 12, [3] = 15, [4] = 19, [5] = 23, [6] = 28, [7] = 35, [8] = 39 }
1028
1029local function do_legit_aa()
1030 local local_player = entity_get_local_player()
1031
1032 if not local_player or not entity.is_alive(local_player) then
1033 return
1034 end
1035
1036 local m_vecOrigin = vector(entity_get_prop(local_player, "m_vecOrigin"))
1037 local m_vecViewOffset = vector(entity_get_prop(local_player, "m_vecViewOffset"))
1038
1039 local m_vecOrigin = vector_add(m_vecOrigin, m_vecViewOffset)
1040
1041 local radius = 20 + 110 + 0.1
1042 local step = math.pi * 2.0 / edge_count[8]
1043
1044 local camera = vector(client.camera_angles())
1045 local central = deg2rad(math.floor(camera.y + 0.5))
1046
1047 local data = {
1048 fraction = 1,
1049 surpassed = false,
1050 angle = vector(0, 0, 0),
1051 var = 0,
1052 side = "LAST KNOWN"
1053 }
1054
1055 for a = central, math.pi * 3.0, step do
1056 if a == central then
1057 central = clamp_angles(rad2deg(a))
1058 local trace_line = function(entity, start, _end)
1059 return client.trace_line(entity, start.x, start.y, start.z, _end.x, _end.y, _end.z)
1060 end
1061 end
1062
1063 local clm = clamp_angles(central - rad2deg(a))
1064 local abs = math.abs(clm)
1065
1066 if abs < 90 and abs > 1 then
1067
1068 local side = "LAST KNOWN"
1069 local location = vector(
1070 radius * math.cos(a) + m_vecOrigin.x,
1071 radius * math.sin(a) + m_vecOrigin.y,
1072 m_vecOrigin.z
1073 )
1074
1075 local _fr, entindex = client.trace_line(local_player, m_vecOrigin.x, m_vecOrigin.y, m_vecOrigin.z, location.x, location.y, location.z)
1076
1077 if math.floor(clm + 0.5) < -21 then
1078 side = "LEFT"
1079 end
1080 if math.floor(clm + 0.5) > 21 then
1081 side = "RIGHT"
1082 end
1083
1084 local fr_info = {
1085 fraction = _fr,
1086 surpassed = (_fr < 1),
1087 angle = vector(0, clamp_angles(rad2deg(a)), 0),
1088 var = math.floor(clm + 0.5),
1089 side = side--[ 0 - center / 1 - left / 2 - right ]
1090 }
1091
1092 if data.fraction > _fr then
1093 data = fr_info
1094 end
1095 end
1096 end
1097
1098 return data
1099end
1100
1101function dodynamic()
1102 local local_player = entity_get_local_player()
1103
1104 if not local_player or not entity.is_alive(local_player) then
1105 return
1106 end
1107
1108 local local_player = entity_get_local_player()
1109 topX, topY, botX, botY, alpha = entity.get_bounding_box(client_draw_text, local_player)
1110 local origin = vector(entity_get_prop(local_player, "m_vecOrigin"))
1111 local collision = (entity_get_prop(local_player, "m_Collision"))
1112 local vecmin = vector(entity_get_prop(local_player, "m_vecMins"))
1113 local vecmax = vector(entity_get_prop(local_player, "m_vecMaxs"))
1114 local min = vector_add(vecmin, origin)
1115 local max = vector_add(vecmax, origin)
1116
1117 if not ui.get(legitAA) or ui.get(ref_fakeduck) or ui.get(legitAAbase) == "Manual" then
1118 return
1119 end
1120
1121 if ui.get(legitAA) and ui.get(legitAAbase) == "Dynamic" then
1122
1123 if entity_get_prop(entity.get_game_rules(), "m_bFreezePeriod") == 1 then
1124 return
1125 end
1126 local data = do_legit_aa()
1127
1128 if data == nil then
1129 return
1130 end
1131 if data.fraction < 1 and ui.get(legitaa_freestand_type) == "Edge" then
1132 slot159()
1133 ui.set(body_num, data.var > 0 and 60 or -60)
1134 ui.set(yaw_num, 180)
1135 end
1136 end
1137
1138 if ui.get(legitaa_freestand_type) == "Damage" then
1139 else
1140 return
1141 end
1142
1143 closest_to_crosshair = getdistance()
1144 if closest_to_crosshair ~= nil then
1145 local hitbox = vector(entity.hitbox_position(local_player, 0))
1146 local viewtest = vector(client.eye_position())
1147 local yawadd = ui.get(yaw_num)
1148 local desync = ui.get(limit)
1149 local enemyx, enemyy, enemyz = entity_get_prop(closest_to_crosshair, "m_vecOrigin")
1150 local enemyvx, enemyvy, enemyvz = entity_get_prop(closest_to_crosshair, "m_vecViewOffset")
1151 local enemyhitbox = vector(entity.hitbox_position(closest_to_crosshair, 0))
1152 rightdamage = 0
1153 leftdamage = 0
1154 local rightchecky = math_sin(hitbox.x) * 60 + math_cos(hitbox.y) * 60
1155 local leftchecky = math_sin(hitbox.x) * -60 + math_cos(hitbox.y) * -60
1156 local rightcheck
1157 local leftcheck = hitbox.y - 10
1158 if hitbox.y ~= nil then
1159 local leftent, leftdmg = client.trace_bullet(local_player, hitbox.x, leftcheck, hitbox.z, enemyhitbox.x, enemyhitbox.y, enemyhitbox.z)
1160 local rightent, rightdmg = client.trace_bullet(local_player, hitbox.x, rightchecky, hitbox.z, enemyhitbox.x, enemyhitbox.y, enemyhitbox.z)
1161 if leftent ~= nil then
1162 leftdamage = client.scale_damage(leftent, 0, leftdmg)
1163 elseif rightent ~= nil then
1164 rightdamage = client.scale_damage(rightent, 0, rightdmg)
1165 else
1166 end
1167
1168 local screenx, screeny = client_screen_size()
1169 end
1170 else
1171 end
1172
1173 if rightdamage > leftdamage and ui.get(legitaa_freestand_type) == "Damage" then
1174 slot159()
1175 ui.set(yaw_num, 180)
1176 ui.set(body_num, -60)
1177 slot94 = "RIGHT"
1178 else
1179 if ui.get(legitaa_freestand_type) == "Damage" then
1180 slot159()
1181 ui.set(yaw_num, 180)
1182 ui.set(body_num, 60)
1183 slot94 = "LEFT"
1184 end
1185 end
1186end
1187
1188local function fyls()
1189 if ui.get(legitAA) == false then
1190 return
1191 else
1192 if ui.get(LegitAABreaker) == "Smart" then
1193 ui.set(limit, 60)
1194 ui.set(body, "Static")
1195 elseif ui.get(LegitAABreaker) == "Maximum" then
1196 ui.set(limit, 60)
1197 ui.set(body, "Static")
1198 elseif ui.get(LegitAABreaker) == "Slow" then
1199 ui.set(limit, 60)
1200 ui.set(body, "Static")
1201 elseif ui.get(LegitAABreaker) == "Fast" then
1202 ui.set(limit, 60)
1203 ui.set(body, "Static")
1204 elseif ui.get(LegitAABreaker) == "Break bruteforce" then
1205 ui.set(lby, "Opposite")
1206 ui.set(body, "Static")
1207 end
1208 end
1209end
1210
1211client.set_event_callback("paint", fyls)
1212
1213Latency = client.latency
1214LocalPlayer,
1215GetProp = entity.get_local_player, entity.get_prop
1216min, abs, sqrt,
1217floor = math.min, math.abs, math.sqrt, math.floor
1218RealTime = globals.realtime
1219TimeStart = RealTime
1220disable_aa = false
1221
1222--disable ping
1223
1224function on_paint()
1225 local disping = table_contains(ui.get(legitaasafe), "High ping")
1226 local disfps = table_contains(ui.get(legitaasafe), "Low FPS")
1227 if not ui.get(legitAA, true) or not disping then
1228 disable_aa = false
1229 end
1230
1231 if ui.get(legitAA, true) and disping then
1232 else
1233 return
1234 end
1235
1236 if not local_player or not entity.is_alive(local_player) then
1237 return
1238 end
1239
1240 local PlayerResource = entity.get_all("CCSPlayerResource")[1]
1241 local Player = LocalPlayer()
1242 local Ping = floor(min(1000, client.latency() * 1000) + 0.5)
1243 local ScoreboardPing = GetProp(PlayerResource, "m_iPing", Player)
1244 if ScoreboardPing > ui.get(disableaaping) then
1245 disable_aa = true
1246 else
1247 disable_aa = false
1248 end
1249end
1250
1251client.set_event_callback("paint", on_paint)
1252
1253--disable aa
1254
1255fps_frametimes = {}
1256fps_prev = 0
1257value_prev = {}
1258last_update_time = 0
1259function accumulate_fps()
1260 local rt, ft = globals_realtime(),
1261 globals_absoluteframetime()
1262 if(frametimes == nil) then return end;
1263 if ft > 0 and frametimes ~= nil then
1264 table_insert(frametimes, 1, ft)
1265 end
1266
1267 local count = #frametimes
1268 if count == 0 then
1269 return 0
1270 end
1271
1272 local accum = 0
1273 local i = 0
1274 while accum < 0.5 do
1275 i = i + 1
1276 accum = accum + frametimes[i]
1277 if i >= count then
1278 break
1279 end
1280 end
1281
1282 accum = accum / i
1283 while i < count do
1284 i = i + 1
1285 table_remove(frametimes)
1286 end
1287
1288 local fps = 1 / accum
1289 local time_since_update = rt - last_update_time
1290 if math_abs(fps - fps_prev) > 4 or time_since_update > 1 then
1291 fps_prev = fps
1292 last_update_time = rt
1293 else
1294 fps = fps_prev
1295 end
1296 return
1297 math_floor(fps + 0.5)
1298end
1299
1300disable_aa2 = false
1301function run_tag_animation()
1302 local disfps = table_contains(ui.get(legitaasafe), "Low FPS")
1303 if not ui.get(legitAA, true) or not disfps then
1304 disable_aa2 = false
1305 end
1306
1307 if ui.get(legitAA, true) and disfps then
1308 else
1309 return
1310 end
1311
1312 if ui.get(disableaafps) > accumulate_fps() then
1313 disable_aa2 = true
1314 else
1315 disable_aa2 = false
1316 end
1317end
1318
1319client.set_event_callback("run_command", run_tag_animation, accumulate_fps())
1320
1321function disableaa()
1322 if disable_aa and ui.get(legitAA) or disable_aa2 and ui.get(legitAA) then
1323 ui.set(aaenablers, false)
1324 elseif not disable_aa and ui.get(legitAA) or not disable_aa2 and ui.get(legitAA) then
1325 ui.set(aaenablers, true)
1326 end
1327end
1328
1329client.set_event_callback("paint", disableaa)
1330
1331function slot163()
1332 if ui.get(legitAA) then
1333 if ui.get(LegitAABreaker) == "Maximum" then
1334 ui.set(lby, "Opposite")
1335 elseif ui.get(LegitAABreaker) == "Smart" then
1336 ui.set(lby, "Eye yaw")
1337 end
1338 else
1339 ui.set(lby, "Off")
1340 end
1341end
1342
1343function slot163()
1344 if ui.get(legitAA) then
1345 if ui.get(LegitAABreaker) == "Maximum" then
1346 ui.set(lby, "Opposite")
1347 elseif ui.get(LegitAABreaker) == "Smart" then
1348 ui.set(lby, "Eye yaw")
1349 end
1350 else
1351 ui.set(lby, "Off")
1352 end
1353end
1354
1355client.set_event_callback("run_command", function()
1356 slot158()
1357 slot160()
1358end)
1359
1360client.set_event_callback("paint", function(c)
1361 slot163()
1362 dodynamic()
1363end)
1364
1365client.set_event_callback("game_newmap", function()
1366end)
1367
1368local function GetClosestPoint(A, B, P)
1369 a_to_p = { P[1] - A[1], P[2] - A[2] }
1370 a_to_b = { B[1] - A[1], B[2] - A[2] }
1371 atb2 = a_to_b[1] ^ 2 + a_to_b[2] ^ 2
1372 atp_dot_atb = a_to_p[1] * a_to_b[1] + a_to_p[2] * a_to_b[2]
1373 t = atp_dot_atb / atb2
1374 return
1375 { A[1] + a_to_b[1] * t, A[2] + a_to_b[2] * t }
1376end
1377
1378local should_swap = false
1379client.set_event_callback("bullet_impact", function(c)
1380 if ui.get(legitaa_freestand_type) == "Flip + Manual" and ui.get(legitAA, true) and ui.get(legitAAbase) == "Dynamic" then
1381 else
1382 return
1383 end
1384
1385 if entity.is_alive(entity.get_local_player()) then
1386 local ent = client.userid_to_entindex(c.userid)
1387
1388 if not entity.is_dormant(ent) and entity.is_enemy(ent) then
1389 local ent_shoot = { entity.get_prop(ent, "m_vecOrigin") }
1390 ent_shoot[3] = ent_shoot[3] + entity.get_prop(ent, "m_vecViewOffset[2]")
1391 local player_head = { entity.hitbox_position(entity.get_local_player(), 0) }
1392 local closest = GetClosestPoint(ent_shoot, { c.x, c.y, c.z }, player_head)
1393 local delta = { player_head[1] - closest[1], player_head[2] - closest[2] }
1394 local delta_2d = math.sqrt(delta[1] ^ 2 + delta[2] ^ 2)
1395
1396 if math.abs(delta_2d) < 32 then
1397 should_swap = true
1398 end
1399 end
1400 end
1401end)
1402
1403client.set_event_callback("run_command", function(c)
1404
1405 if ui.get(legitaa_freestand_type) == "Flip + Manual" and ui.get(legitAA, true) and ui.get(legitAAbase) == "Dynamic" then
1406 else
1407 return
1408 end
1409
1410 if should_swap then
1411 ui.set(body_num, -ui.get(body_num))
1412 should_swap = false
1413 end
1414end)
1415
1416local canchange = false
1417function setbyaw()
1418 if ui.get(legitaa_freestand_type) == "Flip + Manual" and ui.get(legitAA, true) and ui.get(legitAAbase) == "Dynamic" then
1419 else
1420 return
1421 end
1422
1423 if ui.get(body_num) == 60 and canchange == true then
1424 ui.set(body_num, -60)
1425 canchange = false
1426 end
1427
1428 if ui.get(body_num) == -60 and canchange == true then
1429 ui.set(body_num, 60)
1430 canchange = false
1431 end
1432end
1433
1434function change_paint()
1435 if ui.get(legitaa_freestand_type) == "Flip + Manual" and ui.get(legitAA, true) and ui.get(legitAAbase) == "Dynamic" then
1436 else
1437 return
1438 end
1439
1440 if ui.get(flip_key) then
1441 if canchange == true then
1442 setbyaw()
1443 canchange = false
1444 end
1445 else
1446 canchange = true
1447 end
1448end
1449
1450client.set_event_callback("paint", change_paint)
1451
1452function set_paint()
1453 if ui.get(legitaa_freestand_type) == "Flip + Manual" and ui.get(legitAA, true) and ui.get(legitAAbase) == "Dynamic" then
1454 else
1455 return
1456 end
1457
1458 if not ui.get(body_num) == -60 or not ui.get(body_num) == 60 then
1459 ui.set(body_num, 60)
1460 end
1461end
1462
1463--client.set_event_callback("paint", set_paint)
1464
1465--aa indicator
1466
1467function on_paint(c)
1468 local scrsize_x, scrsize_y = client.screen_size()
1469 local center_x, center_y = scrsize_x / 2, scrsize_y / 2
1470 local indicator = ui.get(ui_indicator_combobox4)
1471 local indicator_r, indicator_g, indicator_b, indicator_a = ui.get(ui_indicator_color_picker4)
1472 local local_player = entity_get_local_player()
1473 if not local_player or not entity.is_alive(local_player) then
1474 return
1475 end
1476
1477 if ui.get(body_num) == 60 and indicator == "Metro" and ui.get(legitAA) == true then
1478 client.draw_text(c, center_x + 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c+", 0, "âŽ")
1479 elseif ui.get(body_num) == -60 and indicator == "Metro" and ui.get(legitAA) == true then
1480 client.draw_text(c, center_x - 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c+", 0, "âŽ")
1481 end
1482
1483 if ui.get(body_num) == 60 and indicator == "Point arrows" and ui.get(legitAA) == true then
1484 client.draw_text(c, center_x + 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c+", 0, "â")
1485 elseif ui.get(body_num) == -60 and indicator == "Point arrows" and ui.get(legitAA) == true then
1486 client.draw_text(c, center_x - 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c+", 0, "â")
1487 end
1488
1489 if ui.get(body_num) == 60 and indicator == "Dashes" and ui.get(legitAA) == true then
1490 client.draw_text(c, center_x + 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c-", 0, "â")
1491 elseif ui.get(body_num) == -60 and indicator == "Dashes" and ui.get(legitAA) == true then
1492 client.draw_text(c, center_x - 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c-", 0, "â")
1493 end
1494end
1495
1496err = client.set_event_callback('paint', on_paint)
1497
1498--trigger magnet
1499
1500--thx saph for callback shit
1501function on_paint(ctx)
1502 if ui.get(tm_cb) then
1503 local width, height = client.screen_size()
1504 if ui.get(triggermagnet) then
1505 ui.set(rageautofire, true)
1506 ui.set(ragebotmode, "Always on")
1507 else
1508 ui.set(rageautofire, false)
1509 ui.set(ragebotmode, "On hotkey")
1510 end
1511 end
1512end
1513
1514client.set_event_callback("paint", on_paint)
1515
1516-- autowall
1517function on_paint(ctx)
1518 local rifle_autowall = table_contains(ui.get(non_adaptive_auto_autowall), "Autowall on key")
1519 if rifle_autowall and ui.get(non_adaptive_aw_check) then
1520 else
1521 return
1522 end
1523
1524 if ui.get(autowalltoggle) then
1525 all_autowallkey_var = true
1526 else
1527 all_autowallkey_var = false
1528 end
1529end
1530
1531client.set_event_callback("paint", on_paint)
1532
1533--autowall
1534
1535--if shot_me then
1536function enablewhileshotme()
1537 all_autowallifshot_var = true
1538end
1539
1540function disablewhileshotme()
1541 all_autowallifshot_var = false
1542end
1543
1544function on_fire(e)
1545 local userID = e.userid
1546 local userEntIndex = client.userid_to_entindex(userID)
1547 if userEntIndex == entity.get_local_player() then
1548 local global_autowall = table_contains(ui.get(non_adaptive_auto_autowall), "Autowall if shot me")
1549 if not global_autowall and ui.get(non_adaptive_aw_check) or not ui.get(non_adaptive_aw_check) or not global_autowall then
1550 all_autowallifshot_var = false
1551 return
1552 end
1553
1554 client.delay_call(globals.tickinterval() * ui.get(beforedelay), enablewhileshotme)
1555 client.delay_call(globals.tickinterval() * ui.get(autodely), disablewhileshotme)
1556 end
1557end
1558
1559client.set_event_callback("player_hurt", on_fire)
1560
1561function penetration_reticle_aw()
1562 local global_autowall = table_contains(ui.get(non_adaptive_auto_autowall), "Penetration reticle")
1563 if global_autowall then
1564 if ui.get(autowall, true) then
1565 ui.set(preticle, true)
1566 elseif not ui.get(autowall) then
1567 ui.set(preticle, false)
1568 end
1569 end
1570end
1571
1572client.set_event_callback("paint", penetration_reticle_aw)
1573
1574function dynamicfov_logic_aw()
1575 if min_fovaw == nil or max_fovaw == nil or current_autofactoraw == nil then
1576 return
1577 end
1578
1579 if ui.get(autowalltoggle) then
1580 else
1581 return
1582 end
1583
1584 local global_autowall_dynamic = table_contains(ui.get(global_auto_autowall), "Dynamic autowall FOV")
1585 local pistol_autowall_dynamic = table_contains(ui.get(pistol_auto_autowall), "Dynamic autowall FOV")
1586 local heavypistol_autowall_dynamic = table_contains(ui.get(heavypistol_auto_autowall), "Dynamic autowall FOV")
1587 local awp_autowall_dynamic = table_contains(ui.get(awp_auto_autowall), "Dynamic autowall FOV")
1588 local scout_autowall_dynamic = table_contains(ui.get(scout_auto_autowall), "Dynamic autowall FOV")
1589 local autos_autowall_dynamic = table_contains(ui.get(auto_auto_autowall), "Dynamic autowall FOV")
1590 local rifle_autowall_dynamic = table_contains(ui.get(rifle_auto_autowall), "Dynamic autowall FOV")
1591 local old_fov = ui.get(ragebot_maximum_fov)
1592 dynamicfov_new_fov = old_fov
1593 local enemy_players = entity_get_players(true)
1594 if min_fovaw > max_fovaw then
1595 store_min_fovaw = min_fovaw
1596 min_fovaw = max_fovaw
1597 max_fovaw = store_min_fovaw
1598 end
1599
1600 if #enemy_players ~= 0 then
1601 local own_x, own_y, own_z = client_eye_position()
1602 local own_pitch, own_yaw = client_camera_angles()
1603 closest_enemy = nil
1604 local closest_distance = 999999999
1605 for i = 1, #enemy_players do
1606 local enemy = enemy_players[i]
1607 local enemy_x, enemy_y, enemy_z = entity_hitbox_position(enemy, 0)
1608 local x = enemy_x - own_x
1609 local y = enemy_y - own_y
1610 local z = enemy_z - own_z
1611 local yaw = ((math_atan2(y, x) * 180 / math_pi))
1612 local pitch = -(math_atan2(z, math_sqrt(math_pow(x, 2) + math_pow(y, 2))) * 180 / math_pi)
1613 local yaw_dif = math_abs(own_yaw % 360 - yaw % 360) % 360
1614 local pitch_dif = math_abs(own_pitch - pitch) % 360
1615 if yaw_dif > 180 then
1616 yaw_dif = 360 - yaw_dif
1617 end
1618 local real_dif = math_sqrt(math_pow(yaw_dif, 2) + math_pow(pitch_dif, 2))
1619 if closest_distance > real_dif then
1620 closest_distance = real_dif
1621 closest_enemy = enemy
1622 end
1623 end
1624
1625 if closest_enemy ~= nil then
1626 local closest_enemy_x, closest_enemy_y, closest_enemy_z = entity_hitbox_position(closest_enemy, 0)
1627 local real_distance = math_sqrt(math_pow(own_x - closest_enemy_x, 2) + math_pow(own_y - closest_enemy_y, 2) + math_pow(own_z - closest_enemy_z, 2))
1628 dynamicfov_new_fov = (3800 / real_distance) * (current_autofactoraw * 0.01)
1629 if (dynamicfov_new_fov > max_fovaw) then
1630 dynamicfov_new_fov = max_fovaw
1631 elseif
1632 dynamicfov_new_fov < min_fovaw then
1633 dynamicfov_new_fov = min_fovaw
1634 end
1635 end
1636
1637 dynamicfov_new_fov = math_floor(dynamicfov_new_fov + 0.5)
1638 if (dynamicfov_new_fov > closest_distance) then
1639 bool_in_fov = true
1640 else
1641 bool_in_fov = false
1642 end
1643 else
1644 dynamicfov_new_fov = min_fovaw
1645 bool_in_fov = false
1646 end
1647
1648 --global
1649
1650 if dynamicfov_new_fov ~= old_fov and ui.get(global_dynamicfov_enable) and current_weapon == "Global" and global_autowall_dynamic and ui.get(global_autowall_check) then
1651 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
1652 end
1653
1654 --pistol
1655
1656 if dynamicfov_new_fov ~= old_fov and ui.get(pistol_dynamicfov_enable) and current_weapon == "Pistol" and pistol_autowall_dynamic and ui.get(pistol_autowall_check) then
1657 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
1658 end
1659
1660 --heavy pistol
1661
1662 if dynamicfov_new_fov ~= old_fov and ui.get(heavypistol_dynamicfov_enable) and current_weapon == "Heavy pistol" and heavypistol_autowall_dynamic and ui.get(heavypistol_autowall_check) then
1663 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
1664 end
1665
1666 --awp
1667
1668 if dynamicfov_new_fov ~= old_fov and ui.get(awp_dynamicfov_enable) and current_weapon == "Awp" and awp_autowall_dynamic and ui.get(awp_autowall_check) then
1669 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
1670 end
1671
1672 --scout
1673
1674 if dynamicfov_new_fov ~= old_fov and ui.get(scout_dynamicfov_enable) and current_weapon == "Scout" and scout_autowall_dynamic and ui.get(scout_autowall_check) then
1675 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
1676 end
1677
1678 --auto
1679
1680 if dynamicfov_new_fov ~= old_fov and ui.get(auto_dynamicfov_enable) and current_weapon == "Auto" and auto_autowall_dynamic and ui.get(auto_autowall_check) then
1681 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
1682 end
1683
1684 --rifle
1685
1686 if dynamicfov_new_fov ~= old_fov and ui.get(rifle_dynamicfov_enable) and current_weapon == "Rifle" and rifle_autowall_dynamic and ui.get(rifle_autowall_check) then
1687 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
1688 end
1689end
1690
1691--drawing
1692
1693function on_paint(ctx)
1694 dynamicfov_logic_aw()
1695end
1696
1697client.set_event_callback('paint', on_paint)
1698
1699--legitbot
1700
1701function legitbotimp(disab)
1702 if ui.get(legitbotimprovements, true) and not ui.get(triggermagnet) then
1703 else
1704 return
1705 end
1706
1707 local_entindex = entity.get_local_player()
1708 local local_weapon = entity.get_player_weapon(local_entindex)
1709 local weapon_name = entity.get_classname(local_weapon)
1710 if weapon_name == "CWeaponAWP" or weapon_name == "CDEagle" or weapon_name == "CWeaponElite" or weapon_name == "CWeaponSSG08" or weapon_name == "CWeaponGlock" or weapon_name == "CWeaponHKP2000" or weapon_name == "CWeaponCZ75" or weapon_name == "CWeaponUSP" or weapon_name == "CWeaponP250" then
1711 ui.set(ragebot, true)
1712 return
1713 end
1714
1715 if disab.in_attack == 1 then
1716 ui.set(ragebot, false)
1717 else
1718 ui.set(ragebot, true)
1719 end
1720end
1721client.set_event_callback("setup_command", legitbotimp)
1722
1723--indicators
1724
1725legit_active, legit_key = ui.reference("Legit", "Aimbot", "Enabled")
1726rage_active, active_key = ui.reference("RAGE", "Aimbot", "Enabled")
1727indicator = renderer.indicator
1728text = renderer.text
1729w, h = client.screen_size()
1730draw = {
1731 box = renderer.rectangle,
1732 line = renderer.line,
1733 text = renderer.text,
1734 measure_text = renderer.measure_text,
1735 gradient = renderer.gradient
1736}
1737h2o = 5
1738mouse_position = ui.mouse_position
1739wns = {
1740 x = database.read("0speclist_x") or 250,
1741 y = database.read("0speclist_y") or 25,
1742 w = database.read("0speclist_w") or 150,
1743 dragging = false,
1744 resize = false,
1745 rx = 0,
1746}
1747function intersect(x, y, w, h, debug)
1748 local cx, cy = mouse_position()
1749 debug = debug or false
1750 if debug then
1751 renderer.rectangle(x, y, w, h, 255, 0, 0, 50)
1752 end
1753 return cx >= x and cx <= x + w and cy >= y and cy <= y + h
1754end
1755screen_x_width, screen_y_height = client.screen_size()
1756
1757client.set_event_callback("paint", function(ctx, entity_index)
1758 screen_x_width, screen_y_height = client.screen_size()
1759 if ui.get(indicate_enable, true) then
1760 else
1761 return
1762 end
1763
1764 local local_player = entity_get_local_player()
1765 if not local_player or not entity.is_alive(local_player) then
1766 return
1767 end
1768 local_entindex = get_local_player()
1769 local local_weapon = entity.get_player_weapon(local_entindex)
1770 local weapon_name = entity.get_classname(local_weapon)
1771 local width, height = client.screen_size()
1772 local indiselect = ui.get(indicate_on)
1773 local triggermag = table_contains(ui.get(indicate_select), "Triggermagnet")
1774 local silentaim = table_contains(ui.get(indicate_select), "Silent aim")
1775 local autowalli = table_contains(ui.get(indicate_select), "Autowall")
1776 local fovi = table_contains(ui.get(indicate_select), "FOV")
1777 local forcebodyaims = table_contains(ui.get(indicate_select), "Force body aim")
1778 local legitboti = table_contains(ui.get(indicate_select), "Legitbot improvements")
1779 local bruteforcei = table_contains(ui.get(indicate_select), "Bruteforce")
1780 local safepointind = table_contains(ui.get(indicate_select), "Safe point")
1781 local cx, cy = mouse_position()
1782 local left_click = client.key_state(0x01)
1783 if not wns.resize and ui.is_menu_open() then
1784 if wns.dragging and not left_click then
1785 wns.dragging = false
1786 end
1787
1788 if wns.dragging and left_click then
1789 wns.x = cx - wns.drag_x
1790 wns.y = cy - wns.drag_y
1791 end
1792
1793 if intersect(wns.x, wns.y, wns.w, 120) and left_click then
1794 wns.dragging = true
1795 wns.drag_x = cx - wns.x
1796 wns.drag_y = cy - wns.y
1797 end
1798 end
1799
1800 if indiselect == "Default" then
1801 for iiiiiiiii = ui.get(indicateposition), 1, -1
1802 do
1803 renderer.indicator(255, 255, 255, 0, iiiiiiiii)
1804 end
1805 end
1806
1807 local r, g, b, a = ui.get(indicate_color)
1808 if getui(rageautofire) == true and triggermag and indiselect == "Small" then
1809 text(wns.x + 8, wns.y + 10, r, g, b, a, "", 0, "TRIGGERBOT")
1810 elseif ui.get(rageautofire, true) and triggermag and indiselect == "Big" then
1811 client_draw_text(c, wns.x + 8, wns.y + 10, r, g, b, a, "+", 0, "trigger")
1812 elseif ui.get(rageautofire, true) and triggermag and indiselect == "Default" then
1813 renderer.indicator(r, g, b, a, "TM")
1814 end
1815
1816 if getui(silent, true) and silentaim and indiselect == "Small" then
1817 text(wns.x + 8, wns.y + 22, r, g, b, a, "", 0, "SILENT AIM")
1818 elseif ui.get(silent, true) and silentaim and indiselect == "Big" then
1819 client_draw_text(c, wns.x + 8, wns.y + 30, r, g, b, a, "+", 0, "silent")
1820 elseif ui.get(silent, true) and silentaim and indiselect == "Default" then
1821 renderer.indicator(r, g, b, a, "SILENT")
1822 end
1823
1824 if getui(autowall, true) and autowalli and indiselect == "Small" then
1825 text(wns.x + 8, wns.y + 34, r, g, b, a, "", 0, "AUTOWALL")
1826 elseif getui(autowall, true) and autowalli and indiselect == "Big" then
1827 client_draw_text(c, wns.x + 8, wns.y + 50, r, g, b, a, "+", 0, "autowall")
1828 elseif getui(autowall, true) and autowalli and indiselect == "Default" then
1829 renderer.indicator(r, g, b, a, "AW")
1830 end
1831
1832 if getui(force_body_aim, true) and forcebodyaims and indiselect == "Small" then
1833 text(wns.x + 8, wns.y + 46, r, g, b, a, "", 0, "FORCE BODY AIM")
1834 elseif getui(force_body_aim, true) and forcebodyaims and indiselect == "Big" then
1835 client_draw_text(c, wns.x + 8, wns.y + 70, r, g, b, a, "+", 0, "baim")
1836 elseif getui(force_body_aim, true) and forcebodyaims and indiselect == "Default" then
1837 renderer.indicator(r, g, b, a, "BAIM")
1838 end
1839
1840 if fovi and indiselect == "Small" then
1841 text(wns.x + 8, wns.y + 58, r, g, b, a, "", 0, "FOV:", getui(ragebot_maximum_fov))
1842 elseif fovi and indiselect == "Big" then
1843 client_draw_text(c, wns.x + 8, wns.y + 90, r, g, b, a, "+", 0, "fov:", getui(ragebot_maximum_fov))
1844 elseif fovi and indiselect == "Default" then
1845 renderer.indicator(r, g, b, a, "FOV:", getui(ragebot_maximum_fov))
1846 end
1847
1848 if ui.get(forcebodyyaw) == 60 and bruteforcei and indiselect == "Small" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
1849 text(wns.x + 8, wns.y + 70, r, g, b, a, "", 0, "BRUTE:RIGHT")
1850 elseif ui.get(forcebodyyaw) == 60 and bruteforcei and indiselect == "Big" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
1851 client_draw_text(c, wns.x + 8, wns.y + 110, r, g, b, a, "+", 0, "brute:right")
1852 elseif ui.get(forcebodyyaw) == 60 and bruteforcei and indiselect == "Default" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
1853 renderer.indicator(r, g, b, a, "B:RIGHT")
1854 end
1855
1856 if ui.get(forcebodyyaw) == -60 and bruteforcei and indiselect == "Small" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
1857 text(wns.x + 8, wns.y + 70, r, g, b, a, "", 0, "BRUTE:LEFT")
1858 elseif ui.get(forcebodyyaw) == -60 and bruteforcei and indiselect == "Big" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
1859 client_draw_text(c, wns.x + 8, wns.y + 110, r, g, b, a, "+", 0, "brute:left")
1860 elseif ui.get(forcebodyyaw) == -60 and bruteforcei and indiselect == "Default" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
1861 renderer.indicator(r, g, b, a, "B:LEFT")
1862 end
1863
1864 if ui.get(forcebody) == false and bruteforcei and indiselect == "Small" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
1865 text(wns.x + 8, wns.y + 70, r, g, b, a, "", 0, "BRUTE:OFF")
1866 elseif ui.get(forcebody) == false and bruteforcei and indiselect == "Big" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
1867 client_draw_text(c, wns.x + 8, wns.y + 110, r, g, b, a, "+", 0, "brute:off")
1868 elseif ui.get(forcebody) == false and bruteforcei and indiselect == "Default" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
1869 renderer.indicator(r, g, b, a, "B:OFF")
1870 end
1871
1872 if ui.get(forcesafepoint) and safepointind and indiselect == "Small" then
1873 text(wns.x + 8, wns.y + 94, r, g, b, a, "", 0, "SAFE POINT")
1874 elseif ui.get(forcesafepoint) and safepointind and indiselect == "Big" then
1875 client_draw_text(c, wns.x + 8, wns.y + 150, r, g, b, a, "+", 0, "safe")
1876 elseif ui.get(forcesafepoint) and safepointind and indiselect == "Default" then
1877 renderer.indicator(r, g, b, a, "SAFE")
1878 end
1879
1880 if weapon_name == "CWeaponAWP" and legitboti and indiselect == "Small" or weapon_name == "CDEagle" and legitboti and indiselect == "Small" or weapon_name == "CWeaponElite" and legitboti and indiselect == "Small" or weapon_name == "CWeaponSSG08" and legitboti and indiselect == "Small" or weapon_name == "CWeaponGlock" and legitboti and indiselect == "Small" or weapon_name == "CWeaponHKP2000" and legitboti and indiselect == "Small" or weapon_name == "CWeaponCZ75" and legitboti and indiselect == "Small" or weapon_name == "CWeaponUSP" and legitboti and indiselect == "Small" or weapon_name == "CWeaponP250" and legitboti and indiselect == "Small" then
1881 text(wns.x + 8, wns.y + 82, r, g, b, a, "", 0, "RAGEBOT")
1882 elseif weapon_name == "CWeaponAWP" and legitboti and indiselect == "Big" or weapon_name == "CDEagle" and legitboti and indiselect == "Big" or weapon_name == "CWeaponElite" and legitboti and indiselect == "Big" or weapon_name == "CWeaponSSG08" and legitboti and indiselect == "Big" or weapon_name == "CWeaponGlock" and legitboti and indiselect == "Big" or weapon_name == "CWeaponHKP2000" and legitboti and indiselect == "Big" or weapon_name == "CWeaponCZ75" and legitboti and indiselect == "Big" or weapon_name == "CWeaponUSP" and legitboti and indiselect == "Big" or weapon_name == "CWeaponP250" and legitboti and indiselect == "Big" then
1883 client_draw_text(c, wns.x + 8, wns.y + 130, r, g, b, a, "+", 0, "ragebot")
1884 elseif weapon_name == "CWeaponAWP" and legitboti and indiselect == "Default" or weapon_name == "CDEagle" and legitboti and indiselect == "Default" or weapon_name == "CWeaponElite" and legitboti and indiselect == "Default" or weapon_name == "CWeaponSSG08" and legitboti and indiselect == "Default" or weapon_name == "CWeaponGlock" and legitboti and indiselect == "Default" or weapon_name == "CWeaponHKP2000" and legitboti and indiselect == "Default" or weapon_name == "CWeaponCZ75" and legitboti and indiselect == "Default" or weapon_name == "CWeaponUSP" and legitboti and indiselect == "Default" or weapon_name == "CWeaponP250" and legitboti and indiselect == "Default" then
1885 renderer.indicator(r, g, b, a, "RAGE")
1886 else
1887 if legitboti and indiselect == "Small" then
1888 text(wns.x + 8, wns.y + 82, r, g, b, a, "", 0, "LEGITBOT")
1889 elseif legitboti and indiselect == "Big"
1890 then
1891 client_draw_text(c, wns.x + 8, wns.y + 130, r, g, b, a, "+", 0, "legitbot")
1892 elseif legitboti and indiselect == "Default" then
1893 renderer.indicator(r, g, b, a, "LEGIT")
1894 end
1895 end
1896end)
1897
1898function intersect_user(x, y, w, h, debug)
1899 local cx, cy = mouse_position()
1900 debug = debug or false
1901 if debug then
1902 renderer.rectangle(x, y, w, h, 255, 0, 0, 0)
1903 end
1904 return
1905 cx >= x and cx <= x + w and cy >= y and cy <= y + h
1906end
1907
1908br, rb, rg, ra = 255, 255, 255, 255
1909chroma = 0
1910local function chroma_box(ctx)
1911 speed = 3.4 / 1000
1912 chroma = chroma + speed
1913 local red = math.abs(255 * math.sin(chroma + 4))
1914 local blue = math.abs(255 * math.sin(chroma + 2))
1915 local green = math.abs(255 * math.sin(chroma))
1916 br, rb, rg, ra = red, green, blue, 250
1917end
1918client.set_event_callback("paint_ui", chroma_box)
1919wns_user = { x = database.read("user_posx") or 250, y = database.read("user_posy") or 25, w = database.read("user_posw") or 150, dragging = false, resize = false, rx = 0, }
1920watermark_database = database.read("watermarktype")
1921watermark_type = ui.new_combobox("Misc", "Miscellaneous", "Watermark", "Box", "Text")
1922if watermark_database ~= nil then
1923 ui.set(watermark_type, watermark_database)
1924end
1925
1926client.set_event_callback("shutdown", function()
1927 database.write("0speclist_x", wns.x)
1928 database.write("0speclist_y", wns.y)
1929 database.write("0speclist_w", wns.w)
1930 database.write("user_posx", wns_user.x)
1931 database.write("user_posy", wns_user.y)
1932 database.write("user_posw", wns_user.w)
1933 database.write("watermarktype", ui.get(watermark_type))
1934end)
1935
1936function intersect_user(x, y, w, h, debug)
1937 local cx, cy = mouse_position()
1938 debug = debug or false
1939 if debug then
1940 renderer.rectangle(x, y, w, h, 255, 255, 255, 0)
1941 end
1942 return
1943 cx >= x and cx <= x + w and cy >= y and cy <= y + h
1944end
1945
1946-- Tempest AA fix by Kessie and WhĂŚliin
1947
1948local player_is_alive
1949local spamtime = 0
1950local antiresolve
1951local delay_time = 0
1952local inverse_time = 0
1953local anti_resolve_timer = 0
1954
1955function contains(table, val)
1956 for i = 1, #table do
1957 if table[i] == val then
1958 return true
1959 end
1960 end
1961 return false
1962end
1963
1964function anti_resolver2()
1965 if ui.get(legitAA, true) then
1966 else
1967 return
1968 end
1969
1970 if ui.get(LegitAABreaker) == "Break bruteforce" then
1971 if ui.get(brutemode2) == "Slow" then
1972 if globals.realtime() >= anti_resolve_timer then
1973 client.delay_call(0.1, ui.set, limit, 60)
1974 client.delay_call(1.1, ui.set, limit, 2)
1975 anti_resolve_timer = globals.realtime() + 1.1
1976 end
1977 end
1978
1979 if ui.get(brutemode2) == "Fast" then
1980 if globals.realtime() >= anti_resolve_timer then
1981 client.delay_call(0.1, ui.set, limit, 60)
1982 client.delay_call(0.5, ui.set, limit, 2)
1983 anti_resolve_timer = globals.realtime() + 0.5
1984 end
1985 end
1986
1987 if ui.get(brutemode2) == "Jitter" then
1988 if globals.realtime() >= anti_resolve_timer then
1989 client.delay_call(0.08, ui.set, limit, 60)
1990 client.delay_call(0.06, ui.set, limit, 0)
1991 anti_resolve_timer = globals.realtime() + 0.2
1992 end
1993 end
1994 end
1995end
1996
1997client.set_event_callback("run_command", anti_resolver2)
1998
1999--niggahook tag
2000
2001function time_to_ticks(time)
2002 return
2003 math_floor(time / globals.tickinterval() + .5)
2004end
2005
2006clan_tag_prev = ""
2007enabled_prev = "Off"
2008
2009function gamesense_anim(text, indices)
2010 local text_anim = " " .. text .. " "
2011 local tickinterval = globals.tickinterval()
2012 local tickcount = globals.tickcount() + 300 + time_to_ticks(client_latency())
2013 local i = tickcount / time_to_ticks(0.3)
2014 i = math_floor(i % #indices)
2015 i = indices[i + 1] + 1
2016 return
2017 string_sub(text_anim, i, i + 15)
2018end
2019
2020function run_tag_animation()
2021 if ui.get(ngahooktag_enabled, true) then
2022 local clan_tag = gamesense_anim("nigahook", { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 })
2023 if clan_tag ~= clan_tag_prev then
2024 local fixed = string.sub(clan_tag, 1, 15)
2025 local spaces = string.gsub(fixed, "\x20\x20\x20", "\xE2\xA0\x80")
2026 client.set_clan_tag(spaces)
2027 end
2028
2029 clan_tag_prev = clan_tag
2030 end
2031end
2032
2033function on_paint(ctx)
2034 if ui.get(ngahooktag_enabled, true) then
2035 local local_player = entity.get_local_player()
2036 if local_player ~= nil and (not entity.is_alive(local_player)) and globals.tickcount() % 2 == 0 then
2037 run_tag_animation()
2038 end
2039 end
2040end
2041
2042client.set_event_callback("paint", on_paint)
2043function on_run_command(e)
2044 if ui.get(ngahooktag_enabled, true) then
2045 if e.chokedcommands == 0 then
2046 run_tag_animation()
2047 end
2048 end
2049end
2050
2051client.set_event_callback("run_command", on_run_command)
2052
2053--namespam
2054
2055namecombo = ui.new_combobox("MISC", "Miscellaneous", "Spam type", "nigahook spam", "NA>EU", "Custom")
2056firstlabel = ui.new_label("MISC", "Miscellaneous", "First spam")
2057firstspam = ui.new_textbox("MISC", "Miscellaneous", "First spam")
2058secondlabel = ui.new_label("MISC", "Miscellaneous", "Second spam")
2059secondspam = ui.new_textbox("MISC", "Miscellaneous", "Second spam")
2060thirdlabel = ui.new_label("MISC", "Miscellaneous", "Third spam")
2061thirdspam = ui.new_textbox("MISC", "Miscellaneous", "Third spam")
2062fourthlabel = ui.new_label("MISC", "Miscellaneous", "Fourth spam")
2063fourthspam = ui.new_textbox("MISC", "Miscellaneous", "Fourth spam")
2064function AIDS(name)
2065 client.set_cvar("name", name)
2066end
2067
2068ui.new_button("MISC", "Miscellaneous", "nigahook spam", function()
2069 oldName = client.get_cvar("name")
2070 if ui.get(namecombo) == "nigahook spam" then
2071 client.delay_call(0.3, AIDS, "Oh")
2072 client.delay_call(0.6, AIDS, "Oh shit")
2073 client.delay_call(0.9, AIDS, "Oh shit its")
2074 client.delay_call(1.2, AIDS, "Oh shit its nigahook")
2075 client.delay_call(1.5, AIDS, oldName)
2076 elseif ui.get(namecombo) == "NA>EU" then
2077 client.delay_call(0.3, AIDS, "$$")
2078 client.delay_call(0.6, AIDS, "$$NA")
2079 client.delay_call(0.9, AIDS, "$$NA>EU")
2080 client.delay_call(1.2, AIDS, "$$NA>EU$$")
2081 client.delay_call(1.5, AIDS, oldName)
2082 elseif ui.get(namecombo) == "Custom" then
2083 client.delay_call(0.3, AIDS, ui.get(firstspam))
2084 client.delay_call(0.6, AIDS, ui.get(secondspam))
2085 client.delay_call(0.9, AIDS, ui.get(thirdspam))
2086 client.delay_call(1.2, AIDS, ui.get(fourthspam))
2087 client.delay_call(1.5, AIDS, oldName)
2088 end
2089end)
2090
2091----silent aim on key
2092
2093function on_paint(ctx)
2094 local non_adaptive_mulit = table_contains(ui.get(non_adaptive_silentaim), "Silent aim on key")
2095 local non_adaptivesilent_check = ui.get(non_adaptive_silentcheck)
2096 if non_adaptive_mulit and non_adaptivesilent_check then
2097 else
2098 return
2099 end
2100
2101 if ui.get(silentkey) then
2102 global_silentkey_var = true
2103 else
2104 global_silentkey_var = false
2105 end
2106end
2107
2108client.set_event_callback("paint", on_paint)
2109
2110--silent aim in distance
2111
2112event_handler_functions = {
2113 [true] = client.set_event_callback,
2114 [false] = client.unset_event_callback,
2115}
2116
2117function get_distance(x1, y1, z1, x2, y2, z2)
2118 return
2119 math.sqrt((x2 - x1) ^ 2 + (y2 - y1) ^ 2 + (z2 - z1) ^ 2)
2120end
2121
2122function on_run_command()
2123 local silentaim_global = table_contains(ui.get(global_silentmulti), "Silent aim in distance")
2124 local silentaim_pistol = table_contains(ui.get(pistol_silentmulti), "Silent aim in distance")
2125 local silentaim_heavypistol = table_contains(ui.get(heavypistol_silentmulti), "Silent aim in distance")
2126 local silentaim_awp = table_contains(ui.get(awp_silentmulti), "Silent aim in distance")
2127 local silentaim_scout = table_contains(ui.get(scout_silentmulti), "Silent aim in distance")
2128 local silentaim_auto = table_contains(ui.get(auto_silentmulti), "Silent aim in distance")
2129 local silentaim_rifle = table_contains(ui.get(rifle_silentmulti), "Silent aim in distance")
2130 local players = entity.get_players(true)
2131 local lx, ly, lz = entity.get_prop(entity.get_local_player(), "m_vecOrigin")
2132 for i = 1, #players do
2133 local x, y, z = entity.get_prop(players[i], "m_vecOrigin")
2134 local distance = get_distance(lx, ly, lz, x, y, z)
2135 local weapon = entity.get_player_weapon(players[i])
2136
2137 --global
2138
2139 if distance <= ui.get(global_silentdistance) and silentaim_global and current_weapon == "Global" and ui.get(global_silentcheck) then
2140 global_silent_var = true
2141 else
2142 global_silent_var = false
2143 end
2144
2145 --pistol
2146
2147 if distance <= ui.get(pistol_silentdistance) and silentaim_pistol and current_weapon == "Pistol" and ui.get(pistol_silentcheck) then
2148 pistol_silent_var = true
2149 else
2150 pistol_silent_var = false
2151 end
2152
2153 --heavy pistol
2154
2155 if distance <= ui.get(heavypistol_silentdistance) and silentaim_heavypistol and current_weapon == "Heavy pistol" and ui.get(heavypistol_silentcheck) then
2156 heavypistol_silent_var = true
2157 else
2158 heavypistol_silent_var = false
2159 end
2160
2161 --awp
2162
2163 if distance <= ui.get(awp_silentdistance) and silentaim_awp and current_weapon == "Awp" and ui.get(awp_silentcheck) then
2164 awp_silent_var = true
2165 else
2166 awp_silent_var = false
2167 end
2168
2169 --scout
2170
2171 if distance <= ui.get(scout_silentdistance) and silentaim_scout and current_weapon == "Scout" and ui.get(scout_silentcheck) then
2172 scout_silent_var = true
2173 else
2174 scout_silent_var = false
2175 end
2176
2177 --auto
2178
2179 if distance <= ui.get(auto_silentdistance) and silentaim_auto and current_weapon == "Auto" and ui.get(auto_silentcheck) then
2180 auto_silent_var = true
2181 else
2182 auto_silent_var = false
2183 end
2184
2185 --rifle
2186
2187 if distance <= ui.get(rifle_silentdistance) and silentaim_rifle and current_weapon == "Rifle" and ui.get(rifle_silentcheck) then
2188 rifle_silent_var = true
2189 else
2190 rifle_silent_var = false
2191 end
2192 end
2193end
2194
2195client.set_event_callback("run_command", on_run_command)
2196
2197--silent aim while slow walking
2198
2199function slowwalksilent(ctx)
2200 local silentaim_global = table_contains(ui.get(global_silentmulti), "Silent aim while slow walking")
2201 local silentaim_pistol = table_contains(ui.get(pistol_silentmulti), "Silent aim while slow walking")
2202 local silentaim_heavypistol = table_contains(ui.get(heavypistol_silentmulti), "Silent aim while slow walking")
2203 local silentaim_awp = table_contains(ui.get(awp_silentmulti), "Silent aim while slow walking")
2204 local silentaim_scout = table_contains(ui.get(scout_silentmulti), "Silent aim while slow walking")
2205 local silentaim_auto = table_contains(ui.get(auto_silentmulti), "Silent aim while slow walking")
2206 local silentaim_rifle = table_contains(ui.get(rifle_silentmulti), "Silent aim while slow walking")
2207
2208 --global
2209
2210 if ui.get(hotkey_reference) and ui.get(global_silentcheck) and silentaim_global and current_weapon == "Global" then
2211 global_slowwalk_var = true
2212 elseif not ui.get(hotkey_reference) and ui.get(global_silentcheck) and silentaim_global or not ui.get(global_silentcheck) or not silentaim_global or not current_weapon == "Global" then
2213 global_slowwalk_var = false
2214 end
2215
2216 --pistol
2217
2218 if ui.get(hotkey_reference) and ui.get(pistol_silentcheck) and silentaim_pistol and current_weapon == "Pistol" then
2219 pistol_slowwalk_var = true
2220 elseif not ui.get(hotkey_reference) and ui.get(pistol_silentcheck) and silentaim_pistol or not ui.get(pistol_silentcheck) or not silentaim_pistol or not current_weapon == "Pistol" then
2221 pistol_slowwalk_var = false
2222 end
2223
2224 --heavy pistol
2225
2226 if ui.get(hotkey_reference) and ui.get(heavypistol_silentcheck) and silentaim_heavypistol and current_weapon == "Heavy pistol" then
2227 heavypistol_slowwalk_var = true
2228 elseif not ui.get(hotkey_reference) and ui.get(heavypistol_silentcheck) and silentaim_heavypistol or not ui.get(heavypistol_silentcheck) or not silentaim_heavypistol or not current_weapon == "Heavy pistol" then
2229 heavypistol_slowwalk_var = false
2230 end
2231
2232 --awp
2233
2234 if ui.get(hotkey_reference) and ui.get(awp_silentcheck) and silentaim_awp and current_weapon == "Awp"
2235 then
2236 awp_slowwalk_var = true
2237 elseif not ui.get(hotkey_reference) and ui.get(awp_silentcheck) and silentaim_awp or not ui.get(awp_silentcheck) or not silentaim_awp or not current_weapon == "Awp" then
2238 awp_slowwalk_var = false
2239 end
2240
2241 --scout
2242
2243 if ui.get(hotkey_reference) and ui.get(scout_silentcheck) and silentaim_scout and current_weapon == "Scout" then
2244 scout_slowwalk_var = true
2245 elseif not ui.get(hotkey_reference) and ui.get(scout_silentcheck) and silentaim_scout or not ui.get(scout_silentcheck) or not silentaim_scout or not current_weapon == "Scout" then
2246 scout_slowwalk_var = false
2247 end
2248
2249 --auto
2250
2251 if ui.get(hotkey_reference) and ui.get(auto_silentcheck) and silentaim_auto and current_weapon == "Auto" then
2252 auto_slowwalk_var = true
2253 elseif not ui.get(hotkey_reference) and ui.get(auto_silentcheck) and silentaim_auto or not ui.get(auto_silentcheck) or not silentaim_auto or not current_weapon == "Auto" then
2254 auto_slowwalk_var = false
2255 end
2256
2257 --rifle
2258
2259 if ui.get(hotkey_reference) and ui.get(rifle_silentcheck) and silentaim_rifle and current_weapon == "Rifle" then
2260 rifle_slowwalk_var = true
2261 elseif not ui.get(hotkey_reference) and ui.get(rifle_silentcheck) and silentaim_rifle or not ui.get(rifle_silentcheck) or not silentaim_rifle or not current_weapon == "Rifle" then
2262 rifle_slowwalk_var = false
2263 end
2264end
2265
2266client.set_event_callback("paint", slowwalksilent)
2267
2268--slowwalk
2269
2270slowwalkcheck = ui.new_checkbox("AA", "Other", "Slow motion limit")
2271limit_reference = ui.new_slider("AA", "Other", "Slow motion limit", 10, 57, 50, 57, "", 1, { [57] = "Max" })
2272function modify_velocity(cmd, goalspeed)
2273 if ui.get(slowwalkcheck, true) then
2274 else
2275 return
2276 end
2277 if goalspeed <= 0 then
2278 return
2279 end
2280
2281 local minimalspeed = math.sqrt((cmd.forwardmove * cmd.forwardmove) + (cmd.sidemove * cmd.sidemove))
2282 if minimalspeed <= 0 then
2283 return
2284 end
2285
2286 if cmd.in_duck == 1 then
2287 goalspeed = goalspeed * 2.94117647 -- wooo cool magic number
2288 end
2289
2290 if minimalspeed <= goalspeed then
2291 return
2292 end
2293
2294 local speedfactor = goalspeed / minimalspeed
2295 cmd.forwardmove = cmd.forwardmove * speedfactor
2296 cmd.sidemove = cmd.sidemove * speedfactor
2297end
2298
2299function on_setup_cmd(cmd)
2300 if ui.get(slowwalkcheck, true) then
2301 else
2302 return
2303 end
2304
2305 local checkbox = ui.get(checkbox_reference)
2306 local hotkey = ui.get(hotkey_reference)
2307 local limit = ui.get(limit_reference)
2308 if limit >= 57 then
2309 return
2310 end
2311
2312 if checkbox and hotkey then
2313 modify_velocity(cmd, limit)
2314 end
2315end
2316
2317client.set_event_callback('setup_command', on_setup_cmd)
2318
2319--experimental dynamic legit aa
2320
2321local flips
2322local desync_types
2323function switch_desyncs()
2324 if ui.get(legitAAbase, "Dynamic") and ui.get(legitAA, true) then
2325 else
2326 return
2327 end
2328
2329 if entity_get_local_player() == nil or entity_get_prop(entity_get_local_player(), "m_iHealth") <= 0 then
2330 return
2331 end
2332
2333 local vel_x, vel_y = entity_get_prop(entity_get_local_player(), "m_vecVelocity")
2334 local vel = math_sqrt(vel_x ^ 2 + vel_y ^ 2)
2335 desync_types = ui.get(LegitAABreaker) == "Smart" and 1 or 0
2336 local sFlips = globals_tickcount() % 100 > 1 and globals_tickcount() % 100 < 50 and true or false
2337 if desync_types == 0 then
2338 if ui.get(LegitAABreaker) == "Fast" then
2339 local random = client_random_int(1, 5)
2340 if random == 1 then
2341 ui.set(lby, "Off")
2342 end
2343
2344 if random == 2 then
2345 ui.set(lby, "Sway")
2346 end
2347
2348 if random == 3 then
2349 ui.set(lby, "Opposite")
2350 end
2351
2352 if random == 4 then
2353 ui.set(lby, sFlips and "Sway" or "Opposite")
2354 end
2355 end
2356 end
2357end
2358
2359function desync()
2360 if entity_get_local_player() == nil or entity_get_prop(entity_get_local_player(), "m_iHealth") <= 0 then
2361 return
2362 end
2363
2364 local show_desync = desync_types == 0
2365 if ui.get(LegitAABreaker, "Slow" or "Fast") then
2366 switch_desyncs()
2367 end
2368end
2369
2370client.set_event_callback("paint", desync)
2371
2372--edge aw
2373
2374local client_camera_angles, client_trace_line, entity_get_local_player, entity_get_players, entity_get_prop, entity_hitbox_position, math_acos, math_cos, math_sin, math_sqrt = client.camera_angles, client.trace_line, entity.get_local_player, entity.get_players, entity.get_prop, entity.hitbox_position, math.acos, math.cos, math.sin, math.sqrt
2375
2376maximum_fov_ref = ui_reference("RAGE", "Aimbot", "Maximum FOV")
2377
2378DEG_TO_RAD = math.pi / 180.0
2379RAD_TO_DEG = 180.0 / math.pi
2380
2381--------------------------------------------------------------------------------
2382-- Utility functions
2383--------------------------------------------------------------------------------
2384function vec3_normalize(x, y, z)
2385 local len = math_sqrt(x * x + y * y + z * z)
2386 if len == 0 then
2387 return 0, 0, 0
2388 end
2389 local r = 1 / len
2390 return x * r, y * r, z * r
2391end
2392
2393function vec3_dot(ax, ay, az, bx, by, bz)
2394 return ax * bx + ay * by + az * bz
2395end
2396
2397function angle_to_vec(pitch, yaw)
2398 local pitch_rad, yaw_rad = DEG_TO_RAD * pitch, DEG_TO_RAD * yaw
2399 local sp, cp, sy, cy = math_sin(pitch_rad), math_cos(pitch_rad), math_sin(yaw_rad), math_cos(yaw_rad)
2400 return cp * cy, cp * sy, -sp
2401end
2402
2403function calculate_fov_to_player(ent, lx, ly, lz, fx, fy, fz)
2404 local px, py, pz = entity_get_prop(ent, "m_vecOrigin")
2405 local dx, dy, dz = vec3_normalize(px - lx, py - ly, lz - lz)
2406 local dot_product = vec3_dot(dx, dy, dz, fx, fy, fz)
2407 local cos_inverse = math_acos(dot_product)
2408 return RAD_TO_DEG * cos_inverse
2409end
2410
2411function get_closest_player_to_crosshair(lx, ly, lz, pitch, yaw)
2412
2413 -- Calculate our forward vector once instead of doing it for each player
2414
2415 local fx, fy, fz = angle_to_vec(pitch, yaw)
2416 local enemy_players = entity_get_players(true)
2417 local nearest_player = nil
2418 local nearest_player_fov = math.huge
2419 for i = 1, #enemy_players do
2420 local enemy_ent = enemy_players[i]
2421
2422 -- Calculate the FOV to the player so we can determine if they are closer than the stored player
2423
2424 local fov_to_player = calculate_fov_to_player(enemy_ent, lx, ly, lz, fx, fy, fz)
2425 if fov_to_player <= nearest_player_fov then
2426 nearest_player = enemy_ent
2427 nearest_player_fov = fov_to_player
2428 end
2429 end
2430
2431 return nearest_player, nearest_player_fov
2432end
2433
2434function is_player_visible(local_player, lx, ly, lz, ent)
2435 local visible_hitboxes = 0
2436 for i = 0, 18 do
2437
2438 -- Get the current hitbox position so that we can run a trace to it and see if it is hit
2439
2440 local ex, ey, ez = entity_hitbox_position(ent, i)
2441
2442 -- Run the trace from our eye position to the hitbox if the trace hits the enemy then we know the player is visible
2443
2444 local _, entindex = client_trace_line(local_player, lx, ly, lz, ex, ey, ez)
2445 if entindex == ent
2446 then
2447 -- Increment the visible hitbox counter so that we can determine if the player meets the threshold
2448 visible_hitboxes = visible_hitboxes + 1
2449 end
2450 end
2451 return
2452 visible_hitboxes >= visible_hitbox_threshold
2453end
2454
2455--------------------------------------------------------------------------------
2456-- Callback functions
2457--------------------------------------------------------------------------------
2458function on_run_command()
2459 local global_autowall = table_contains(ui.get(global_auto_autowall), "Edge autowall")
2460 local pistol_autowall = table_contains(ui.get(pistol_auto_autowall), "Edge autowall")
2461 local heavypistol_autowall = table_contains(ui.get(heavypistol_auto_autowall), "Edge autowall")
2462 local awp_autowall = table_contains(ui.get(awp_auto_autowall), "Edge autowall")
2463 local scout_autowall = table_contains(ui.get(scout_auto_autowall), "Edge autowall")
2464 local autos_autowall = table_contains(ui.get(auto_auto_autowall), "Edge autowall")
2465 local rifle_autowall = table_contains(ui.get(rifle_auto_autowall), "Edge autowall")
2466 local maximum_fov = ui.get(maximum_fov_ref)
2467 local local_player = entity_get_local_player()
2468 local pitch, yaw = client_camera_angles()
2469 local lx, ly, lz = entity_get_prop(local_player, "m_vecOrigin")
2470 local nearest_player, nearest_player_fov = get_closest_player_to_crosshair(lx, ly, lz, pitch, yaw)
2471 local view_offset = entity_get_prop(local_player, "m_vecViewOffset[2]")
2472 local lz = lz + view_offset
2473
2474 --global
2475
2476 if nearest_player ~= nil and nearest_player_fov <= maximum_fov and global_autowall and current_weapon == "Global" and ui.get(global_autowall_check) then
2477 global_autowall_var = is_player_visible(local_player, lx, ly, lz, nearest_player)
2478 else
2479 global_autowall_var = false
2480 end
2481
2482 --pistol
2483
2484 if nearest_player ~= nil and nearest_player_fov <= maximum_fov and pistol_autowall and current_weapon == "Pistol" and ui.get(pistol_autowall_check) then
2485 pistol_autowall_var = is_player_visible(local_player, lx, ly, lz, nearest_player)
2486 else
2487 pistol_autowall_var = false
2488 end
2489
2490 --heavy pistol
2491
2492 if nearest_player ~= nil and nearest_player_fov <= maximum_fov and heavypistol_autowall and current_weapon == "Heavy pistol" and ui.get(heavypistol_autowall_check) then
2493 heavypistol_autowall_var = is_player_visible(local_player, lx, ly, lz, nearest_player)
2494 else
2495 heavypistol_autowall_var = false
2496 end
2497
2498 --awp
2499
2500 if nearest_player ~= nil and nearest_player_fov <= maximum_fov and awp_autowall and current_weapon == "Awp" and ui.get(awp_autowall_check) then
2501 awp_autowall_var = is_player_visible(local_player, lx, ly, lz, nearest_player)
2502 else
2503 awp_autowall_var = false
2504 end
2505
2506 --scout
2507
2508 if nearest_player ~= nil and nearest_player_fov <= maximum_fov and scout_autowall and current_weapon == "Scout" and ui.get(scout_autowall_check)
2509 then
2510 scout_autowall_var = is_player_visible(local_player, lx, ly, lz, nearest_player)
2511 else
2512 scout_autowall_var = false
2513 end
2514
2515 --auto
2516
2517 if nearest_player ~= nil and nearest_player_fov <= maximum_fov and autos_autowall and current_weapon == "Auto" and ui.get(auto_autowall_check) then
2518 auto_autowall_var = is_player_visible(local_player, lx, ly, lz, nearest_player)
2519 else
2520 auto_autowall_var = false
2521 end
2522
2523 --rifle
2524
2525 if nearest_player ~= nil and nearest_player_fov <= maximum_fov and rifle_autowall and current_weapon == "Rifle" and ui.get(rifle_autowall_check) then
2526 rifle_autowall_var = is_player_visible(local_player, lx, ly, lz, nearest_player)
2527 else
2528 rifle_autowall_var = false
2529 end
2530end
2531
2532client.set_event_callback("run_command", on_run_command)
2533
2534--silent aim
2535
2536--if under_fov then
2537function run_cmd()
2538 local silentaim_global = table_contains(ui.get(global_silentmulti), "Silent aim if in fov")
2539 local silentaim_pistol = table_contains(ui.get(pistol_silentmulti), "Silent aim if in fov")
2540 local silentaim_heavypistol = table_contains(ui.get(heavypistol_silentmulti), "Silent aim if in fov")
2541 local silentaim_awp = table_contains(ui.get(awp_silentmulti), "Silent aim if in fov")
2542 local silentaim_scout = table_contains(ui.get(scout_silentmulti), "Silent aim if in fov")
2543 local silentaim_auto = table_contains(ui.get(auto_silentmulti), "Silent aim if in fov")
2544 local silentaim_rifle = table_contains(ui.get(rifle_silentmulti), "Silent aim if in fov")
2545 local local_player = entity_get_local_player()
2546 local pitch, yaw = client_camera_angles()
2547 local lx, ly, lz = entity_get_prop(local_player, "m_vecOrigin")
2548 local nearest_player, nearest_player_fov = get_closest_player_to_crosshair(lx, ly, lz, pitch, yaw)
2549
2550 --global
2551
2552 if nearest_player ~= nil and nearest_player_fov <= ui.get(global_silentfovslider) and silentaim_global and current_weapon == "Global" and ui.get(global_silentcheck) then
2553 global_silent_var_fov = true
2554 else
2555 global_silent_var_fov = false
2556 end
2557
2558 --pistol
2559
2560 if nearest_player ~= nil and nearest_player_fov <= ui.get(pistol_silentfovslider) and silentaim_pistol and current_weapon == "Pistol" and ui.get(pistol_silentcheck) then
2561 pistol_silent_var_fov = true
2562 else
2563 pistol_silent_var_fov = false
2564 end
2565
2566 --heavy pistol
2567
2568 if nearest_player ~= nil and nearest_player_fov <= ui.get(heavypistol_silentfovslider) and silentaim_heavypistol and current_weapon == "Heavy pistol" and ui.get(heavypistol_silentcheck) then
2569 heavypistol_silent_var_fov = true
2570 else
2571 heavypistol_silent_var_fov = false
2572 end
2573
2574 --awp
2575
2576 if nearest_player ~= nil and nearest_player_fov <= ui.get(awp_silentfovslider) and silentaim_awp and current_weapon == "Awp" and ui.get(awp_silentcheck) then
2577 awp_silent_var_fov = true
2578 else
2579 awp_silent_var_fov = false
2580 end
2581
2582 --scout
2583
2584 if nearest_player ~= nil and nearest_player_fov <= ui.get(scout_silentfovslider) and silentaim_scout and current_weapon == "Scout" and ui.get(scout_silentcheck)
2585 then
2586 scout_silent_var_fov = true
2587 else
2588 scout_silent_var_fov = false
2589 end
2590
2591 --auto
2592
2593 if nearest_player ~= nil and nearest_player_fov <= ui.get(auto_silentfovslider) and silentaim_auto and current_weapon == "Auto" and ui.get(auto_silentcheck) then
2594 auto_silent_var_fov = true
2595 else
2596 auto_silent_var_fov = false
2597
2598 end
2599
2600 --rifle
2601
2602 if nearest_player ~= nil and nearest_player_fov <= ui.get(rifle_silentfovslider) and silentaim_rifle and current_weapon == "Rifle" and ui.get(rifle_silentcheck) then
2603 rifle_silent_var_fov = true
2604 else
2605 rifle_silent_var_fov = false
2606 end
2607end
2608
2609client.set_event_callback("run_command", run_cmd)
2610
2611--visible min damage
2612
2613function on_run_command()
2614 local mindmg_visible_global = table_contains(ui.get(global_mindmg_multi), "Visible and non visible override")
2615 local mindmg_visible_pistol = table_contains(ui.get(pistol_mindmg_multi), "Visible and non visible override")
2616 local mindmg_visible_heavypistol = table_contains(ui.get(heavypistol_mindmg_multi), "Visible and non visible override")
2617 local mindmg_visible_awp = table_contains(ui.get(awp_mindmg_multi), "Visible and non visible override")
2618 local mindmg_visible_scout = table_contains(ui.get(scout_mindmg_multi), "Visible and non visible override")
2619 local mindmg_visible_auto = table_contains(ui.get(auto_mindmg_multi), "Visible and non visible override")
2620 local mindmg_visible_rifle = table_contains(ui.get(rifle_mindmg_multi), "Visible and non visible override")
2621 local maximum_fov = ui.get(maximum_fov_ref)
2622 local local_player = entity_get_local_player()
2623 local pitch, yaw = client_camera_angles()
2624 local lx, ly, lz = entity_get_prop(local_player, "m_vecOrigin")
2625 local nearest_player, nearest_player_fov = get_closest_player_to_crosshair(lx, ly, lz, pitch, yaw)
2626 local view_offset = entity_get_prop(local_player, "m_vecViewOffset[2]")
2627 local lz = lz + view_offset
2628
2629 --global
2630
2631 if nearest_player ~= nil and is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Global" and mindmg_visible_global and ui.get(global_mindmg_check) then
2632 ui.set(min_dmg, ui.get(global_visible_mindmg))
2633 elseif nearest_player ~= nil and not is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Global" and mindmg_visible_global and ui.get(global_mindmg_check) then
2634 ui.set(min_dmg, ui.get(global_nonvisible_mindmg))
2635 end
2636
2637 --pistol
2638
2639 if nearest_player ~= nil and is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Pistol" and mindmg_visible_pistol and ui.get(pistol_mindmg_check) then
2640 ui.set(min_dmg, ui.get(pistol_visible_mindmg))
2641 elseif nearest_player ~= nil and not is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Pistol" and mindmg_visible_pistol and ui.get(pistol_mindmg_check) then
2642 ui.set(min_dmg, ui.get(pistol_nonvisible_mindmg))
2643 end
2644
2645 --heavy pistol
2646
2647 if nearest_player ~= nil and is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Heavy pistol" and mindmg_visible_heavypistol and ui.get(heavypistol_mindmg_check) then
2648 ui.set(min_dmg, ui.get(heavypistol_visible_mindmg))
2649 elseif nearest_player ~= nil and not is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Heavy pistol" and mindmg_visible_heavypistol and ui.get(heavypistol_mindmg_check) then
2650 ui.set(min_dmg, ui.get(heavypistol_nonvisible_mindmg))
2651 end
2652
2653 --awp
2654
2655 if nearest_player ~= nil and is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Awp" and mindmg_visible_awp and ui.get(awp_mindmg_check) then
2656 ui.set(min_dmg, ui.get(awp_visible_mindmg))
2657 elseif nearest_player ~= nil and not is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Awp" and mindmg_visible_awp and ui.get(awp_mindmg_check) then
2658 ui.set(min_dmg, ui.get(awp_nonvisible_mindmg))
2659 end
2660
2661 --scout
2662
2663 if nearest_player ~= nil and is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Scout" and mindmg_visible_scout and ui.get(scout_mindmg_check) then
2664 ui.set(min_dmg, ui.get(scout_visible_mindmg))
2665 elseif nearest_player ~= nil and not is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Scout" and mindmg_visible_scout and ui.get(scout_mindmg_check) then
2666 ui.set(min_dmg, ui.get(scout_nonvisible_mindmg))
2667 end
2668
2669 --auto
2670
2671 if nearest_player ~= nil and is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Auto" and mindmg_visible_auto and ui.get(auto_mindmg_check) then
2672 ui.set(min_dmg, ui.get(auto_visible_mindmg))
2673 elseif nearest_player ~= nil and not is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Auto" and mindmg_visible_auto and ui.get(auto_mindmg_check) then
2674 ui.set(min_dmg, ui.get(auto_nonvisible_mindmg))
2675 end
2676
2677 --rifle
2678
2679 if nearest_player ~= nil and is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Rifle" and mindmg_visible_rifle and ui.get(rifle_mindmg_check) then
2680 ui.set(min_dmg, ui.get(rifle_visible_mindmg))
2681 elseif nearest_player ~= nil and not is_player_visible(local_player, lx, ly, lz, nearest_player) and current_weapon == "Rifle" and mindmg_visible_rifle and ui.get(rifle_mindmg_check) then
2682 ui.set(min_dmg, ui.get(rifle_nonvisible_mindmg))
2683 end
2684end
2685
2686client.set_event_callback("run_command", on_run_command)
2687
2688--autowall
2689
2690--if was_visible then
2691local function ifvisableaw()
2692 local global_autowall = table_contains(ui.get(non_adaptive_auto_autowall), "Autowall if was visible")
2693 if not global_autowall and not ui.get(non_adaptive_aw_check) or not ui.get(non_adaptive_aw_check) or not global_autowall or not global_autowall and not ui.get(non_adaptive_aw_check)
2694 then
2695 all_autowallwasvisible_var = false
2696 return
2697 end
2698 local enemy_players = entity_get_players(true)
2699
2700 --check if are found, else sets fov to min
2701
2702 if #enemy_players ~= 0 then
2703 f_var_int_old_closest_enemy = f_var_int_new_closest_enemy
2704 local own_x, own_y, own_z = client_eye_position()
2705 local own_pitch, own_yaw = client_camera_angles()
2706 f_var_int_new_closest_enemy = nil
2707 f_var_float_closest_mouse_distance_to_enemy = 720
2708 for i = 1, #enemy_players do
2709 local enemy = enemy_players[i]
2710 local enemy_x, enemy_y, enemy_z = entity_hitbox_position(enemy, 0)
2711 local x = enemy_x - own_x
2712 local y = enemy_y - own_y
2713 local z = enemy_z - own_z
2714
2715 --needed yaw/pitch to face the enemy
2716
2717 local yaw = ((math_atan2(y, x) * 180 / math_pi))
2718 local pitch = -(math_atan2(z, math_sqrt(math_pow(x, 2) + math_pow(y, 2))) * 180 / math_pi)
2719 local yaw_dif = math_abs(own_yaw % 360 - yaw % 360) % 360
2720 local pitch_dif = math_abs(own_pitch - pitch) % 360
2721 if yaw_dif > 180 then
2722 yaw_dif = 360 - yaw_dif
2723 end
2724
2725 local real_dif = math_sqrt(math_pow(yaw_dif, 2) + math_pow(pitch_dif, 2))
2726 if (f_var_float_closest_mouse_distance_to_enemy > real_dif) and (not var_dynamicfov_bool_ignore_out_of_of or (real_dif < var_dynamicfov_int_max))
2727 then
2728 f_var_float_closest_mouse_distance_to_enemy = real_dif
2729 f_var_int_new_closest_enemy = enemy
2730 end
2731 end
2732 end
2733end
2734
2735local f_var_autowall_last_time_spotted = 0
2736local function awifwasvisible()
2737 local global_autowall = table_contains(ui.get(non_adaptive_auto_autowall), "Autowall if was visible")
2738 if not global_autowall and not ui.get(non_adaptive_aw_check) or not ui.get(non_adaptive_aw_check) or not global_autowall or not global_autowall and not ui.get(non_adaptive_aw_check)
2739 then
2740 all_autowallwasvisible_var = false
2741 return
2742 end
2743
2744 local aw_result = false
2745 local vis_check = 0
2746 if not aw_result and f_var_bool_new_in_fov then
2747 vis_check = -1
2748
2749 --client_log('-1')
2750 if var_autowall_bool_vischeck_beta then
2751 --client_log('0')
2752 if var_autowall_bool_vischeck_closest then
2753 --client_log('1')
2754 local health = entity_get_prop(f_var_int_new_closest_enemy, "m_iHealth")
2755 if health ~= nil and health > 0 then
2756 --client_log('2')
2757 i = f_var_int_new_closest_enemy
2758 if level_0_table[i] ~= nil and not aw_result then
2759 --client_log('3')
2760 for j = 1, #level_0_table[i] do
2761 if level_0_table[i][j] ~= nil and not aw_result then
2762 --client_log('4')
2763 --k starts as 2 to skip the time thing
2764 for k = 2, #level_0_table[i][j] do
2765 if not aw_result then
2766 --client_log('5')
2767 local x, y, z = level_0_table[i][j][k][1], level_0_table[i][j][k][2], level_0_table[i][j][k][3]
2768 if client_visible(x, y, z) then
2769 --client_log('6')
2770 aw_result = true
2771 vis_check = 1
2772 end
2773 end
2774 end
2775 end
2776 end
2777 end
2778 end
2779 else
2780 end
2781 end
2782 end
2783
2784 if not aw_result then
2785 if var_autowall_bool_vischeck_beta then
2786 --client_log('0')
2787 if var_autowall_bool_vischeck_closest then
2788 --client_log('1')
2789 local health = entity_get_prop(f_var_int_new_closest_enemy, "m_iHealth")
2790 if health ~= nil and health > 0 then
2791 --client_log('2')
2792 i = f_var_int_new_closest_enemy
2793 if level_0_table[i] ~= nil and not aw_result then
2794 --client_log('3')
2795 for j = 1, #level_0_table[i] do
2796 if level_0_table[i][j] ~= nil and not aw_result then
2797 --client_log('4')
2798 --k starts as 2 to skip the time thing
2799 for k = 2, #level_0_table[i][j] do
2800 if not aw_result then
2801 --client_log('5')
2802 local x, y, z = level_0_table[i][j][k][1], level_0_table[i][j][k][2], level_0_table[i][j][k][3]
2803 if client_visible(x, y, z) then
2804 --client_log('6')
2805 vis_check = 1
2806 end
2807 end
2808 end
2809 end
2810 end
2811 end
2812 end
2813 else
2814 for i = 1, #level_0_table do
2815 --client_log(' a', i)
2816 if level_0_table[i] ~= nil and not aw_result then
2817 --client_log(' a', false)
2818 local health = entity_get_prop(i, "m_iHealth")
2819 if health ~= nil and health > 0 then
2820 --client_log(' a', true)
2821 for j = 1, #level_0_table[i] do
2822 if level_0_table[i][j] ~= nil and not aw_result then
2823 --client_log(' a', false)
2824 --k starts as 2 to skip the time thing
2825 for k = 2, #level_0_table[i][j] do
2826 if not aw_result then
2827 --client_log(' a', true)
2828 local x, y, z = level_0_table[i][j][k][1], level_0_table[i][j][k][2], level_0_table[i][j][k][3]
2829 if client_visible(x, y, z) then
2830 --client_log(' a', false)
2831 vis_check = 1
2832 end
2833 end
2834 end
2835 end
2836 end
2837 end
2838 end
2839 end
2840 end
2841 else
2842 if vis_check == 0 then
2843 if (f_var_int_new_closest_enemy ~= nil) then
2844 local health = entity_get_prop(f_var_int_new_closest_enemy, "m_iHealth")
2845 if health ~= nil and health > 0 then
2846 for i = 1, 18 do
2847 local x, y, z = entity_hitbox_position(f_var_int_new_closest_enemy, i)
2848 if client_visible(x, y, z) then
2849 vis_check = 1
2850 end
2851 end
2852 end
2853 end
2854 end
2855 end
2856
2857 if vis_check == 1 then
2858 f_var_autowall_last_time_spotted = globals_realtime()
2859 end
2860
2861 if (vis_check ~= 1) and (globals_realtime() - f_var_autowall_last_time_spotted < ui.get(_autowall_mode_auto_trigger_delay) / 1000) then
2862 aw_result = true
2863 end
2864 end
2865
2866 all_autowallwasvisible_var = aw_result
2867end
2868
2869local function on_paint()
2870 ifvisableaw()
2871 awifwasvisible()
2872end
2873
2874client.set_event_callback('paint', on_paint)
2875
2876--autowall damage
2877rad2deg = function(rad)
2878 return (rad * 180 / math.pi)
2879end
2880
2881deg2rad = function(deg)
2882 return (deg * math.pi / 180)
2883end
2884
2885vector_distance = function(a, b)
2886 return math.sqrt(math.pow(a.x - b.x, 2) + math.pow(a.y - b.y, 2) + math.pow(a.z - b.z, 2))
2887end
2888
2889trace_line = function(entity, start, _end)
2890 return client.trace_line(entity, start.x, start.y, start.z, _end.x, _end.y, _end.z)
2891end
2892
2893world_to_screen = function(x, y, z, func)
2894 local x, y = renderer.world_to_screen(x, y, z)
2895 if x ~= nil and y ~= nil then
2896 func(x, y)
2897 end
2898end
2899
2900clamp_angles = function(angle)
2901 angle = angle % 360
2902 angle = (angle + 360) % 360
2903 if angle > 180 then
2904 angle = angle - 360
2905 end
2906 return angle
2907end
2908
2909get_atan = function(ent, eye_pos, camera)
2910 local data = { id = nil, dst = 2147483647 }
2911 for i = 0, 19 do
2912 local hitbox = vector(entity.hitbox_position(ent, i))
2913 local ext = vector_substract(hitbox, eye_pos)
2914 local yaw = rad2deg(math.atan2(ext.y, ext.x))
2915 local pitch = -rad2deg(math.atan2(ext.z, math.sqrt(ext.x ^ 2 + ext.y ^ 2)))
2916 local yaw_dif = math.abs(camera.y % 360 - yaw % 360) % 360
2917 local pitch_dif = math.abs(camera.x - pitch) % 360
2918 if yaw_dif > 180 then
2919 yaw_dif = 360 - yaw_dif
2920 end
2921
2922 local dst = math.sqrt(yaw_dif ^ 2 + pitch_dif ^ 2)
2923 if dst < data.dst then
2924 data.dst = dst
2925 data.id = i
2926 end
2927 end
2928 return data.id, data.dst
2929end
2930
2931function get_nearbox(z_pos)
2932 local get_players = entity.get_players(true)
2933 local closest = { enemy = nil, hitbox = nil, dst = 2147483647 }
2934 if #get_players == 0 then
2935 return
2936 end
2937
2938 local eye_pos = vector(client.eye_position())
2939 local camera = vector(client.camera_angles())
2940 camera.z = z_pos ~= nil and 64 or camera.z
2941 for i = 1, #get_players do
2942 local hitbox_id, distance = get_atan(get_players[i], eye_pos, camera)
2943 if distance < closest.dst then
2944 closest.dst = distance
2945 closest.hitbox = hitbox_id
2946 closest.enemy = get_players[i]
2947 end
2948 end
2949 return closest.enemy, closest.hitbox, closest.dst
2950end
2951
2952find_cmd = function(tab, value)
2953 for k, v in pairs(tab) do
2954 if contains(v, value) then
2955 return k
2956 end
2957 end
2958 return nil
2959end
2960
2961ui_mset = function(list)
2962 for ref, val in pairs(list) do
2963 ui.set(ref, val)
2964 end
2965end
2966
2967ui_get, ui_set = ui.get, ui.set
2968get_local = entity.get_local_player
2969get_prop = entity.get_prop
2970hitscan = { ["Head"] = { 0, 1 }, ["Chest"] = { 2, 3, 4 }, ["Stomach"] = { 5, 6 }, ["Arms"] = { 13, 14, 15, 16, 17, 18 }, ["Legs"] = { 7, 8, 9, 10 }, ["Feet"] = { 11, 12 } }
2971current_hitbox = "Head"
2972local cache = { }
2973cache_process = function(name, condition, should_call, a, b)
2974 cache[name] = cache[name] ~= nil and cache[name] or condition
2975 if should_call then
2976 a()
2977 else
2978 if cache[name] ~= nil then
2979 b(cache[name])
2980 cache[name] = nil
2981 end
2982 end
2983end
2984
2985rage_hitbox = ui.reference("RAGE", "Aimbot", "Target hitbox")
2986client.set_event_callback("setup_command", function(cmd)
2987 local local_player = get_local()
2988 local enemy, hid, dst = get_nearbox(false)
2989 local hitbox = find_cmd(hitscan, hid)
2990 if ui.get(global_hitbox_check, true) and current_weapon == "Global" and contains(ui.get(global_nearest_multi), hitbox) then
2991 ui.set(rage_hitbox, hitbox)
2992 end
2993
2994 if ui.get(pistol_hitbox_check, true) and current_weapon == "Pistol" and contains(ui.get(pistol_nearest_multi), hitbox) then
2995 ui.set(rage_hitbox, hitbox)
2996 end
2997
2998 if ui.get(heavypistol_hitbox_check, true) and current_weapon == "Heavy pistol" and contains(ui.get(heavypistol_nearest_multi), hitbox) then
2999 ui.set(rage_hitbox, hitbox)
3000 end
3001
3002 if ui.get(awp_hitbox_check, true) and current_weapon == "Awp" and contains(ui.get(awp_nearest_multi), hitbox) then
3003 ui.set(rage_hitbox, hitbox)
3004 end
3005
3006 if ui.get(auto_hitbox_check, true) and current_weapon == "Auto" and contains(ui.get(auto_nearest_multi), hitbox) then
3007 ui.set(rage_hitbox, hitbox)
3008 end
3009
3010 if ui.get(scout_hitbox_check, true) and current_weapon == "Scout" and contains(ui.get(scout_nearest_multi), hitbox) then
3011 ui.set(rage_hitbox, hitbox)
3012 end
3013
3014 if ui.get(rifle_hitbox_check, true) and current_weapon == "Rifle" and contains(ui.get(rifle_nearest_multi), hitbox) then
3015 ui.set(rage_hitbox, hitbox)
3016 end
3017end)
3018
3019client.set_event_callback("setup_command", function(cmd)
3020 local local_player = get_local()
3021 local enemy, hid, dst = get_nearbox(false)
3022 local hitbox = find_cmd(hitscan, hid)
3023 if hitbox == nil then
3024 current_hitbox = "Stomach"
3025 return
3026 end
3027 current_hitbox = hitbox
3028end)
3029
3030cached_time = globals.realtime()
3031local ffi = require("ffi")
3032local type = type
3033local setmetatable = setmetatable
3034local tostring = tostring
3035local a = math.pi
3036local b = math.min
3037local c = math.max
3038local d = math.deg
3039local e = math.rad
3040local f = math.sqrt
3041local g = math.sin
3042local h = math.cos
3043local i = math.atan
3044local j = math.acos
3045local k = math.fmod
3046local l = {}
3047l.__index = l
3048function Vector3(m, n, o)
3049 if type(m) ~= "number" then
3050 m = 0.0
3051 end
3052
3053 if type(n) ~= "number" then
3054 n = 0.0
3055 end
3056
3057 if type(o) ~= "number" then
3058 o = 0.0
3059 end
3060
3061 m = m or 0.0
3062 n = n or 0.0
3063 o = o or 0.0
3064 return
3065 setmetatable({ x = m, y = n, z = o }, l)
3066end
3067
3068function l.__eq(p, q)
3069 return p.x == q.x and p.y == q.y and p.z == q.z
3070end
3071
3072function l.__unm(p)
3073 return Vector3(-p.x, -p.y, -p.z)
3074end
3075
3076function l.__add(p, q)
3077 local r = type(p)
3078 local s = type(q)
3079 if r == "table" and s == "table" then
3080 return Vector3(p.x + q.x, p.y + q.y, p.z + q.z)
3081 elseif r == "table" and s == "number" then
3082 return Vector3(p.x + q, p.y + q, p.z + q)
3083 elseif r == "number" and s == "table" then
3084 return Vector3(p + q.x, p + q.y, p + q.z)
3085 end
3086end
3087
3088function l.__sub(p, q)
3089 local r = type(p)
3090 local s = type(q)
3091 if r == "table" and s == "table" then
3092 return Vector3(p.x - q.x, p.y - q.y, p.z - q.z)
3093 elseif r == "table" and s == "number" then
3094 return Vector3(p.x - q, p.y - q, p.z - q)
3095 elseif r == "number" and s == "table" then
3096 return Vector3(p - q.x, p - q.y, p - q.z)
3097 end
3098end
3099
3100function l.__mul(p, q)
3101 local r = type(p)
3102 local s = type(q)
3103 if r == "table" and s == "table" then
3104 return Vector3(p.x * q.x, p.y * q.y, p.z * q.z)
3105 elseif r == "table" and s == "number" then
3106 return Vector3(p.x * q, p.y * q, p.z * q)
3107 elseif r == "number" and s == "table" then
3108 return Vector3(p * q.x, p * q.y, p * q.z)
3109 end
3110end
3111
3112function l.__div(p, q)
3113 local r = type(p)
3114 local s = type(q)
3115 if r == "table" and s == "table" then
3116 return Vector3(p.x / q.x, p.y / q.y, p.z / q.z)
3117 elseif r == "table" and s == "number" then
3118 return Vector3(p.x / q, p.y / q, p.z / q)
3119 elseif r == "number" and s == "table" then
3120 return Vector3(p / q.x, p / q.y, p / q.z)
3121 end
3122end
3123
3124function l.__tostring(p)
3125 return "( " .. p.x .. ", " .. p.y .. ", " .. p.z .. " )"
3126end
3127
3128function l:clear()
3129 self.x = 0.0
3130 self.y = 0.0
3131 self.z = 0.0
3132end
3133
3134function l:unpack()
3135 return self.x, self.y, self.z
3136end
3137
3138function l:length_2d_sqr()
3139 return self.x * self.x + self.y * self.y
3140end
3141
3142function l:length_sqr()
3143 return self.x * self.x + self.y * self.y + self.z * self.z
3144end
3145
3146function l:length_2d()
3147 return f(self:length_2d_sqr())
3148end
3149
3150function l:length()
3151 return f(self:length_sqr())
3152end
3153
3154function l:dot(t)
3155 return self.x * t.x + self.y * t.y + self.z * t.z
3156end
3157
3158function l:cross(t)
3159 return Vector3(self.y * t.z - self.z * t.y, self.z * t.x - self.x * t.z, self.x * t.y - self.y * t.x)
3160end
3161
3162function l:dist_to(t)
3163 return (t - self):length()
3164end
3165
3166function l:is_zero(u)
3167 u = u or 0.001
3168 if self.x - u and self.y - u and self.z - u then
3169 return true
3170 end
3171 return false
3172end
3173
3174function l:normalize()
3175 local v = self:length()
3176 if v <= 0.0 then
3177 return 0.0
3178 end
3179
3180 self.x = self.x / v
3181 self.y = self.y / v
3182 self.z = self.z / v
3183 return v
3184end
3185
3186function l:normalize_no_len()
3187 local v = self:length()
3188 if v <= 0.0 then
3189 return
3190 end
3191
3192 self.x = self.x / v
3193 self.y = self.y / v
3194 self.z = self.z / v
3195end
3196
3197function l:normalized()
3198 local v = self:length()
3199 if v <= 0.0 then
3200 return Vector3()
3201 end
3202 return Vector3(self.x / v, self.y / v, self.z / v)
3203end
3204
3205function clamp(w, x, y)
3206 if wy then
3207 return y
3208 end
3209 return w
3210end
3211
3212function normalize_angle(z)
3213 local A
3214 local B
3215 B = tostring(z)
3216 if B == "nan" or B == "inf" then
3217 return 0.0
3218 end
3219
3220 if z >= -180.0 and z <= 180.0 then
3221 return z
3222 end
3223
3224 A = k(k(z + 360.0, 360.0), 360.0)
3225 if A > 180.0 then
3226 A = A - 360.0
3227 end
3228 return A
3229end
3230
3231function vector_to_angle(C)
3232 local v
3233 local D
3234 local E
3235 v = C:length()
3236 if v > 0.0 then
3237 D = d(i(-C.z, v))
3238 E = d(i(C.y, C.x))
3239 else
3240 if C.x > 0.0 then
3241 D = 270.0
3242 else
3243 D = 90.0
3244 end
3245 E = 0.0
3246 end
3247 return Vector3(D, E, 0.0)
3248end
3249
3250function angle_forward(z)
3251 local F = g(e(z.x))
3252 local G = h(e(z.x))
3253 local H = g(e(z.y))
3254 local I = h(e(z.y))
3255 return Vector3(G * I, G * H, -F)
3256end
3257
3258function angle_right(z)
3259 local F = g(e(z.x))
3260 local G = h(e(z.x))
3261 local H = g(e(z.y))
3262 local I = h(e(z.y))
3263 local J = g(e(z.z))
3264 local K = h(e(z.z))
3265 return Vector3(-1.0 * J * F * I + -1.0 * K * -H, -1.0 * J * F * H + -1.0 * K * I, -1.0 * J * G)
3266end
3267
3268function angle_up(z)
3269 local F = g(e(z.x))
3270 local G = h(e(z.x))
3271 local H = g(e(z.y))
3272 local I = h(e(z.y))
3273 local J = g(e(z.z))
3274 local K = h(e(z.z))
3275 return Vector3(K * F * I + -J * -H, K * F * H + -J * I, K * G)
3276end
3277
3278function get_FOV(L, M, N)
3279 local O
3280 local P
3281 local Q
3282 local R
3283 P = angle_forward(L)
3284 Q = (N - M):normalized()
3285 R = j(P:dot(Q) / Q:length())
3286 return c(0.0, d(R))
3287end
3288
3289client.set_event_callback("paint", function()
3290 local damage_multi = table_contains(ui.get(non_adaptive_auto_autowall), "Show autowall damage")
3291 if ui.get(non_adaptive_aw_check, true) and damage_multi then
3292 else
3293 return
3294 end
3295
3296 local local_player = entity_get_local_player()
3297 if not local_player or not entity.is_alive(local_player) then
3298 return
3299 end
3300 width, height = client.screen_size()
3301
3302 --getting camera angles so we can trace a line from them
3303
3304 local pitch, yaw, roll = client.camera_angles()
3305
3306 --pretty sure this just puts the angles into a vector3 data type so it works with yaw_forward
3307
3308 yaw = Vector3(pitch, yaw, roll)
3309
3310 --yaw_forward gives us a point or angle in the direction of our aim, not really sure how the math works but it does so
3311
3312 local yaw_forward = angle_forward(yaw)
3313
3314 --origin is where we start the trace, just eye position
3315
3316 local origin = Vector3(client.eye_position())
3317
3318 --calculates another point 4096 units away from our original origin in the direction of our aim
3319
3320 local tracing = origin + (yaw_forward * 4096)
3321
3322 --traces a line to the tracing point we just created and gets a fraction that shows how far the trace line went before hitting something
3323
3324 local fraction = client.trace_line(entity.get_local_player(), origin.x, origin.y, origin.z, tracing.x, tracing.y, tracing.z)
3325
3326 --set origin to roughly where the traceline hit an object, the fraction isnt super accurate and we're dealing with 100s of units so its not crazy accurate
3327
3328 origin = origin + ((yaw_forward * 4096) * fraction)
3329
3330 --calculate another point 150 units ahead of where we hit something, this number can get changed but i'd leave it around 100 - 200
3331 --we'll calculate our damage from this point, you can make multiple of these points in like 100 unit intervals if you want to calculate dmg...
3332 --through very thick walls and take the highest damage but this wont be accurate either, so I think 1 point is the easiest and most accurate way of doing this.
3333
3334 local endpoint = origin + (yaw_forward * 120)
3335 local localp = entity.get_local_player()
3336 local leyeposx, leyeposy, leyeposz = client.eye_position()
3337
3338 --calc damage
3339
3340 local ent, dmg = client.trace_bullet(localp, leyeposx, leyeposy, leyeposz, endpoint.x, endpoint.y, endpoint.z)
3341
3342 --you should use the entindex of the closest player to your crosshair for this instead of localplayer so it..
3343 --calculates damage correctly based on whether they have a helmet or not
3344
3345 local headdmg = client.scale_damage(localp, 1, dmg)
3346 if ui.get(autowalldamage_position) == "Top" then
3347 position__y = height / 2 - 50
3348 elseif ui.get(autowalldamage_position) == "Bottom" then
3349 position__y = height / 2 + 35
3350 end
3351
3352 local r, g, b, a = ui.get(autowalldamage_color)
3353 local headr, headg, headb, heada = ui.get(autowalldamage_colorhead)
3354 local bodyr, bodyg, bodyb, bodya = ui.get(autowalldamage_colorbody)
3355
3356 --draw damage
3357
3358 if current_hitbox == "Chest" and dmg > 0 and ui.get(autowalldamage_type) == "Combined" or current_hitbox == "Stomach" and dmg > 0 and ui.get(autowalldamage_type) == "Combined" or current_hitbox == "Arms" and dmg > 0 and ui.get(autowalldamage_type) == "Combined" or current_hitbox == "Legs" and dmg > 0 and ui.get(autowalldamage_type) == "Combined" or current_hitbox == "Feet" and dmg > 0 and ui.get(autowalldamage_type) == "Combined" then
3359 renderer.text(width / 2 - 7, position__y, bodyr, bodyg, bodyb, bodya, "b", 0, dmg)
3360 end
3361
3362 if headdmg > 0 and current_hitbox == "Head" and ui.get(autowalldamage_type) == "Combined" then
3363 renderer.text(width / 2 - 7, position__y, headr, headg, headb, heada, "b", 0, headdmg)
3364 end
3365 if dmg > 0 and ui.get(autowalldamage_type) == "Show body damage" then
3366 renderer.text(width / 2 - 7, position__y, r, g, b, a, "b", 0, dmg)
3367 end
3368
3369 if headdmg > 0 and ui.get(autowalldamage_type) == "Show head damage" then
3370 renderer.text(width / 2 - 7, position__y, r, g, b, a, "b", 0, headdmg)
3371 end
3372
3373 if headdmg > 0 and ui.get(autowalldamage_type) == "Both" then
3374 renderer.text(width / 2 - 7, position__y, headr, headg, headb, heada, "b", 0, headdmg)
3375 end
3376
3377 if dmg > 0 and ui.get(autowalldamage_type) == "Both" then
3378 renderer.text(width / 2 - 7, position__y + 15, bodyr, bodyg, bodyb, bodya, "b", 0, dmg)
3379 end
3380end)
3381----------------------- Autowall Handler
3382
3383function AWHandler()
3384 if pistol_autowall_var or heavypistol_autowall_var or rifle_autowall_var or awp_autowall_var or auto_autowall_var or scout_autowall_var or global_autowall_var or all_autowallifshot_var or all_autowallwasvisible_var or all_autowallkey_var then
3385 ui.set(autowall, true)
3386 else
3387 ui.set(autowall, false)
3388 end
3389end
3390
3391client.set_event_callback("paint", AWHandler)
3392
3393----------------------- Silent aim handler
3394
3395function SilentHandler()
3396 if global_silentkey_var or pistol_silentkey_var or heavypistol_silentkey_var or awp_silentkey_var or auto_silentkey_var or scout_silentkey_var or rifle_silentkey_var or global_silent_var or pistol_silent_var or heavypistol_silent_var or rifle_silent_var or awp_silent_var or auto_silent_var or scout_silent_var or global_silent_var_fov or pistol_silent_var_fov or heavypistol_silent_var_fov or rifle_silent_var_fov or awp_silent_var_fov or auto_silent_var_fov or scout_silent_var_fov or global_slowwalk_var or pistol_slowwalk_var or heavypistol_slowwalk_var or rifle_slowwalk_var or awp_slowwalk_var or auto_slowwalk_var or scout_slowwalk_var then
3397 ui.set(silent, true)
3398 else
3399 ui.set(silent, false)
3400 end
3401end
3402
3403client.set_event_callback("paint", SilentHandler)
3404
3405----------------------- --menu call
3406
3407function set_visible()
3408 local tagenable = ui.get(ngahooktag_enabled)
3409 local current_weapon_config = ui.get(adaptive_config2)
3410
3411 -----------------------------SILENT REF
3412
3413 local silentaim_global_infov = table_contains(ui.get(global_silentmulti), "Silent aim if in fov")
3414 local silentaim_pistol_infov = table_contains(ui.get(pistol_silentmulti), "Silent aim if in fov")
3415 local silentaim_heavypistol_infov = table_contains(ui.get(heavypistol_silentmulti), "Silent aim if in fov")
3416 local silentaim_awp_infov = table_contains(ui.get(awp_silentmulti), "Silent aim if in fov")
3417 local silentaim_scout_infov = table_contains(ui.get(scout_silentmulti), "Silent aim if in fov")
3418 local silentaim_auto_infov = table_contains(ui.get(auto_silentmulti), "Silent aim if in fov")
3419 local silentaim_rifle_infov = table_contains(ui.get(rifle_silentmulti), "Silent aim if in fov")
3420 local non_adaptive_mulit = table_contains(ui.get(non_adaptive_silentaim), "Silent aim on key")
3421 local non_adaptivesilent_check = ui.get(non_adaptive_silentcheck)
3422 local silentaim_global_distance = table_contains(ui.get(global_silentmulti), "Silent aim in distance")
3423 local silentaim_pistol_distance = table_contains(ui.get(pistol_silentmulti), "Silent aim in distance")
3424 local silentaim_heavypistol_distance = table_contains(ui.get(heavypistol_silentmulti), "Silent aim in distance")
3425 local silentaim_awp_distance = table_contains(ui.get(awp_silentmulti), "Silent aim in distance")
3426 local silentaim_scout_distance = table_contains(ui.get(scout_silentmulti), "Silent aim in distance")
3427 local silentaim_auto_distance = table_contains(ui.get(auto_silentmulti), "Silent aim in distance")
3428 local silentaim_rifle_distance = table_contains(ui.get(rifle_silentmulti), "Silent aim in distance")
3429 local silent_checkglobal = ui.get(global_silentcheck)
3430 local silent_checkpistol = ui.get(pistol_silentcheck)
3431 local silent_checkheavypistol = ui.get(heavypistol_silentcheck)
3432 local silent_checkawp = ui.get(awp_silentcheck)
3433 local silent_checkauto = ui.get(auto_silentcheck)
3434 local silent_checkrifle = ui.get(rifle_silentcheck)
3435 local silent_checkscout = ui.get(scout_silentcheck)
3436
3437 -----------------------------AUTOWALL REF
3438
3439 local non_adaptive_wasvisible = table_contains(ui.get(non_adaptive_auto_autowall), "Autowall if was visible")
3440 local non_adaptive_shotme = table_contains(ui.get(non_adaptive_auto_autowall), "Autowall if shot me")
3441 local non_adaptive_awallkey = table_contains(ui.get(non_adaptive_auto_autowall), "Autowall on key")
3442 local show_autowall_damagemulti = table_contains(ui.get(non_adaptive_auto_autowall), "Show autowall damage")
3443 local autowalldamagetype = ui.get(autowalldamage_type)
3444 local global_autowall_edgeaw = table_contains(ui.get(global_auto_autowall), "Edge autowall")
3445 local pistol_autowall_edgeaw = table_contains(ui.get(pistol_auto_autowall), "Edge autowall")
3446 local heavypistol_autowall_edgeaw = table_contains(ui.get(heavypistol_auto_autowall), "Edge autowall")
3447 local awp_autowall_edgeaw = table_contains(ui.get(awp_auto_autowall), "Edge autowall")
3448 local scout_autowall_edgeaw = table_contains(ui.get(scout_auto_autowall), "Edge autowall")
3449 local autos_autowall_edgeaw = table_contains(ui.get(auto_auto_autowall), "Edge autowall")
3450 local rifle_autowall_edgeaw = table_contains(ui.get(rifle_auto_autowall), "Edge autowall")
3451 local global_autowall_dynamic = table_contains(ui.get(global_auto_autowall), "Dynamic autowall FOV")
3452 local pistol_autowall_dynamic = table_contains(ui.get(pistol_auto_autowall), "Dynamic autowall FOV")
3453 local heavypistol_autowall_dynamic = table_contains(ui.get(heavypistol_auto_autowall), "Dynamic autowall FOV")
3454 local awp_autowall_dynamic = table_contains(ui.get(awp_auto_autowall), "Dynamic autowall FOV")
3455 local scout_autowall_dynamic = table_contains(ui.get(scout_auto_autowall), "Dynamic autowall FOV")
3456 local autos_autowall_dynamic = table_contains(ui.get(auto_auto_autowall), "Dynamic autowall FOV")
3457 local rifle_autowall_dynamic = table_contains(ui.get(rifle_auto_autowall), "Dynamic autowall FOV")
3458 local autowall_checkglobal = ui.get(global_autowall_check)
3459 local autowall_checkpistol = ui.get(pistol_autowall_check)
3460 local autowall_checkheavypistol = ui.get(heavypistol_autowall_check)
3461 local autowall_checkawp = ui.get(awp_autowall_check)
3462 local autowall_checkscout = ui.get(scout_autowall_check)
3463 local autowall_checkauto = ui.get(auto_autowall_check)
3464 local autowall_checkrifle = ui.get(rifle_autowall_check)
3465 local autowall_nonadaptive_check = ui.get(non_adaptive_aw_check)
3466
3467 -----------------------------MIN DMG REF
3468
3469 local mindmg_visible_global = table_contains(ui.get(global_mindmg_multi), "Visible and non visible override")
3470 local mindmg_visible_pistol = table_contains(ui.get(pistol_mindmg_multi), "Visible and non visible override")
3471 local mindmg_visible_heavypistol = table_contains(ui.get(heavypistol_mindmg_multi), "Visible and non visible override")
3472 local mindmg_visible_awp = table_contains(ui.get(awp_mindmg_multi), "Visible and non visible override")
3473 local mindmg_visible_scout = table_contains(ui.get(scout_mindmg_multi), "Visible and non visible override")
3474 local mindmg_visible_auto = table_contains(ui.get(auto_mindmg_multi), "Visible and non visible override")
3475 local mindmg_visible_rifle = table_contains(ui.get(rifle_mindmg_multi), "Visible and non visible override")
3476 local mindmg_visiblecheck_global = ui.get(global_mindmg_check)
3477 local mindmg_visiblecheck_pistol = ui.get(pistol_mindmg_check)
3478 local mindmg_visiblecheck_heavypistol = ui.get(heavypistol_mindmg_check)
3479 local mindmg_visiblecheck_awp = ui.get(awp_mindmg_check)
3480 local mindmg_visiblecheck_auto = ui.get(auto_mindmg_check)
3481 local mindmg_visiblecheck_rifle = ui.get(rifle_mindmg_check)
3482 local mindmg_visiblecheck_scout = ui.get(scout_mindmg_check)
3483
3484 -----------------------------NEAREST HITBOX REF
3485
3486 local nearest_check_global = ui.get(global_hitbox_check)
3487 local nearest_check_pistol = ui.get(pistol_hitbox_check)
3488 local nearest_check_heavypistol = ui.get(heavypistol_hitbox_check)
3489 local nearest_check_awp = ui.get(awp_hitbox_check)
3490 local nearest_check_scout = ui.get(scout_hitbox_check)
3491 local nearest_check_auto = ui.get(auto_hitbox_check)
3492 local nearest_check_rifle = ui.get(rifle_hitbox_check)
3493
3494 -----------------------------INDICATORS REF
3495
3496 local indicate = ui.get(indicate_enable)
3497 local indicateselet = ui.get(indicate_on)
3498
3499 -----------------------------TRIGGERMAG REF
3500
3501 local triggerenable = ui.get(tm_cb)
3502
3503 -----------------------------DYNAMIC FOV REF
3504
3505 local global_dynamic_check = ui.get(global_dynamicfov_enable)
3506 local pistol_dynamic_check = ui.get(pistol_dynamicfov_enable)
3507 local heavypistol_dynamic_check = ui.get(heavypistol_dynamicfov_enable)
3508 local awp_dynamic_check = ui.get(awp_dynamicfov_enable)
3509 local scout_dynamic_check = ui.get(scout_dynamicfov_enable)
3510 local auto_dynamic_check = ui.get(auto_dynamicfov_enable)
3511 local rifle_dynamic_check = ui.get(rifle_dynamicfov_enable)
3512
3513 -----------------------------RESOLVER REF
3514
3515 local resolverenable = ui.get(overridebutton)
3516 local solverselect = ui.get(resolverselect)
3517 local solvertype = ui.get(override_type)
3518
3519 -----------------------------FAKELAG REF
3520
3521 local flenable = ui.get(flcheckbox)
3522 local legitfl = table_contains(ui.get(flmulti), "Fakelag presets")
3523 local flwmenable = table_contains(ui.get(flmulti), "Custom fake lag while moving")
3524 local flcomb = ui.get(enablecflcombo)
3525 local legitflm = ui.get(legitflmode)
3526
3527 -----------------------------FLAGS REF
3528
3529 local flagenable = ui.get(flag_enable)
3530
3531 -----------------------------KILLSAY REF
3532
3533 local killenable = ui.get(talkshitenable)
3534 local killtype = ui.get(talkshittype)
3535
3536 -----------------------------NAMESPAM REF
3537
3538 local namespamc = ui.get(namecombo)
3539
3540 -----------------------------ADVANCED REF
3541
3542 local advlog = ui.get(advancedlog)
3543
3544 ----------------------------------------------------------------------
3545 ----------------------------------------------------------------------
3546 ----------------------------------------------------------------------SILENT AIM
3547 ----------------------------------------------------------------------
3548 ----------------------------------------------------------------------
3549 ui.set_visible(non_adaptive_silentaim, non_adaptivesilent_check)
3550 ui.set_visible(silentkey, non_adaptivesilent_check and non_adaptive_mulit)
3551 ui.set_visible(global_silentcheck, current_weapon_config == "Global")
3552 ui.set_visible(pistol_silentcheck, current_weapon_config == "Pistol")
3553 ui.set_visible(heavypistol_silentcheck, current_weapon_config == "Heavy pistol")
3554 ui.set_visible(awp_silentcheck, current_weapon_config == "Awp")
3555 ui.set_visible(scout_silentcheck, current_weapon_config == "Scout")
3556 ui.set_visible(auto_silentcheck, current_weapon_config == "Auto")
3557 ui.set_visible(rifle_silentcheck, current_weapon_config == "Rifle")
3558 ui.set_visible(global_silentmulti, current_weapon_config == "Global" and silent_checkglobal)
3559 ui.set_visible(pistol_silentmulti, current_weapon_config == "Pistol" and silent_checkpistol)
3560 ui.set_visible(heavypistol_silentmulti, current_weapon_config == "Heavy pistol" and silent_checkheavypistol)
3561 ui.set_visible(awp_silentmulti, current_weapon_config == "Awp" and silent_checkawp)
3562 ui.set_visible(scout_silentmulti, current_weapon_config == "Scout" and silent_checkscout)
3563 ui.set_visible(auto_silentmulti, current_weapon_config == "Auto" and silent_checkauto)
3564 ui.set_visible(rifle_silentmulti, current_weapon_config == "Rifle" and silent_checkrifle)
3565 ui.set_visible(global_silentdistance, current_weapon_config == "Global" and silentaim_global_distance and silent_checkglobal)
3566 ui.set_visible(pistol_silentdistance, current_weapon_config == "Pistol" and silentaim_pistol_distance and silent_checkpistol)
3567 ui.set_visible(heavypistol_silentdistance, current_weapon_config == "Heavy pistol" and silentaim_heavypistol_distance and silent_checkheavypistol)
3568 ui.set_visible(awp_silentdistance, current_weapon_config == "Awp" and silentaim_awp_distance and silent_checkawp)
3569 ui.set_visible(scout_silentdistance, current_weapon_config == "Scout" and silentaim_scout_distance and silent_checkscout)
3570 ui.set_visible(auto_silentdistance, current_weapon_config == "Auto" and silentaim_auto_distance and silent_checkauto)
3571 ui.set_visible(rifle_silentdistance, current_weapon_config == "Rifle" and silentaim_rifle_distance and silent_checkrifle)
3572 ui.set_visible(global_silentfovslider, current_weapon_config == "Global" and silentaim_global_infov and silent_checkglobal)
3573 ui.set_visible(pistol_silentfovslider, current_weapon_config == "Pistol" and silentaim_pistol_infov and silent_checkpistol)
3574 ui.set_visible(heavypistol_silentfovslider, current_weapon_config == "Heavy pistol" and silentaim_heavypistol_infov and silent_checkheavypistol)
3575 ui.set_visible(awp_silentfovslider, current_weapon_config == "Awp" and silentaim_awp_infov and silent_checkawp)
3576 ui.set_visible(scout_silentfovslider, current_weapon_config == "Scout" and silentaim_scout_infov and silent_checkscout)
3577 ui.set_visible(auto_silentfovslider, current_weapon_config == "Auto" and silentaim_auto_infov and silent_checkauto)
3578 ui.set_visible(rifle_silentfovslider, current_weapon_config == "Rifle" and silentaim_rifle_infov and silent_checkrifle)
3579
3580 ----------------------------------------------------------------------AUTOWALL
3581
3582 ui.set_visible(autowalldamage_position, show_autowall_damagemulti and autowall_nonadaptive_check)
3583 ui.set_visible(autowalldamage_color, show_autowall_damagemulti and autowall_nonadaptive_check and autowalldamagetype == "Show head damage" or show_autowall_damagemulti and autowall_nonadaptive_check and autowalldamagetype == "Show body damage")
3584 ui.set_visible(autowalldamage_type, show_autowall_damagemulti and autowall_nonadaptive_check)
3585 ui.set_visible(autowalldamage_colorhead, show_autowall_damagemulti and autowall_nonadaptive_check and autowalldamagetype == "Both" or show_autowall_damagemulti and autowall_nonadaptive_check and autowalldamagetype == "Combined")
3586 ui.set_visible(autowalldamage_colorbody, show_autowall_damagemulti and autowall_nonadaptive_check and autowalldamagetype == "Both" or show_autowall_damagemulti and autowall_nonadaptive_check and autowalldamagetype == "Combined")
3587 ui.set_visible(autowalldamage_labelhead, show_autowall_damagemulti and autowall_nonadaptive_check and autowalldamagetype == "Both" or show_autowall_damagemulti and autowall_nonadaptive_check and autowalldamagetype == "Combined")
3588 ui.set_visible(autowalldamage_labelbody, show_autowall_damagemulti and autowall_nonadaptive_check and autowalldamagetype == "Both" or show_autowall_damagemulti and autowall_nonadaptive_check and autowalldamagetype == "Combined")
3589 ui.set_visible(global_autowall_check, current_weapon_config == "Global")
3590 ui.set_visible(pistol_autowall_check, current_weapon_config == "Pistol")
3591 ui.set_visible(heavypistol_autowall_check, current_weapon_config == "Heavy pistol")
3592 ui.set_visible(awp_autowall_check, current_weapon_config == "Awp")
3593 ui.set_visible(scout_autowall_check, current_weapon_config == "Scout")
3594 ui.set_visible(auto_autowall_check, current_weapon_config == "Auto")
3595 ui.set_visible(rifle_autowall_check, current_weapon_config == "Rifle")
3596 ui.set_visible(global_auto_autowall, current_weapon_config == "Global" and autowall_checkglobal)
3597 ui.set_visible(pistol_auto_autowall, current_weapon_config == "Pistol" and autowall_checkpistol)
3598 ui.set_visible(heavypistol_auto_autowall, current_weapon_config == "Heavy pistol" and autowall_checkheavypistol)
3599 ui.set_visible(awp_auto_autowall, current_weapon_config == "Awp" and autowall_checkawp)
3600 ui.set_visible(scout_auto_autowall, current_weapon_config == "Scout" and autowall_checkscout)
3601 ui.set_visible(auto_auto_autowall, current_weapon_config == "Auto" and autowall_checkauto)
3602 ui.set_visible(rifle_auto_autowall, current_weapon_config == "Rifle" and autowall_checkrifle)
3603 ui.set_visible(global_legit_pen_threshold_ref, current_weapon_config == "Global" and autowall_checkglobal and global_autowall_edgeaw)
3604 ui.set_visible(pistol_legit_pen_threshold_ref, current_weapon_config == "Pistol" and autowall_checkpistol and pistol_autowall_edgeaw)
3605 ui.set_visible(heavypistol_legit_pen_threshold_ref, current_weapon_config == "Heavy pistol" and autowall_checkheavypistol and heavypistol_autowall_edgeaw)
3606 ui.set_visible(awp_legit_pen_threshold_ref, current_weapon_config == "Awp" and autowall_checkawp and awp_autowall_edgeaw)
3607 ui.set_visible(scout_legit_pen_threshold_ref, current_weapon_config == "Scout" and autowall_checkscout and scout_autowall_edgeaw)
3608 ui.set_visible(auto_legit_pen_threshold_ref, current_weapon_config == "Auto" and autowall_checkauto and autos_autowall_edgeaw)
3609 ui.set_visible(rifle_legit_pen_threshold_ref, current_weapon_config == "Rifle" and autowall_checkrifle and rifle_autowall_edgeaw)
3610 ui.set_visible(non_adaptive_auto_autowall, autowall_nonadaptive_check)
3611 ui.set_visible(beforedelay, autowall_nonadaptive_check and non_adaptive_shotme)
3612 ui.set_visible(autodely, autowall_nonadaptive_check and non_adaptive_shotme)
3613 ui.set_visible(_autowall_mode_auto_trigger_delay, autowall_nonadaptive_check and non_adaptive_wasvisible)
3614 ui.set_visible(autowalltoggle, non_adaptive_awallkey and autowall_nonadaptive_check)
3615 ui.set_visible(global_dynamicfov_minaw, current_weapon_config == "Global" and autowall_checkglobal and global_autowall_dynamic)
3616 ui.set_visible(global_dynamicfov_maxaw, current_weapon_config == "Global" and autowall_checkglobal and global_autowall_dynamic)
3617 ui.set_visible(dynamicfov_auto_factor_otheraw, current_weapon_config == "Global" and autowall_checkglobal and global_autowall_dynamic)
3618 ui.set_visible(pistol_dynamicfov_minaw, current_weapon_config == "Pistol" and autowall_checkpistol and pistol_autowall_dynamic)
3619 ui.set_visible(pistol_dynamicfov_maxaw, current_weapon_config == "Pistol" and autowall_checkpistol and pistol_autowall_dynamic)
3620 ui.set_visible(dynamicfov_auto_factor_pistolaw, current_weapon_config == "Pistol" and autowall_checkpistol and pistol_autowall_dynamic)
3621 ui.set_visible(heavypistol_dynamicfov_minaw, current_weapon_config == "Heavy pistol" and autowall_checkheavypistol and heavypistol_autowall_dynamic)
3622 ui.set_visible(heavypistol_dynamicfov_maxaw, current_weapon_config == "Heavy pistol" and autowall_checkheavypistol and heavypistol_autowall_dynamic)
3623 ui.set_visible(dynamicfov_auto_factor_heavypistolaw, current_weapon_config == "Heavy pistol" and autowall_checkheavypistol and heavypistol_autowall_dynamic)
3624 ui.set_visible(awp_dynamicfov_minaw, current_weapon_config == "Awp" and autowall_checkawp and awp_autowall_dynamic)
3625 ui.set_visible(awp_dynamicfov_maxaw, current_weapon_config == "Awp" and autowall_checkawp and awp_autowall_dynamic)
3626 ui.set_visible(dynamicfov_auto_factor_awpaw, current_weapon_config == "Awp" and autowall_checkawp and awp_autowall_dynamic)
3627 ui.set_visible(scout_dynamicfov_minaw, current_weapon_config == "Scout" and autowall_checkscout and scout_autowall_dynamic)
3628 ui.set_visible(scout_dynamicfov_maxaw, current_weapon_config == "Scout" and autowall_checkscout and scout_autowall_dynamic)
3629 ui.set_visible(dynamicfov_auto_factor_scoutaw, current_weapon_config == "Scout" and autowall_checkscout and scout_autowall_dynamic)
3630 ui.set_visible(auto_dynamicfov_minaw, current_weapon_config == "Auto" and autowall_checkauto and autos_autowall_dynamic)
3631 ui.set_visible(auto_dynamicfov_maxaw, current_weapon_config == "Auto" and autowall_checkauto and autos_autowall_dynamic)
3632 ui.set_visible(dynamicfov_auto_factor_autoaw, current_weapon_config == "Auto" and autowall_checkauto and autos_autowall_dynamic)
3633 ui.set_visible(rifle_dynamicfov_minaw, current_weapon_config == "Rifle" and autowall_checkrifle and rifle_autowall_dynamic)
3634 ui.set_visible(rifle_dynamicfov_maxaw, current_weapon_config == "Rifle" and autowall_checkrifle and rifle_autowall_dynamic)
3635 ui.set_visible(dynamicfov_auto_factor_rifleaw, current_weapon_config == "Rifle" and autowall_checkrifle and rifle_autowall_dynamic)
3636
3637 ----------------------------------------------------------------------MIN DMG
3638
3639 ui.set_visible(global_mindmg_check, current_weapon_config == "Global")
3640 ui.set_visible(pistol_mindmg_check, current_weapon_config == "Pistol")
3641 ui.set_visible(heavypistol_mindmg_check, current_weapon_config == "Heavy pistol")
3642 ui.set_visible(awp_mindmg_check, current_weapon_config == "Awp")
3643 ui.set_visible(scout_mindmg_check, current_weapon_config == "Scout")
3644 ui.set_visible(auto_mindmg_check, current_weapon_config == "Auto")
3645 ui.set_visible(rifle_mindmg_check, current_weapon_config == "Rifle")
3646 ui.set_visible(global_mindmg_multi, current_weapon_config == "Global" and mindmg_visiblecheck_global)
3647 ui.set_visible(pistol_mindmg_multi, current_weapon_config == "Pistol" and mindmg_visiblecheck_pistol)
3648 ui.set_visible(heavypistol_mindmg_multi, current_weapon_config == "Heavy pistol" and mindmg_visiblecheck_heavypistol)
3649 ui.set_visible(awp_mindmg_multi, current_weapon_config == "Awp" and mindmg_visiblecheck_awp)
3650 ui.set_visible(scout_mindmg_multi, current_weapon_config == "Scout" and mindmg_visiblecheck_scout)
3651 ui.set_visible(auto_mindmg_multi, current_weapon_config == "Auto" and mindmg_visiblecheck_auto)
3652 ui.set_visible(rifle_mindmg_multi, current_weapon_config == "Rifle" and mindmg_visiblecheck_rifle)
3653 ui.set_visible(global_visible_mindmg, current_weapon_config == "Global" and mindmg_visiblecheck_global and mindmg_visible_global)
3654 ui.set_visible(pistol_visible_mindmg, current_weapon_config == "Pistol" and mindmg_visiblecheck_pistol and mindmg_visible_pistol)
3655 ui.set_visible(heavypistol_visible_mindmg, current_weapon_config == "Heavy pistol" and mindmg_visiblecheck_heavypistol and mindmg_visible_heavypistol)
3656 ui.set_visible(awp_visible_mindmg, current_weapon_config == "Awp" and mindmg_visiblecheck_awp and mindmg_visible_awp)
3657 ui.set_visible(scout_visible_mindmg, current_weapon_config == "Scout" and mindmg_visiblecheck_scout and mindmg_visible_scout)
3658 ui.set_visible(auto_visible_mindmg, current_weapon_config == "Auto" and mindmg_visiblecheck_auto and mindmg_visible_auto)
3659 ui.set_visible(rifle_visible_mindmg, current_weapon_config == "Rifle" and mindmg_visiblecheck_rifle and mindmg_visible_rifle)
3660 ui.set_visible(global_nonvisible_mindmg, current_weapon_config == "Global" and mindmg_visiblecheck_global and mindmg_visible_global)
3661 ui.set_visible(pistol_nonvisible_mindmg, current_weapon_config == "Pistol" and mindmg_visiblecheck_pistol and mindmg_visible_pistol)
3662 ui.set_visible(heavypistol_nonvisible_mindmg, current_weapon_config == "Heavy pistol" and mindmg_visiblecheck_heavypistol and mindmg_visible_heavypistol)
3663 ui.set_visible(awp_nonvisible_mindmg, current_weapon_config == "Awp" and mindmg_visiblecheck_awp and mindmg_visible_awp)
3664 ui.set_visible(scout_nonvisible_mindmg, current_weapon_config == "Scout" and mindmg_visiblecheck_scout and mindmg_visible_scout)
3665 ui.set_visible(auto_nonvisible_mindmg, current_weapon_config == "Auto" and mindmg_visiblecheck_auto and mindmg_visible_auto)
3666 ui.set_visible(rifle_nonvisible_mindmg, current_weapon_config == "Rifle" and mindmg_visiblecheck_rifle and mindmg_visible_rifle)
3667
3668 ----------------------------------------------------------------------NEAREST HITBOX
3669
3670 ui.set_visible(global_hitbox_check, current_weapon_config == "Global")
3671 ui.set_visible(pistol_hitbox_check, current_weapon_config == "Pistol")
3672 ui.set_visible(heavypistol_hitbox_check, current_weapon_config == "Heavy pistol")
3673 ui.set_visible(awp_hitbox_check, current_weapon_config == "Awp")
3674 ui.set_visible(scout_hitbox_check, current_weapon_config == "Scout")
3675 ui.set_visible(auto_hitbox_check, current_weapon_config == "Auto")
3676 ui.set_visible(rifle_hitbox_check, current_weapon_config == "Rifle")
3677 ui.set_visible(global_nearest_multi, current_weapon_config == "Global" and nearest_check_global)
3678 ui.set_visible(pistol_nearest_multi, current_weapon_config == "Pistol" and nearest_check_pistol)
3679 ui.set_visible(heavypistol_nearest_multi, current_weapon_config == "Heavy pistol" and nearest_check_heavypistol)
3680 ui.set_visible(awp_nearest_multi, current_weapon_config == "Awp" and nearest_check_awp)
3681 ui.set_visible(scout_nearest_multi, current_weapon_config == "Scout" and nearest_check_scout)
3682 ui.set_visible(auto_nearest_multi, current_weapon_config == "Auto" and nearest_check_auto)
3683 ui.set_visible(rifle_nearest_multi, current_weapon_config == "Rifle" and nearest_check_rifle)
3684
3685 ----------------------------------------------------------------------INDICATORS
3686
3687 ui.set_visible(indicate_on, indicate)
3688 ui.set_visible(indicate_select, indicate)
3689 ui.set_visible(indicate_color, indicate)
3690 ui.set_visible(indicateposition, indicateselet == "Default" and indicate)
3691
3692 ----------------------------------------------------------------------TRIGGERMAG
3693
3694 ui.set_visible(triggermagnet, triggerenable)
3695
3696 ----------------------------------------------------------------------DYNAMIC FOV
3697
3698 ui.set_visible(global_dynamicfov_enable, current_weapon_config == "Global")
3699 ui.set_visible(pistol_dynamicfov_enable, current_weapon_config == "Pistol")
3700 ui.set_visible(heavypistol_dynamicfov_enable, current_weapon_config == "Heavy pistol")
3701 ui.set_visible(awp_dynamicfov_enable, current_weapon_config == "Awp")
3702 ui.set_visible(scout_dynamicfov_enable, current_weapon_config == "Scout")
3703 ui.set_visible(auto_dynamicfov_enable, current_weapon_config == "Auto")
3704 ui.set_visible(rifle_dynamicfov_enable, current_weapon_config == "Rifle")
3705 ui.set_visible(dynamicfov_minother, global_dynamic_check and current_weapon_config == "Global")
3706 ui.set_visible(dynamicfov_maxother, global_dynamic_check and current_weapon_config == "Global")
3707 ui.set_visible(dynamicfov_auto_factor_other, global_dynamic_check and current_weapon_config == "Global")
3708 ui.set_visible(dynamicfov_minpistol, pistol_dynamic_check and current_weapon_config == "Pistol")
3709 ui.set_visible(dynamicfov_maxpistol, pistol_dynamic_check and current_weapon_config == "Pistol")
3710 ui.set_visible(dynamicfov_auto_factor_pistol, pistol_dynamic_check and current_weapon_config == "Pistol")
3711 ui.set_visible(dynamicfov_minheavypistol, heavypistol_dynamic_check and current_weapon_config == "Heavy pistol")
3712 ui.set_visible(dynamicfov_maxheavypistol, heavypistol_dynamic_check and current_weapon_config == "Heavy pistol")
3713 ui.set_visible(dynamicfov_auto_factor_heavypistol, heavypistol_dynamic_check and current_weapon_config == "Heavy pistol")
3714 ui.set_visible(dynamicfov_minawp, awp_dynamic_check and current_weapon_config == "Awp")
3715 ui.set_visible(dynamicfov_maxawp, awp_dynamic_check and current_weapon_config == "Awp")
3716 ui.set_visible(dynamicfov_auto_factor_awp, awp_dynamic_check and current_weapon_config == "Awp")
3717 ui.set_visible(dynamicfov_minscout, scout_dynamic_check and current_weapon_config == "Scout")
3718 ui.set_visible(dynamicfov_maxscout, scout_dynamic_check and current_weapon_config == "Scout")
3719 ui.set_visible(dynamicfov_auto_factor_scout, scout_dynamic_check and current_weapon_config == "Scout")
3720 ui.set_visible(dynamicfov_minauto, auto_dynamic_check and current_weapon_config == "Auto")
3721 ui.set_visible(dynamicfov_maxauto, auto_dynamic_check and current_weapon_config == "Auto")
3722 ui.set_visible(dynamicfov_auto_factor_auto, auto_dynamic_check and current_weapon_config == "Auto")
3723 ui.set_visible(dynamicfov_minrifle, rifle_dynamic_check and current_weapon_config == "Rifle")
3724 ui.set_visible(dynamicfov_maxrifle, rifle_dynamic_check and current_weapon_config == "Rifle")
3725 ui.set_visible(dynamicfov_auto_factor_rifle, rifle_dynamic_check and current_weapon_config == "Rifle")
3726
3727 ----------------------------------------------------------------------RESOLVER
3728
3729 ui.set_visible(resolverselect, resolverenable)
3730 ui.set_visible(overridekey, resolverenable and solverselect == "Override" and solvertype == "1 key")
3731 ui.set_visible(override_type, resolverenable and solverselect == "Override")
3732 ui.set_visible(brute_key_disable, resolverenable and solverselect == "Override" and solvertype == "2 keys")
3733 ui.set_visible(brute_key, resolverenable and solverselect == "Override" and solvertype == "2 keys")
3734 ui.set_visible(oppositeenable, resolverenable and solverselect == "Opposite resolver")
3735
3736 ----------------------------------------------------------------------FLAGS
3737
3738 ui.set_visible(flag_select, flagenable)
3739 ui.set_visible(flag_color, flagenable)
3740
3741 ----------------------------------------------------------------------KILLSAY
3742
3743 ui.set_visible(talkshittype, killenable)
3744 ui.set_visible(talkshittext, killenable and killtype == "Custom")
3745
3746 ----------------------------------------------------------------------FAKELAG
3747
3748 ui.set_visible(flmulti, flenable)
3749 ui.set_visible(legitflmode, legitfl and flenable)
3750 ui.set_visible(enablecflcombo, flenable and flwmenable)
3751 ui.set_visible(slowvariance, flcomb == "Slow walk" and flenable and flwmenable)
3752 ui.set_visible(slowlimit, flcomb == "Slow walk" and flenable and flwmenable)
3753 ui.set_visible(slowamount, flcomb == "Slow walk" and flenable and flwmenable)
3754 ui.set_visible(movevariance, flcomb == "Moving" and flenable and flwmenable)
3755 ui.set_visible(movelimit, flcomb == "Moving" and flenable and flwmenable)
3756 ui.set_visible(moveamount, flcomb == "Moving" and flenable and flwmenable)
3757 ui.set_visible(standvariance, flcomb == "Standing" and flenable and flwmenable)
3758 ui.set_visible(standlimit, flcomb == "Standing" and flenable and flwmenable)
3759 ui.set_visible(standamount, flcomb == "Standing" and flenable and flwmenable)
3760 ui.set_visible(jumpvariance, flcomb == "Jumping" and flenable and flwmenable)
3761 ui.set_visible(jumplimit, flcomb == "Jumping" and flenable and flwmenable)
3762 ui.set_visible(jumpamount, flcomb == "Jumping" and flenable and flwmenable)
3763
3764 ----------------------------------------------------------------------NAMESPAM
3765
3766 ui.set_visible(firstlabel, namespamc == "Custom")
3767 ui.set_visible(secondlabel, namespamc == "Custom")
3768 ui.set_visible(thirdlabel, namespamc == "Custom")
3769 ui.set_visible(fourthlabel, namespamc == "Custom")
3770 ui.set_visible(firstspam, namespamc == "Custom")
3771 ui.set_visible(secondspam, namespamc == "Custom")
3772 ui.set_visible(thirdspam, namespamc == "Custom")
3773 ui.set_visible(fourthspam, namespamc == "Custom")
3774
3775 ----------------------------------------------------------------------ADVANCED LOG
3776
3777 ui.set_visible(log_type, advlog)
3778 ui.set_visible(log_options, advlog)
3779
3780 --
3781
3782 if legitflm == "On peek" and flenable and legitfl then
3783 ui.set(fakelag_enable, true)
3784 ui.set(fakelag_key, "Always on")
3785 ui.set(triggerz, true)
3786 ui.set(triggers, "On enemy visible")
3787 elseif legitflm == "On peek & visibility" and flenable and legitfl then
3788 ui.set(fakelag_enable, true)
3789 ui.set(fakelag_key, "Always on")
3790 ui.set(triggerz, true)
3791 ui.set(triggers, { "On enemy visible", "While enemy visible" })
3792 elseif legitflm == "Always on" and flenable and legitfl then
3793 ui.set(fakelag_enable, true)
3794 ui.set(fakelag_key, "Always on")
3795 ui.set(triggerz, true)
3796 ui.set(triggers, { "On enemy visible", "While enemy visible", "While moving" })
3797 elseif legitflm == "While targeted" and flenable and legitfl then
3798 ui.set(fakelag_enable, false)
3799 ui.set(fakelag_key, "Always on")
3800 ui.set(triggerz, false)
3801 elseif not legitfl then
3802 ui.set(fakelag_enable, false)
3803 ui.set(fakelag_key, "On hotkey")
3804 ui.set(triggerz, false)
3805 elseif not flenable then
3806 ui.set(fakelag_enable, false)
3807 ui.set(fakelag_key, "On hotkey")
3808 ui.set(triggerz, false)
3809 end
3810end
3811
3812set_visible()
3813ui.set_callback(flcheckbox, set_visible)
3814ui.set_callback(adaptive_config2, set_visible)
3815ui.set_callback(flmulti, set_visible)
3816ui.set_callback(legitflmode, set_visible)
3817ui.set_callback(enablecflcombo, set_visible)
3818ui.set_callback(overridebutton, set_visible)
3819ui.set_callback(resolverselect, set_visible)
3820ui.set_callback(tm_cb, set_visible)
3821ui.set_callback(indicate_enable, set_visible)
3822ui.set_callback(indicate_on, set_visible)
3823ui.set_callback(flag_enable, set_visible)
3824ui.set_callback(talkshitenable, set_visible)
3825ui.set_callback(talkshittype, set_visible)
3826ui.set_callback(ngahooktag_enabled, set_visible)
3827ui.set_callback(namecombo, set_visible)
3828ui.set_callback(advancedlog, set_visible)
3829ui.set_callback(global_silentmulti, set_visible)
3830ui.set_callback(pistol_silentmulti, set_visible)
3831ui.set_callback(heavypistol_silentmulti, set_visible)
3832ui.set_callback(auto_silentmulti, set_visible)
3833ui.set_callback(awp_silentmulti, set_visible)
3834ui.set_callback(scout_silentmulti, set_visible)
3835ui.set_callback(rifle_silentmulti, set_visible)
3836ui.set_callback(global_silentcheck, set_visible)
3837ui.set_callback(pistol_silentcheck, set_visible)
3838ui.set_callback(heavypistol_silentcheck, set_visible)
3839ui.set_callback(awp_silentcheck, set_visible)
3840ui.set_callback(scout_silentcheck, set_visible)
3841ui.set_callback(auto_silentcheck, set_visible)
3842ui.set_callback(rifle_silentcheck, set_visible)
3843ui.set_callback(global_auto_autowall, set_visible)
3844ui.set_callback(pistol_auto_autowall, set_visible)
3845ui.set_callback(heavypistol_auto_autowall, set_visible)
3846ui.set_callback(awp_auto_autowall, set_visible)
3847ui.set_callback(scout_auto_autowall, set_visible)
3848ui.set_callback(auto_auto_autowall, set_visible)
3849ui.set_callback(rifle_auto_autowall, set_visible)
3850ui.set_callback(global_autowall_check, set_visible)
3851ui.set_callback(pistol_autowall_check, set_visible)
3852ui.set_callback(heavypistol_autowall_check, set_visible)
3853ui.set_callback(awp_autowall_check, set_visible)
3854ui.set_callback(scout_autowall_check, set_visible)
3855ui.set_callback(auto_autowall_check, set_visible)
3856ui.set_callback(rifle_autowall_check, set_visible)
3857ui.set_callback(non_adaptive_auto_autowall, set_visible)
3858ui.set_callback(non_adaptive_aw_check, set_visible)
3859ui.set_callback(global_dynamicfov_enable, set_visible)
3860ui.set_callback(pistol_dynamicfov_enable, set_visible)
3861ui.set_callback(heavypistol_dynamicfov_enable, set_visible)
3862ui.set_callback(awp_dynamicfov_enable, set_visible)
3863ui.set_callback(scout_dynamicfov_enable, set_visible)
3864ui.set_callback(auto_dynamicfov_enable, set_visible)
3865ui.set_callback(rifle_dynamicfov_enable, set_visible)
3866ui.set_callback(non_adaptive_silentcheck, set_visible)
3867ui.set_callback(global_mindmg_check, set_visible)
3868ui.set_callback(pistol_mindmg_check, set_visible)
3869ui.set_callback(heavypistol_mindmg_check, set_visible)
3870ui.set_callback(rifle_mindmg_check, set_visible)
3871ui.set_callback(awp_mindmg_check, set_visible)
3872ui.set_callback(auto_mindmg_check, set_visible)
3873ui.set_callback(scout_mindmg_check, set_visible)
3874ui.set_callback(global_mindmg_multi, set_visible)
3875ui.set_callback(pistol_mindmg_multi, set_visible)
3876ui.set_callback(heavypistol_mindmg_multi, set_visible)
3877ui.set_callback(rifle_mindmg_multi, set_visible)
3878ui.set_callback(awp_mindmg_multi, set_visible)
3879ui.set_callback(auto_mindmg_multi, set_visible)
3880ui.set_callback(scout_mindmg_multi, set_visible)
3881ui.set_callback(global_hitbox_check, set_visible)
3882ui.set_callback(pistol_hitbox_check, set_visible)
3883ui.set_callback(heavypistol_hitbox_check, set_visible)
3884ui.set_callback(rifle_hitbox_check, set_visible)
3885ui.set_callback(awp_hitbox_check, set_visible)
3886ui.set_callback(auto_hitbox_check, set_visible)
3887ui.set_callback(scout_hitbox_check, set_visible)
3888ui.set_callback(autowalldamage_type, set_visible)
3889ui.set_callback(override_type, set_visible)
3890
3891--override key
3892
3893local canManual
3894local canManual_2
3895local cantManual
3896function setbodyyaw()
3897 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
3898 else
3899 return
3900 end
3901
3902 if ui.get(forcebodyyaw) == 0 and canManual == true and ui.get(override_type) == "1 key" then
3903 ui.set(forcebody, true)
3904 ui.set(forcebodyyaw, 60)
3905 ui.set(applyall, true)
3906 canManual = false
3907 end
3908
3909 if ui.get(forcebodyyaw) == 60 and canManual == true and ui.get(override_type) == "1 key" then
3910 ui.set(forcebody, true)
3911 ui.set(forcebodyyaw, -60)
3912 ui.set(applyall, true)
3913 canManual = false
3914 end
3915
3916 if ui.get(forcebodyyaw) == -60 and canManual == true and ui.get(override_type) == "1 key" then
3917 ui.set(forcebody, false)
3918 ui.set(forcebodyyaw, 0)
3919 ui.set(applyall, true)
3920 canManual = false
3921 end
3922
3923 if ui.get(forcebodyyaw) == -60 and canManual == true or ui.get(forcebodyyaw) == 0 and canManual == true and ui.get(override_type) == "2 keys" then
3924 ui.set(forcebody, true)
3925 ui.set(forcebodyyaw, 60)
3926 ui.set(applyall, true)
3927 canManual = false
3928 end
3929
3930 if ui.get(forcebodyyaw) == 60 and canManual == true and ui.get(override_type) == "2 keys" then
3931 ui.set(forcebody, true)
3932 ui.set(forcebodyyaw, -60)
3933 ui.set(applyall, true)
3934 canManual = false
3935 end
3936end
3937
3938function on_paint()
3939 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
3940 else
3941 return
3942 end
3943
3944 if ui.get(overridekey) and ui.get(override_type) == "1 key" or ui.get(brute_key) and ui.get(override_type) == "2 keys" then
3945 if canManual == true then
3946 setbodyyaw()
3947 canManual = false
3948 end
3949 else
3950 canManual = true
3951 end
3952end
3953
3954client.set_event_callback("paint", on_paint)
3955
3956function setbodyyaw_zero()
3957 if ui.get(forcebodyyaw) == -60 and cantManual == true and ui.get(override_type) == "2 keys" or ui.get(forcebodyyaw) == 60 and cantManual == true and ui.get(override_type) == "2 keys" then
3958 ui.set(forcebody, false)
3959 ui.set(forcebodyyaw, 0)
3960 ui.set(applyall, true)
3961 cantManual = false
3962 end
3963end
3964
3965function on_paint()
3966 if ui.get(brute_key_disable) and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" and ui.get(override_type) == "2 keys" then
3967 if cantManual == true then
3968 setbodyyaw_zero()
3969 cantManual = false
3970 end
3971 else
3972 cantManual = true
3973 end
3974end
3975
3976client.set_event_callback("paint", on_paint)
3977
3978--bruteforce indicator/resolver indicator
3979
3980aacorrect = ui.reference("RAGE", "OTHER", "Anti-aim correction")
3981playerlistplayers = ui.reference("PLAYERS", "Players", "Player list")
3982bruteforce_ents = { }
3983client.set_event_callback("run_command", function(c)
3984 local overrideselect = table_contains(ui.get(flag_select), "Override")
3985 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" and ui.get(flag_enable, true) and overrideselect then
3986 else
3987 return
3988 end
3989
3990 if not ui.is_menu_open() then
3991 bruteforce_ents = { }
3992 client.update_player_list()
3993 for _, v in pairs(entity.get_players(true)) do
3994 if ui.get(forcebodyyaw) == -60 or ui.get(forcebodyyaw) == 60 then
3995 table.insert(bruteforce_ents, v)
3996 entity.set_prop(v, "m_flDetectedByEnemySensorTime")
3997 else
3998 entity.set_prop(v, "m_flDetectedByEnemySensorTime", 0)
3999 end
4000 end
4001 end
4002end)
4003
4004client.set_event_callback("paint", function()
4005
4006 local overrideselect = table_contains(ui.get(flag_select), "Override")
4007 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" and ui.get(flag_enable, true) and overrideselect then
4008 else
4009 return
4010 end
4011
4012 local r, g, b, a = ui.get(flag_color)
4013 for _, v in pairs(bruteforce_ents) do
4014 local bounding_box = { entity.get_bounding_box(v) }
4015 if #bounding_box == 5 and bounding_box[5] ~= 0 then
4016 local center = bounding_box[1] + (bounding_box[3] - bounding_box[1]) / 2
4017 if ui.get(forcebodyyaw) == 60 then
4018 renderer.text(center, bounding_box[2] - 18, r, g, b, a * bounding_box[5], "bc", 0, "RIGHT")
4019 elseif ui.get(forcebodyyaw) == -60 then
4020 renderer.text(center, bounding_box[2] - 18, r, g, b, a * bounding_box[5], "bc", 0, "LEFT")
4021 end
4022 end
4023 end
4024end)
4025
4026--legitaa
4027
4028resolverenable, selectedplayer = ui.reference("players", "players", "player list")
4029forcebody, forcebodyyaw = ui.reference("players", "adjustments", "force body yaw")
4030resetlist = ui.reference("players", "players", "reset all")
4031player_list = ui.reference("PLAYERS", "Players", "Player list")
4032force_body, body_slider = ui.reference("PLAYERS", "Adjustments", "Force body yaw")
4033saved_enable = { }
4034ui.set_callback(player_list, function()
4035 ui.set(oppositeenable, saved_enable[ui.get(player_list)] or false)
4036end)
4037
4038ui.set_callback(oppositeenable, function()
4039 local plist = ui.get(player_list)
4040 if plist then
4041 saved_enable[plist] = ui.get(oppositeenable)
4042 end
4043end)
4044
4045function normalize(angle)
4046 while angle > 180 do
4047 angle = angle - 360
4048 end
4049
4050 while angle < -180 do
4051 angle = angle + 360
4052 end
4053 return angle
4054end
4055
4056client.set_event_callback("run_command", function()
4057
4058 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Opposite resolver" then
4059 else
4060 return
4061 end
4062
4063 if not ui.is_menu_open() then
4064 client.update_player_list()
4065 for k, v in pairs(saved_enable) do
4066 if entity.is_enemy(k) then
4067 ui.set(player_list, k)
4068 if v then
4069 local velocity = { entity.get_prop(k, "m_vecVelocity") }
4070 if 1 > math.abs(math.sqrt(velocity[1] ^ 2 + velocity[2] ^ 2)) then
4071 ui.set(force_body, true)
4072 ui.set(body_slider, -math.min(60, math.max(-60, normalize(entity.get_prop(k, "m_angEyeAngles[1]") - entity.get_prop(k, "m_flLowerBodyYawTarget")))))
4073 end
4074 else
4075 ui.set(force_body, false)
4076 ui.set(body_slider, 0)
4077 end
4078 end
4079 end
4080 end
4081end)
4082
4083client.set_event_callback("player_connect_full", function(c)
4084
4085 if client.userid_to_entindex(c) == entity.get_local_player() then
4086 saved_enable = { }
4087 end
4088end)
4089
4090function getNearestEnemy()
4091 if not ui.is_menu_open() then
4092 else
4093 return
4094 end
4095
4096 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Opposite resolver" or autowallplayer and ui.get(autowallbutton, true) or ui.get(autowallbutton, true) and ui.get(edgeautowalltype) == "Selected players" and edgeautowall then
4097 else
4098 return
4099 end
4100
4101 local enemy_players = entity.get_players(true)
4102 if #enemy_players ~= 0 then
4103 local own_x, own_y, own_z = client.eye_position()
4104 local own_pitch, own_yaw = client.camera_angles()
4105 local closest_enemy = nil
4106 local closest_distance = 999999999
4107 for i = 1, #enemy_players do
4108 local enemy = enemy_players[i]
4109 local enemy_x, enemy_y, enemy_z = entity.hitbox_position(enemy, 0)
4110 local x = enemy_x - own_x
4111 local y = enemy_y - own_y
4112 local z = enemy_z - own_z
4113 local yaw = ((math.atan2(y, x) * 180 / math.pi))
4114 local pitch = -(math.atan2(z, math.sqrt(math.pow(x, 2) + math.pow(y, 2))) * 180 / math.pi)
4115 local yaw_dif = math.abs(own_yaw % 360 - yaw % 360) % 360
4116 local pitch_dif = math.abs(own_pitch - pitch) % 360
4117 if yaw_dif > 180 then
4118 yaw_dif = 360 - yaw_dif
4119 end
4120
4121 local real_dif = math.sqrt(math.pow(yaw_dif, 2) + math.pow(pitch_dif, 2))
4122 if closest_distance > real_dif then
4123 closest_distance = real_dif
4124 closest_enemy = enemy
4125 end
4126 end
4127
4128 if closest_enemy ~= nil then
4129 return closest_enemy, closest_distance
4130 end
4131 end
4132 return nil, nil
4133end
4134
4135function setplist()
4136 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Opposite resolver" then
4137 else
4138 return
4139 end
4140
4141 -- Get the aimbots maximum fov so we can determine if a player is within that range
4142
4143 local maximum_fov = ui.get(maximum_fov_ref)
4144 local local_player = entity_get_local_player()
4145
4146 -- Get the local players origin, pitch, and yaw so that we can calculate our FOV to enemies
4147
4148 local pitch, yaw = client_camera_angles()
4149 local lx, ly, lz = entity_get_prop(local_player, "m_vecOrigin")
4150
4151 -- Get the nearest player to our crosshair, and the fov to that player so we can determine if they are in the aimbots range
4152
4153 local nearest_player, nearest_player_fov = get_closest_player_to_crosshair(lx, ly, lz, pitch, yaw)
4154
4155 -- Get our view offset and add it to our origin so that we can trace from our eye position
4156
4157 local view_offset = entity_get_prop(local_player, "m_vecViewOffset[2]")
4158 local lz = lz + view_offset
4159 if nearest_player_fov <= 170 then
4160 ui.set(selectedplayer, getNearestEnemy())
4161 return
4162 end
4163end
4164
4165client.set_event_callback("paint", setplist)
4166
4167function setaa()
4168 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Opposite resolver" then
4169 else
4170 return
4171 end
4172
4173 if ui.get(oppositeenable, true) then
4174 ui.set(aacorrect, false)
4175 else
4176 ui.set(aacorrect, true)
4177 end
4178end
4179
4180client.set_event_callback("paint", setaa)
4181
4182--fakelag triggers
4183
4184client.set_event_callback("setup_command", function(cms)
4185
4186 if ui.get(flcheckbox, true) then
4187 else
4188 return
4189 end
4190
4191 local flwmenable = table_contains(ui.get(flmulti), "Custom fake lag while moving")
4192 if flwmenable and ui.get(flcheckbox, true) then
4193 else
4194 return
4195 end
4196
4197 ui.set(variance, cms.sidemove == 0 and cms.forwardmove == 0 and ui.get(standvariance) or ui.get(movevariance))
4198 ui.set(fakelag_limit, cms.sidemove == 0 and cms.forwardmove == 0 and ui.get(standlimit) or ui.get(movelimit))
4199 ui.set(amount, cms.sidemove == 0 and cms.forwardmove == 0 and ui.get(standamount) or ui.get(moveamount))
4200end)
4201
4202local function get_velocity(ent)
4203 local flwmenable = table_contains(ui.get(flmulti), "Custom fake lag while moving")
4204 if ui.get(flcheckbox, true) and flwmenable then
4205 else
4206 return
4207 end
4208
4209 local vecVelx, vecVely, vecVelz = entity.get_prop(ent, "m_vecVelocity")
4210 if vecVelx == nil and vecVely == nil and vecVelz == nil then
4211 return 0
4212 end
4213 return math.sqrt(vecVelx * vecVelx + vecVely * vecVely + vecVelz * vecVelz)
4214
4215end
4216
4217local function eventhandler_paint(ctx)
4218 local flwmenable = table_contains(ui.get(flmulti), "Custom fake lag while moving")
4219 local localplayer = entity.get_local_player()
4220 if flwmenable and ui.get(flcheckbox, true) and not localplayer == nil then
4221 else
4222 return
4223 end
4224
4225 local flags = get_prop(localplayer, "m_fFlags")
4226 local onground = bit.band(flags, 1)
4227 if onground == 0 then
4228 ui.set(variance, ui.get(jumpvariance))
4229 ui.set(fakelag_limit, ui.get(jumplimit))
4230 ui.set(amount, ui.get(jumpamount))
4231 end
4232end
4233
4234client.set_event_callback("paint", eventhandler_paint)
4235
4236--custom aa while moving
4237
4238function aaslowwalk_menu()
4239 if ui.get(enableaawm, true) and ui.get(hotkey_reference) then
4240 else
4241 return
4242 end
4243
4244 ui.set(LegitAABreaker, ui.get(slowmode))
4245
4246end
4247
4248client.set_event_callback("paint", aaslowwalk_menu)
4249client.set_event_callback("setup_command", function(cme)
4250 if ui.get(hotkey_reference) or ui.get(ref_fakeduck) then
4251 return
4252 end
4253
4254 if ui.get(enableaawm, true) then
4255 ui.set(LegitAABreaker, cme.sidemove == 0 and cme.forwardmove == 0 and ui.get(standmode) or ui.get(movemode))
4256 end
4257end)
4258
4259--killsay
4260
4261userid_to_entindex = client.userid_to_entindex
4262get_player_name = entity.get_player_name
4263get_local_player = entity.get_local_player
4264is_enemy = entity.is_enemy
4265local autowalltable = { 'get autoballed retard', 'the only thing easier to penetrate then you was your mother', }
4266local killsaytable = { 'cya retard', 'cya @ fridge', 'effortless', 'you didnt pay. right?', '[insert gibberish eu killsay here]', 'losing in 2020 couldnt be me', 'HDF DU', 'nn', 'newfag', 'L', 'gtfo', 'sit dog', 'nice try, maybe next time', 'u mad', }
4267function get_table_length(data)
4268 if type(data) ~= 'table' then
4269 return 0
4270 end
4271
4272 local count = 0
4273 for _ in pairs(data) do
4274 count = count + 1
4275 end
4276
4277 return count
4278end
4279
4280num_quotes_aw = get_table_length(autowalltable)
4281num_quotes_kill = get_table_length(killsaytable)
4282
4283function on_player_death(e)
4284 if ui.get(talkshitenable, true) then
4285 else
4286 return
4287 end
4288
4289 local random = client_random_int(1, 4)
4290 local victim_userid, attacker_userid = e.userid, e.attacker
4291 if victim_userid == nil or attacker_userid == nil then
4292 return
4293 end
4294
4295 local victim_entindex = userid_to_entindex(victim_userid)
4296 local attacker_entindex = userid_to_entindex(attacker_userid)
4297 if attacker_entindex == get_local_player() and is_enemy(victim_entindex) then
4298 else
4299 return
4300 end
4301
4302 if e.penetrated > 0 and ui.get(talkshittype) == "Basic kill says" then
4303 local commandaw = 'say ' .. autowalltable[math.random(num_quotes_aw)]
4304 client.exec(commandaw)
4305 elseif ui.get(talkshittype) == "Basic kill says" then
4306 local commandkill = 'say ' .. killsaytable[math.random(num_quotes_kill)]
4307 client.exec(commandkill)
4308 end
4309
4310 if ui.get(talkshittype) == "Custom" then
4311 client.exec("say ", ui.get(talkshittext))
4312 end
4313end
4314
4315client.set_event_callback('player_death', on_player_death)
4316
4317function thirdp()
4318 if ui.get(forcethirdpkey) then
4319 ui.set(thirdpersondead, true)
4320 else
4321 ui.set(thirdpersondead, false)
4322 end
4323end
4324
4325client.set_event_callback('paint', thirdp)
4326client.set_event_callback("round_start", function()
4327 global_silentkey_var = false
4328 pistol_silentkey_var = false
4329 heavypistol_silentkey_var = false
4330 awp_silentkey_var = false
4331 auto_silentkey_var = false
4332 scout_silentkey_var = false
4333 rifle_silentkey_var = false
4334 global_silent_var = false
4335 pistol_silent_var = false
4336 heavypistol_silent_var = false
4337 rifle_silent_var = false
4338 awp_silent_var = false
4339 auto_silent_var = false
4340 scout_silent_var = false
4341 global_silent_var_fov = false
4342 pistol_silent_var_fov = false
4343 heavypistol_silent_var_fov = false
4344 rifle_silent_var_fov = false
4345 awp_silent_var_fov = false
4346 auto_silent_var_fov = false
4347 scout_silent_var_fov = false
4348 global_slowwalk_var = false
4349 pistol_slowwalk_var = false
4350 heavypistol_slowwalk_var = false
4351 rifle_slowwalk_var = false
4352 awp_slowwalk_var = false
4353 auto_slowwalk_var = false
4354 scout_slowwalk_var = false
4355 pistol_autowall_var = false
4356 heavypistol_autowall_var = false
4357 rifle_autowall_var = false
4358 awp_autowall_var = false
4359 auto_autowall_var = false
4360 scout_autowall_var = false
4361 global_autowall_var = false
4362 all_autowallifshot_var = false
4363 all_autowallwasvisible_var = false
4364 global_autowallkey_var = false
4365 pistol_autowallkey_var = false
4366 heavypistol_autowallkey_var = false
4367 awp_autowallkey_var = false
4368 scout_autowallkey_var = false
4369 auto_autowallkey_var = false
4370 rifle_autowallkey_var = false
4371 ui.set(body_slider, 0)
4372 ui.set(forcebody1, false)
4373 ui.set(applyall, true)
4374end)
4375client.set_event_callback("player_death", function(e)
4376 if client.userid_to_entindex(e.attacker) == entity.get_local_player() and client.userid_to_entindex(e.userid) ~= entity.get_local_player() and not entity.is_enemy(client.userid_to_entindex(e.userid)) then
4377 client.exec("say 1 retard")
4378 end
4379end)
4380client.set_event_callback("player_death", function(e)
4381 local victim_userid, attacker_userid = e.userid, e.attacker
4382 if victim_userid == nil or attacker_userid == nil then
4383 return
4384 end
4385 local_player = entity.get_local_player()
4386 local victim_entindex = client.userid_to_entindex(victim_userid)
4387 local attacker_entindex = client.userid_to_entindex(attacker_userid)
4388 victim = entity.get_player_name(victim_entindex)
4389 attacker = entity.get_player_name(attacker_entindex)
4390 if victim_entindex == local_player and attacker == "retard98712363" then
4391 client.exec("say User: ", nameofthe_user)
4392 elseif attacker_entindex == local_player and victim == "retard98712363" then
4393 client.exec("say User: ", nameofthe_user)
4394 end
4395end)
4396function team_kill(e)
4397 local victim_userid, attacker_userid = e.userid, e.attacker
4398 local_player = entity.get_local_player()
4399 local victim_entindex = client.userid_to_entindex(victim_userid)
4400 local attacker_entindex = client.userid_to_entindex(attacker_userid)
4401 if not entity.is_enemy(client.userid_to_entindex(attacker_userid)) and victim_entindex == local_player then
4402 client.exec("say the fuck did u tk me for retard")
4403 end
4404end
4405
4406client.set_event_callback('player_death', team_kill)
4407
4408--advanced log
4409
4410ffi.cdef [[ typedef void***(__thiscall* FindHudElement_t)(void*, const char*); typedef void(__cdecl* ChatPrintf_t)(void*, int, int, const char*, ...); ]]
4411script = { signature_gHud = "\xB9\xCC\xCC\xCC\xCC\x88\x46\x09", signature_FindElement = "\x55\x8B\xEC\x53\x8B\x5D\x08\x56\x57\x8B\xF9\x33\xF6\x39\x77\x28", }
4412match = client.find_signature("client_panorama.dll", script.signature_gHud) or error("sig1 not found")
4413hud = ffi.cast("void**", ffi.cast("char*", match) + 1)[0] or error("hud is nil")
4414helement_match = client.find_signature("client_panorama.dll", script.signature_FindElement) or error("FindHudElement not found")
4415hudchat = ffi.cast("FindHudElement_t", helement_match)(hud, "CHudChat") or error("CHudChat not found")
4416chudchat_vtbl = hudchat[0] or error("CHudChat instance vtable is nil")
4417print_to_chat = ffi.cast("ChatPrintf_t", chudchat_vtbl[27])
4418function print_chat(text)
4419 -- \x01 - white -- \x02 - red -- \x03 - purple -- \x04 - green -- \x05 - yellow green -- \x06 - light green -- \x07 - light red -- \x08 - gray -- \x09 - light yellow -- \x0A - gray -- \x0C - dark blue -- \x10 - gold print_to_chat(hudchat, 0, 0, text)
4420end
4421
4422--bombsites
4423
4424a_sites = { 425, 278, 369, 370, 317, 260, 334, 152, 79, 93, 333, 201, 281, 204 }
4425b_sites = { 426, 279, 366, 367, 318, 95, 423, 403, 507, 538, 422, 202, 504, 205, 252, 282 }
4426function get_bombsite(site)
4427 if contains(a_sites, site) then
4428 return "A"
4429 end
4430
4431 if contains(b_sites, site) then
4432 return "B"
4433 end
4434 return site
4435end
4436
4437client.set_event_callback("bomb_planted", function(e)
4438
4439 local bomb = table_contains(ui.get(log_options), "Bomb info")
4440 local consolelog = table_contains(ui.get(log_type), "Console")
4441 local saychat = table_contains(ui.get(log_type), "Say in chat")
4442 local logchat = table_contains(ui.get(log_type), "Print in chat")
4443 if ui.get(advancedlog) and bomb then
4444 planter_id = e.userid
4445 player_uid = client.userid_to_entindex(planter_id)
4446 player_name = entity.get_player_name(player_uid)
4447 bombsite = get_bombsite(e.site)
4448 if consolelog then
4449 lua_log(player_name, " Planted at ", bombsite, " Site")
4450 end
4451
4452 if saychat then
4453 client.exec("say ", player_name, " Planted at ", bombsite, " Site")
4454 end
4455
4456 if logchat then
4457 print_chat(" \x01[\x0Cnigahook\x01] " .. player_name .. " Planted at " .. bombsite .. " Site")
4458 end
4459 end
4460end)
4461
4462client.set_event_callback("bomb_beginplant", function(e)
4463
4464 local bomb = table_contains(ui.get(log_options), "Bomb info")
4465 local consolelog = table_contains(ui.get(log_type), "Console")
4466 local saychat = table_contains(ui.get(log_type), "Say in chat")
4467 local logchat = table_contains(ui.get(log_type), "Print in chat")
4468
4469 if ui.get(advancedlog) and bomb then
4470 planter_id = e.userid
4471 player_uid = client.userid_to_entindex(planter_id)
4472 player_name = entity.get_player_name(player_uid)
4473 bombsite = get_bombsite(e.site)
4474
4475 if consolelog then
4476 lua_log(player_name, " Is planting at ", bombsite, " Site")
4477 end
4478
4479 if saychat then
4480 client.exec("say ", player_name, " Is planting at ", bombsite, " Site")
4481 end
4482
4483 if logchat then
4484 print_chat(" \x01[\x0Cnigahook\x01] " .. player_name .. " Is planting at " .. bombsite .. " Site")
4485 end
4486 end
4487end)
4488
4489client.set_event_callback("bomb_abortplant", function(e)
4490
4491 local bomb = table_contains(ui.get(log_options), "Bomb info")
4492 local consolelog = table_contains(ui.get(log_type), "Console")
4493 local saychat = table_contains(ui.get(log_type), "Say in chat")
4494 local logchat = table_contains(ui.get(log_type), "Print in chat")
4495
4496 if ui.get(advancedlog) and bomb then
4497 planter_id = e.userid
4498 player_uid = client.userid_to_entindex(planter_id)
4499 player_name = entity.get_player_name(player_uid)
4500 bombsite = get_bombsite(e.site)
4501
4502 if consolelog then
4503 lua_log(player_name, " Is no longer planting at ", bombsite, " Site")
4504 end
4505
4506 if saychat then
4507 client.exec("say ", player_name, " Is no longer planting at ", bombsite, " Site")
4508 end
4509
4510 if logchat then
4511 print_chat(" \x01[\x0Cnigahook\x01] " .. player_name .. " Is no longer planting at " .. bombsite .. " Site")
4512 end
4513 end
4514end)
4515
4516client.set_event_callback("bomb_pickup", function(e)
4517
4518 local bomb = table_contains(ui.get(log_options), "Bomb info")
4519 local consolelog = table_contains(ui.get(log_type), "Console")
4520 local saychat = table_contains(ui.get(log_type), "Say in chat")
4521 local logchat = table_contains(ui.get(log_type), "Print in chat")
4522
4523 if ui.get(advancedlog) and bomb then
4524 planter_id = e.userid
4525 player_uid = client.userid_to_entindex(planter_id)
4526 player_name = entity.get_player_name(player_uid)
4527 bomb_carrier = player_name
4528
4529 if consolelog then
4530 lua_log(player_name, " has picked up the bomb")
4531 end
4532
4533 if saychat then
4534 client.exec("say ", player_name, " has picked up the bomb")
4535 end
4536
4537 if logchat then
4538 print_chat(" \x01[\x0Cnigahook\x01] " .. player_name .. " has picked up the bomb")
4539 end
4540 end
4541end)
4542
4543client.set_event_callback("bomb_dropped", function(e)
4544
4545 local bomb = table_contains(ui.get(log_options), "Bomb info")
4546 local consolelog = table_contains(ui.get(log_type), "Console")
4547 local saychat = table_contains(ui.get(log_type), "Say in chat")
4548 local logchat = table_contains(ui.get(log_type), "Print in chat")
4549
4550 if ui.get(advancedlog) and bomb then
4551 planter_id = e.userid
4552 player_uid = client.userid_to_entindex(planter_id)
4553 player_name = entity.get_player_name(player_uid)
4554 if consolelog then
4555 lua_log(player_name, " has dropped the bomb")
4556 end
4557
4558 if saychat then
4559 client.exec("say ", player_name, " has dropped the bomb")
4560 end
4561
4562 if logchat then
4563 print_chat(" \x01[\x0Cnigahook\x01] " .. player_name .. " has dropped the bomb")
4564 end
4565 end
4566end)
4567
4568client.set_event_callback("bomb_begindefuse", function(e)
4569
4570 local bomb = table_contains(ui.get(log_options), "Bomb info")
4571 local consolelog = table_contains(ui.get(log_type), "Console")
4572 local saychat = table_contains(ui.get(log_type), "Say in chat")
4573 local logchat = table_contains(ui.get(log_type), "Print in chat")
4574
4575 if ui.get(advancedlog) and bomb then
4576 planter_id = e.userid
4577 player_uid = client.userid_to_entindex(planter_id)
4578 player_name = entity.get_player_name(player_uid)
4579 has_kit = nil
4580 if e.haskit == true then
4581 has_kit = "With a kit"
4582 elseif e.haskit == false then
4583 has_kit = "Without a kit"
4584 end
4585
4586 if consolelog then
4587 lua_log(player_name, " is defusing the bomb ", has_kit)
4588 end
4589
4590 if saychat then
4591 client.exec("say ", player_name, " is defusing the bomb ", has_kit)
4592 end
4593
4594 if logchat then
4595 print_chat(" \x01[\x0Cnigahook\x01] " .. player_name .. " is defusing the bomb " .. has_kit)
4596 end
4597 end
4598end)
4599
4600client.set_event_callback("bomb_abortdefuse", function(e)
4601
4602 local bomb = table_contains(ui.get(log_options), "Bomb info")
4603 local consolelog = table_contains(ui.get(log_type), "Console")
4604 local saychat = table_contains(ui.get(log_type), "Say in chat")
4605 local logchat = table_contains(ui.get(log_type), "Print in chat")
4606
4607 if ui.get(advancedlog) and bomb then
4608 planter_id = e.userid
4609 player_uid = client.userid_to_entindex(planter_id)
4610 player_name = entity.get_player_name(player_uid)
4611 if consolelog then
4612 lua_log(player_name, " is no longer defusing ")
4613 end
4614
4615 if saychat then
4616 client.exec("say ", player_name, " is no longer defusing ")
4617 end
4618
4619 if logchat then
4620 print_chat(" \x01[\x0Cnigahook\x01] " .. player_name .. " is no longer defusing ")
4621 end
4622 end
4623end)
4624
4625client.set_event_callback("bomb_abortdefuse", function(e)
4626
4627 local bomb = table_contains(ui.get(log_options), "Bomb info")
4628 local consolelog = table_contains(ui.get(log_type), "Console")
4629 local saychat = table_contains(ui.get(log_type), "Say in chat")
4630 local logchat = table_contains(ui.get(log_type), "Print in chat")
4631
4632 if ui.get(advancedlog) and bomb then
4633 planter_id = e.userid
4634 player_uid = client.userid_to_entindex(planter_id)
4635 player_name = entity.get_player_name(player_uid)
4636 if consolelog then
4637 lua_log(player_name, " is no longer defusing ")
4638 end
4639
4640 if saychat then
4641 client.exec("say ", player_name, " is no longer defusing ")
4642 end
4643
4644 if logchat then
4645 print_chat(" \x01[\x0Cnigahook\x01] " .. player_name .. " is no longer defusing ")
4646 end
4647 end
4648end)
4649
4650client.set_event_callback("enter_bombzone", function(e)
4651
4652 local bomb = table_contains(ui.get(log_options), "Bomb info")
4653 local consolelog = table_contains(ui.get(log_type), "Console")
4654 local saychat = table_contains(ui.get(log_type), "Say in chat")
4655 local logchat = table_contains(ui.get(log_type), "Print in chat")
4656
4657 if ui.get(advancedlog) and bomb then
4658 planter_id = e.userid
4659 player_uid = client.userid_to_entindex(planter_id)
4660 player_name = entity.get_player_name(player_uid)
4661 if e.hasbomb then
4662 else
4663 return
4664 end
4665
4666 if consolelog then
4667 lua_log(player_name, " Has entered the bomb site with the bomb ")
4668 end
4669
4670 if saychat then
4671 client.exec("say ", player_name, " Has entered the bomb site with the bomb ")
4672 end
4673
4674 if logchat then
4675 print_chat(" \x01[\x0Cnigahook\x01] " .. player_name .. " Has entered the bomb site with the bomb ")
4676 end
4677 end
4678end)
4679
4680vote_option = { }
4681team_name = ""
4682function on_vote_options(event)
4683 vote_option[0] = event.option1
4684 vote_option[1] = event.option2
4685 vote_option[2] = event.option3
4686 vote_option[3] = event.option4
4687 vote_option[4] = event.option5
4688end
4689
4690function on_vote_cast(event)
4691
4692 local votemulti = table_contains(ui.get(log_options), "Votes")
4693 local consolelog = table_contains(ui.get(log_type), "Console")
4694 local saychat = table_contains(ui.get(log_type), "Say in chat")
4695 local logchat = table_contains(ui.get(log_type), "Print in chat")
4696 if ui.get(advancedlog) and votemulti then
4697 else
4698 return
4699 end
4700
4701 local userid = event.entityid
4702 if userid == nil then
4703 return
4704 end
4705
4706 if event.team == 3 then
4707 team_name = "CT"
4708 elseif event.team == 2 then
4709 team_name = "T"
4710 else
4711 team_name = "Spectator"
4712 end
4713
4714 local player_name = entity.get_player_name(userid)
4715
4716 if consolelog then
4717 lua_log(player_name, " voted ", vote_option[event.vote_option], " on ", team_name)
4718 end
4719
4720 if saychat then
4721 client.exec("say ", player_name, " voted ", vote_option[event.vote_option], " on ", team_name)
4722 end
4723
4724 if logchat then
4725 print_chat(" \x01[\x0Cnigahook\x01] " .. player_name .. " voted " .. vote_option[event.vote_option] .. " on " .. team_name)
4726 end
4727end
4728
4729client.set_event_callback("vote_options", on_vote_options)
4730client.set_event_callback("vote_cast", on_vote_cast)
4731
4732function on_aim_hit(e)
4733 local damagemulti = table_contains(ui.get(log_options), "Damage")
4734 local consolelog = table_contains(ui.get(log_type), "Console")
4735 local saychat = table_contains(ui.get(log_type), "Say in chat")
4736 local logchat = table_contains(ui.get(log_type), "Print in chat")
4737
4738 if damagemulti then
4739 else
4740 return
4741 end
4742
4743 local hitgroup_names = { "body", "head", "chest", "stomach", "left arm", "right arm", "left leg", "right leg", "neck", "?", "gear" }
4744 local group = hitgroup_names[e.hitgroup + 1] or "?"
4745 local target_name = entity.get_player_name(e.target)
4746 local entityHealth = entity.get_prop(e.target, "m_iHealth")
4747 if logchat then
4748 print_chat(" \x01[\x0Cnigahook\x01] " .. "target: " .. string.lower(target_name) .. " hitbox: " .. group .. " hp: " .. entityHealth .. " hc: " .. string.format("%d", e.hit_chance) .. "%")
4749 end
4750
4751 if consolelog then
4752 lua_log("target: " .. string.lower(target_name) .. " hitbox: " .. group .. " hp: " .. entityHealth .. " hc: " .. string.format("%d", e.hit_chance) .. "%")
4753 end
4754end
4755
4756function on_aim_miss(e)
4757
4758 local damagemulti = table_contains(ui.get(log_options), "Damage")
4759 local consolelog = table_contains(ui.get(log_type), "Console")
4760 local saychat = table_contains(ui.get(log_type), "Say in chat")
4761 local logchat = table_contains(ui.get(log_type), "Print in chat")
4762
4763 if damagemulti and e ~= nil then
4764 else
4765 return
4766 end
4767
4768 local hitgroup_names = { "body", "head", "chest", "stomach", "left arm", "right arm", "left leg", "right leg", "neck", "?", "gear" }
4769 local group = hitgroup_names[e.hitgroup + 1] or "?"
4770 local target_name = entity.get_player_name(e.target)
4771 local reason
4772 local entityHealth = entity.get_prop(e.target, "m_iHealth")
4773 if (entityHealth == nil) or (entityHealth <= 0) then
4774 lua_log("The player was killed prior to your shot being able to land")
4775 return
4776 end
4777
4778 if e.reason == "?" then
4779 reason = "resolver"
4780 else
4781 reason = e.reason
4782 end
4783
4784 if logchat then
4785 print_chat(" \x01[\x0Cnigahook\x01] " .. "\x01missed " .. string.lower(target_name) .. "'s " .. " " .. group .. " due to " .. reason)
4786 end
4787
4788 if consolelog then
4789 lua_log("missed " .. string.lower(target_name) .. "'s " .. " " .. group .. " due to " .. reason)
4790 end
4791end
4792
4793client.set_event_callback('aim_hit', on_aim_hit)
4794client.set_event_callback('aim_miss', on_aim_miss)
4795config_presets = ui.new_combobox("LUA", "B", "Config presets", "Legit", "Semi legit", "Semirage", "Rage")
4796
4797ui.new_button("LUA", "B", "Save config", function()
4798 lua_log("Saving ", ui.get(config_presets), " Config")
4799
4800 if ui.get(config_presets) == "Legit" then
4801 database.write("triggermag_legit", ui.get(tm_cb))
4802 database.write("auto_dynamic_fov_check_legit", ui.get(auto_dynamicfov_enable))
4803 database.write("auto_dynamic_fov_min_legit", ui.get(dynamicfov_minauto))
4804 database.write("auto_dynamic_fov_max_legit", ui.get(dynamicfov_maxauto))
4805 database.write("pistol_dynamic_fov_check_legit", ui.get(pistol_dynamicfov_enable))
4806 database.write("pistol_dynamic_fov_min_legit", ui.get(dynamicfov_minpistol))
4807 database.write("pistol_dynamic_fov_max_legit", ui.get(dynamicfov_maxpistol))
4808 database.write("heavypistol_dynamic_fov_check_legit", ui.get(heavypistol_dynamicfov_enable))
4809 database.write("heavypistol_dynamic_fov_min_legit", ui.get(dynamicfov_minheavypistol))
4810 database.write("heavypistol_dynamic_fov_max_legit", ui.get(dynamicfov_maxheavypistol))
4811 database.write("rifle_dynamic_fov_check_legit", ui.get(rifle_dynamicfov_enable))
4812 database.write("rifle_dynamic_fov_min_legit", ui.get(dynamicfov_minrifle))
4813 database.write("rifle_dynamic_fov_max_legit", ui.get(dynamicfov_maxrifle))
4814 database.write("awp_dynamic_fov_check_legit", ui.get(awp_dynamicfov_enable))
4815 database.write("awp_dynamic_fov_min_legit", ui.get(dynamicfov_minawp))
4816 database.write("awp_dynamic_fov_max_legit", ui.get(dynamicfov_maxawp))
4817 database.write("scout_dynamic_fov_check_legit", ui.get(scout_dynamicfov_enable))
4818 database.write("scout_dynamic_fov_min_legit", ui.get(dynamicfov_minscout))
4819 database.write("scout_dynamic_fov_max_legit", ui.get(dynamicfov_maxscout))
4820 database.write("other_dynamic_fov_check_legit", ui.get(global_dynamicfov_enable))
4821 database.write("other_dynamic_fov_min_legit", ui.get(dynamicfov_minother))
4822 database.write("other_dynamic_fov_max_legit", ui.get(dynamicfov_maxother))
4823 database.write("auto_autowall_check_legit", ui.get(auto_autowall_check))
4824 database.write("auto_auto_autowall_legit", ui.get(auto_auto_autowall))
4825 database.write("auto_dynamicfov_minaw_legit", ui.get(auto_dynamicfov_minaw))
4826 database.write("auto_dynamicfov_maxaw_legit", ui.get(auto_dynamicfov_maxaw))
4827 database.write("dynamicfov_auto_factor_autoaw_legit", ui.get(dynamicfov_auto_factor_autoaw))
4828 database.write("auto_legit_pen_threshold_ref_legit", ui.get(auto_legit_pen_threshold_ref))
4829 database.write("pistol_autowall_check_legit", ui.get(pistol_autowall_check))
4830 database.write("pistol_auto_autowall_legit", ui.get(pistol_auto_autowall))
4831 database.write("pistol_dynamicfov_minaw_legit", ui.get(pistol_dynamicfov_minaw))
4832 database.write("pistol_dynamicfov_maxaw_legit", ui.get(pistol_dynamicfov_maxaw))
4833 database.write("dynamicfov_auto_factor_pistolaw_legit", ui.get(dynamicfov_auto_factor_pistolaw))
4834 database.write("pistol_legit_pen_threshold_ref_legit", ui.get(pistol_legit_pen_threshold_ref))
4835 database.write("heavypistol_autowall_check_legit", ui.get(heavypistol_autowall_check))
4836 database.write("heavypistol_auto_autowall_legit", ui.get(heavypistol_auto_autowall))
4837 database.write("heavypistol_dynamicfov_minaw_legit", ui.get(heavypistol_dynamicfov_minaw))
4838 database.write("heavypistol_dynamicfov_maxaw_legit", ui.get(heavypistol_dynamicfov_maxaw))
4839 database.write("dynamicfov_auto_factor_heavypistolaw_legit", ui.get(dynamicfov_auto_factor_heavypistolaw))
4840 database.write("heavypistol_legit_pen_threshold_ref_legit", ui.get(heavypistol_legit_pen_threshold_ref))
4841 database.write("rifle_autowall_check_legit", ui.get(rifle_autowall_check))
4842 database.write("rifle_auto_autowall_legit", ui.get(rifle_auto_autowall))
4843 database.write("rifle_dynamicfov_minaw_legit", ui.get(rifle_dynamicfov_minaw))
4844 database.write("rifle_dynamicfov_maxaw_legit", ui.get(rifle_dynamicfov_maxaw))
4845 database.write("dynamicfov_auto_factor_rifleaw_legit", ui.get(dynamicfov_auto_factor_rifleaw))
4846 database.write("rifle_legit_pen_threshold_ref_legit", ui.get(rifle_legit_pen_threshold_ref))
4847 database.write("awp_autowall_check_legit", ui.get(awp_autowall_check))
4848 database.write("awp_auto_autowall_legit", ui.get(awp_auto_autowall))
4849 database.write("awp_dynamicfov_minaw_legit", ui.get(awp_dynamicfov_minaw))
4850 database.write("awp_dynamicfov_maxaw_legit", ui.get(awp_dynamicfov_maxaw))
4851 database.write("dynamicfov_auto_factor_awpaw_legit", ui.get(dynamicfov_auto_factor_awpaw))
4852 database.write("awp_legit_pen_threshold_ref_legit", ui.get(awp_legit_pen_threshold_ref))
4853 database.write("scout_autowall_check_legit", ui.get(scout_autowall_check))
4854 database.write("scout_auto_autowall_legit", ui.get(scout_auto_autowall))
4855 database.write("scout_dynamicfov_minaw_legit", ui.get(scout_dynamicfov_minaw))
4856 database.write("scout_dynamicfov_maxaw_legit", ui.get(scout_dynamicfov_maxaw))
4857 database.write("dynamicfov_auto_factor_scoutaw_legit", ui.get(dynamicfov_auto_factor_scoutaw))
4858 database.write("scout_legit_pen_threshold_ref_legit", ui.get(scout_legit_pen_threshold_ref))
4859 database.write("non_adaptive_aw_check_legit", ui.get(non_adaptive_aw_check))
4860 database.write("non_adaptive_auto_autowall_legit", ui.get(non_adaptive_auto_autowall))
4861 database.write("beforedelay_legit", ui.get(beforedelay))
4862 database.write("autodely_legit", ui.get(autodely))
4863 database.write("_autowall_mode_auto_trigger_delay_legit", ui.get(_autowall_mode_auto_trigger_delay))
4864 database.write("autowalldamage_position_legit", ui.get(autowalldamage_position))
4865 database.write("autowalldamage_color_legit", ui.get(autowalldamage_color))
4866 database.write("autowalldamage_type_legit", ui.get(autowalldamage_type))
4867 database.write("autowalldamage_colorhead_legit", ui.get(autowalldamage_colorhead))
4868 database.write("autowalldamage_colorbody_legit", ui.get(autowalldamage_colorbody))
4869 database.write("indicate_enable_legit", ui.get(indicate_enable))
4870 database.write("indicate_on_legit", ui.get(indicate_on))
4871 database.write("indicate_color_legit", ui.get(indicate_color))
4872 database.write("indicate_select_legit", ui.get(indicate_select))
4873 database.write("indicateposition_legit", ui.get(indicateposition))
4874 database.write("flag_enable_legit", ui.get(flag_enable))
4875 database.write("flag_color_legit", ui.get(flag_color))
4876 database.write("flag_select_legit", ui.get(flag_select))
4877 database.write("flcheckbox_legit", ui.get(flcheckbox))
4878 database.write("flmulti_legit", ui.get(flmulti))
4879 database.write("auto_silentcheck_legit", ui.get(auto_silentcheck))
4880 database.write("auto_silentmulti_legit", ui.get(auto_silentmulti))
4881 database.write("auto_silentfovslider_legit", ui.get(auto_silentfovslider))
4882 database.write("auto_silentdistance_legit", ui.get(auto_silentdistance))
4883 database.write("global_silentcheck_legit", ui.get(global_silentcheck))
4884 database.write("global_silentmulti_legit", ui.get(global_silentmulti))
4885 database.write("global_silentfovslider_legit", ui.get(global_silentfovslider))
4886 database.write("global_silentdistance_legit", ui.get(global_silentdistance))
4887 database.write("pistol_silentcheck_legit", ui.get(pistol_silentcheck))
4888 database.write("pistol_silentmulti_legit", ui.get(pistol_silentmulti))
4889 database.write("pistol_silentfovslider_legit", ui.get(pistol_silentfovslider))
4890 database.write("pistol_silentdistance_legit", ui.get(pistol_silentdistance))
4891 database.write("heavypistol_silentcheck_legit", ui.get(heavypistol_silentcheck))
4892 database.write("heavypistol_silentmulti_legit", ui.get(heavypistol_silentmulti))
4893 database.write("heavypistol_silentfovslider_legit", ui.get(heavypistol_silentfovslider))
4894 database.write("heavypistol_silentdistance_legit", ui.get(heavypistol_silentdistance))
4895 database.write("rifle_silentcheck_legit", ui.get(rifle_silentcheck))
4896 database.write("rifle_silentmulti_legit", ui.get(rifle_silentmulti))
4897 database.write("rifle_silentfovslider_legit", ui.get(rifle_silentfovslider))
4898 database.write("rifle_silentdistance_legit", ui.get(rifle_silentdistance))
4899 database.write("awp_silentcheck_legit", ui.get(awp_silentcheck))
4900 database.write("awp_silentmulti_legit", ui.get(awp_silentmulti))
4901 database.write("awp_silentfovslider_legit", ui.get(awp_silentfovslider))
4902 database.write("awp_silentdistance_legit", ui.get(awp_silentdistance))
4903 database.write("scout_silentcheck_legit", ui.get(scout_silentcheck))
4904 database.write("scout_silentmulti_legit", ui.get(scout_silentmulti))
4905 database.write("scout_silentfovslider_legit", ui.get(scout_silentfovslider))
4906 database.write("scout_silentdistance_legit", ui.get(scout_silentdistance))
4907 database.write("non_adaptive_silentcheck_legit", ui.get(non_adaptive_silentcheck))
4908 database.write("non_adaptive_silentaim_legit", ui.get(non_adaptive_silentaim))
4909 database.write("auto_mindmg_check_legit", ui.get(auto_mindmg_check))
4910 database.write("auto_mindmg_multi_legit", ui.get(auto_mindmg_multi))
4911 database.write("auto_visible_mindmg_legit", ui.get(auto_visible_mindmg))
4912 database.write("auto_nonvisible_mindmg_legit", ui.get(auto_nonvisible_mindmg))
4913 database.write("global_mindmg_check_legit", ui.get(global_mindmg_check))
4914 database.write("global_mindmg_multi_legit", ui.get(global_mindmg_multi))
4915 database.write("global_visible_mindmg_legit", ui.get(global_visible_mindmg))
4916 database.write("global_nonvisible_mindmg_legit", ui.get(global_nonvisible_mindmg))
4917 database.write("pistol_mindmg_check_legit", ui.get(pistol_mindmg_check))
4918 database.write("pistol_mindmg_multi_legit", ui.get(pistol_mindmg_multi))
4919 database.write("pistol_visible_mindmg_legit", ui.get(pistol_visible_mindmg))
4920 database.write("pistol_nonvisible_mindmg_legit", ui.get(pistol_nonvisible_mindmg))
4921 database.write("heavypistol_mindmg_check_legit", ui.get(heavypistol_mindmg_check))
4922 database.write("heavypistol_mindmg_multi_legit", ui.get(heavypistol_mindmg_multi))
4923 database.write("heavypistol_visible_mindmg_legit", ui.get(heavypistol_visible_mindmg))
4924 database.write("heavypistol_nonvisible_mindmg_legit", ui.get(heavypistol_nonvisible_mindmg))
4925 database.write("rifle_mindmg_check_legit", ui.get(rifle_mindmg_check))
4926 database.write("rifle_mindmg_multi_legit", ui.get(rifle_mindmg_multi))
4927 database.write("rifle_visible_mindmg_legit", ui.get(rifle_visible_mindmg))
4928 database.write("rifle_nonvisible_mindmg_legit", ui.get(rifle_nonvisible_mindmg))
4929 database.write("awp_mindmg_check_legit", ui.get(awp_mindmg_check))
4930 database.write("awp_mindmg_multi_legit", ui.get(awp_mindmg_multi))
4931 database.write("awp_visible_mindmg_legit", ui.get(awp_visible_mindmg))
4932 database.write("awp_nonvisible_mindmg_legit", ui.get(awp_nonvisible_mindmg))
4933 database.write("scout_mindmg_check_legit", ui.get(scout_mindmg_check))
4934 database.write("scout_mindmg_multi_legit", ui.get(scout_mindmg_multi))
4935 database.write("scout_visible_mindmg_legit", ui.get(scout_visible_mindmg))
4936 database.write("scout_nonvisible_mindmg_legit", ui.get(scout_nonvisible_mindmg))
4937 database.write("auto_hitbox_check_legit", ui.get(auto_hitbox_check))
4938 database.write("auto_nearest_multi_legit", ui.get(auto_nearest_multi))
4939 database.write("pistol_hitbox_check_legit", ui.get(pistol_hitbox_check))
4940 database.write("pistol_nearest_multi_legit", ui.get(pistol_nearest_multi))
4941 database.write("heavypistol_hitbox_check_legit", ui.get(heavypistol_hitbox_check))
4942 database.write("heavypistol_nearest_multi_legit", ui.get(heavypistol_nearest_multi))
4943 database.write("rifle_hitbox_check_legit", ui.get(rifle_hitbox_check))
4944 database.write("rifle_nearest_multi_legit", ui.get(rifle_nearest_multi))
4945 database.write("awp_hitbox_check_legit", ui.get(awp_hitbox_check))
4946 database.write("awp_nearest_multi_legit", ui.get(awp_nearest_multi))
4947 database.write("scout_hitbox_check_legit", ui.get(scout_hitbox_check))
4948 database.write("scout_nearest_multi_legit", ui.get(scout_nearest_multi))
4949 database.write("overridebutton_legit", ui.get(overridebutton))
4950 database.write("resolverselect_legit", ui.get(resolverselect))
4951 database.write("legitbotimprovements_legit", ui.get(legitbotimprovements))
4952 database.write("enablecflcombo_legit", ui.get(enablecflcombo))
4953 database.write("slowvariance_legit", ui.get(slowvariance))
4954 database.write("slowlimit_legit", ui.get(slowlimit))
4955 database.write("slowamount_legit", ui.get(slowamount))
4956 database.write("movevariance_legit", ui.get(movevariance))
4957 database.write("movelimit_legit", ui.get(movelimit))
4958 database.write("moveamount_legit", ui.get(moveamount))
4959 database.write("standvariance_legit", ui.get(standvariance))
4960 database.write("standlimit_legit", ui.get(standlimit))
4961 database.write("standamount_legit", ui.get(standamount))
4962 database.write("jumpvariance_legit", ui.get(jumpvariance))
4963 database.write("jumplimit_legit", ui.get(jumplimit))
4964 database.write("jumpamount_legit", ui.get(jumpamount))
4965 database.write("talkshitenable_legit", ui.get(talkshitenable))
4966 database.write("talkshittype_legit", ui.get(talkshittype))
4967 database.write("advancedlog_legit", ui.get(advancedlog))
4968 database.write("log_options_legit", ui.get(log_options))
4969 database.write("log_type_legit", ui.get(log_type))
4970 database.write("ngahooktag_enabled_legit", ui.get(ngahooktag_enabled))
4971 database.write("legitAA_legit", ui.get(legitAA))
4972 database.write("legitAAbase_legit", ui.get(legitAAbase))
4973 database.write("legitaa_freestand_type_legit", ui.get(legitaa_freestand_type))
4974 database.write("legitaasafe_legit", ui.get(legitaasafe))
4975 database.write("disableaaping_legit", ui.get(disableaaping))
4976 database.write("disableaafps_legit", ui.get(disableaafps))
4977 database.write("LegitAABreaker_legit", ui.get(LegitAABreaker))
4978 database.write("brutemode2_legit", ui.get(brutemode2))
4979 database.write("ui_indicator_combobox4_legit", ui.get(ui_indicator_combobox4))
4980 database.write("ui_indicator_color_picker4_legit", ui.get(ui_indicator_color_picker4))
4981 database.write("enableaawm_legit", ui.get(enableaawm))
4982 database.write("legitaamoving_legit", ui.get(legitaamoving))
4983 database.write("slowmode_legit", ui.get(slowmode))
4984 database.write("movemode_legit", ui.get(movemode))
4985 database.write("standmode_legit", ui.get(standmode))
4986 end
4987
4988 if ui.get(config_presets) == "Semi legit" then
4989 database.write("triggermag_semilegit", ui.get(tm_cb))
4990 database.write("auto_dynamic_fov_check_semilegit", ui.get(auto_dynamicfov_enable))
4991 database.write("auto_dynamic_fov_min_semilegit", ui.get(dynamicfov_minauto))
4992 database.write("auto_dynamic_fov_max_semilegit", ui.get(dynamicfov_maxauto))
4993 database.write("pistol_dynamic_fov_check_semilegit", ui.get(pistol_dynamicfov_enable))
4994 database.write("pistol_dynamic_fov_min_semilegit", ui.get(dynamicfov_minpistol))
4995 database.write("pistol_dynamic_fov_max_semilegit", ui.get(dynamicfov_maxpistol))
4996 database.write("heavypistol_dynamic_fov_check_semilegit", ui.get(heavypistol_dynamicfov_enable))
4997 database.write("heavypistol_dynamic_fov_min_semilegit", ui.get(dynamicfov_minheavypistol))
4998 database.write("heavypistol_dynamic_fov_max_semilegit", ui.get(dynamicfov_maxheavypistol))
4999 database.write("rifle_dynamic_fov_check_semilegit", ui.get(rifle_dynamicfov_enable))
5000 database.write("rifle_dynamic_fov_min_semilegit", ui.get(dynamicfov_minrifle))
5001 database.write("rifle_dynamic_fov_max_semilegit", ui.get(dynamicfov_maxrifle))
5002 database.write("awp_dynamic_fov_check_semilegit", ui.get(awp_dynamicfov_enable))
5003 database.write("awp_dynamic_fov_min_semilegit", ui.get(dynamicfov_minawp))
5004 database.write("awp_dynamic_fov_max_semilegit", ui.get(dynamicfov_maxawp))
5005 database.write("scout_dynamic_fov_check_semilegit", ui.get(scout_dynamicfov_enable))
5006 database.write("scout_dynamic_fov_min_semilegit", ui.get(dynamicfov_minscout))
5007 database.write("scout_dynamic_fov_max_semilegit", ui.get(dynamicfov_maxscout))
5008 database.write("other_dynamic_fov_check_semilegit", ui.get(global_dynamicfov_enable))
5009 database.write("other_dynamic_fov_min_semilegit", ui.get(dynamicfov_minother))
5010 database.write("other_dynamic_fov_max_semilegit", ui.get(dynamicfov_maxother))
5011 database.write("auto_autowall_check_semilegit", ui.get(auto_autowall_check))
5012 database.write("auto_auto_autowall_semilegit", ui.get(auto_auto_autowall))
5013 database.write("auto_dynamicfov_minaw_semilegit", ui.get(auto_dynamicfov_minaw))
5014 database.write("auto_dynamicfov_maxaw_semilegit", ui.get(auto_dynamicfov_maxaw))
5015 database.write("dynamicfov_auto_factor_autoaw_semilegit", ui.get(dynamicfov_auto_factor_autoaw))
5016 database.write("auto_legit_pen_threshold_ref_semilegit", ui.get(auto_legit_pen_threshold_ref))
5017 database.write("pistol_autowall_check_semilegit", ui.get(pistol_autowall_check))
5018 database.write("pistol_auto_autowall_semilegit", ui.get(pistol_auto_autowall))
5019 database.write("pistol_dynamicfov_minaw_semilegit", ui.get(pistol_dynamicfov_minaw))
5020 database.write("pistol_dynamicfov_maxaw_semilegit", ui.get(pistol_dynamicfov_maxaw))
5021 database.write("dynamicfov_auto_factor_pistolaw_semilegit", ui.get(dynamicfov_auto_factor_pistolaw))
5022 database.write("pistol_legit_pen_threshold_ref_semilegit", ui.get(pistol_legit_pen_threshold_ref))
5023 database.write("heavypistol_autowall_check_semilegit", ui.get(heavypistol_autowall_check))
5024 database.write("heavypistol_auto_autowall_semilegit", ui.get(heavypistol_auto_autowall))
5025 database.write("heavypistol_dynamicfov_minaw_semilegit", ui.get(heavypistol_dynamicfov_minaw))
5026 database.write("heavypistol_dynamicfov_maxaw_semilegit", ui.get(heavypistol_dynamicfov_maxaw))
5027 database.write("dynamicfov_auto_factor_heavypistolaw_semilegit", ui.get(dynamicfov_auto_factor_heavypistolaw))
5028 database.write("heavypistol_legit_pen_threshold_ref_semilegit", ui.get(heavypistol_legit_pen_threshold_ref))
5029 database.write("rifle_autowall_check_semilegit", ui.get(rifle_autowall_check))
5030 database.write("rifle_auto_autowall_semilegit", ui.get(rifle_auto_autowall))
5031 database.write("rifle_dynamicfov_minaw_semilegit", ui.get(rifle_dynamicfov_minaw))
5032 database.write("rifle_dynamicfov_maxaw_semilegit", ui.get(rifle_dynamicfov_maxaw))
5033 database.write("dynamicfov_auto_factor_rifleaw_semilegit", ui.get(dynamicfov_auto_factor_rifleaw))
5034 database.write("rifle_legit_pen_threshold_ref_semilegit", ui.get(rifle_legit_pen_threshold_ref))
5035 database.write("awp_autowall_check_semilegit", ui.get(awp_autowall_check))
5036 database.write("awp_auto_autowall_semilegit", ui.get(awp_auto_autowall))
5037 database.write("awp_dynamicfov_minaw_semilegit", ui.get(awp_dynamicfov_minaw))
5038 database.write("awp_dynamicfov_maxaw_semilegit", ui.get(awp_dynamicfov_maxaw))
5039 database.write("dynamicfov_auto_factor_awpaw_semilegit", ui.get(dynamicfov_auto_factor_awpaw))
5040 database.write("awp_legit_pen_threshold_ref_semilegit", ui.get(awp_legit_pen_threshold_ref))
5041 database.write("scout_autowall_check_semilegit", ui.get(scout_autowall_check))
5042 database.write("scout_auto_autowall_semilegit", ui.get(scout_auto_autowall))
5043 database.write("scout_dynamicfov_minaw_semilegit", ui.get(scout_dynamicfov_minaw))
5044 database.write("scout_dynamicfov_maxaw_semilegit", ui.get(scout_dynamicfov_maxaw))
5045 database.write("dynamicfov_auto_factor_scoutaw_semilegit", ui.get(dynamicfov_auto_factor_scoutaw))
5046 database.write("scout_legit_pen_threshold_ref_semilegit", ui.get(scout_legit_pen_threshold_ref))
5047 database.write("non_adaptive_aw_check_semilegit", ui.get(non_adaptive_aw_check))
5048 database.write("non_adaptive_auto_autowall_semilegit", ui.get(non_adaptive_auto_autowall))
5049 database.write("beforedelay_semilegit", ui.get(beforedelay))
5050 database.write("autodely_semilegit", ui.get(autodely))
5051 database.write("_autowall_mode_auto_trigger_delay_semilegit", ui.get(_autowall_mode_auto_trigger_delay))
5052 database.write("autowalldamage_position_semilegit", ui.get(autowalldamage_position))
5053 database.write("autowalldamage_color_semilegit", ui.get(autowalldamage_color))
5054 database.write("autowalldamage_type_semilegit", ui.get(autowalldamage_type))
5055 database.write("autowalldamage_colorhead_semilegit", ui.get(autowalldamage_colorhead))
5056 database.write("autowalldamage_colorbody_semilegit", ui.get(autowalldamage_colorbody))
5057 database.write("indicate_enable_semilegit", ui.get(indicate_enable))
5058 database.write("indicate_on_semilegit", ui.get(indicate_on))
5059 database.write("indicate_color_semilegit", ui.get(indicate_color))
5060 database.write("indicate_select_semilegit", ui.get(indicate_select))
5061 database.write("indicateposition_semilegit", ui.get(indicateposition))
5062 database.write("flag_enable_semilegit", ui.get(flag_enable))
5063 database.write("flag_color_semilegit", ui.get(flag_color))
5064 database.write("flag_select_semilegit", ui.get(flag_select))
5065 database.write("flcheckbox_semilegit", ui.get(flcheckbox))
5066 database.write("flmulti_semilegit", ui.get(flmulti))
5067 database.write("auto_silentcheck_semilegit", ui.get(auto_silentcheck))
5068 database.write("auto_silentmulti_semilegit", ui.get(auto_silentmulti))
5069 database.write("auto_silentfovslider_semilegit", ui.get(auto_silentfovslider))
5070 database.write("auto_silentdistance_semilegit", ui.get(auto_silentdistance))
5071 database.write("global_silentcheck_semilegit", ui.get(global_silentcheck))
5072 database.write("global_silentmulti_semilegit", ui.get(global_silentmulti))
5073 database.write("global_silentfovslider_semilegit", ui.get(global_silentfovslider))
5074 database.write("global_silentdistance_semilegit", ui.get(global_silentdistance))
5075 database.write("pistol_silentcheck_semilegit", ui.get(pistol_silentcheck))
5076 database.write("pistol_silentmulti_semilegit", ui.get(pistol_silentmulti))
5077 database.write("pistol_silentfovslider_semilegit", ui.get(pistol_silentfovslider))
5078 database.write("pistol_silentdistance_semilegit", ui.get(pistol_silentdistance))
5079 database.write("heavypistol_silentcheck_semilegit", ui.get(heavypistol_silentcheck))
5080 database.write("heavypistol_silentmulti_semilegit", ui.get(heavypistol_silentmulti))
5081 database.write("heavypistol_silentfovslider_semilegit", ui.get(heavypistol_silentfovslider))
5082 database.write("heavypistol_silentdistance_semilegit", ui.get(heavypistol_silentdistance))
5083 database.write("rifle_silentcheck_semilegit", ui.get(rifle_silentcheck))
5084 database.write("rifle_silentmulti_semilegit", ui.get(rifle_silentmulti))
5085 database.write("rifle_silentfovslider_semilegit", ui.get(rifle_silentfovslider))
5086 database.write("rifle_silentdistance_semilegit", ui.get(rifle_silentdistance))
5087 database.write("awp_silentcheck_semilegit", ui.get(awp_silentcheck))
5088 database.write("awp_silentmulti_semilegit", ui.get(awp_silentmulti))
5089 database.write("awp_silentfovslider_semilegit", ui.get(awp_silentfovslider))
5090 database.write("awp_silentdistance_semilegit", ui.get(awp_silentdistance))
5091 database.write("scout_silentcheck_semilegit", ui.get(scout_silentcheck))
5092 database.write("scout_silentmulti_semilegit", ui.get(scout_silentmulti))
5093 database.write("scout_silentfovslider_semilegit", ui.get(scout_silentfovslider))
5094 database.write("scout_silentdistance_semilegit", ui.get(scout_silentdistance))
5095 database.write("non_adaptive_silentcheck_semilegit", ui.get(non_adaptive_silentcheck))
5096 database.write("non_adaptive_silentaim_semilegit", ui.get(non_adaptive_silentaim))
5097 database.write("auto_mindmg_check_semilegit", ui.get(auto_mindmg_check))
5098 database.write("auto_mindmg_multi_semilegit", ui.get(auto_mindmg_multi))
5099 database.write("auto_visible_mindmg_semilegit", ui.get(auto_visible_mindmg))
5100 database.write("auto_nonvisible_mindmg_semilegit", ui.get(auto_nonvisible_mindmg))
5101 database.write("global_mindmg_check_semilegit", ui.get(global_mindmg_check))
5102 database.write("global_mindmg_multi_semilegit", ui.get(global_mindmg_multi))
5103 database.write("global_visible_mindmg_semilegit", ui.get(global_visible_mindmg))
5104 database.write("global_nonvisible_mindmg_semilegit", ui.get(global_nonvisible_mindmg))
5105 database.write("pistol_mindmg_check_semilegit", ui.get(pistol_mindmg_check))
5106 database.write("pistol_mindmg_multi_semilegit", ui.get(pistol_mindmg_multi))
5107 database.write("pistol_visible_mindmg_semilegit", ui.get(pistol_visible_mindmg))
5108 database.write("pistol_nonvisible_mindmg_semilegit", ui.get(pistol_nonvisible_mindmg))
5109 database.write("heavypistol_mindmg_check_semilegit", ui.get(heavypistol_mindmg_check))
5110 database.write("heavypistol_mindmg_multi_semilegit", ui.get(heavypistol_mindmg_multi))
5111 database.write("heavypistol_visible_mindmg_semilegit", ui.get(heavypistol_visible_mindmg))
5112 database.write("heavypistol_nonvisible_mindmg_semilegit", ui.get(heavypistol_nonvisible_mindmg))
5113 database.write("rifle_mindmg_check_semilegit", ui.get(rifle_mindmg_check))
5114 database.write("rifle_mindmg_multi_semilegit", ui.get(rifle_mindmg_multi))
5115 database.write("rifle_visible_mindmg_semilegit", ui.get(rifle_visible_mindmg))
5116 database.write("rifle_nonvisible_mindmg_semilegit", ui.get(rifle_nonvisible_mindmg))
5117 database.write("awp_mindmg_check_semilegit", ui.get(awp_mindmg_check))
5118 database.write("awp_mindmg_multi_semilegit", ui.get(awp_mindmg_multi))
5119 database.write("awp_visible_mindmg_semilegit", ui.get(awp_visible_mindmg))
5120 database.write("awp_nonvisible_mindmg_semilegit", ui.get(awp_nonvisible_mindmg))
5121 database.write("scout_mindmg_check_semilegit", ui.get(scout_mindmg_check))
5122 database.write("scout_mindmg_multi_semilegit", ui.get(scout_mindmg_multi))
5123 database.write("scout_visible_mindmg_semilegit", ui.get(scout_visible_mindmg))
5124 database.write("scout_nonvisible_mindmg_semilegit", ui.get(scout_nonvisible_mindmg))
5125 database.write("auto_hitbox_check_semilegit", ui.get(auto_hitbox_check))
5126 database.write("auto_nearest_multi_semilegit", ui.get(auto_nearest_multi))
5127 database.write("pistol_hitbox_check_semilegit", ui.get(pistol_hitbox_check))
5128 database.write("pistol_nearest_multi_semilegit", ui.get(pistol_nearest_multi))
5129 database.write("heavypistol_hitbox_check_semilegit", ui.get(heavypistol_hitbox_check))
5130 database.write("heavypistol_nearest_multi_semilegit", ui.get(heavypistol_nearest_multi))
5131 database.write("rifle_hitbox_check_semilegit", ui.get(rifle_hitbox_check))
5132 database.write("rifle_nearest_multi_semilegit", ui.get(rifle_nearest_multi))
5133 database.write("awp_hitbox_check_semilegit", ui.get(awp_hitbox_check))
5134 database.write("awp_nearest_multi_semilegit", ui.get(awp_nearest_multi))
5135 database.write("scout_hitbox_check_semilegit", ui.get(scout_hitbox_check))
5136 database.write("scout_nearest_multi_semilegit", ui.get(scout_nearest_multi))
5137 database.write("overridebutton_semilegit", ui.get(overridebutton))
5138 database.write("resolverselect_semilegit", ui.get(resolverselect))
5139 database.write("legitbotimprovements_semilegit", ui.get(legitbotimprovements))
5140 database.write("enablecflcombo_semilegit", ui.get(enablecflcombo))
5141 database.write("slowvariance_semilegit", ui.get(slowvariance))
5142 database.write("slowlimit_semilegit", ui.get(slowlimit))
5143 database.write("slowamount_semilegit", ui.get(slowamount))
5144 database.write("movevariance_semilegit", ui.get(movevariance))
5145 database.write("movelimit_semilegit", ui.get(movelimit))
5146 database.write("moveamount_semilegit", ui.get(moveamount))
5147 database.write("standvariance_semilegit", ui.get(standvariance))
5148 database.write("standlimit_semilegit", ui.get(standlimit))
5149 database.write("standamount_semilegit", ui.get(standamount))
5150 database.write("jumpvariance_semilegit", ui.get(jumpvariance))
5151 database.write("jumplimit_semilegit", ui.get(jumplimit))
5152 database.write("jumpamount_semilegit", ui.get(jumpamount))
5153 database.write("talkshitenable_semilegit", ui.get(talkshitenable))
5154 database.write("talkshittype_semilegit", ui.get(talkshittype))
5155 database.write("advancedlog_semilegit", ui.get(advancedlog))
5156 database.write("log_options_semilegit", ui.get(log_options))
5157 database.write("log_type_semilegit", ui.get(log_type))
5158 database.write("ngahooktag_enabled_semilegit", ui.get(ngahooktag_enabled))
5159 database.write("legitAA_semilegit", ui.get(legitAA))
5160 database.write("legitAAbase_semilegit", ui.get(legitAAbase))
5161 database.write("legitaa_freestand_type_semilegit", ui.get(legitaa_freestand_type))
5162 database.write("legitaasafe_semilegit", ui.get(legitaasafe))
5163 database.write("disableaaping_semilegit", ui.get(disableaaping))
5164 database.write("disableaafps_semilegit", ui.get(disableaafps))
5165 database.write("LegitAABreaker_semilegit", ui.get(LegitAABreaker))
5166 database.write("brutemode2_semilegit", ui.get(brutemode2))
5167 database.write("ui_indicator_combobox4_semilegit", ui.get(ui_indicator_combobox4))
5168 database.write("ui_indicator_color_picker4_semilegit", ui.get(ui_indicator_color_picker4))
5169 database.write("enableaawm_semilegit", ui.get(enableaawm))
5170 database.write("legitaamoving_semilegit", ui.get(legitaamoving))
5171 database.write("slowmode_semilegit", ui.get(slowmode))
5172 database.write("movemode_semilegit", ui.get(movemode))
5173 database.write("standmode_semilegit", ui.get(standmode))
5174 end
5175
5176 if ui.get(config_presets) == "Semirage" then
5177 database.write("triggermag_semirage", ui.get(tm_cb))
5178 database.write("auto_dynamic_fov_check_semirage", ui.get(auto_dynamicfov_enable))
5179 database.write("auto_dynamic_fov_min_semirage", ui.get(dynamicfov_minauto))
5180 database.write("auto_dynamic_fov_max_semirage", ui.get(dynamicfov_maxauto))
5181 database.write("pistol_dynamic_fov_check_semirage", ui.get(pistol_dynamicfov_enable))
5182 database.write("pistol_dynamic_fov_min_semirage", ui.get(dynamicfov_minpistol))
5183 database.write("pistol_dynamic_fov_max_semirage", ui.get(dynamicfov_maxpistol))
5184 database.write("heavypistol_dynamic_fov_check_semirage", ui.get(heavypistol_dynamicfov_enable))
5185 database.write("heavypistol_dynamic_fov_min_semirage", ui.get(dynamicfov_minheavypistol))
5186 database.write("heavypistol_dynamic_fov_max_semirage", ui.get(dynamicfov_maxheavypistol))
5187 database.write("rifle_dynamic_fov_check_semirage", ui.get(rifle_dynamicfov_enable))
5188 database.write("rifle_dynamic_fov_min_semirage", ui.get(dynamicfov_minrifle))
5189 database.write("rifle_dynamic_fov_max_semirage", ui.get(dynamicfov_maxrifle))
5190 database.write("awp_dynamic_fov_check_semirage", ui.get(awp_dynamicfov_enable))
5191 database.write("awp_dynamic_fov_min_semirage", ui.get(dynamicfov_minawp))
5192 database.write("awp_dynamic_fov_max_semirage", ui.get(dynamicfov_maxawp))
5193 database.write("scout_dynamic_fov_check_semirage", ui.get(scout_dynamicfov_enable))
5194 database.write("scout_dynamic_fov_min_semirage", ui.get(dynamicfov_minscout))
5195 database.write("scout_dynamic_fov_max_semirage", ui.get(dynamicfov_maxscout))
5196 database.write("other_dynamic_fov_check_semirage", ui.get(global_dynamicfov_enable))
5197 database.write("other_dynamic_fov_min_semirage", ui.get(dynamicfov_minother))
5198 database.write("other_dynamic_fov_max_semirage", ui.get(dynamicfov_maxother))
5199 database.write("auto_autowall_check_semirage", ui.get(auto_autowall_check))
5200 database.write("auto_auto_autowall_semirage", ui.get(auto_auto_autowall))
5201 database.write("auto_dynamicfov_minaw_semirage", ui.get(auto_dynamicfov_minaw))
5202 database.write("auto_dynamicfov_maxaw_semirage", ui.get(auto_dynamicfov_maxaw))
5203 database.write("dynamicfov_auto_factor_autoaw_semirage", ui.get(dynamicfov_auto_factor_autoaw))
5204 database.write("auto_legit_pen_threshold_ref_semirage", ui.get(auto_legit_pen_threshold_ref))
5205 database.write("pistol_autowall_check_semirage", ui.get(pistol_autowall_check))
5206 database.write("pistol_auto_autowall_semirage", ui.get(pistol_auto_autowall))
5207 database.write("pistol_dynamicfov_minaw_semirage", ui.get(pistol_dynamicfov_minaw))
5208 database.write("pistol_dynamicfov_maxaw_semirage", ui.get(pistol_dynamicfov_maxaw))
5209 database.write("dynamicfov_auto_factor_pistolaw_semirage", ui.get(dynamicfov_auto_factor_pistolaw))
5210 database.write("pistol_legit_pen_threshold_ref_semirage", ui.get(pistol_legit_pen_threshold_ref))
5211 database.write("heavypistol_autowall_check_semirage", ui.get(heavypistol_autowall_check))
5212 database.write("heavypistol_auto_autowall_semirage", ui.get(heavypistol_auto_autowall))
5213 database.write("heavypistol_dynamicfov_minaw_semirage", ui.get(heavypistol_dynamicfov_minaw))
5214 database.write("heavypistol_dynamicfov_maxaw_semirage", ui.get(heavypistol_dynamicfov_maxaw))
5215 database.write("dynamicfov_auto_factor_heavypistolaw_semirage", ui.get(dynamicfov_auto_factor_heavypistolaw))
5216 database.write("heavypistol_legit_pen_threshold_ref_semirage", ui.get(heavypistol_legit_pen_threshold_ref))
5217 database.write("rifle_autowall_check_semirage", ui.get(rifle_autowall_check))
5218 database.write("rifle_auto_autowall_semirage", ui.get(rifle_auto_autowall))
5219 database.write("rifle_dynamicfov_minaw_semirage", ui.get(rifle_dynamicfov_minaw))
5220 database.write("rifle_dynamicfov_maxaw_semirage", ui.get(rifle_dynamicfov_maxaw))
5221 database.write("dynamicfov_auto_factor_rifleaw_semirage", ui.get(dynamicfov_auto_factor_rifleaw))
5222 database.write("rifle_legit_pen_threshold_ref_semirage", ui.get(rifle_legit_pen_threshold_ref))
5223 database.write("awp_autowall_check_semirage", ui.get(awp_autowall_check))
5224 database.write("awp_auto_autowall_semirage", ui.get(awp_auto_autowall))
5225 database.write("awp_dynamicfov_minaw_semirage", ui.get(awp_dynamicfov_minaw))
5226 database.write("awp_dynamicfov_maxaw_semirage", ui.get(awp_dynamicfov_maxaw))
5227 database.write("dynamicfov_auto_factor_awpaw_semirage", ui.get(dynamicfov_auto_factor_awpaw))
5228 database.write("awp_legit_pen_threshold_ref_semirage", ui.get(awp_legit_pen_threshold_ref))
5229 database.write("scout_autowall_check_semirage", ui.get(scout_autowall_check))
5230 database.write("scout_auto_autowall_semirage", ui.get(scout_auto_autowall))
5231 database.write("scout_dynamicfov_minaw_semirage", ui.get(scout_dynamicfov_minaw))
5232 database.write("scout_dynamicfov_maxaw_semirage", ui.get(scout_dynamicfov_maxaw))
5233 database.write("dynamicfov_auto_factor_scoutaw_semirage", ui.get(dynamicfov_auto_factor_scoutaw))
5234 database.write("scout_legit_pen_threshold_ref_semirage", ui.get(scout_legit_pen_threshold_ref))
5235 database.write("non_adaptive_aw_check_semirage", ui.get(non_adaptive_aw_check))
5236 database.write("non_adaptive_auto_autowall_semirage", ui.get(non_adaptive_auto_autowall))
5237 database.write("beforedelay_semirage", ui.get(beforedelay))
5238 database.write("autodely_semirage", ui.get(autodely))
5239 database.write("_autowall_mode_auto_trigger_delay_semirage", ui.get(_autowall_mode_auto_trigger_delay))
5240 database.write("autowalldamage_position_semirage", ui.get(autowalldamage_position))
5241 database.write("autowalldamage_color_semirage", ui.get(autowalldamage_color))
5242 database.write("autowalldamage_type_semirage", ui.get(autowalldamage_type))
5243 database.write("autowalldamage_colorhead_semirage", ui.get(autowalldamage_colorhead))
5244 database.write("autowalldamage_colorbody_semirage", ui.get(autowalldamage_colorbody))
5245 database.write("indicate_enable_semirage", ui.get(indicate_enable))
5246 database.write("indicate_on_semirage", ui.get(indicate_on))
5247 database.write("indicate_color_semirage", ui.get(indicate_color))
5248 database.write("indicate_select_semirage", ui.get(indicate_select))
5249 database.write("indicateposition_semirage", ui.get(indicateposition))
5250 database.write("flag_enable_semirage", ui.get(flag_enable))
5251 database.write("flag_color_semirage", ui.get(flag_color))
5252 database.write("flag_select_semirage", ui.get(flag_select))
5253 database.write("flcheckbox_semirage", ui.get(flcheckbox))
5254 database.write("flmulti_semirage", ui.get(flmulti))
5255 database.write("auto_silentcheck_semirage", ui.get(auto_silentcheck))
5256 database.write("auto_silentmulti_semirage", ui.get(auto_silentmulti))
5257 database.write("auto_silentfovslider_semirage", ui.get(auto_silentfovslider))
5258 database.write("auto_silentdistance_semirage", ui.get(auto_silentdistance))
5259 database.write("global_silentcheck_semirage", ui.get(global_silentcheck))
5260 database.write("global_silentmulti_semirage", ui.get(global_silentmulti))
5261 database.write("global_silentfovslider_semirage", ui.get(global_silentfovslider))
5262 database.write("global_silentdistance_semirage", ui.get(global_silentdistance))
5263 database.write("pistol_silentcheck_semirage", ui.get(pistol_silentcheck))
5264 database.write("pistol_silentmulti_semirage", ui.get(pistol_silentmulti))
5265 database.write("pistol_silentfovslider_semirage", ui.get(pistol_silentfovslider))
5266 database.write("pistol_silentdistance_semirage", ui.get(pistol_silentdistance))
5267 database.write("heavypistol_silentcheck_semirage", ui.get(heavypistol_silentcheck))
5268 database.write("heavypistol_silentmulti_semirage", ui.get(heavypistol_silentmulti))
5269 database.write("heavypistol_silentfovslider_semirage", ui.get(heavypistol_silentfovslider))
5270 database.write("heavypistol_silentdistance_semirage", ui.get(heavypistol_silentdistance))
5271 database.write("rifle_silentcheck_semirage", ui.get(rifle_silentcheck))
5272 database.write("rifle_silentmulti_semirage", ui.get(rifle_silentmulti))
5273 database.write("rifle_silentfovslider_semirage", ui.get(rifle_silentfovslider))
5274 database.write("rifle_silentdistance_semirage", ui.get(rifle_silentdistance))
5275 database.write("awp_silentcheck_semirage", ui.get(awp_silentcheck))
5276 database.write("awp_silentmulti_semirage", ui.get(awp_silentmulti))
5277 database.write("awp_silentfovslider_semirage", ui.get(awp_silentfovslider))
5278 database.write("awp_silentdistance_semirage", ui.get(awp_silentdistance))
5279 database.write("scout_silentcheck_semirage", ui.get(scout_silentcheck))
5280 database.write("scout_silentmulti_semirage", ui.get(scout_silentmulti))
5281 database.write("scout_silentfovslider_semirage", ui.get(scout_silentfovslider))
5282 database.write("scout_silentdistance_semirage", ui.get(scout_silentdistance))
5283 database.write("non_adaptive_silentcheck_semirage", ui.get(non_adaptive_silentcheck))
5284 database.write("non_adaptive_silentaim_semirage", ui.get(non_adaptive_silentaim))
5285 database.write("auto_mindmg_check_semirage", ui.get(auto_mindmg_check))
5286 database.write("auto_mindmg_multi_semirage", ui.get(auto_mindmg_multi))
5287 database.write("auto_visible_mindmg_semirage", ui.get(auto_visible_mindmg))
5288 database.write("auto_nonvisible_mindmg_semirage", ui.get(auto_nonvisible_mindmg))
5289 database.write("global_mindmg_check_semirage", ui.get(global_mindmg_check))
5290 database.write("global_mindmg_multi_semirage", ui.get(global_mindmg_multi))
5291 database.write("global_visible_mindmg_semirage", ui.get(global_visible_mindmg))
5292 database.write("global_nonvisible_mindmg_semirage", ui.get(global_nonvisible_mindmg))
5293 database.write("pistol_mindmg_check_semirage", ui.get(pistol_mindmg_check))
5294 database.write("pistol_mindmg_multi_semirage", ui.get(pistol_mindmg_multi))
5295 database.write("pistol_visible_mindmg_semirage", ui.get(pistol_visible_mindmg))
5296 database.write("pistol_nonvisible_mindmg_semirage", ui.get(pistol_nonvisible_mindmg))
5297 database.write("heavypistol_mindmg_check_semirage", ui.get(heavypistol_mindmg_check))
5298 database.write("heavypistol_mindmg_multi_semirage", ui.get(heavypistol_mindmg_multi))
5299 database.write("heavypistol_visible_mindmg_semirage", ui.get(heavypistol_visible_mindmg))
5300 database.write("heavypistol_nonvisible_mindmg_semirage", ui.get(heavypistol_nonvisible_mindmg))
5301 database.write("rifle_mindmg_check_semirage", ui.get(rifle_mindmg_check))
5302 database.write("rifle_mindmg_multi_semirage", ui.get(rifle_mindmg_multi))
5303 database.write("rifle_visible_mindmg_semirage", ui.get(rifle_visible_mindmg))
5304 database.write("rifle_nonvisible_mindmg_semirage", ui.get(rifle_nonvisible_mindmg))
5305 database.write("awp_mindmg_check_semirage", ui.get(awp_mindmg_check))
5306 database.write("awp_mindmg_multi_semirage", ui.get(awp_mindmg_multi))
5307 database.write("awp_visible_mindmg_semirage", ui.get(awp_visible_mindmg))
5308 database.write("awp_nonvisible_mindmg_semirage", ui.get(awp_nonvisible_mindmg))
5309 database.write("scout_mindmg_check_semirage", ui.get(scout_mindmg_check))
5310 database.write("scout_mindmg_multi_semirage", ui.get(scout_mindmg_multi))
5311 database.write("scout_visible_mindmg_semirage", ui.get(scout_visible_mindmg))
5312 database.write("scout_nonvisible_mindmg_semirage", ui.get(scout_nonvisible_mindmg))
5313 database.write("auto_hitbox_check_semirage", ui.get(auto_hitbox_check))
5314 database.write("auto_nearest_multi_semirage", ui.get(auto_nearest_multi))
5315 database.write("pistol_hitbox_check_semirage", ui.get(pistol_hitbox_check))
5316 database.write("pistol_nearest_multi_semirage", ui.get(pistol_nearest_multi))
5317 database.write("heavypistol_hitbox_check_semirage", ui.get(heavypistol_hitbox_check))
5318 database.write("heavypistol_nearest_multi_semirage", ui.get(heavypistol_nearest_multi))
5319 database.write("rifle_hitbox_check_semirage", ui.get(rifle_hitbox_check))
5320 database.write("rifle_nearest_multi_semirage", ui.get(rifle_nearest_multi))
5321 database.write("awp_hitbox_check_semirage", ui.get(awp_hitbox_check))
5322 database.write("awp_nearest_multi_semirage", ui.get(awp_nearest_multi))
5323 database.write("scout_hitbox_check_semirage", ui.get(scout_hitbox_check))
5324 database.write("scout_nearest_multi_semirage", ui.get(scout_nearest_multi))
5325 database.write("overridebutton_semirage", ui.get(overridebutton))
5326 database.write("resolverselect_semirage", ui.get(resolverselect))
5327 database.write("legitbotimprovements_semirage", ui.get(legitbotimprovements))
5328 database.write("enablecflcombo_semirage", ui.get(enablecflcombo))
5329 database.write("slowvariance_semirage", ui.get(slowvariance))
5330 database.write("slowlimit_semirage", ui.get(slowlimit))
5331 database.write("slowamount_semirage", ui.get(slowamount))
5332 database.write("movevariance_semirage", ui.get(movevariance))
5333 database.write("movelimit_semirage", ui.get(movelimit))
5334 database.write("moveamount_semirage", ui.get(moveamount))
5335 database.write("standvariance_semirage", ui.get(standvariance))
5336 database.write("standlimit_semirage", ui.get(standlimit))
5337 database.write("standamount_semirage", ui.get(standamount))
5338 database.write("jumpvariance_semirage", ui.get(jumpvariance))
5339 database.write("jumplimit_semirage", ui.get(jumplimit))
5340 database.write("jumpamount_semirage", ui.get(jumpamount))
5341 database.write("talkshitenable_semirage", ui.get(talkshitenable))
5342 database.write("talkshittype_semirage", ui.get(talkshittype))
5343 database.write("advancedlog_semirage", ui.get(advancedlog))
5344 database.write("log_options_semirage", ui.get(log_options))
5345 database.write("log_type_semirage", ui.get(log_type))
5346 database.write("ngahooktag_enabled_semirage", ui.get(ngahooktag_enabled))
5347 database.write("legitAA_semirage", ui.get(legitAA))
5348 database.write("legitAAbase_semirage", ui.get(legitAAbase))
5349 database.write("legitaa_freestand_type_semirage", ui.get(legitaa_freestand_type))
5350 database.write("legitaasafe_semirage", ui.get(legitaasafe))
5351 database.write("disableaaping_semirage", ui.get(disableaaping))
5352 database.write("disableaafps_semirage", ui.get(disableaafps))
5353 database.write("LegitAABreaker_semirage", ui.get(LegitAABreaker))
5354 database.write("brutemode2_semirage", ui.get(brutemode2))
5355 database.write("ui_indicator_combobox4_semirage", ui.get(ui_indicator_combobox4))
5356 database.write("ui_indicator_color_picker4_semirage", ui.get(ui_indicator_color_picker4))
5357 database.write("enableaawm_semirage", ui.get(enableaawm))
5358 database.write("legitaamoving_semirage", ui.get(legitaamoving))
5359 database.write("slowmode_semirage", ui.get(slowmode))
5360 database.write("movemode_semirage", ui.get(movemode))
5361 database.write("standmode_semirage", ui.get(standmode))
5362 end
5363
5364 if ui.get(config_presets) == "Rage" then
5365 database.write("triggermag_rage", ui.get(tm_cb))
5366 database.write("auto_dynamic_fov_check_rage", ui.get(auto_dynamicfov_enable))
5367 database.write("auto_dynamic_fov_min_rage", ui.get(dynamicfov_minauto))
5368 database.write("auto_dynamic_fov_max_rage", ui.get(dynamicfov_maxauto))
5369 database.write("pistol_dynamic_fov_check_rage", ui.get(pistol_dynamicfov_enable))
5370
5371 if ui.get(config_presets) == "Semi legit" then
5372 ui.set(tm_cb, database.read("triggermag_semilegit"))
5373 ui.set(auto_dynamicfov_enable, database.read("auto_dynamic_fov_check_semilegit"))
5374 ui.set(dynamicfov_minauto, database.read("auto_dynamic_fov_min_semilegit"))
5375 ui.set(dynamicfov_maxauto, database.read("auto_dynamic_fov_max_semilegit"))
5376 ui.set(pistol_dynamicfov_enable, database.read("pistol_dynamic_fov_check_semilegit"))
5377 ui.set(dynamicfov_minpistol, database.read("pistol_dynamic_fov_min_semilegit"))
5378 ui.set(dynamicfov_maxpistol, database.read("pistol_dynamic_fov_max_semilegit"))
5379 ui.set(heavypistol_dynamicfov_enable, database.read("heavypistol_dynamic_fov_check_semilegit"))
5380 ui.set(dynamicfov_minheavypistol, database.read("heavypistol_dynamic_fov_min_semilegit"))
5381 ui.set(dynamicfov_maxheavypistol, database.read("heavypistol_dynamic_fov_max_semilegit"))
5382 ui.set(rifle_dynamicfov_enable, database.read("rifle_dynamic_fov_check_semilegit"))
5383 ui.set(dynamicfov_minrifle, database.read("rifle_dynamic_fov_min_semilegit"))
5384 ui.set(dynamicfov_maxrifle, database.read("rifle_dynamic_fov_max_semilegit"))
5385 ui.set(awp_dynamicfov_enable, database.read("awp_dynamic_fov_check_semilegit"))
5386 ui.set(dynamicfov_minawp, database.read("awp_dynamic_fov_min_semilegit"))
5387 ui.set(dynamicfov_maxawp, database.read("awp_dynamic_fov_max_semilegit"))
5388 ui.set(scout_dynamicfov_enable, database.read("scout_dynamic_fov_check_semilegit"))
5389 ui.set(dynamicfov_minscout, database.read("scout_dynamic_fov_min_semilegit"))
5390 ui.set(dynamicfov_maxscout, database.read("scout_dynamic_fov_max_semilegit"))
5391 ui.set(global_dynamicfov_enable, database.read("other_dynamic_fov_check_semilegit"))
5392 ui.set(dynamicfov_minother, database.read("other_dynamic_fov_min_semilegit"))
5393 ui.set(dynamicfov_maxother, database.read("other_dynamic_fov_max_semilegit"))
5394 ui.set(auto_autowall_check, database.read("auto_autowall_check_semilegit"))
5395 ui.set(auto_auto_autowall, database.read("auto_auto_autowall_semilegit"))
5396 ui.set(auto_dynamicfov_minaw, database.read("auto_dynamicfov_minaw_semilegit"))
5397 ui.set(auto_dynamicfov_maxaw, database.read("auto_dynamicfov_maxaw_semilegit"))
5398 ui.set(dynamicfov_auto_factor_autoaw, database.read("dynamicfov_auto_factor_autoaw_semilegit"))
5399 ui.set(auto_legit_pen_threshold_ref, database.read("auto_legit_pen_threshold_ref_semilegit"))
5400 ui.set(pistol_autowall_check, database.read("pistol_autowall_check_semilegit"))
5401 ui.set(pistol_auto_autowall, database.read("pistol_auto_autowall_semilegit"))
5402 ui.set(pistol_dynamicfov_minaw, database.read("pistol_dynamicfov_minaw_semilegit"))
5403 ui.set(pistol_dynamicfov_maxaw, database.read("pistol_dynamicfov_maxaw_semilegit"))
5404 ui.set(dynamicfov_auto_factor_pistolaw, database.read("dynamicfov_auto_factor_pistolaw_semilegit"))
5405 ui.set(pistol_legit_pen_threshold_ref, database.read("pistol_legit_pen_threshold_ref_semilegit"))
5406 ui.set(heavypistol_autowall_check, database.read("heavypistol_autowall_check_semilegit"))
5407 ui.set(heavypistol_auto_autowall, database.read("heavypistol_auto_autowall_semilegit"))
5408 ui.set(heavypistol_dynamicfov_minaw, database.read("heavypistol_dynamicfov_minaw_semilegit"))
5409 ui.set(heavypistol_dynamicfov_maxaw, database.read("heavypistol_dynamicfov_maxaw_semilegit"))
5410 ui.set(dynamicfov_auto_factor_heavypistolaw, database.read("dynamicfov_auto_factor_heavypistolaw_semilegit"))
5411 ui.set(heavypistol_legit_pen_threshold_ref, database.read("heavypistol_legit_pen_threshold_ref_semilegit"))
5412 ui.set(rifle_autowall_check, database.read("rifle_autowall_check_semilegit"))
5413 ui.set(rifle_auto_autowall, database.read("rifle_auto_autowall_semilegit"))
5414 ui.set(rifle_dynamicfov_minaw, database.read("rifle_dynamicfov_minaw_semilegit"))
5415 ui.set(rifle_dynamicfov_maxaw, database.read("rifle_dynamicfov_maxaw_semilegit"))
5416 ui.set(dynamicfov_auto_factor_rifleaw, database.read("dynamicfov_auto_factor_rifleaw_semilegit"))
5417 ui.set(rifle_legit_pen_threshold_ref, database.read("rifle_legit_pen_threshold_ref_semilegit"))
5418 ui.set(awp_autowall_check, database.read("awp_autowall_check_semilegit"))
5419 ui.set(awp_auto_autowall, database.read("awp_auto_autowall_semilegit"))
5420 ui.set(awp_dynamicfov_minaw, database.read("awp_dynamicfov_minaw_semilegit"))
5421 ui.set(awp_dynamicfov_maxaw, database.read("awp_dynamicfov_maxaw_semilegit"))
5422 ui.set(dynamicfov_auto_factor_awpaw, database.read("dynamicfov_auto_factor_awpaw_semilegit"))
5423 ui.set(awp_legit_pen_threshold_ref, database.read("awp_legit_pen_threshold_ref_semilegit"))
5424 ui.set(scout_autowall_check, database.read("scout_autowall_check_semilegit"))
5425 ui.set(scout_auto_autowall, database.read("scout_auto_autowall_semilegit"))
5426 ui.set(scout_dynamicfov_minaw, database.read("scout_dynamicfov_minaw_semilegit"))
5427 ui.set(scout_dynamicfov_maxaw, database.read("scout_dynamicfov_maxaw_semilegit"))
5428 ui.set(dynamicfov_auto_factor_scoutaw, database.read("dynamicfov_auto_factor_scoutaw_semilegit"))
5429 ui.set(scout_legit_pen_threshold_ref, database.read("scout_legit_pen_threshold_ref_semilegit"))
5430 ui.set(non_adaptive_aw_check, database.read("non_adaptive_aw_check_semilegit"))
5431 ui.set(non_adaptive_auto_autowall, database.read("non_adaptive_auto_autowall_semilegit"))
5432 ui.set(beforedelay, database.read("beforedelay_semilegit"))
5433 ui.set(autodely, database.read("autodely_semilegit"))
5434 ui.set(_autowall_mode_auto_trigger_delay, database.read("_autowall_mode_auto_trigger_delay_semilegit"))
5435 ui.set(autowalldamage_position, database.read("autowalldamage_position_semilegit"))
5436 ui.set(autowalldamage_color, database.read("autowalldamage_color_semilegit"))
5437 ui.set(autowalldamage_type, database.read("autowalldamage_type_semilegit"))
5438 ui.set(autowalldamage_colorhead, database.read("autowalldamage_colorhead_semilegit"))
5439 ui.set(autowalldamage_colorbody, database.read("autowalldamage_colorbody_semilegit"))
5440 ui.set(indicate_enable, database.read("indicate_enable_semilegit"))
5441 ui.set(indicate_on, database.read("indicate_on_semilegit"))
5442 ui.set(indicate_color, database.read("indicate_color_semilegit"))
5443 ui.set(indicate_select, database.read("indicate_select_semilegit"))
5444 ui.set(indicateposition, database.read("indicateposition_semilegit"))
5445 ui.set(flag_enable, database.read("flag_enable_semilegit"))
5446 ui.set(flag_color, database.read("flag_color_semilegit"))
5447 ui.set(flag_select, database.read("flag_select_semilegit"))
5448 ui.set(flcheckbox, database.read("flcheckbox_semilegit"))
5449 ui.set(flmulti, database.read("flmulti_semilegit"))
5450 ui.set(auto_silentcheck, database.read("auto_silentcheck_semilegit"))
5451 ui.set(auto_silentmulti, database.read("auto_silentmulti_semilegit"))
5452 ui.set(auto_silentfovslider, database.read("auto_silentfovslider_semilegit"))
5453 ui.set(auto_silentdistance, database.read("auto_silentdistance_semilegit"))
5454 ui.set(global_silentcheck, database.read("global_silentcheck_semilegit"))
5455 ui.set(global_silentmulti, database.read("global_silentmulti_semilegit"))
5456 ui.set(global_silentfovslider, database.read("global_silentfovslider_semilegit"))
5457 ui.set(global_silentdistance, database.read("global_silentdistance_semilegit"))
5458 ui.set(pistol_silentcheck, database.read("pistol_silentcheck_semilegit"))
5459 ui.set(pistol_silentmulti, database.read("pistol_silentmulti_semilegit"))
5460 ui.set(pistol_silentfovslider, database.read("pistol_silentfovslider_semilegit"))
5461 ui.set(pistol_silentdistance, database.read("pistol_silentdistance_semilegit"))
5462 ui.set(heavypistol_silentcheck, database.read("heavypistol_silentcheck_semilegit"))
5463 ui.set(heavypistol_silentmulti, database.read("heavypistol_silentmulti_semilegit"))
5464 ui.set(heavypistol_silentfovslider, database.read("heavypistol_silentfovslider_semilegit"))
5465 ui.set(heavypistol_silentdistance, database.read("heavypistol_silentdistance_semilegit"))
5466 ui.set(rifle_silentcheck, database.read("rifle_silentcheck_semilegit"))
5467 ui.set(rifle_silentmulti, database.read("rifle_silentmulti_semilegit"))
5468 ui.set(rifle_silentfovslider, database.read("rifle_silentfovslider_semilegit"))
5469 ui.set(rifle_silentdistance, database.read("rifle_silentdistance_semilegit"))
5470 ui.set(awp_silentcheck, database.read("awp_silentcheck_semilegit"))
5471 ui.set(awp_silentmulti, database.read("awp_silentmulti_semilegit"))
5472 ui.set(awp_silentfovslider, database.read("awp_silentfovslider_semilegit"))
5473 ui.set(awp_silentdistance, database.read("awp_silentdistance_semilegit"))
5474 ui.set(scout_silentcheck, database.read("scout_silentcheck_semilegit"))
5475 ui.set(scout_silentmulti, database.read("scout_silentmulti_semilegit"))
5476 ui.set(scout_silentfovslider, database.read("scout_silentfovslider_semilegit"))
5477 ui.set(scout_silentdistance, database.read("scout_silentdistance_semilegit"))
5478 ui.set(non_adaptive_silentcheck, database.read("non_adaptive_silentcheck_semilegit"))
5479 ui.set(non_adaptive_silentaim, database.read("non_adaptive_silentaim_semilegit"))
5480 ui.set(auto_mindmg_check, database.read("auto_mindmg_check_semilegit"))
5481 ui.set(auto_mindmg_multi, database.read("auto_mindmg_multi_semilegit"))
5482 ui.set(auto_visible_mindmg, database.read("auto_visible_mindmg_semilegit"))
5483 ui.set(auto_nonvisible_mindmg, database.read("auto_nonvisible_mindmg_semilegit"))
5484 ui.set(global_mindmg_check, database.read("global_mindmg_check_semilegit"))
5485 ui.set(global_mindmg_multi, database.read("global_mindmg_multi_semilegit"))
5486 ui.set(global_visible_mindmg, database.read("global_visible_mindmg_semilegit"))
5487 ui.set(global_nonvisible_mindmg, database.read("global_nonvisible_mindmg_semilegit"))
5488 ui.set(pistol_mindmg_check, database.read("pistol_mindmg_check_semilegit"))
5489 ui.set(pistol_mindmg_multi, database.read("pistol_mindmg_multi_semilegit"))
5490 ui.set(pistol_visible_mindmg, database.read("pistol_visible_mindmg_semilegit"))
5491 ui.set(pistol_nonvisible_mindmg, database.read("pistol_nonvisible_mindmg_semilegit"))
5492 ui.set(heavypistol_mindmg_check, database.read("heavypistol_mindmg_check_semilegit"))
5493 ui.set(heavypistol_mindmg_multi, database.read("heavypistol_mindmg_multi_semilegit"))
5494 ui.set(heavypistol_visible_mindmg, database.read("heavypistol_visible_mindmg_semilegit"))
5495 ui.set(heavypistol_nonvisible_mindmg, database.read("heavypistol_nonvisible_mindmg_semilegit"))
5496 ui.set(rifle_mindmg_check, database.read("rifle_mindmg_check_semilegit"))
5497 ui.set(rifle_mindmg_multi, database.read("rifle_mindmg_multi_semilegit"))
5498 ui.set(rifle_visible_mindmg, database.read("rifle_visible_mindmg_semilegit"))
5499 ui.set(rifle_nonvisible_mindmg, database.read("rifle_nonvisible_mindmg_semilegit"))
5500 ui.set(awp_mindmg_check, database.read("awp_mindmg_check_semilegit"))
5501 ui.set(awp_mindmg_multi, database.read("awp_mindmg_multi_semilegit"))
5502 ui.set(awp_visible_mindmg, database.read("awp_visible_mindmg_semilegit"))
5503 ui.set(awp_nonvisible_mindmg, database.read("awp_nonvisible_mindmg_semilegit"))
5504 ui.set(scout_mindmg_check, database.read("scout_mindmg_check_semilegit"))
5505 ui.set(scout_mindmg_multi, database.read("scout_mindmg_multi_semilegit"))
5506 ui.set(scout_visible_mindmg, database.read("scout_visible_mindmg_semilegit"))
5507 ui.set(scout_nonvisible_mindmg, database.read("scout_nonvisible_mindmg_semilegit"))
5508 ui.set(auto_hitbox_check, database.read("auto_hitbox_check_semilegit"))
5509 ui.set(auto_nearest_multi, database.read("auto_nearest_multi_semilegit"))
5510 ui.set(pistol_hitbox_check, database.read("pistol_hitbox_check_semilegit"))
5511 ui.set(pistol_nearest_multi, database.read("pistol_nearest_multi_semilegit"))
5512 ui.set(heavypistol_hitbox_check, database.read("heavypistol_hitbox_check_semilegit"))
5513 ui.set(heavypistol_nearest_multi, database.read("heavypistol_nearest_multi_semilegit"))
5514 ui.set(rifle_hitbox_check, database.read("rifle_hitbox_check_semilegit"))
5515 ui.set(rifle_nearest_multi, database.read("rifle_nearest_multi_semilegit"))
5516 ui.set(awp_hitbox_check, database.read("awp_hitbox_check_semilegit"))
5517 ui.set(awp_nearest_multi, database.read("awp_nearest_multi_semilegit"))
5518 ui.set(scout_hitbox_check, database.read("scout_hitbox_check_semilegit"))
5519 ui.set(scout_nearest_multi, database.read("scout_nearest_multi_semilegit"))
5520 ui.set(overridebutton, database.read("overridebutton_semilegit"))
5521 ui.set(resolverselect, database.read("resolverselect_semilegit"))
5522 ui.set(legitbotimprovements, database.read("legitbotimprovements_semilegit"))
5523 ui.set(enablecflcombo, database.read("enablecflcombo_semilegit"))
5524 ui.set(slowvariance, database.read("slowvariance_semilegit"))
5525 ui.set(slowlimit, database.read("slowlimit_semilegit"))
5526 ui.set(slowamount, database.read("slowamount_semilegit"))
5527 ui.set(movevariance, database.read("movevariance_semilegit"))
5528 ui.set(movelimit, database.read("movelimit_semilegit"))
5529 ui.set(moveamount, database.read("moveamount_semilegit"))
5530 ui.set(standvariance, database.read("standvariance_semilegit"))
5531 ui.set(standlimit, database.read("standlimit_semilegit"))
5532 ui.set(standamount, database.read("standamount_semilegit"))
5533 ui.set(jumpvariance, database.read("jumpvariance_semilegit"))
5534 ui.set(jumplimit, database.read("jumplimit_semilegit"))
5535 ui.set(jumpamount, database.read("jumpamount_semilegit"))
5536 ui.set(talkshitenable, database.read("talkshitenable_semilegit"))
5537 ui.set(talkshittype, database.read("talkshittype_semilegit"))
5538 ui.set(advancedlog, database.read("advancedlog_semilegit"))
5539 ui.set(log_options, database.read("log_options_semilegit"))
5540 ui.set(log_type, database.read("log_type_semilegit"))
5541 ui.set(ngahooktag_enabled, database.read("ngahooktag_enabled_semilegit"))
5542 ui.set(legitAA, database.read("legitAA_semilegit"))
5543 ui.set(legitAAbase, database.read("legitAAbase_semilegit"))
5544 ui.set(legitaa_freestand_type, database.read("legitaa_freestand_type_semilegit"))
5545 ui.set(legitaasafe, database.read("legitaasafe_semilegit"))
5546 ui.set(disableaaping, database.read("disableaaping_semilegit"))
5547 ui.set(disableaafps, database.read("disableaafps_semilegit"))
5548 ui.set(LegitAABreaker, database.read("LegitAABreaker_semilegit"))
5549 ui.set(brutemode2, database.read("brutemode2_semilegit"))
5550 ui.set(ui_indicator_combobox4, database.read("ui_indicator_combobox4_semilegit"))
5551 ui.set(ui_indicator_color_picker4, database.read("ui_indicator_color_picker4_semilegit"))
5552 ui.set(enableaawm, database.read("enableaawm_semilegit"))
5553 ui.set(legitaamoving, database.read("legitaamoving_semilegit"))
5554 ui.set(slowmode, database.read("slowmode_semilegit"))
5555 ui.set(movemode, database.read("movemode_semilegit"))
5556 ui.set(standmode, database.read("standmode_semilegit"))
5557 end
5558 if ui.get(config_presets) == "Semirage" then
5559 ui.set(tm_cb, database.read("triggermag_semirage"))
5560 ui.set(auto_dynamicfov_enable, database.read("auto_dynamic_fov_check_semirage"))
5561 ui.set(dynamicfov_minauto, database.read("auto_dynamic_fov_min_semirage"))
5562 ui.set(dynamicfov_maxauto, database.read("auto_dynamic_fov_max_semirage"))
5563 ui.set(pistol_dynamicfov_enable, database.read("pistol_dynamic_fov_check_semirage"))
5564 ui.set(dynamicfov_minpistol, database.read("pistol_dynamic_fov_min_semirage"))
5565 ui.set(dynamicfov_maxpistol, database.read("pistol_dynamic_fov_max_semirage"))
5566 ui.set(heavypistol_dynamicfov_enable, database.read("heavypistol_dynamic_fov_check_semirage"))
5567 ui.set(dynamicfov_minheavypistol, database.read("heavypistol_dynamic_fov_min_semirage"))
5568 ui.set(dynamicfov_maxheavypistol, database.read("heavypistol_dynamic_fov_max_semirage"))
5569 ui.set(rifle_dynamicfov_enable, database.read("rifle_dynamic_fov_check_semirage"))
5570 ui.set(dynamicfov_minrifle, database.read("rifle_dynamic_fov_min_semirage"))
5571 ui.set(dynamicfov_maxrifle, database.read("rifle_dynamic_fov_max_semirage"))
5572 ui.set(awp_dynamicfov_enable, database.read("awp_dynamic_fov_check_semirage"))
5573 ui.set(dynamicfov_minawp, database.read("awp_dynamic_fov_min_semirage"))
5574 ui.set(dynamicfov_maxawp, database.read("awp_dynamic_fov_max_semirage"))
5575 ui.set(scout_dynamicfov_enable, database.read("scout_dynamic_fov_check_semirage"))
5576 ui.set(dynamicfov_minscout, database.read("scout_dynamic_fov_min_semirage"))
5577 ui.set(dynamicfov_maxscout, database.read("scout_dynamic_fov_max_semirage"))
5578 ui.set(global_dynamicfov_enable, database.read("other_dynamic_fov_check_semirage"))
5579 ui.set(dynamicfov_minother, database.read("other_dynamic_fov_min_semirage"))
5580 ui.set(dynamicfov_maxother, database.read("other_dynamic_fov_max_semirage"))
5581 ui.set(auto_autowall_check, database.read("auto_autowall_check_semirage"))
5582 ui.set(auto_auto_autowall, database.read("auto_auto_autowall_semirage"))
5583 ui.set(auto_dynamicfov_minaw, database.read("auto_dynamicfov_minaw_semirage"))
5584 ui.set(auto_dynamicfov_maxaw, database.read("auto_dynamicfov_maxaw_semirage"))
5585 ui.set(dynamicfov_auto_factor_autoaw, database.read("dynamicfov_auto_factor_autoaw_semirage"))
5586 ui.set(auto_legit_pen_threshold_ref, database.read("auto_legit_pen_threshold_ref_semirage"))
5587 ui.set(pistol_autowall_check, database.read("pistol_autowall_check_semirage"))
5588 ui.set(pistol_auto_autowall, database.read("pistol_auto_autowall_semirage"))
5589 ui.set(pistol_dynamicfov_minaw, database.read("pistol_dynamicfov_minaw_semirage"))
5590 ui.set(pistol_dynamicfov_maxaw, database.read("pistol_dynamicfov_maxaw_semirage"))
5591 ui.set(dynamicfov_auto_factor_pistolaw, database.read("dynamicfov_auto_factor_pistolaw_semirage"))
5592 ui.set(pistol_legit_pen_threshold_ref, database.read("pistol_legit_pen_threshold_ref_semirage"))
5593 ui.set(heavypistol_autowall_check, database.read("heavypistol_autowall_check_semirage"))
5594 ui.set(heavypistol_auto_autowall, database.read("heavypistol_auto_autowall_semirage"))
5595 ui.set(heavypistol_dynamicfov_minaw, database.read("heavypistol_dynamicfov_minaw_semirage"))
5596 ui.set(heavypistol_dynamicfov_maxaw, database.read("heavypistol_dynamicfov_maxaw_semirage"))
5597 ui.set(dynamicfov_auto_factor_heavypistolaw, database.read("dynamicfov_auto_factor_heavypistolaw_semirage"))
5598 ui.set(heavypistol_legit_pen_threshold_ref, database.read("heavypistol_legit_pen_threshold_ref_semirage"))
5599 ui.set(rifle_autowall_check, database.read("rifle_autowall_check_semirage"))
5600 ui.set(rifle_auto_autowall, database.read("rifle_auto_autowall_semirage"))
5601 ui.set(rifle_dynamicfov_minaw, database.read("rifle_dynamicfov_minaw_semirage"))
5602 ui.set(rifle_dynamicfov_maxaw, database.read("rifle_dynamicfov_maxaw_semirage"))
5603 ui.set(dynamicfov_auto_factor_rifleaw, database.read("dynamicfov_auto_factor_rifleaw_semirage"))
5604 ui.set(rifle_legit_pen_threshold_ref, database.read("rifle_legit_pen_threshold_ref_semirage"))
5605 ui.set(awp_autowall_check, database.read("awp_autowall_check_semirage"))
5606 ui.set(awp_auto_autowall, database.read("awp_auto_autowall_semirage"))
5607 ui.set(awp_dynamicfov_minaw, database.read("awp_dynamicfov_minaw_semirage"))
5608 ui.set(awp_dynamicfov_maxaw, database.read("awp_dynamicfov_maxaw_semirage"))
5609 ui.set(dynamicfov_auto_factor_awpaw, database.read("dynamicfov_auto_factor_awpaw_semirage"))
5610 ui.set(awp_legit_pen_threshold_ref, database.read("awp_legit_pen_threshold_ref_semirage"))
5611 ui.set(scout_autowall_check, database.read("scout_autowall_check_semirage"))
5612 ui.set(scout_auto_autowall, database.read("scout_auto_autowall_semirage"))
5613 ui.set(scout_dynamicfov_minaw, database.read("scout_dynamicfov_minaw_semirage"))
5614 ui.set(scout_dynamicfov_maxaw, database.read("scout_dynamicfov_maxaw_semirage"))
5615 ui.set(dynamicfov_auto_factor_scoutaw, database.read("dynamicfov_auto_factor_scoutaw_semirage"))
5616 ui.set(scout_legit_pen_threshold_ref, database.read("scout_legit_pen_threshold_ref_semirage"))
5617 ui.set(non_adaptive_aw_check, database.read("non_adaptive_aw_check_semirage"))
5618 ui.set(non_adaptive_auto_autowall, database.read("non_adaptive_auto_autowall_semirage"))
5619 ui.set(autodely, database.read("autodely_semirage"))
5620 ui.set(_autowall_mode_auto_trigger_delay, database.read("_autowall_mode_auto_trigger_delay_semirage"))
5621 ui.set(autowalldamage_position, database.read("autowalldamage_position_semirage"))
5622 ui.set(autowalldamage_color, database.read("autowalldamage_color_semirage"))
5623 ui.set(autowalldamage_type, database.read("autowalldamage_type_semirage"))
5624 ui.set(autowalldamage_colorhead, database.read("autowalldamage_colorhead_semirage"))
5625 ui.set(autowalldamage_colorbody, database.read("autowalldamage_colorbody_semirage"))
5626 ui.set(indicate_enable, database.read("indicate_enable_semirage"))
5627 ui.set(indicate_on, database.read("indicate_on_semirage"))
5628 ui.set(indicate_color, database.read("indicate_color_semirage"))
5629 ui.set(indicate_select, database.read("indicate_select_semirage"))
5630 ui.set(indicateposition, database.read("indicateposition_semirage"))
5631 ui.set(flag_enable, database.read("flag_enable_semirage"))
5632 ui.set(flag_color, database.read("flag_color_semirage"))
5633 ui.set(flag_select, database.read("flag_select_semirage"))
5634 ui.set(flcheckbox, database.read("flcheckbox_semirage"))
5635 ui.set(flmulti, database.read("flmulti_semirage"))
5636 ui.set(auto_silentcheck, database.read("auto_silentcheck_semirage"))
5637 ui.set(auto_silentmulti, database.read("auto_silentmulti_semirage"))
5638 ui.set(auto_silentfovslider, database.read("auto_silentfovslider_semirage"))
5639 ui.set(auto_silentdistance, database.read("auto_silentdistance_semirage"))
5640 ui.set(global_silentcheck, database.read("global_silentcheck_semirage"))
5641 ui.set(global_silentmulti, database.read("global_silentmulti_semirage"))
5642 ui.set(global_silentfovslider, database.read("global_silentfovslider_semirage"))
5643 ui.set(global_silentdistance, database.read("global_silentdistance_semirage"))
5644 ui.set(pistol_silentcheck, database.read("pistol_silentcheck_semirage"))
5645 ui.set(pistol_silentmulti, database.read("pistol_silentmulti_semirage"))
5646 ui.set(pistol_silentfovslider, database.read("pistol_silentfovslider_semirage"))
5647 ui.set(pistol_silentdistance, database.read("pistol_silentdistance_semirage"))
5648 ui.set(heavypistol_silentcheck, database.read("heavypistol_silentcheck_semirage"))
5649 ui.set(heavypistol_silentmulti, database.read("heavypistol_silentmulti_semirage"))
5650 ui.set(heavypistol_silentfovslider, database.read("heavypistol_silentfovslider_semirage"))
5651 ui.set(heavypistol_silentdistance, database.read("heavypistol_silentdistance_semirage"))
5652 ui.set(rifle_silentcheck, database.read("rifle_silentcheck_semirage"))
5653 ui.set(rifle_silentmulti, database.read("rifle_silentmulti_semirage"))
5654 ui.set(rifle_silentfovslider, database.read("rifle_silentfovslider_semirage"))
5655 ui.set(rifle_silentdistance, database.read("rifle_silentdistance_semirage"))
5656 ui.set(awp_silentcheck, database.read("awp_silentcheck_semirage"))
5657 ui.set(awp_silentmulti, database.read("awp_silentmulti_semirage"))
5658 ui.set(awp_silentfovslider, database.read("awp_silentfovslider_semirage"))
5659 ui.set(awp_silentdistance, database.read("awp_silentdistance_semirage"))
5660 ui.set(scout_silentcheck, database.read("scout_silentcheck_semirage"))
5661 ui.set(scout_silentmulti, database.read("scout_silentmulti_semirage"))
5662 ui.set(scout_silentfovslider, database.read("scout_silentfovslider_semirage"))
5663 ui.set(scout_silentdistance, database.read("scout_silentdistance_semirage"))
5664 ui.set(non_adaptive_silentcheck, database.read("non_adaptive_silentcheck_semirage"))
5665 ui.set(non_adaptive_silentaim, database.read("non_adaptive_silentaim_semirage"))
5666 ui.set(auto_mindmg_check, database.read("auto_mindmg_check_semirage"))
5667 ui.set(auto_mindmg_multi, database.read("auto_mindmg_multi_semirage"))
5668 ui.set(auto_visible_mindmg, database.read("auto_visible_mindmg_semirage"))
5669 ui.set(auto_nonvisible_mindmg, database.read("auto_nonvisible_mindmg_semirage"))
5670 ui.set(global_mindmg_check, database.read("global_mindmg_check_semirage"))
5671 ui.set(global_mindmg_multi, database.read("global_mindmg_multi_semirage"))
5672 ui.set(global_visible_mindmg, database.read("global_visible_mindmg_semirage"))
5673 ui.set(global_nonvisible_mindmg, database.read("global_nonvisible_mindmg_semirage"))
5674 ui.set(pistol_mindmg_check, database.read("pistol_mindmg_check_semirage"))
5675 ui.set(pistol_mindmg_multi, database.read("pistol_mindmg_multi_semirage"))
5676 ui.set(pistol_visible_mindmg, database.read("pistol_visible_mindmg_semirage"))
5677 ui.set(pistol_nonvisible_mindmg, database.read("pistol_nonvisible_mindmg_semirage"))
5678 ui.set(heavypistol_mindmg_check, database.read("heavypistol_mindmg_check_semirage"))
5679 ui.set(heavypistol_mindmg_multi, database.read("heavypistol_mindmg_multi_semirage"))
5680 ui.set(heavypistol_visible_mindmg, database.read("heavypistol_visible_mindmg_semirage"))
5681 ui.set(heavypistol_nonvisible_mindmg, database.read("heavypistol_nonvisible_mindmg_semirage"))
5682 ui.set(rifle_mindmg_check, database.read("rifle_mindmg_check_semirage"))
5683 ui.set(rifle_mindmg_multi, database.read("rifle_mindmg_multi_semirage"))
5684 ui.set(rifle_visible_mindmg, database.read("rifle_visible_mindmg_semirage"))
5685 ui.set(rifle_nonvisible_mindmg, database.read("rifle_nonvisible_mindmg_semirage"))
5686 ui.set(awp_mindmg_check, database.read("awp_mindmg_check_semirage"))
5687 ui.set(awp_mindmg_multi, database.read("awp_mindmg_multi_semirage"))
5688 ui.set(awp_visible_mindmg, database.read("awp_visible_mindmg_semirage"))
5689 ui.set(awp_nonvisible_mindmg, database.read("awp_nonvisible_mindmg_semirage"))
5690 ui.set(scout_mindmg_check, database.read("scout_mindmg_check_semirage"))
5691 ui.set(scout_mindmg_multi, database.read("scout_mindmg_multi_semirage"))
5692 ui.set(scout_visible_mindmg, database.read("scout_visible_mindmg_semirage"))
5693 ui.set(scout_nonvisible_mindmg, database.read("scout_nonvisible_mindmg_semirage"))
5694 ui.set(auto_hitbox_check, database.read("auto_hitbox_check_semirage"))
5695 ui.set(auto_nearest_multi, database.read("auto_nearest_multi_semirage"))
5696 ui.set(pistol_hitbox_check, database.read("pistol_hitbox_check_semirage"))
5697 ui.set(pistol_nearest_multi, database.read("pistol_nearest_multi_semirage"))
5698 ui.set(heavypistol_hitbox_check, database.read("heavypistol_hitbox_check_semirage"))
5699 ui.set(heavypistol_nearest_multi, database.read("heavypistol_nearest_multi_semirage"))
5700 ui.set(rifle_hitbox_check, database.read("rifle_hitbox_check_semirage"))
5701 ui.set(rifle_nearest_multi, database.read("rifle_nearest_multi_semirage"))
5702 ui.set(awp_hitbox_check, database.read("awp_hitbox_check_semirage"))
5703 ui.set(awp_nearest_multi, database.read("awp_nearest_multi_semirage"))
5704 ui.set(scout_hitbox_check, database.read("scout_hitbox_check_semirage"))
5705 ui.set(scout_nearest_multi, database.read("scout_nearest_multi_semirage"))
5706 ui.set(overridebutton, database.read("overridebutton_semirage"))
5707 ui.set(resolverselect, database.read("resolverselect_semirage"))
5708 ui.set(legitbotimprovements, database.read("legitbotimprovements_semirage"))
5709 ui.set(enablecflcombo, database.read("enablecflcombo_semirage"))
5710 ui.set(slowvariance, database.read("slowvariance_semirage"))
5711 ui.set(slowlimit, database.read("slowlimit_semirage"))
5712 ui.set(slowamount, database.read("slowamount_semirage"))
5713 ui.set(movevariance, database.read("movevariance_semirage"))
5714 ui.set(movelimit, database.read("movelimit_semirage"))
5715 ui.set(moveamount, database.read("moveamount_semirage"))
5716 ui.set(standvariance, database.read("standvariance_semirage"))
5717 ui.set(standlimit, database.read("standlimit_semirage"))
5718 ui.set(standamount, database.read("standamount_semirage"))
5719 ui.set(jumpvariance, database.read("jumpvariance_semirage"))
5720 ui.set(jumplimit, database.read("jumplimit_semirage"))
5721 ui.set(jumpamount, database.read("jumpamount_semirage"))
5722 ui.set(talkshitenable, database.read("talkshitenable_semirage"))
5723 ui.set(talkshittype, database.read("talkshittype_semirage"))
5724 ui.set(advancedlog, database.read("advancedlog_semirage"))
5725 ui.set(log_options, database.read("log_options_semirage"))
5726 ui.set(log_type, database.read("log_type_semirage"))
5727 ui.set(ngahooktag_enabled, database.read("ngahooktag_enabled_semirage"))
5728 ui.set(legitAA, database.read("legitAA_semirage"))
5729 ui.set(legitAAbase, database.read("legitAAbase_semirage"))
5730 ui.set(legitaa_freestand_type, database.read("legitaa_freestand_type_semirage"))
5731 ui.set(legitaasafe, database.read("legitaasafe_semirage"))
5732 ui.set(disableaaping, database.read("disableaaping_semirage"))
5733 ui.set(disableaafps, database.read("disableaafps_semirage"))
5734 ui.set(LegitAABreaker, database.read("LegitAABreaker_semirage"))
5735 ui.set(brutemode2, database.read("brutemode2_semirage"))
5736 ui.set(ui_indicator_combobox4, database.read("ui_indicator_combobox4_semirage"))
5737 ui.set(ui_indicator_color_picker4, database.read("ui_indicator_color_picker4_semirage"))
5738 ui.set(enableaawm, database.read("enableaawm_semirage"))
5739 ui.set(legitaamoving, database.read("legitaamoving_semirage"))
5740 ui.set(slowmode, database.read("slowmode_semirage"))
5741 ui.set(movemode, database.read("movemode_semirage"))
5742 ui.set(standmode, database.read("standmode_semirage"))
5743 end
5744 if ui.get(config_presets) == "Rage" then
5745 ui.set(tm_cb, database.read("triggermag_rage"))
5746 ui.set(auto_dynamicfov_enable, database.read("auto_dynamic_fov_check_rage"))
5747 ui.set(dynamicfov_minauto, database.read("auto_dynamic_fov_min_rage"))
5748 ui.set(dynamicfov_maxauto, database.read("auto_dynamic_fov_max_rage"))
5749 ui.set(pistol_dynamicfov_enable, database.read("pistol_dynamic_fov_check_rage"))
5750 ui.set(dynamicfov_minpistol, database.read("pistol_dynamic_fov_min_rage"))
5751 ui.set(dynamicfov_maxpistol, database.read("pistol_dynamic_fov_max_rage"))
5752 ui.set(heavypistol_dynamicfov_enable, database.read("heavypistol_dynamic_fov_check_rage"))
5753 ui.set(dynamicfov_minheavypistol, database.read("heavypistol_dynamic_fov_min_rage"))
5754 ui.set(dynamicfov_maxheavypistol, database.read("heavypistol_dynamic_fov_max_rage"))
5755 ui.set(rifle_dynamicfov_enable, database.read("rifle_dynamic_fov_check_rage"))
5756 ui.set(dynamicfov_minrifle, database.read("rifle_dynamic_fov_min_rage"))
5757 ui.set(dynamicfov_maxrifle, database.read("rifle_dynamic_fov_max_rage"))
5758 ui.set(awp_dynamicfov_enable, database.read("awp_dynamic_fov_check_rage"))
5759 ui.set(dynamicfov_minawp, database.read("awp_dynamic_fov_min_rage"))
5760 ui.set(dynamicfov_maxawp, database.read("awp_dynamic_fov_max_rage"))
5761 ui.set(scout_dynamicfov_enable, database.read("scout_dynamic_fov_check_rage"))
5762 ui.set(dynamicfov_minscout, database.read("scout_dynamic_fov_min_rage"))
5763 ui.set(dynamicfov_maxscout, database.read("scout_dynamic_fov_max_rage"))
5764 ui.set(global_dynamicfov_enable, database.read("other_dynamic_fov_check_rage"))
5765 ui.set(dynamicfov_minother, database.read("other_dynamic_fov_min_rage"))
5766 ui.set(dynamicfov_maxother, database.read("other_dynamic_fov_max_rage"))
5767 ui.set(auto_autowall_check, database.read("auto_autowall_check_rage"))
5768 ui.set(auto_auto_autowall, database.read("auto_auto_autowall_rage"))
5769 ui.set(auto_dynamicfov_minaw, database.read("auto_dynamicfov_minaw_rage"))
5770 ui.set(auto_dynamicfov_maxaw, database.read("auto_dynamicfov_maxaw_rage"))
5771 ui.set(dynamicfov_auto_factor_autoaw, database.read("dynamicfov_auto_factor_autoaw_rage"))
5772 ui.set(auto_legit_pen_threshold_ref, database.read("auto_legit_pen_threshold_ref_rage"))
5773 ui.set(pistol_autowall_check, database.read("pistol_autowall_check_rage"))
5774 ui.set(pistol_auto_autowall, database.read("pistol_auto_autowall_rage"))
5775 ui.set(pistol_dynamicfov_minaw, database.read("pistol_dynamicfov_minaw_rage"))
5776 ui.set(pistol_dynamicfov_maxaw, database.read("pistol_dynamicfov_maxaw_rage"))
5777 ui.set(dynamicfov_auto_factor_pistolaw, database.read("dynamicfov_auto_factor_pistolaw_rage"))
5778 ui.set(pistol_legit_pen_threshold_ref, database.read("pistol_legit_pen_threshold_ref_rage"))
5779 ui.set(heavypistol_autowall_check, database.read("heavypistol_autowall_check_rage"))
5780 ui.set(heavypistol_auto_autowall, database.read("heavypistol_auto_autowall_rage"))
5781 ui.set(heavypistol_dynamicfov_minaw, database.read("heavypistol_dynamicfov_minaw_rage"))
5782 ui.set(heavypistol_dynamicfov_maxaw, database.read("heavypistol_dynamicfov_maxaw_rage"))
5783 ui.set(dynamicfov_auto_factor_heavypistolaw, database.read("dynamicfov_auto_factor_heavypistolaw_rage"))
5784 ui.set(heavypistol_legit_pen_threshold_ref, database.read("heavypistol_legit_pen_threshold_ref_rage"))
5785 ui.set(rifle_autowall_check, database.read("rifle_autowall_check_rage"))
5786 ui.set(rifle_auto_autowall, database.read("rifle_auto_autowall_rage"))
5787 ui.set(rifle_dynamicfov_minaw, database.read("rifle_dynamicfov_minaw_rage"))
5788 ui.set(rifle_dynamicfov_maxaw, database.read("rifle_dynamicfov_maxaw_rage"))
5789 ui.set(dynamicfov_auto_factor_rifleaw, database.read("dynamicfov_auto_factor_rifleaw_rage"))
5790 ui.set(rifle_legit_pen_threshold_ref, database.read("rifle_legit_pen_threshold_ref_rage"))
5791 ui.set(awp_autowall_check, database.read("awp_autowall_check_rage"))
5792 ui.set(awp_auto_autowall, database.read("awp_auto_autowall_rage"))
5793 ui.set(awp_dynamicfov_minaw, database.read("awp_dynamicfov_minaw_rage"))
5794 ui.set(awp_dynamicfov_maxaw, database.read("awp_dynamicfov_maxaw_rage"))
5795 ui.set(dynamicfov_auto_factor_awpaw, database.read("dynamicfov_auto_factor_awpaw_rage"))
5796 ui.set(awp_legit_pen_threshold_ref, database.read("awp_legit_pen_threshold_ref_rage"))
5797 ui.set(scout_autowall_check, database.read("scout_autowall_check_rage"))
5798 ui.set(scout_auto_autowall, database.read("scout_auto_autowall_rage"))
5799 ui.set(scout_dynamicfov_minaw, database.read("scout_dynamicfov_minaw_rage"))
5800 ui.set(scout_dynamicfov_maxaw, database.read("scout_dynamicfov_maxaw_rage"))
5801 ui.set(dynamicfov_auto_factor_scoutaw, database.read("dynamicfov_auto_factor_scoutaw_rage"))
5802 ui.set(scout_legit_pen_threshold_ref, database.read("scout_legit_pen_threshold_ref_rage"))
5803 ui.set(non_adaptive_aw_check, database.read("non_adaptive_aw_check_rage"))
5804 ui.set(non_adaptive_auto_autowall, database.read("non_adaptive_auto_autowall_rage"))
5805 ui.set(beforedelay, database.read("beforedelay_rage"))
5806 ui.set(autodely, database.read("autodely_rage"))
5807 ui.set(_autowall_mode_auto_trigger_delay, database.read("_autowall_mode_auto_trigger_delay_rage"))
5808 ui.set(autowalldamage_position, database.read("autowalldamage_position_rage"))
5809 ui.set(autowalldamage_color, database.read("autowalldamage_color_rage"))
5810 ui.set(autowalldamage_type, database.read("autowalldamage_type_rage"))
5811 ui.set(autowalldamage_colorhead, database.read("autowalldamage_colorhead_rage"))
5812 ui.set(autowalldamage_colorbody, database.read("autowalldamage_colorbody_rage"))
5813 ui.set(indicate_enable, database.read("indicate_enable_rage"))
5814 ui.set(indicate_on, database.read("indicate_on_rage"))
5815 ui.set(indicate_color, database.read("indicate_color_rage"))
5816 ui.set(indicate_select, database.read("indicate_select_rage"))
5817 ui.set(indicateposition, database.read("indicateposition_rage"))
5818 ui.set(flag_enable, database.read("flag_enable_rage"))
5819 ui.set(flag_color, database.read("flag_color_rage"))
5820 ui.set(flag_select, database.read("flag_select_rage"))
5821 ui.set(flcheckbox, database.read("flcheckbox_rage"))
5822 ui.set(flmulti, database.read("flmulti_rage"))
5823 ui.set(auto_silentcheck, database.read("auto_silentcheck_rage"))
5824 ui.set(auto_silentmulti, database.read("auto_silentmulti_rage"))
5825 ui.set(auto_silentfovslider, database.read("auto_silentfovslider_rage"))
5826 ui.set(auto_silentdistance, database.read("auto_silentdistance_rage"))
5827 ui.set(global_silentcheck, database.read("global_silentcheck_rage"))
5828 ui.set(global_silentmulti, database.read("global_silentmulti_rage"))
5829 ui.set(global_silentfovslider, database.read("global_silentfovslider_rage"))
5830 ui.set(global_silentdistance, database.read("global_silentdistance_rage"))
5831 ui.set(pistol_silentcheck, database.read("pistol_silentcheck_rage"))
5832 ui.set(pistol_silentmulti, database.read("pistol_silentmulti_rage"))
5833 ui.set(pistol_silentfovslider, database.read("pistol_silentfovslider_rage"))
5834 ui.set(pistol_silentdistance, database.read("pistol_silentdistance_rage"))
5835 ui.set(heavypistol_silentcheck, database.read("heavypistol_silentcheck_rage"))
5836 ui.set(heavypistol_silentmulti, database.read("heavypistol_silentmulti_rage"))
5837 ui.set(heavypistol_silentfovslider, database.read("heavypistol_silentfovslider_rage"))
5838 ui.set(heavypistol_silentdistance, database.read("heavypistol_silentdistance_rage"))
5839 ui.set(rifle_silentcheck, database.read("rifle_silentcheck_rage"))
5840 ui.set(rifle_silentmulti, database.read("rifle_silentmulti_rage"))
5841 ui.set(rifle_silentfovslider, database.read("rifle_silentfovslider_rage"))
5842 ui.set(rifle_silentdistance, database.read("rifle_silentdistance_rage"))
5843 ui.set(awp_silentcheck, database.read("awp_silentcheck_rage"))
5844 ui.set(awp_silentmulti, database.read("awp_silentmulti_rage"))
5845 ui.set(awp_silentfovslider, database.read("awp_silentfovslider_rage"))
5846 ui.set(awp_silentdistance, database.read("awp_silentdistance_rage"))
5847 ui.set(scout_silentcheck, database.read("scout_silentcheck_rage"))
5848 ui.set(scout_silentmulti, database.read("scout_silentmulti_rage"))
5849 ui.set(scout_silentfovslider, database.read("scout_silentfovslider_rage"))
5850 ui.set(scout_silentdistance, database.read("scout_silentdistance_rage"))
5851 ui.set(non_adaptive_silentcheck, database.read("non_adaptive_silentcheck_rage"))
5852 ui.set(non_adaptive_silentaim, database.read("non_adaptive_silentaim_rage"))
5853 ui.set(auto_mindmg_check, database.read("auto_mindmg_check_rage"))
5854 ui.set(auto_mindmg_multi, database.read("auto_mindmg_multi_rage"))
5855 ui.set(auto_visible_mindmg, database.read("auto_visible_mindmg_rage"))
5856 ui.set(auto_nonvisible_mindmg, database.read("auto_nonvisible_mindmg_rage"))
5857 ui.set(global_mindmg_check, database.read("global_mindmg_check_rage"))
5858 ui.set(global_mindmg_multi, database.read("global_mindmg_multi_rage"))
5859 ui.set(global_visible_mindmg, database.read("global_visible_mindmg_rage"))
5860 ui.set(global_nonvisible_mindmg, database.read("global_nonvisible_mindmg_rage"))
5861 ui.set(pistol_mindmg_check, database.read("pistol_mindmg_check_rage"))
5862 ui.set(pistol_mindmg_multi, database.read("pistol_mindmg_multi_rage"))
5863 ui.set(pistol_visible_mindmg, database.read("pistol_visible_mindmg_rage"))
5864 ui.set(pistol_nonvisible_mindmg, database.read("pistol_nonvisible_mindmg_rage"))
5865 ui.set(heavypistol_mindmg_check, database.read("heavypistol_mindmg_check_rage"))
5866 ui.set(heavypistol_mindmg_multi, database.read("heavypistol_mindmg_multi_rage"))
5867 ui.set(heavypistol_visible_mindmg, database.read("heavypistol_visible_mindmg_rage"))
5868 ui.set(heavypistol_nonvisible_mindmg, database.read("heavypistol_nonvisible_mindmg_rage"))
5869 ui.set(rifle_mindmg_check, database.read("rifle_mindmg_check_rage"))
5870 ui.set(rifle_mindmg_multi, database.read("rifle_mindmg_multi_rage"))
5871 ui.set(rifle_visible_mindmg, database.read("rifle_visible_mindmg_rage"))
5872 ui.set(rifle_nonvisible_mindmg, database.read("rifle_nonvisible_mindmg_rage"))
5873 ui.set(awp_mindmg_check, database.read("awp_mindmg_check_rage"))
5874 ui.set(awp_mindmg_multi, database.read("awp_mindmg_multi_rage"))
5875 ui.set(awp_visible_mindmg, database.read("awp_visible_mindmg_rage"))
5876 ui.set(awp_nonvisible_mindmg, database.read("awp_nonvisible_mindmg_rage"))
5877 ui.set(scout_mindmg_check, database.read("scout_mindmg_check_rage"))
5878 ui.set(scout_mindmg_multi, database.read("scout_mindmg_multi_rage"))
5879 ui.set(scout_visible_mindmg, database.read("scout_visible_mindmg_rage"))
5880 ui.set(scout_nonvisible_mindmg, database.read("scout_nonvisible_mindmg_rage"))
5881 ui.set(auto_hitbox_check, database.read("auto_hitbox_check_rage"))
5882 ui.set(auto_nearest_multi, database.read("auto_nearest_multi_rage"))
5883 ui.set(pistol_hitbox_check, database.read("pistol_hitbox_check_rage"))
5884 ui.set(pistol_nearest_multi, database.read("pistol_nearest_multi_rage"))
5885 ui.set(heavypistol_hitbox_check, database.read("heavypistol_hitbox_check_rage"))
5886 ui.set(heavypistol_nearest_multi, database.read("heavypistol_nearest_multi_rage"))
5887 ui.set(rifle_hitbox_check, database.read("rifle_hitbox_check_rage"))
5888 ui.set(rifle_nearest_multi, database.read("rifle_nearest_multi_rage"))
5889 ui.set(awp_hitbox_check, database.read("awp_hitbox_check_rage"))
5890 ui.set(awp_nearest_multi, database.read("awp_nearest_multi_rage"))
5891 ui.set(scout_hitbox_check, database.read("scout_hitbox_check_rage"))
5892 ui.set(scout_nearest_multi, database.read("scout_nearest_multi_rage"))
5893 ui.set(overridebutton, database.read("overridebutton_rage"))
5894 ui.set(resolverselect, database.read("resolverselect_rage"))
5895 ui.set(legitbotimprovements, database.read("legitbotimprovements_rage"))
5896 ui.set(enablecflcombo, database.read("enablecflcombo_rage"))
5897 ui.set(slowvariance, database.read("slowvariance_rage"))
5898 ui.set(slowlimit, database.read("slowlimit_rage"))
5899 ui.set(slowamount, database.read("slowamount_rage"))
5900 ui.set(movevariance, database.read("movevariance_rage"))
5901 ui.set(movelimit, database.read("movelimit_rage"))
5902 ui.set(moveamount, database.read("moveamount_rage"))
5903 ui.set(standvariance, database.read("standvariance_rage"))
5904 ui.set(standlimit, database.read("standlimit_rage"))
5905 ui.set(standamount, database.read("standamount_rage"))
5906 ui.set(jumpvariance, database.read("jumpvariance_rage"))
5907 ui.set(jumplimit, database.read("jumplimit_rage"))
5908 ui.set(jumpamount, database.read("jumpamount_rage"))
5909 ui.set(talkshitenable, database.read("talkshitenable_rage"))
5910 ui.set(talkshittype, database.read("talkshittype_rage"))
5911 ui.set(advancedlog, database.read("advancedlog_rage"))
5912 ui.set(log_options, database.read("log_options_rage"))
5913 ui.set(log_type, database.read("log_type_rage"))
5914 ui.set(ngahooktag_enabled, database.read("ngahooktag_enabled_rage"))
5915 ui.set(legitAA, database.read("legitAA_rage"))
5916 ui.set(legitAAbase, database.read("legitAAbase_rage"))
5917 ui.set(legitaa_freestand_type, database.read("legitaa_freestand_type_rage"))
5918 ui.set(legitaasafe, database.read("legitaasafe_rage"))
5919 ui.set(disableaaping, database.read("disableaaping_rage"))
5920 ui.set(disableaafps, database.read("disableaafps_rage"))
5921 ui.set(LegitAABreaker, database.read("LegitAABreaker_rage"))
5922 ui.set(brutemode2, database.read("brutemode2_rage"))
5923 ui.set(ui_indicator_combobox4, database.read("ui_indicator_combobox4_rage"))
5924 ui.set(ui_indicator_color_picker4, database.read("ui_indicator_color_picker4_rage"))
5925 ui.set(enableaawm, database.read("enableaawm_rage"))
5926 ui.set(legitaamoving, database.read("legitaamoving_rage"))
5927 ui.set(slowmode, database.read("slowmode_rage"))
5928 ui.set(movemode, database.read("movemode_rage"))
5929 ui.set(standmode, database.read("standmode_rage"))
5930 end
5931 end
5932end);
5933
5934function load_the_config()
5935 lua_log("Loading ", ui.get(config_presets), " Config")
5936 if ui.get(config_presets) == "Legit" then
5937 ui.set(tm_cb, database.read("triggermag_legit"))
5938 ui.set(auto_dynamicfov_enable, database.read("auto_dynamic_fov_check_legit"))
5939 ui.set(dynamicfov_minauto, database.read("auto_dynamic_fov_min_legit"))
5940 ui.set(dynamicfov_maxauto, database.read("auto_dynamic_fov_max_legit"))
5941 ui.set(pistol_dynamicfov_enable, database.read("pistol_dynamic_fov_check_legit"))
5942 ui.set(dynamicfov_minpistol, database.read("pistol_dynamic_fov_min_legit"))
5943 ui.set(dynamicfov_maxpistol, database.read("pistol_dynamic_fov_max_legit"))
5944 ui.set(heavypistol_dynamicfov_enable, database.read("heavypistol_dynamic_fov_check_legit"))
5945 ui.set(dynamicfov_minheavypistol, database.read("heavypistol_dynamic_fov_min_legit"))
5946 ui.set(dynamicfov_maxheavypistol, database.read("heavypistol_dynamic_fov_max_legit"))
5947 ui.set(rifle_dynamicfov_enable, database.read("rifle_dynamic_fov_check_legit"))
5948 ui.set(dynamicfov_minrifle, database.read("rifle_dynamic_fov_min_legit"))
5949 ui.set(dynamicfov_maxrifle, database.read("rifle_dynamic_fov_max_legit"))
5950 ui.set(awp_dynamicfov_enable, database.read("awp_dynamic_fov_check_legit"))
5951 ui.set(dynamicfov_minawp, database.read("awp_dynamic_fov_min_legit"))
5952 ui.set(dynamicfov_maxawp, database.read("awp_dynamic_fov_max_legit"))
5953 ui.set(scout_dynamicfov_enable, database.read("scout_dynamic_fov_check_legit"))
5954 ui.set(dynamicfov_minscout, database.read("scout_dynamic_fov_min_legit"))
5955 ui.set(dynamicfov_maxscout, database.read("scout_dynamic_fov_max_legit"))
5956 ui.set(global_dynamicfov_enable, database.read("other_dynamic_fov_check_legit"))
5957 ui.set(dynamicfov_minother, database.read("other_dynamic_fov_min_legit"))
5958 ui.set(dynamicfov_maxother, database.read("other_dynamic_fov_max_legit"))
5959 ui.set(auto_autowall_check, database.read("auto_autowall_check_legit"))
5960 ui.set(auto_auto_autowall, database.read("auto_auto_autowall_legit"))
5961 ui.set(auto_dynamicfov_minaw, database.read("auto_dynamicfov_minaw_legit"))
5962 ui.set(auto_dynamicfov_maxaw, database.read("auto_dynamicfov_maxaw_legit"))
5963 ui.set(dynamicfov_auto_factor_autoaw, database.read("dynamicfov_auto_factor_autoaw_legit"))
5964 ui.set(auto_legit_pen_threshold_ref, database.read("auto_legit_pen_threshold_ref_legit"))
5965 ui.set(pistol_autowall_check, database.read("pistol_autowall_check_legit"))
5966 ui.set(pistol_auto_autowall, database.read("pistol_auto_autowall_legit"))
5967 ui.set(pistol_dynamicfov_minaw, database.read("pistol_dynamicfov_minaw_legit"))
5968 ui.set(pistol_dynamicfov_maxaw, database.read("pistol_dynamicfov_maxaw_legit"))
5969 ui.set(dynamicfov_auto_factor_pistolaw, database.read("dynamicfov_auto_factor_pistolaw_legit"))
5970 ui.set(pistol_legit_pen_threshold_ref, database.read("pistol_legit_pen_threshold_ref_legit"))
5971 ui.set(heavypistol_autowall_check, database.read("heavypistol_autowall_check_legit"))
5972 ui.set(heavypistol_auto_autowall, database.read("heavypistol_auto_autowall_legit"))
5973 ui.set(heavypistol_dynamicfov_minaw, database.read("heavypistol_dynamicfov_minaw_legit"))
5974 ui.set(heavypistol_dynamicfov_maxaw, database.read("heavypistol_dynamicfov_maxaw_legit"))
5975 ui.set(dynamicfov_auto_factor_heavypistolaw, database.read("dynamicfov_auto_factor_heavypistolaw_legit"))
5976 ui.set(heavypistol_legit_pen_threshold_ref, database.read("heavypistol_legit_pen_threshold_ref_legit"))
5977 ui.set(rifle_autowall_check, database.read("rifle_autowall_check_legit"))
5978 ui.set(rifle_auto_autowall, database.read("rifle_auto_autowall_legit"))
5979 ui.set(rifle_dynamicfov_minaw, database.read("rifle_dynamicfov_minaw_legit"))
5980 ui.set(rifle_dynamicfov_maxaw, database.read("rifle_dynamicfov_maxaw_legit"))
5981 ui.set(dynamicfov_auto_factor_rifleaw, database.read("dynamicfov_auto_factor_rifleaw_legit"))
5982 ui.set(rifle_legit_pen_threshold_ref, database.read("rifle_legit_pen_threshold_ref_legit"))
5983 ui.set(awp_autowall_check, database.read("awp_autowall_check_legit"))
5984 ui.set(awp_auto_autowall, database.read("awp_auto_autowall_legit"))
5985 ui.set(awp_dynamicfov_minaw, database.read("awp_dynamicfov_minaw_legit"))
5986 ui.set(awp_dynamicfov_maxaw, database.read("awp_dynamicfov_maxaw_legit"))
5987 ui.set(dynamicfov_auto_factor_awpaw, database.read("dynamicfov_auto_factor_awpaw_legit"))
5988 ui.set(awp_legit_pen_threshold_ref, database.read("awp_legit_pen_threshold_ref_legit"))
5989 ui.set(scout_autowall_check, database.read("scout_autowall_check_legit"))
5990 ui.set(scout_auto_autowall, database.read("scout_auto_autowall_legit"))
5991 ui.set(scout_dynamicfov_minaw, database.read("scout_dynamicfov_minaw_legit"))
5992 ui.set(scout_dynamicfov_maxaw, database.read("scout_dynamicfov_maxaw_legit"))
5993 ui.set(dynamicfov_auto_factor_scoutaw, database.read("dynamicfov_auto_factor_scoutaw_legit"))
5994 ui.set(scout_legit_pen_threshold_ref, database.read("scout_legit_pen_threshold_ref_legit"))
5995 ui.set(non_adaptive_aw_check, database.read("non_adaptive_aw_check_legit"))
5996 ui.set(non_adaptive_auto_autowall, database.read("non_adaptive_auto_autowall_legit"))
5997 ui.set(beforedelay, database.read("beforedelay_legit"))
5998 ui.set(autodely, database.read("autodely_legit"))
5999 ui.set(_autowall_mode_auto_trigger_delay, database.read("_autowall_mode_auto_trigger_delay_legit"))
6000 ui.set(autowalldamage_position, database.read("autowalldamage_position_legit"))
6001 ui.set(autowalldamage_color, database.read("autowalldamage_color_legit"))
6002 ui.set(autowalldamage_type, database.read("autowalldamage_type_legit"))
6003 ui.set(autowalldamage_colorhead, database.read("autowalldamage_colorhead_legit"))
6004 ui.set(autowalldamage_colorbody, database.read("autowalldamage_colorbody_legit"))
6005 ui.set(indicate_enable, database.read("indicate_enable_legit"))
6006 ui.set(indicate_on, database.read("indicate_on_legit"))
6007 ui.set(indicate_color, database.read("indicate_color_legit"))
6008 ui.set(indicate_select, database.read("indicate_select_legit"))
6009 ui.set(indicateposition, database.read("indicateposition_legit"))
6010 ui.set(flag_enable, database.read("flag_enable_legit"))
6011 ui.set(flag_color, database.read("flag_color_legit"))
6012 ui.set(flag_select, database.read("flag_select_legit"))
6013 ui.set(flcheckbox, database.read("flcheckbox_legit"))
6014 ui.set(flmulti, database.read("flmulti_legit"))
6015 ui.set(auto_silentcheck, database.read("auto_silentcheck_legit"))
6016 ui.set(auto_silentmulti, database.read("auto_silentmulti_legit"))
6017 ui.set(auto_silentfovslider, database.read("auto_silentfovslider_legit"))
6018 ui.set(auto_silentdistance, database.read("auto_silentdistance_legit"))
6019 ui.set(global_silentcheck, database.read("global_silentcheck_legit"))
6020 ui.set(global_silentmulti, database.read("global_silentmulti_legit"))
6021 ui.set(global_silentfovslider, database.read("global_silentfovslider_legit"))
6022 ui.set(global_silentdistance, database.read("global_silentdistance_legit"))
6023 ui.set(pistol_silentcheck, database.read("pistol_silentcheck_legit"))
6024 ui.set(pistol_silentmulti, database.read("pistol_silentmulti_legit"))
6025 ui.set(pistol_silentfovslider, database.read("pistol_silentfovslider_legit"))
6026 ui.set(pistol_silentdistance, database.read("pistol_silentdistance_legit"))
6027 ui.set(heavypistol_silentcheck, database.read("heavypistol_silentcheck_legit"))
6028 ui.set(heavypistol_silentmulti, database.read("heavypistol_silentmulti_legit"))
6029 ui.set(heavypistol_silentfovslider, database.read("heavypistol_silentfovslider_legit"))
6030 ui.set(heavypistol_silentdistance, database.read("heavypistol_silentdistance_legit"))
6031 ui.set(rifle_silentcheck, database.read("rifle_silentcheck_legit"))
6032 ui.set(rifle_silentmulti, database.read("rifle_silentmulti_legit"))
6033 ui.set(rifle_silentfovslider, database.read("rifle_silentfovslider_legit"))
6034 ui.set(rifle_silentdistance, database.read("rifle_silentdistance_legit"))
6035 ui.set(awp_silentcheck, database.read("awp_silentcheck_legit"))
6036 ui.set(awp_silentmulti, database.read("awp_silentmulti_legit"))
6037 ui.set(awp_silentfovslider, database.read("awp_silentfovslider_legit"))
6038 ui.set(awp_silentdistance, database.read("awp_silentdistance_legit"))
6039 ui.set(scout_silentcheck, database.read("scout_silentcheck_legit"))
6040 ui.set(scout_silentmulti, database.read("scout_silentmulti_legit"))
6041 ui.set(scout_silentfovslider, database.read("scout_silentfovslider_legit"))
6042 ui.set(scout_silentdistance, database.read("scout_silentdistance_legit"))
6043 ui.set(non_adaptive_silentcheck, database.read("non_adaptive_silentcheck_legit"))
6044 ui.set(non_adaptive_silentaim, database.read("non_adaptive_silentaim_legit"))
6045 ui.set(auto_mindmg_check, database.read("auto_mindmg_check_legit"))
6046 ui.set(auto_mindmg_multi, database.read("auto_mindmg_multi_legit"))
6047 ui.set(auto_visible_mindmg, database.read("auto_visible_mindmg_legit"))
6048 ui.set(auto_nonvisible_mindmg, database.read("auto_nonvisible_mindmg_legit"))
6049 ui.set(global_mindmg_check, database.read("global_mindmg_check_legit"))
6050 ui.set(global_mindmg_multi, database.read("global_mindmg_multi_legit"))
6051 ui.set(global_visible_mindmg, database.read("global_visible_mindmg_legit"))
6052 ui.set(global_nonvisible_mindmg, database.read("global_nonvisible_mindmg_legit"))
6053 ui.set(pistol_mindmg_check, database.read("pistol_mindmg_check_legit"))
6054 ui.set(pistol_mindmg_multi, database.read("pistol_mindmg_multi_legit"))
6055 ui.set(pistol_visible_mindmg, database.read("pistol_visible_mindmg_legit"))
6056 ui.set(pistol_nonvisible_mindmg, database.read("pistol_nonvisible_mindmg_legit"))
6057 ui.set(heavypistol_mindmg_check, database.read("heavypistol_mindmg_check_legit"))
6058 ui.set(heavypistol_mindmg_multi, database.read("heavypistol_mindmg_multi_legit"))
6059 ui.set(heavypistol_visible_mindmg, database.read("heavypistol_visible_mindmg_legit"))
6060 ui.set(heavypistol_nonvisible_mindmg, database.read("heavypistol_nonvisible_mindmg_legit"))
6061 ui.set(rifle_mindmg_check, database.read("rifle_mindmg_check_legit"))
6062 ui.set(rifle_mindmg_multi, database.read("rifle_mindmg_multi_legit"))
6063 ui.set(rifle_visible_mindmg, database.read("rifle_visible_mindmg_legit"))
6064 ui.set(rifle_nonvisible_mindmg, database.read("rifle_nonvisible_mindmg_legit"))
6065 ui.set(awp_mindmg_check, database.read("awp_mindmg_check_legit"))
6066 ui.set(awp_mindmg_multi, database.read("awp_mindmg_multi_legit"))
6067 ui.set(awp_visible_mindmg, database.read("awp_visible_mindmg_legit"))
6068 ui.set(awp_nonvisible_mindmg, database.read("awp_nonvisible_mindmg_legit"))
6069 ui.set(scout_mindmg_check, database.read("scout_mindmg_check_legit"))
6070 ui.set(scout_mindmg_multi, database.read("scout_mindmg_multi_legit"))
6071 ui.set(scout_visible_mindmg, database.read("scout_visible_mindmg_legit"))
6072 ui.set(scout_nonvisible_mindmg, database.read("scout_nonvisible_mindmg_legit"))
6073 ui.set(auto_hitbox_check, database.read("auto_hitbox_check_legit"))
6074 ui.set(auto_nearest_multi, database.read("auto_nearest_multi_legit"))
6075 ui.set(pistol_hitbox_check, database.read("pistol_hitbox_check_legit"))
6076 ui.set(pistol_nearest_multi, database.read("pistol_nearest_multi_legit"))
6077 ui.set(heavypistol_hitbox_check, database.read("heavypistol_hitbox_check_legit"))
6078 ui.set(heavypistol_nearest_multi, database.read("heavypistol_nearest_multi_legit"))
6079 ui.set(rifle_hitbox_check, database.read("rifle_hitbox_check_legit"))
6080 ui.set(rifle_nearest_multi, database.read("rifle_nearest_multi_legit"))
6081 ui.set(awp_hitbox_check, database.read("awp_hitbox_check_legit"))
6082 ui.set(awp_nearest_multi, database.read("awp_nearest_multi_legit"))
6083 ui.set(scout_hitbox_check, database.read("scout_hitbox_check_legit"))
6084 ui.set(scout_nearest_multi, database.read("scout_nearest_multi_legit"))
6085 ui.set(overridebutton, database.read("overridebutton_legit"))
6086 ui.set(resolverselect, database.read("resolverselect_legit"))
6087 ui.set(legitbotimprovements, database.read("legitbotimprovements_legit"))
6088 ui.set(enablecflcombo, database.read("enablecflcombo_legit"))
6089 ui.set(slowvariance, database.read("slowvariance_legit"))
6090 ui.set(slowlimit, database.read("slowlimit_legit"))
6091 ui.set(slowamount, database.read("slowamount_legit"))
6092 ui.set(movevariance, database.read("movevariance_legit"))
6093 ui.set(movelimit, database.read("movelimit_legit"))
6094 ui.set(moveamount, database.read("moveamount_legit"))
6095 ui.set(standvariance, database.read("standvariance_legit"))
6096 ui.set(standlimit, database.read("standlimit_legit"))
6097 ui.set(standamount, database.read("standamount_legit"))
6098 ui.set(jumpvariance, database.read("jumpvariance_legit"))
6099 ui.set(jumplimit, database.read("jumplimit_legit"))
6100 ui.set(jumpamount, database.read("jumpamount_legit"))
6101 ui.set(talkshitenable, database.read("talkshitenable_legit"))
6102 ui.set(talkshittype, database.read("talkshittype_legit"))
6103 ui.set(advancedlog, database.read("advancedlog_legit"))
6104 ui.set(log_options, database.read("log_options_legit"))
6105 ui.set(log_type, database.read("log_type_legit"))
6106 ui.set(ngahooktag_enabled, database.read("ngahooktag_enabled_legit"))
6107 ui.set(legitAA, database.read("legitAA_legit"))
6108 ui.set(legitAAbase, database.read("legitAAbase_legit"))
6109 ui.set(legitaa_freestand_type, database.read("legitaa_freestand_type_legit"))
6110 ui.set(legitaasafe, database.read("legitaasafe_legit"))
6111 ui.set(disableaaping, database.read("disableaaping_legit"))
6112 ui.set(disableaafps, database.read("disableaafps_legit"))
6113 ui.set(LegitAABreaker, database.read("LegitAABreaker_legit"))
6114 ui.set(brutemode2, database.read("brutemode2_legit"))
6115 ui.set(ui_indicator_combobox4, database.read("ui_indicator_combobox4_legit"))
6116 ui.set(ui_indicator_color_picker4, database.read("ui_indicator_color_picker4_legit"))
6117 ui.set(enableaawm, database.read("enableaawm_legit"))
6118 ui.set(legitaamoving, database.read("legitaamoving_legit"))
6119 ui.set(slowmode, database.read("slowmode_legit"))
6120 ui.set(movemode, database.read("movemode_legit"))
6121 ui.set(standmode, database.read("standmode_legit"))
6122 end ;
6123 if ui.get(config_presets) == "Semi legit" then
6124 ui.set(tm_cb, database.read("triggermag_semilegit"))
6125 ui.set(auto_dynamicfov_enable, database.read("auto_dynamic_fov_check_semilegit"))
6126 ui.set(dynamicfov_minauto, database.read("auto_dynamic_fov_min_semilegit"))
6127 ui.set(dynamicfov_maxauto, database.read("auto_dynamic_fov_max_semilegit"))
6128 ui.set(pistol_dynamicfov_enable, database.read("pistol_dynamic_fov_check_semilegit"))
6129 ui.set(dynamicfov_minpistol, database.read("pistol_dynamic_fov_min_semilegit"))
6130 ui.set(dynamicfov_maxpistol, database.read("pistol_dynamic_fov_max_semilegit"))
6131 ui.set(heavypistol_dynamicfov_enable, database.read("heavypistol_dynamic_fov_check_semilegit"))
6132 ui.set(dynamicfov_minheavypistol, database.read("heavypistol_dynamic_fov_min_semilegit"))
6133 ui.set(dynamicfov_maxheavypistol, database.read("heavypistol_dynamic_fov_max_semilegit"))
6134 ui.set(rifle_dynamicfov_enable, database.read("rifle_dynamic_fov_check_semilegit"))
6135 ui.set(dynamicfov_minrifle, database.read("rifle_dynamic_fov_min_semilegit"))
6136 ui.set(dynamicfov_maxrifle, database.read("rifle_dynamic_fov_max_semilegit"))
6137 ui.set(awp_dynamicfov_enable, database.read("awp_dynamic_fov_check_semilegit"))
6138 ui.set(dynamicfov_minawp, database.read("awp_dynamic_fov_min_semilegit"))
6139 ui.set(dynamicfov_maxawp, database.read("awp_dynamic_fov_max_semilegit"))
6140 ui.set(scout_dynamicfov_enable, database.read("scout_dynamic_fov_check_semilegit"))
6141 ui.set(dynamicfov_minscout, database.read("scout_dynamic_fov_min_semilegit"))
6142 ui.set(dynamicfov_maxscout, database.read("scout_dynamic_fov_max_semilegit"))
6143 ui.set(global_dynamicfov_enable, database.read("other_dynamic_fov_check_semilegit"))
6144 ui.set(dynamicfov_minother, database.read("other_dynamic_fov_min_semilegit"))
6145 ui.set(dynamicfov_maxother, database.read("other_dynamic_fov_max_semilegit"))
6146 ui.set(auto_autowall_check, database.read("auto_autowall_check_semilegit"))
6147 ui.set(auto_auto_autowall, database.read("auto_auto_autowall_semilegit"))
6148 ui.set(auto_dynamicfov_minaw, database.read("auto_dynamicfov_minaw_semilegit"))
6149 ui.set(auto_dynamicfov_maxaw, database.read("auto_dynamicfov_maxaw_semilegit"))
6150 ui.set(dynamicfov_auto_factor_autoaw, database.read("dynamicfov_auto_factor_autoaw_semilegit"))
6151 ui.set(auto_legit_pen_threshold_ref, database.read("auto_legit_pen_threshold_ref_semilegit"))
6152 ui.set(pistol_autowall_check, database.read("pistol_autowall_check_semilegit"))
6153 ui.set(pistol_auto_autowall, database.read("pistol_auto_autowall_semilegit"))
6154 ui.set(pistol_dynamicfov_minaw, database.read("pistol_dynamicfov_minaw_semilegit"))
6155 ui.set(pistol_dynamicfov_maxaw, database.read("pistol_dynamicfov_maxaw_semilegit"))
6156 ui.set(dynamicfov_auto_factor_pistolaw, database.read("dynamicfov_auto_factor_pistolaw_semilegit"))
6157 ui.set(pistol_legit_pen_threshold_ref, database.read("pistol_legit_pen_threshold_ref_semilegit"))
6158 ui.set(heavypistol_autowall_check, database.read("heavypistol_autowall_check_semilegit"))
6159 ui.set(heavypistol_auto_autowall, database.read("heavypistol_auto_autowall_semilegit"))
6160 ui.set(heavypistol_dynamicfov_minaw, database.read("heavypistol_dynamicfov_minaw_semilegit"))
6161 ui.set(heavypistol_dynamicfov_maxaw, database.read("heavypistol_dynamicfov_maxaw_semilegit"))
6162 ui.set(dynamicfov_auto_factor_heavypistolaw, database.read("dynamicfov_auto_factor_heavypistolaw_semilegit"))
6163 ui.set(heavypistol_legit_pen_threshold_ref, database.read("heavypistol_legit_pen_threshold_ref_semilegit"))
6164 ui.set(rifle_autowall_check, database.read("rifle_autowall_check_semilegit"))
6165 ui.set(rifle_auto_autowall, database.read("rifle_auto_autowall_semilegit"))
6166 ui.set(rifle_dynamicfov_minaw, database.read("rifle_dynamicfov_minaw_semilegit"))
6167 ui.set(rifle_dynamicfov_maxaw, database.read("rifle_dynamicfov_maxaw_semilegit"))
6168 ui.set(dynamicfov_auto_factor_rifleaw, database.read("dynamicfov_auto_factor_rifleaw_semilegit"))
6169 ui.set(rifle_legit_pen_threshold_ref, database.read("rifle_legit_pen_threshold_ref_semilegit"))
6170 ui.set(awp_autowall_check, database.read("awp_autowall_check_semilegit"))
6171 ui.set(awp_auto_autowall, database.read("awp_auto_autowall_semilegit"))
6172 ui.set(awp_dynamicfov_minaw, database.read("awp_dynamicfov_minaw_semilegit"))
6173 ui.set(awp_dynamicfov_maxaw, database.read("awp_dynamicfov_maxaw_semilegit"))
6174 ui.set(dynamicfov_auto_factor_awpaw, database.read("dynamicfov_auto_factor_awpaw_semilegit"))
6175 ui.set(awp_legit_pen_threshold_ref, database.read("awp_legit_pen_threshold_ref_semilegit"))
6176 ui.set(scout_autowall_check, database.read("scout_autowall_check_semilegit"))
6177 ui.set(scout_auto_autowall, database.read("scout_auto_autowall_semilegit"))
6178 ui.set(scout_dynamicfov_minaw, database.read("scout_dynamicfov_minaw_semilegit"))
6179 ui.set(scout_dynamicfov_maxaw, database.read("scout_dynamicfov_maxaw_semilegit"))
6180 ui.set(dynamicfov_auto_factor_scoutaw, database.read("dynamicfov_auto_factor_scoutaw_semilegit"))
6181 ui.set(scout_legit_pen_threshold_ref, database.read("scout_legit_pen_threshold_ref_semilegit"))
6182 ui.set(non_adaptive_aw_check, database.read("non_adaptive_aw_check_semilegit"))
6183 ui.set(non_adaptive_auto_autowall, database.read("non_adaptive_auto_autowall_semilegit"))
6184 ui.set(beforedelay, database.read("beforedelay_semilegit"))
6185 ui.set(autodely, database.read("autodely_semilegit"))
6186 ui.set(_autowall_mode_auto_trigger_delay, database.read("_autowall_mode_auto_trigger_delay_semilegit"))
6187 ui.set(autowalldamage_position, database.read("autowalldamage_position_semilegit"))
6188 ui.set(autowalldamage_color, database.read("autowalldamage_color_semilegit"))
6189 ui.set(autowalldamage_type, database.read("autowalldamage_type_semilegit"))
6190 ui.set(autowalldamage_colorhead, database.read("autowalldamage_colorhead_semilegit"))
6191 ui.set(autowalldamage_colorbody, database.read("autowalldamage_colorbody_semilegit"))
6192 ui.set(indicate_enable, database.read("indicate_enable_semilegit"))
6193 ui.set(indicate_on, database.read("indicate_on_semilegit"))
6194 ui.set(indicate_color, database.read("indicate_color_semilegit"))
6195 ui.set(indicate_select, database.read("indicate_select_semilegit"))
6196 ui.set(indicateposition, database.read("indicateposition_semilegit"))
6197 ui.set(flag_enable, database.read("flag_enable_semilegit"))
6198 ui.set(flag_color, database.read("flag_color_semilegit"))
6199 ui.set(flag_select, database.read("flag_select_semilegit"))
6200 ui.set(flcheckbox, database.read("flcheckbox_semilegit"))
6201 ui.set(flmulti, database.read("flmulti_semilegit"))
6202 ui.set(auto_silentcheck, database.read("auto_silentcheck_semilegit"))
6203 ui.set(auto_silentmulti, database.read("auto_silentmulti_semilegit"))
6204 ui.set(auto_silentfovslider, database.read("auto_silentfovslider_semilegit"))
6205 ui.set(auto_silentdistance, database.read("auto_silentdistance_semilegit"))
6206 ui.set(global_silentcheck, database.read("global_silentcheck_semilegit"))
6207 ui.set(global_silentmulti, database.read("global_silentmulti_semilegit"))
6208 ui.set(global_silentfovslider, database.read("global_silentfovslider_semilegit"))
6209 ui.set(global_silentdistance, database.read("global_silentdistance_semilegit"))
6210 ui.set(pistol_silentcheck, database.read("pistol_silentcheck_semilegit"))
6211 ui.set(pistol_silentmulti, database.read("pistol_silentmulti_semilegit"))
6212 ui.set(pistol_silentfovslider, database.read("pistol_silentfovslider_semilegit"))
6213 ui.set(pistol_silentdistance, database.read("pistol_silentdistance_semilegit"))
6214 ui.set(heavypistol_silentcheck, database.read("heavypistol_silentcheck_semilegit"))
6215 ui.set(heavypistol_silentmulti, database.read("heavypistol_silentmulti_semilegit"))
6216 ui.set(heavypistol_silentfovslider, database.read("heavypistol_silentfovslider_semilegit"))
6217 ui.set(heavypistol_silentdistance, database.read("heavypistol_silentdistance_semilegit"))
6218 ui.set(rifle_silentcheck, database.read("rifle_silentcheck_semilegit"))
6219 ui.set(rifle_silentmulti, database.read("rifle_silentmulti_semilegit"))
6220 ui.set(rifle_silentfovslider, database.read("rifle_silentfovslider_semilegit"))
6221 ui.set(rifle_silentdistance, database.read("rifle_silentdistance_semilegit"))
6222 ui.set(awp_silentcheck, database.read("awp_silentcheck_semilegit"))
6223 ui.set(awp_silentmulti, database.read("awp_silentmulti_semilegit"))
6224 ui.set(awp_silentfovslider, database.read("awp_silentfovslider_semilegit"))
6225 ui.set(awp_silentdistance, database.read("awp_silentdistance_semilegit"))
6226 ui.set(scout_silentcheck, database.read("scout_silentcheck_semilegit"))
6227 ui.set(scout_silentmulti, database.read("scout_silentmulti_semilegit"))
6228 ui.set(scout_silentfovslider, database.read("scout_silentfovslider_semilegit"))
6229 ui.set(scout_silentdistance, database.read("scout_silentdistance_semilegit"))
6230 ui.set(non_adaptive_silentcheck, database.read("non_adaptive_silentcheck_semilegit"))
6231 ui.set(non_adaptive_silentaim, database.read("non_adaptive_silentaim_semilegit"))
6232 ui.set(auto_mindmg_check, database.read("auto_mindmg_check_semilegit"))
6233 ui.set(auto_mindmg_multi, database.read("auto_mindmg_multi_semilegit"))
6234 ui.set(auto_visible_mindmg, database.read("auto_visible_mindmg_semilegit"))
6235 ui.set(auto_nonvisible_mindmg, database.read("auto_nonvisible_mindmg_semilegit"))
6236 ui.set(global_mindmg_check, database.read("global_mindmg_check_semilegit"))
6237 ui.set(global_mindmg_multi, database.read("global_mindmg_multi_semilegit"))
6238 ui.set(global_visible_mindmg, database.read("global_visible_mindmg_semilegit"))
6239 ui.set(global_nonvisible_mindmg, database.read("global_nonvisible_mindmg_semilegit"))
6240 ui.set(pistol_mindmg_check, database.read("pistol_mindmg_check_semilegit"))
6241 ui.set(pistol_mindmg_multi, database.read("pistol_mindmg_multi_semilegit"))
6242 ui.set(pistol_visible_mindmg, database.read("pistol_visible_mindmg_semilegit"))
6243 ui.set(pistol_nonvisible_mindmg, database.read("pistol_nonvisible_mindmg_semilegit"))
6244 ui.set(heavypistol_mindmg_check, database.read("heavypistol_mindmg_check_semilegit"))
6245 ui.set(heavypistol_mindmg_multi, database.read("heavypistol_mindmg_multi_semilegit"))
6246 ui.set(heavypistol_visible_mindmg, database.read("heavypistol_visible_mindmg_semilegit"))
6247 ui.set(heavypistol_nonvisible_mindmg, database.read("heavypistol_nonvisible_mindmg_semilegit"))
6248 ui.set(rifle_mindmg_check, database.read("rifle_mindmg_check_semilegit"))
6249 ui.set(rifle_mindmg_multi, database.read("rifle_mindmg_multi_semilegit"))
6250 ui.set(rifle_visible_mindmg, database.read("rifle_visible_mindmg_semilegit"))
6251 ui.set(rifle_nonvisible_mindmg, database.read("rifle_nonvisible_mindmg_semilegit"))
6252 ui.set(awp_mindmg_check, database.read("awp_mindmg_check_semilegit"))
6253 ui.set(awp_mindmg_multi, database.read("awp_mindmg_multi_semilegit"))
6254 ui.set(awp_visible_mindmg, database.read("awp_visible_mindmg_semilegit"))
6255 ui.set(awp_nonvisible_mindmg, database.read("awp_nonvisible_mindmg_semilegit"))
6256 ui.set(scout_mindmg_check, database.read("scout_mindmg_check_semilegit"))
6257 ui.set(scout_mindmg_multi, database.read("scout_mindmg_multi_semilegit"))
6258 ui.set(scout_visible_mindmg, database.read("scout_visible_mindmg_semilegit"))
6259 ui.set(scout_nonvisible_mindmg, database.read("scout_nonvisible_mindmg_semilegit"))
6260 ui.set(auto_hitbox_check, database.read("auto_hitbox_check_semilegit"))
6261 ui.set(auto_nearest_multi, database.read("auto_nearest_multi_semilegit"))
6262 ui.set(pistol_hitbox_check, database.read("pistol_hitbox_check_semilegit"))
6263 ui.set(pistol_nearest_multi, database.read("pistol_nearest_multi_semilegit"))
6264 ui.set(heavypistol_hitbox_check, database.read("heavypistol_hitbox_check_semilegit"))
6265 ui.set(heavypistol_nearest_multi, database.read("heavypistol_nearest_multi_semilegit"))
6266 ui.set(rifle_hitbox_check, database.read("rifle_hitbox_check_semilegit"))
6267 ui.set(rifle_nearest_multi, database.read("rifle_nearest_multi_semilegit"))
6268 ui.set(awp_hitbox_check, database.read("awp_hitbox_check_semilegit"))
6269 ui.set(awp_nearest_multi, database.read("awp_nearest_multi_semilegit"))
6270 ui.set(scout_hitbox_check, database.read("scout_hitbox_check_semilegit"))
6271 ui.set(scout_nearest_multi, database.read("scout_nearest_multi_semilegit"))
6272 ui.set(overridebutton, database.read("overridebutton_semilegit"))
6273 ui.set(resolverselect, database.read("resolverselect_semilegit"))
6274 ui.set(legitbotimprovements, database.read("legitbotimprovements_semilegit"))
6275 ui.set(enablecflcombo, database.read("enablecflcombo_semilegit"))
6276 ui.set(slowvariance, database.read("slowvariance_semilegit"))
6277 ui.set(slowlimit, database.read("slowlimit_semilegit"))
6278 ui.set(slowamount, database.read("slowamount_semilegit"))
6279 ui.set(movevariance, database.read("movevariance_semilegit"))
6280 ui.set(movelimit, database.read("movelimit_semilegit"))
6281 ui.set(moveamount, database.read("moveamount_semilegit"))
6282 ui.set(standvariance, database.read("standvariance_semilegit"))
6283 ui.set(standlimit, database.read("standlimit_semilegit"))
6284 ui.set(standamount, database.read("standamount_semilegit"))
6285 ui.set(jumpvariance, database.read("jumpvariance_semilegit"))
6286 ui.set(jumplimit, database.read("jumplimit_semilegit"))
6287 ui.set(jumpamount, database.read("jumpamount_semilegit"))
6288 ui.set(talkshitenable, database.read("talkshitenable_semilegit"))
6289 ui.set(talkshittype, database.read("talkshittype_semilegit"))
6290 ui.set(advancedlog, database.read("advancedlog_semilegit"))
6291 ui.set(log_options, database.read("log_options_semilegit"))
6292 ui.set(log_type, database.read("log_type_semilegit"))
6293 ui.set(ngahooktag_enabled, database.read("ngahooktag_enabled_semilegit"))
6294 ui.set(legitAA, database.read("legitAA_semilegit"))
6295 ui.set(legitAAbase, database.read("legitAAbase_semilegit"))
6296 ui.set(legitaa_freestand_type, database.read("legitaa_freestand_type_semilegit"))
6297 ui.set(legitaasafe, database.read("legitaasafe_semilegit"))
6298 ui.set(disableaaping, database.read("disableaaping_semilegit"))
6299 ui.set(disableaafps, database.read("disableaafps_semilegit"))
6300 ui.set(LegitAABreaker, database.read("LegitAABreaker_semilegit"))
6301 ui.set(brutemode2, database.read("brutemode2_semilegit"))
6302 ui.set(ui_indicator_combobox4, database.read("ui_indicator_combobox4_semilegit"))
6303 ui.set(ui_indicator_color_picker4, database.read("ui_indicator_color_picker4_semilegit"))
6304 ui.set(enableaawm, database.read("enableaawm_semilegit"))
6305 ui.set(legitaamoving, database.read("legitaamoving_semilegit"))
6306 ui.set(slowmode, database.read("slowmode_semilegit"))
6307 ui.set(movemode, database.read("movemode_semilegit"))
6308 ui.set(standmode, database.read("standmode_semilegit"))
6309 end ;
6310 if ui.get(config_presets) == "Semirage" then
6311 ui.set(tm_cb, database.read("triggermag_semirage"))
6312 ui.set(auto_dynamicfov_enable, database.read("auto_dynamic_fov_check_semirage"))
6313 ui.set(dynamicfov_minauto, database.read("auto_dynamic_fov_min_semirage"))
6314 ui.set(dynamicfov_maxauto, database.read("auto_dynamic_fov_max_semirage"))
6315 ui.set(pistol_dynamicfov_enable, database.read("pistol_dynamic_fov_check_semirage"))
6316 ui.set(dynamicfov_minpistol, database.read("pistol_dynamic_fov_min_semirage"))
6317 ui.set(dynamicfov_maxpistol, database.read("pistol_dynamic_fov_max_semirage"))
6318 ui.set(heavypistol_dynamicfov_enable, database.read("heavypistol_dynamic_fov_check_semirage"))
6319 ui.set(dynamicfov_minheavypistol, database.read("heavypistol_dynamic_fov_min_semirage"))
6320 ui.set(dynamicfov_maxheavypistol, database.read("heavypistol_dynamic_fov_max_semirage"))
6321 ui.set(rifle_dynamicfov_enable, database.read("rifle_dynamic_fov_check_semirage"))
6322 ui.set(dynamicfov_minrifle, database.read("rifle_dynamic_fov_min_semirage"))
6323 ui.set(dynamicfov_maxrifle, database.read("rifle_dynamic_fov_max_semirage"))
6324 ui.set(awp_dynamicfov_enable, database.read("awp_dynamic_fov_check_semirage"))
6325 ui.set(dynamicfov_minawp, database.read("awp_dynamic_fov_min_semirage"))
6326 ui.set(dynamicfov_maxawp, database.read("awp_dynamic_fov_max_semirage"))
6327 ui.set(scout_dynamicfov_enable, database.read("scout_dynamic_fov_check_semirage"))
6328 ui.set(dynamicfov_minscout, database.read("scout_dynamic_fov_min_semirage"))
6329 ui.set(dynamicfov_maxscout, database.read("scout_dynamic_fov_max_semirage"))
6330 ui.set(global_dynamicfov_enable, database.read("other_dynamic_fov_check_semirage"))
6331 ui.set(dynamicfov_minother, database.read("other_dynamic_fov_min_semirage"))
6332 ui.set(dynamicfov_maxother, database.read("other_dynamic_fov_max_semirage"))
6333 ui.set(auto_autowall_check, database.read("auto_autowall_check_semirage"))
6334 ui.set(auto_auto_autowall, database.read("auto_auto_autowall_semirage"))
6335 ui.set(auto_dynamicfov_minaw, database.read("auto_dynamicfov_minaw_semirage"))
6336 ui.set(auto_dynamicfov_maxaw, database.read("auto_dynamicfov_maxaw_semirage"))
6337 ui.set(dynamicfov_auto_factor_autoaw, database.read("dynamicfov_auto_factor_autoaw_semirage"))
6338 ui.set(auto_legit_pen_threshold_ref, database.read("auto_legit_pen_threshold_ref_semirage"))
6339 ui.set(pistol_autowall_check, database.read("pistol_autowall_check_semirage"))
6340 ui.set(pistol_auto_autowall, database.read("pistol_auto_autowall_semirage"))
6341 ui.set(pistol_dynamicfov_minaw, database.read("pistol_dynamicfov_minaw_semirage"))
6342 ui.set(pistol_dynamicfov_maxaw, database.read("pistol_dynamicfov_maxaw_semirage"))
6343 ui.set(dynamicfov_auto_factor_pistolaw, database.read("dynamicfov_auto_factor_pistolaw_semirage"))
6344 ui.set(pistol_legit_pen_threshold_ref, database.read("pistol_legit_pen_threshold_ref_semirage"))
6345 ui.set(heavypistol_autowall_check, database.read("heavypistol_autowall_check_semirage"))
6346 ui.set(heavypistol_auto_autowall, database.read("heavypistol_auto_autowall_semirage"))
6347 ui.set(heavypistol_dynamicfov_minaw, database.read("heavypistol_dynamicfov_minaw_semirage"))
6348 ui.set(heavypistol_dynamicfov_maxaw, database.read("heavypistol_dynamicfov_maxaw_semirage"))
6349 ui.set(dynamicfov_auto_factor_heavypistolaw, database.read("dynamicfov_auto_factor_heavypistolaw_semirage"))
6350 ui.set(heavypistol_legit_pen_threshold_ref, database.read("heavypistol_legit_pen_threshold_ref_semirage"))
6351 ui.set(rifle_autowall_check, database.read("rifle_autowall_check_semirage"))
6352 ui.set(rifle_auto_autowall, database.read("rifle_auto_autowall_semirage"))
6353 ui.set(rifle_dynamicfov_minaw, database.read("rifle_dynamicfov_minaw_semirage"))
6354 ui.set(rifle_dynamicfov_maxaw, database.read("rifle_dynamicfov_maxaw_semirage"))
6355 ui.set(dynamicfov_auto_factor_rifleaw, database.read("dynamicfov_auto_factor_rifleaw_semirage"))
6356 ui.set(rifle_legit_pen_threshold_ref, database.read("rifle_legit_pen_threshold_ref_semirage"))
6357 ui.set(awp_autowall_check, database.read("awp_autowall_check_semirage"))
6358 ui.set(awp_auto_autowall, database.read("awp_auto_autowall_semirage"))
6359 ui.set(awp_dynamicfov_minaw, database.read("awp_dynamicfov_minaw_semirage"))
6360 ui.set(awp_dynamicfov_maxaw, database.read("awp_dynamicfov_maxaw_semirage"))
6361 ui.set(dynamicfov_auto_factor_awpaw, database.read("dynamicfov_auto_factor_awpaw_semirage"))
6362 ui.set(awp_legit_pen_threshold_ref, database.read("awp_legit_pen_threshold_ref_semirage"))
6363 ui.set(scout_autowall_check, database.read("scout_autowall_check_semirage"))
6364 ui.set(scout_auto_autowall, database.read("scout_auto_autowall_semirage"))
6365 ui.set(scout_dynamicfov_minaw, database.read("scout_dynamicfov_minaw_semirage"))
6366 ui.set(scout_dynamicfov_maxaw, database.read("scout_dynamicfov_maxaw_semirage"))
6367 ui.set(dynamicfov_auto_factor_scoutaw, database.read("dynamicfov_auto_factor_scoutaw_semirage"))
6368 ui.set(scout_legit_pen_threshold_ref, database.read("scout_legit_pen_threshold_ref_semirage"))
6369 ui.set(non_adaptive_aw_check, database.read("non_adaptive_aw_check_semirage"))
6370 ui.set(non_adaptive_auto_autowall, database.read("non_adaptive_auto_autowall_semirage"))
6371 ui.set(autodely, database.read("autodely_semirage"))
6372 ui.set(_autowall_mode_auto_trigger_delay, database.read("_autowall_mode_auto_trigger_delay_semirage"))
6373 ui.set(autowalldamage_position, database.read("autowalldamage_position_semirage"))
6374 ui.set(autowalldamage_color, database.read("autowalldamage_color_semirage"))
6375 ui.set(autowalldamage_type, database.read("autowalldamage_type_semirage"))
6376 ui.set(autowalldamage_colorhead, database.read("autowalldamage_colorhead_semirage"))
6377 ui.set(autowalldamage_colorbody, database.read("autowalldamage_colorbody_semirage"))
6378 ui.set(indicate_enable, database.read("indicate_enable_semirage"))
6379 ui.set(indicate_on, database.read("indicate_on_semirage"))
6380 ui.set(indicate_color, database.read("indicate_color_semirage"))
6381 ui.set(indicate_select, database.read("indicate_select_semirage"))
6382 ui.set(indicateposition, database.read("indicateposition_semirage"))
6383 ui.set(flag_enable, database.read("flag_enable_semirage"))
6384 ui.set(flag_color, database.read("flag_color_semirage"))
6385 ui.set(flag_select, database.read("flag_select_semirage"))
6386 ui.set(flcheckbox, database.read("flcheckbox_semirage"))
6387 ui.set(flmulti, database.read("flmulti_semirage"))
6388 ui.set(auto_silentcheck, database.read("auto_silentcheck_semirage"))
6389 ui.set(auto_silentmulti, database.read("auto_silentmulti_semirage"))
6390 ui.set(auto_silentfovslider, database.read("auto_silentfovslider_semirage"))
6391 ui.set(auto_silentdistance, database.read("auto_silentdistance_semirage"))
6392 ui.set(global_silentcheck, database.read("global_silentcheck_semirage"))
6393 ui.set(global_silentmulti, database.read("global_silentmulti_semirage"))
6394 ui.set(global_silentfovslider, database.read("global_silentfovslider_semirage"))
6395 ui.set(global_silentdistance, database.read("global_silentdistance_semirage"))
6396 ui.set(pistol_silentcheck, database.read("pistol_silentcheck_semirage"))
6397 ui.set(pistol_silentmulti, database.read("pistol_silentmulti_semirage"))
6398 ui.set(pistol_silentfovslider, database.read("pistol_silentfovslider_semirage"))
6399 ui.set(pistol_silentdistance, database.read("pistol_silentdistance_semirage"))
6400 ui.set(heavypistol_silentcheck, database.read("heavypistol_silentcheck_semirage"))
6401 ui.set(heavypistol_silentmulti, database.read("heavypistol_silentmulti_semirage"))
6402 ui.set(heavypistol_silentfovslider, database.read("heavypistol_silentfovslider_semirage"))
6403 ui.set(heavypistol_silentdistance, database.read("heavypistol_silentdistance_semirage"))
6404 ui.set(rifle_silentcheck, database.read("rifle_silentcheck_semirage"))
6405 ui.set(rifle_silentmulti, database.read("rifle_silentmulti_semirage"))
6406 ui.set(rifle_silentfovslider, database.read("rifle_silentfovslider_semirage"))
6407 ui.set(rifle_silentdistance, database.read("rifle_silentdistance_semirage"))
6408 ui.set(awp_silentcheck, database.read("awp_silentcheck_semirage"))
6409 ui.set(awp_silentmulti, database.read("awp_silentmulti_semirage"))
6410 ui.set(awp_silentfovslider, database.read("awp_silentfovslider_semirage"))
6411 ui.set(awp_silentdistance, database.read("awp_silentdistance_semirage"))
6412 ui.set(scout_silentcheck, database.read("scout_silentcheck_semirage"))
6413 ui.set(scout_silentmulti, database.read("scout_silentmulti_semirage"))
6414 ui.set(scout_silentfovslider, database.read("scout_silentfovslider_semirage"))
6415 ui.set(scout_silentdistance, database.read("scout_silentdistance_semirage"))
6416 ui.set(non_adaptive_silentcheck, database.read("non_adaptive_silentcheck_semirage"))
6417 ui.set(non_adaptive_silentaim, database.read("non_adaptive_silentaim_semirage"))
6418 ui.set(auto_mindmg_check, database.read("auto_mindmg_check_semirage"))
6419 ui.set(auto_mindmg_multi, database.read("auto_mindmg_multi_semirage"))
6420 ui.set(auto_visible_mindmg, database.read("auto_visible_mindmg_semirage"))
6421 ui.set(auto_nonvisible_mindmg, database.read("auto_nonvisible_mindmg_semirage"))
6422 ui.set(global_mindmg_check, database.read("global_mindmg_check_semirage"))
6423 ui.set(global_mindmg_multi, database.read("global_mindmg_multi_semirage"))
6424 ui.set(global_visible_mindmg, database.read("global_visible_mindmg_semirage"))
6425 ui.set(global_nonvisible_mindmg, database.read("global_nonvisible_mindmg_semirage"))
6426 ui.set(pistol_mindmg_check, database.read("pistol_mindmg_check_semirage"))
6427 ui.set(pistol_mindmg_multi, database.read("pistol_mindmg_multi_semirage"))
6428 ui.set(pistol_visible_mindmg, database.read("pistol_visible_mindmg_semirage"))
6429 ui.set(pistol_nonvisible_mindmg, database.read("pistol_nonvisible_mindmg_semirage"))
6430 ui.set(heavypistol_mindmg_check, database.read("heavypistol_mindmg_check_semirage"))
6431 ui.set(heavypistol_mindmg_multi, database.read("heavypistol_mindmg_multi_semirage"))
6432 ui.set(heavypistol_visible_mindmg, database.read("heavypistol_visible_mindmg_semirage"))
6433 ui.set(heavypistol_nonvisible_mindmg, database.read("heavypistol_nonvisible_mindmg_semirage"))
6434 ui.set(rifle_mindmg_check, database.read("rifle_mindmg_check_semirage"))
6435 ui.set(rifle_mindmg_multi, database.read("rifle_mindmg_multi_semirage"))
6436 ui.set(rifle_visible_mindmg, database.read("rifle_visible_mindmg_semirage"))
6437 ui.set(rifle_nonvisible_mindmg, database.read("rifle_nonvisible_mindmg_semirage"))
6438 ui.set(awp_mindmg_check, database.read("awp_mindmg_check_semirage"))
6439 ui.set(awp_mindmg_multi, database.read("awp_mindmg_multi_semirage"))
6440 ui.set(awp_visible_mindmg, database.read("awp_visible_mindmg_semirage"))
6441 ui.set(awp_nonvisible_mindmg, database.read("awp_nonvisible_mindmg_semirage"))
6442 ui.set(scout_mindmg_check, database.read("scout_mindmg_check_semirage"))
6443 ui.set(scout_mindmg_multi, database.read("scout_mindmg_multi_semirage"))
6444 ui.set(scout_visible_mindmg, database.read("scout_visible_mindmg_semirage"))
6445 ui.set(scout_nonvisible_mindmg, database.read("scout_nonvisible_mindmg_semirage"))
6446 ui.set(auto_hitbox_check, database.read("auto_hitbox_check_semirage"))
6447 ui.set(auto_nearest_multi, database.read("auto_nearest_multi_semirage"))
6448 ui.set(pistol_hitbox_check, database.read("pistol_hitbox_check_semirage"))
6449 ui.set(pistol_nearest_multi, database.read("pistol_nearest_multi_semirage"))
6450 ui.set(heavypistol_hitbox_check, database.read("heavypistol_hitbox_check_semirage"))
6451 ui.set(heavypistol_nearest_multi, database.read("heavypistol_nearest_multi_semirage"))
6452 ui.set(rifle_hitbox_check, database.read("rifle_hitbox_check_semirage"))
6453 ui.set(rifle_nearest_multi, database.read("rifle_nearest_multi_semirage"))
6454 ui.set(awp_hitbox_check, database.read("awp_hitbox_check_semirage"))
6455 ui.set(awp_nearest_multi, database.read("awp_nearest_multi_semirage"))
6456 ui.set(scout_hitbox_check, database.read("scout_hitbox_check_semirage"))
6457 ui.set(scout_nearest_multi, database.read("scout_nearest_multi_semirage"))
6458 ui.set(overridebutton, database.read("overridebutton_semirage"))
6459 ui.set(resolverselect, database.read("resolverselect_semirage"))
6460 ui.set(legitbotimprovements, database.read("legitbotimprovements_semirage"))
6461 ui.set(enablecflcombo, database.read("enablecflcombo_semirage"))
6462 ui.set(slowvariance, database.read("slowvariance_semirage"))
6463 ui.set(slowlimit, database.read("slowlimit_semirage"))
6464 ui.set(slowamount, database.read("slowamount_semirage"))
6465 ui.set(movevariance, database.read("movevariance_semirage"))
6466 ui.set(movelimit, database.read("movelimit_semirage"))
6467 ui.set(moveamount, database.read("moveamount_semirage"))
6468 ui.set(standvariance, database.read("standvariance_semirage"))
6469 ui.set(standlimit, database.read("standlimit_semirage"))
6470 ui.set(standamount, database.read("standamount_semirage"))
6471 ui.set(jumpvariance, database.read("jumpvariance_semirage"))
6472 ui.set(jumplimit, database.read("jumplimit_semirage"))
6473 ui.set(jumpamount, database.read("jumpamount_semirage"))
6474 ui.set(talkshitenable, database.read("talkshitenable_semirage"))
6475 ui.set(talkshittype, database.read("talkshittype_semirage"))
6476 ui.set(advancedlog, database.read("advancedlog_semirage"))
6477 ui.set(log_options, database.read("log_options_semirage"))
6478 ui.set(log_type, database.read("log_type_semirage"))
6479 ui.set(ngahooktag_enabled, database.read("ngahooktag_enabled_semirage"))
6480 ui.set(legitAA, database.read("legitAA_semirage"))
6481 ui.set(legitAAbase, database.read("legitAAbase_semirage"))
6482 ui.set(legitaa_freestand_type, database.read("legitaa_freestand_type_semirage"))
6483 ui.set(legitaasafe, database.read("legitaasafe_semirage"))
6484 ui.set(disableaaping, database.read("disableaaping_semirage"))
6485 ui.set(disableaafps, database.read("disableaafps_semirage"))
6486 ui.set(LegitAABreaker, database.read("LegitAABreaker_semirage"))
6487 ui.set(brutemode2, database.read("brutemode2_semirage"))
6488 ui.set(ui_indicator_combobox4, database.read("ui_indicator_combobox4_semirage"))
6489 ui.set(ui_indicator_color_picker4, database.read("ui_indicator_color_picker4_semirage"))
6490 ui.set(enableaawm, database.read("enableaawm_semirage"))
6491 ui.set(legitaamoving, database.read("legitaamoving_semirage"))
6492 ui.set(slowmode, database.read("slowmode_semirage"))
6493 ui.set(movemode, database.read("movemode_semirage"))
6494 ui.set(standmode, database.read("standmode_semirage"))
6495 end ;
6496 if ui.get(config_presets) == "Rage" then
6497 ui.set(tm_cb, database.read("triggermag_rage"))
6498 ui.set(auto_dynamicfov_enable, database.read("auto_dynamic_fov_check_rage"))
6499 ui.set(dynamicfov_minauto, database.read("auto_dynamic_fov_min_rage"))
6500 ui.set(dynamicfov_maxauto, database.read("auto_dynamic_fov_max_rage"))
6501 ui.set(pistol_dynamicfov_enable, database.read("pistol_dynamic_fov_check_rage"))
6502 ui.set(dynamicfov_minpistol, database.read("pistol_dynamic_fov_min_rage"))
6503 ui.set(dynamicfov_maxpistol, database.read("pistol_dynamic_fov_max_rage"))
6504 ui.set(heavypistol_dynamicfov_enable, database.read("heavypistol_dynamic_fov_check_rage"))
6505 ui.set(dynamicfov_minheavypistol, database.read("heavypistol_dynamic_fov_min_rage"))
6506 ui.set(dynamicfov_maxheavypistol, database.read("heavypistol_dynamic_fov_max_rage"))
6507 ui.set(rifle_dynamicfov_enable, database.read("rifle_dynamic_fov_check_rage"))
6508 ui.set(dynamicfov_minrifle, database.read("rifle_dynamic_fov_min_rage"))
6509 ui.set(dynamicfov_maxrifle, database.read("rifle_dynamic_fov_max_rage"))
6510 ui.set(awp_dynamicfov_enable, database.read("awp_dynamic_fov_check_rage"))
6511 ui.set(dynamicfov_minawp, database.read("awp_dynamic_fov_min_rage"))
6512 ui.set(dynamicfov_maxawp, database.read("awp_dynamic_fov_max_rage"))
6513 ui.set(scout_dynamicfov_enable, database.read("scout_dynamic_fov_check_rage"))
6514 ui.set(dynamicfov_minscout, database.read("scout_dynamic_fov_min_rage"))
6515 ui.set(dynamicfov_maxscout, database.read("scout_dynamic_fov_max_rage"))
6516 ui.set(global_dynamicfov_enable, database.read("other_dynamic_fov_check_rage"))
6517 ui.set(dynamicfov_minother, database.read("other_dynamic_fov_min_rage"))
6518 ui.set(dynamicfov_maxother, database.read("other_dynamic_fov_max_rage"))
6519 ui.set(auto_autowall_check, database.read("auto_autowall_check_rage"))
6520 ui.set(auto_auto_autowall, database.read("auto_auto_autowall_rage"))
6521 ui.set(auto_dynamicfov_minaw, database.read("auto_dynamicfov_minaw_rage"))
6522 ui.set(auto_dynamicfov_maxaw, database.read("auto_dynamicfov_maxaw_rage"))
6523 ui.set(dynamicfov_auto_factor_autoaw, database.read("dynamicfov_auto_factor_autoaw_rage"))
6524 ui.set(auto_legit_pen_threshold_ref, database.read("auto_legit_pen_threshold_ref_rage"))
6525 ui.set(pistol_autowall_check, database.read("pistol_autowall_check_rage"))
6526 ui.set(pistol_auto_autowall, database.read("pistol_auto_autowall_rage"))
6527 ui.set(pistol_dynamicfov_minaw, database.read("pistol_dynamicfov_minaw_rage"))
6528 ui.set(pistol_dynamicfov_maxaw, database.read("pistol_dynamicfov_maxaw_rage"))
6529 ui.set(dynamicfov_auto_factor_pistolaw, database.read("dynamicfov_auto_factor_pistolaw_rage"))
6530 ui.set(pistol_legit_pen_threshold_ref, database.read("pistol_legit_pen_threshold_ref_rage"))
6531 ui.set(heavypistol_autowall_check, database.read("heavypistol_autowall_check_rage"))
6532 ui.set(heavypistol_auto_autowall, database.read("heavypistol_auto_autowall_rage"))
6533 ui.set(heavypistol_dynamicfov_minaw, database.read("heavypistol_dynamicfov_minaw_rage"))
6534 ui.set(heavypistol_dynamicfov_maxaw, database.read("heavypistol_dynamicfov_maxaw_rage"))
6535 ui.set(dynamicfov_auto_factor_heavypistolaw, database.read("dynamicfov_auto_factor_heavypistolaw_rage"))
6536 ui.set(heavypistol_legit_pen_threshold_ref, database.read("heavypistol_legit_pen_threshold_ref_rage"))
6537 ui.set(rifle_autowall_check, database.read("rifle_autowall_check_rage"))
6538 ui.set(rifle_auto_autowall, database.read("rifle_auto_autowall_rage"))
6539 ui.set(rifle_dynamicfov_minaw, database.read("rifle_dynamicfov_minaw_rage"))
6540 ui.set(rifle_dynamicfov_maxaw, database.read("rifle_dynamicfov_maxaw_rage"))
6541 ui.set(dynamicfov_auto_factor_rifleaw, database.read("dynamicfov_auto_factor_rifleaw_rage"))
6542 ui.set(rifle_legit_pen_threshold_ref, database.read("rifle_legit_pen_threshold_ref_rage"))
6543 ui.set(awp_autowall_check, database.read("awp_autowall_check_rage"))
6544 ui.set(awp_auto_autowall, database.read("awp_auto_autowall_rage"))
6545 ui.set(awp_dynamicfov_minaw, database.read("awp_dynamicfov_minaw_rage"))
6546 ui.set(awp_dynamicfov_maxaw, database.read("awp_dynamicfov_maxaw_rage"))
6547 ui.set(dynamicfov_auto_factor_awpaw, database.read("dynamicfov_auto_factor_awpaw_rage"))
6548 ui.set(awp_legit_pen_threshold_ref, database.read("awp_legit_pen_threshold_ref_rage"))
6549 ui.set(scout_autowall_check, database.read("scout_autowall_check_rage"))
6550 ui.set(scout_auto_autowall, database.read("scout_auto_autowall_rage"))
6551 ui.set(scout_dynamicfov_minaw, database.read("scout_dynamicfov_minaw_rage"))
6552 ui.set(scout_dynamicfov_maxaw, database.read("scout_dynamicfov_maxaw_rage"))
6553 ui.set(dynamicfov_auto_factor_scoutaw, database.read("dynamicfov_auto_factor_scoutaw_rage"))
6554 ui.set(scout_legit_pen_threshold_ref, database.read("scout_legit_pen_threshold_ref_rage"))
6555 ui.set(non_adaptive_aw_check, database.read("non_adaptive_aw_check_rage"))
6556 ui.set(non_adaptive_auto_autowall, database.read("non_adaptive_auto_autowall_rage"))
6557 ui.set(beforedelay, database.read("beforedelay_rage"))
6558 ui.set(autodely, database.read("autodely_rage"))
6559 ui.set(_autowall_mode_auto_trigger_delay, database.read("_autowall_mode_auto_trigger_delay_rage"))
6560 ui.set(autowalldamage_position, database.read("autowalldamage_position_rage"))
6561 ui.set(autowalldamage_color, database.read("autowalldamage_color_rage"))
6562 ui.set(autowalldamage_type, database.read("autowalldamage_type_rage"))
6563 ui.set(autowalldamage_colorhead, database.read("autowalldamage_colorhead_rage"))
6564 ui.set(autowalldamage_colorbody, database.read("autowalldamage_colorbody_rage"))
6565 ui.set(indicate_enable, database.read("indicate_enable_rage"))
6566 ui.set(indicate_on, database.read("indicate_on_rage"))
6567 ui.set(indicate_color, database.read("indicate_color_rage"))
6568 ui.set(indicate_select, database.read("indicate_select_rage"))
6569 ui.set(indicateposition, database.read("indicateposition_rage"))
6570 ui.set(flag_enable, database.read("flag_enable_rage"))
6571 ui.set(flag_color, database.read("flag_color_rage"))
6572 ui.set(flag_select, database.read("flag_select_rage"))
6573 ui.set(flcheckbox, database.read("flcheckbox_rage"))
6574 ui.set(flmulti, database.read("flmulti_rage"))
6575 ui.set(auto_silentcheck, database.read("auto_silentcheck_rage"))
6576 ui.set(auto_silentmulti, database.read("auto_silentmulti_rage"))
6577 ui.set(auto_silentfovslider, database.read("auto_silentfovslider_rage"))
6578 ui.set(auto_silentdistance, database.read("auto_silentdistance_rage"))
6579 ui.set(global_silentcheck, database.read("global_silentcheck_rage"))
6580 ui.set(global_silentmulti, database.read("global_silentmulti_rage"))
6581 ui.set(global_silentfovslider, database.read("global_silentfovslider_rage"))
6582 ui.set(global_silentdistance, database.read("global_silentdistance_rage"))
6583 ui.set(pistol_silentcheck, database.read("pistol_silentcheck_rage"))
6584 ui.set(pistol_silentmulti, database.read("pistol_silentmulti_rage"))
6585 ui.set(pistol_silentfovslider, database.read("pistol_silentfovslider_rage"))
6586 ui.set(pistol_silentdistance, database.read("pistol_silentdistance_rage"))
6587 ui.set(heavypistol_silentcheck, database.read("heavypistol_silentcheck_rage"))
6588 ui.set(heavypistol_silentmulti, database.read("heavypistol_silentmulti_rage"))
6589 ui.set(heavypistol_silentfovslider, database.read("heavypistol_silentfovslider_rage"))
6590 ui.set(heavypistol_silentdistance, database.read("heavypistol_silentdistance_rage"))
6591 ui.set(rifle_silentcheck, database.read("rifle_silentcheck_rage"))
6592 ui.set(rifle_silentmulti, database.read("rifle_silentmulti_rage"))
6593 ui.set(rifle_silentfovslider, database.read("rifle_silentfovslider_rage"))
6594 ui.set(rifle_silentdistance, database.read("rifle_silentdistance_rage"))
6595 ui.set(awp_silentcheck, database.read("awp_silentcheck_rage"))
6596 ui.set(awp_silentmulti, database.read("awp_silentmulti_rage"))
6597 ui.set(awp_silentfovslider, database.read("awp_silentfovslider_rage"))
6598 ui.set(awp_silentdistance, database.read("awp_silentdistance_rage"))
6599 ui.set(scout_silentcheck, database.read("scout_silentcheck_rage"))
6600 ui.set(scout_silentmulti, database.read("scout_silentmulti_rage"))
6601 ui.set(scout_silentfovslider, database.read("scout_silentfovslider_rage"))
6602 ui.set(scout_silentdistance, database.read("scout_silentdistance_rage"))
6603 ui.set(non_adaptive_silentcheck, database.read("non_adaptive_silentcheck_rage"))
6604 ui.set(non_adaptive_silentaim, database.read("non_adaptive_silentaim_rage"))
6605 ui.set(auto_mindmg_check, database.read("auto_mindmg_check_rage"))
6606 ui.set(auto_mindmg_multi, database.read("auto_mindmg_multi_rage"))
6607 ui.set(auto_visible_mindmg, database.read("auto_visible_mindmg_rage"))
6608 ui.set(auto_nonvisible_mindmg, database.read("auto_nonvisible_mindmg_rage"))
6609 ui.set(global_mindmg_check, database.read("global_mindmg_check_rage"))
6610 ui.set(global_mindmg_multi, database.read("global_mindmg_multi_rage"))
6611 ui.set(global_visible_mindmg, database.read("global_visible_mindmg_rage"))
6612 ui.set(global_nonvisible_mindmg, database.read("global_nonvisible_mindmg_rage"))
6613 ui.set(pistol_mindmg_check, database.read("pistol_mindmg_check_rage"))
6614 ui.set(pistol_mindmg_multi, database.read("pistol_mindmg_multi_rage"))
6615 ui.set(pistol_visible_mindmg, database.read("pistol_visible_mindmg_rage"))
6616 ui.set(pistol_nonvisible_mindmg, database.read("pistol_nonvisible_mindmg_rage"))
6617 ui.set(heavypistol_mindmg_check, database.read("heavypistol_mindmg_check_rage"))
6618 ui.set(heavypistol_mindmg_multi, database.read("heavypistol_mindmg_multi_rage"))
6619 ui.set(heavypistol_visible_mindmg, database.read("heavypistol_visible_mindmg_rage"))
6620 ui.set(heavypistol_nonvisible_mindmg, database.read("heavypistol_nonvisible_mindmg_rage"))
6621 ui.set(rifle_mindmg_check, database.read("rifle_mindmg_check_rage"))
6622 ui.set(rifle_mindmg_multi, database.read("rifle_mindmg_multi_rage"))
6623 ui.set(rifle_visible_mindmg, database.read("rifle_visible_mindmg_rage"))
6624 ui.set(rifle_nonvisible_mindmg, database.read("rifle_nonvisible_mindmg_rage"))
6625 ui.set(awp_mindmg_check, database.read("awp_mindmg_check_rage"))
6626 ui.set(awp_mindmg_multi, database.read("awp_mindmg_multi_rage"))
6627 ui.set(awp_visible_mindmg, database.read("awp_visible_mindmg_rage"))
6628 ui.set(awp_nonvisible_mindmg, database.read("awp_nonvisible_mindmg_rage"))
6629 ui.set(scout_mindmg_check, database.read("scout_mindmg_check_rage"))
6630 ui.set(scout_mindmg_multi, database.read("scout_mindmg_multi_rage"))
6631 ui.set(scout_visible_mindmg, database.read("scout_visible_mindmg_rage"))
6632 ui.set(scout_nonvisible_mindmg, database.read("scout_nonvisible_mindmg_rage"))
6633 ui.set(auto_hitbox_check, database.read("auto_hitbox_check_rage"))
6634 ui.set(auto_nearest_multi, database.read("auto_nearest_multi_rage"))
6635 ui.set(pistol_hitbox_check, database.read("pistol_hitbox_check_rage"))
6636 ui.set(pistol_nearest_multi, database.read("pistol_nearest_multi_rage"))
6637 ui.set(heavypistol_hitbox_check, database.read("heavypistol_hitbox_check_rage"))
6638 ui.set(heavypistol_nearest_multi, database.read("heavypistol_nearest_multi_rage"))
6639 ui.set(rifle_hitbox_check, database.read("rifle_hitbox_check_rage"))
6640 ui.set(rifle_nearest_multi, database.read("rifle_nearest_multi_rage"))
6641 ui.set(awp_hitbox_check, database.read("awp_hitbox_check_rage"))
6642 ui.set(awp_nearest_multi, database.read("awp_nearest_multi_rage"))
6643 ui.set(scout_hitbox_check, database.read("scout_hitbox_check_rage"))
6644 ui.set(scout_nearest_multi, database.read("scout_nearest_multi_rage"))
6645 ui.set(overridebutton, database.read("overridebutton_rage"))
6646 ui.set(resolverselect, database.read("resolverselect_rage"))
6647 ui.set(legitbotimprovements, database.read("legitbotimprovements_rage"))
6648 ui.set(enablecflcombo, database.read("enablecflcombo_rage"))
6649 ui.set(slowvariance, database.read("slowvariance_rage"))
6650 ui.set(slowlimit, database.read("slowlimit_rage"))
6651 ui.set(slowamount, database.read("slowamount_rage"))
6652 ui.set(movevariance, database.read("movevariance_rage"))
6653 ui.set(movelimit, database.read("movelimit_rage"))
6654 ui.set(moveamount, database.read("moveamount_rage"))
6655 ui.set(standvariance, database.read("standvariance_rage"))
6656 ui.set(standlimit, database.read("standlimit_rage"))
6657 ui.set(standamount, database.read("standamount_rage"))
6658 ui.set(jumpvariance, database.read("jumpvariance_rage"))
6659 ui.set(jumplimit, database.read("jumplimit_rage"))
6660 ui.set(jumpamount, database.read("jumpamount_rage"))
6661 ui.set(talkshitenable, database.read("talkshitenable_rage"))
6662 ui.set(talkshittype, database.read("talkshittype_rage"))
6663 ui.set(advancedlog, database.read("advancedlog_rage"))
6664 ui.set(log_options, database.read("log_options_rage"))
6665 ui.set(log_type, database.read("log_type_rage"))
6666 ui.set(ngahooktag_enabled, database.read("ngahooktag_enabled_rage"))
6667 ui.set(legitAA, database.read("legitAA_rage"))
6668 ui.set(legitAAbase, database.read("legitAAbase_rage"))
6669 ui.set(legitaa_freestand_type, database.read("legitaa_freestand_type_rage"))
6670 ui.set(legitaasafe, database.read("legitaasafe_rage"))
6671 ui.set(disableaaping, database.read("disableaaping_rage"))
6672 ui.set(disableaafps, database.read("disableaafps_rage"))
6673 ui.set(LegitAABreaker, database.read("LegitAABreaker_rage"))
6674 ui.set(brutemode2, database.read("brutemode2_rage"))
6675 ui.set(ui_indicator_combobox4, database.read("ui_indicator_combobox4_rage"))
6676 ui.set(ui_indicator_color_picker4, database.read("ui_indicator_color_picker4_rage"))
6677 ui.set(enableaawm, database.read("enableaawm_rage"))
6678 ui.set(legitaamoving, database.read("legitaamoving_rage"))
6679 ui.set(slowmode, database.read("slowmode_rage"))
6680 ui.set(movemode, database.read("movemode_rage"))
6681 ui.set(standmode, database.read("standmode_rage"))
6682 end
6683end;
6684
6685load_configs = ui.new_button("LUA", "B", "Load config", load_the_config)
6686indicator_label4 = ui.new_label("LUA", "B", "----------MISC----------")
6687
6688dynamicfov_minaw = ui_new_slider('RAGE', 'Other', 'Dynamic FOV Min', 1, 180, 3, true, '°', 1)
6689dynamicfov_maxaw = ui_new_slider('RAGE', 'Other', 'Dynamic FOV Max', 1, 180, 69, true, '°', 1)
6690dynamicfov_auto_factoraw = ui_new_slider('RAGE', 'Other', 'Dynamic FOV Auto Factor', 0, 250, 100, true, 'x', 0.01)
6691autowalldmg = ui.new_slider("Rage", "Other", "Autowall Minimum damage override", 1, 100, 3, true)
6692edgeautowallbutton = ui.new_checkbox("Players", "Adjustments", "Edge autowall")
6693edgeautowalltype = ui.new_combobox("RAGE", "Other", "Edge autowall players", "All players", "Selected players")
6694legit_pen_threshold_ref = ui.new_slider("RAGE", "Other", "Visible hitbox threshold", 0, 18, 4, true)
6695
6696beforedelay = ui.new_slider("RAGE", "Other", "How long until autowall turns on", 1, 1000, 1, true, 's')
6697autodely = ui.new_slider("RAGE", "Other", "How long autowall stays on", 1, 1000, 1, true, 's')
6698autowallplayerbutton = ui.new_checkbox("PLAYERS", "Adjustments", 'Autowall this player')
6699_autowall_mode_auto_trigger_delay = ui.new_slider('rage', 'other', 'How long autowall stays on after seeing player', 0, 2500, 850, true, 'ms')
6700autowallvar1 = false
6701autowallvar2 = false
6702autowallvar3 = false
6703autowallvar4 = false
6704autowallvar5 = false
6705autowallvar6 = false
6706------------INDICATORS
6707indicate_enable = ui.new_checkbox("RAGE", "Other", "Indicators")
6708indicate_on = ui.new_combobox("RAGE", "Other", "Indicators (drag to move small and big)", "Off", "Small", "Big", "Default")
6709indicate_color = ui.new_color_picker("RAGE", "Other", "Indicators")
6710indicate_select = ui.new_multiselect("RAGE", "Other", "Indicator select", "Triggermagnet", "Silent aim", "Autowall", "Legitbot improvements", "FOV", "Bruteforce", "Force body aim", "Safe point")
6711indicateposition = ui.new_slider("RAGE", "Other", "Reposition Indicators X", 0, 40, 0, true, "x")
6712------------FLAGS
6713flag_enable = ui.new_checkbox("RAGE", "Other", "Flags")
6714flag_color = ui.new_color_picker("RAGE", "Other", "\n flags")
6715flag_select = ui.new_multiselect("RAGE", "Other", "\n flags", "Override")
6716------------FAKELAG
6717flcheckbox = ui.new_checkbox("AA", "Fake lag", "Fake lag")
6718flmulti = ui.new_multiselect("AA", "Fake lag", "Fake lag", "Fakelag presets", "Custom fake lag while moving")
6719legitflmode = ui_new_combobox("AA", "Fake lag", "\n aa_legit_fl_mode", {
6720 "On peek",
6721 "On peek & visibility",
6722 "Always on",
6723})
6724------------LEGITBOT IMPROVEMENTS
6725legitbotimprovements = ui.new_checkbox("RAGE", "Other", "Legitbot improvements")
6726------------SILENT AIM
6727silentbuttonenable = ui.new_checkbox("RAGE", "Other", "Silent settings")
6728silentmulti = ui.new_multiselect("RAGE", "Other", "Silent aim settings", "Silent aim on key", "Silent aim if in fov", "Silent aim in distance", "Silent aim while slow walking")
6729silentkey = ui.new_hotkey("RAGE", "Other", "Silent Aim On Toggle")
6730silentvar1 = false
6731silentvar2 = false
6732silentvar3 = false
6733silentvar4 = false
6734silentvar5 = false
6735------------SILENT AIM IF FOV
6736silentfovslider = ui.new_slider("RAGE", "Other", "Silent aim if in fov", 1, 180, 1, true, "°")
6737------------SILENT AIM IN DISTANCE
6738silentdistance = ui.new_slider('RAGE', 'Other', 'Silent aim enable in distance', 1, 3000, 1)
6739distancecircle = ui.new_checkbox("rage", "other", "Distance circle")
6740------------RESOLVER
6741--OVERRIDE
6742overridebutton = ui.new_checkbox("rage", "other", "Resolver")
6743resolverselect = ui.new_combobox("rage", "other", "Resolver", "Override", "Opposite resolver")
6744overridekey = ui.new_hotkey("rage", "other", "Override key: Right/Left/Off")
6745
6746oppositeenable = ui.new_checkbox("PLAYERS", "Adjustments", "Enable resolver")
6747------------CUSTOM FAKELAG TRIGGERS
6748enablecfl = ui.new_checkbox('AA', 'Fake lag', 'Custom fake lag triggers')
6749enablecflcombo = ui.new_combobox('AA', 'Fake lag', 'Custom fake lag triggers', 'Off', 'Slow walk', 'Moving', 'Standing', 'Jumping')
6750--slow walk
6751slowvariance = ui.new_slider('AA', 'Fake lag', 'Slowwalk variance', 0, 100, 0, true, '%')
6752slowlimit = ui.new_slider('AA', 'Fake lag', 'Slowwalk limit', 1, 14, 1, true)
6753slowamount = ui.new_combobox('AA', 'Fake lag', 'Slowwalk amount', 'Dynamic', 'Maximum', 'Fluctuate')
6754--move
6755movevariance = ui.new_slider('AA', 'Fake lag', 'Moving variance', 0, 100, 0, true, '%')
6756movelimit = ui.new_slider('AA', 'Fake lag', 'Moving limit', 1, 14, 1, true)
6757moveamount = ui.new_combobox('AA', 'Fake lag', 'Moving amount', 'Dynamic', 'Maximum', 'Fluctuate')
6758--stand
6759standvariance = ui.new_slider('AA', 'Fake lag', 'Standing variance', 0, 100, 0, true, '%')
6760standlimit = ui.new_slider('AA', 'Fake lag', 'Standing limit', 1, 14, 1, true)
6761standamount = ui.new_combobox('AA', 'Fake lag', 'Standing amount', 'Dynamic', 'Maximum', 'Fluctuate')
6762--stand
6763jumpvariance = ui.new_slider('AA', 'Fake lag', 'Jumping variance', 0, 100, 0, true, '%')
6764jumplimit = ui.new_slider('AA', 'Fake lag', 'Jumping limit', 1, 14, 1, true)
6765jumpamount = ui.new_combobox('AA', 'Fake lag', 'Jumping amount', 'Dynamic', 'Maximum', 'Fluctuate')
6766------------killsay
6767talkshitenable = ui.new_checkbox('RAGE', 'Other', 'Killsay')
6768talkshittype = ui.new_combobox('RAGE', 'Other', "Killsay type", 'Basic kill says', 'Custom')
6769talkshittext = ui.new_textbox('RAGE', 'Other', "\n text")
6770------------
6771--REFRENCE--
6772------------
6773
6774ragebot_maximum_fov = ui.reference('RAGE', 'Aimbot', 'maximum fov')
6775forcesafepoint = ui.reference('RAGE', 'Aimbot', 'Force safe point')
6776
6777aaenablers = ui.reference("AA", "Anti-aimbot angles", "Enabled")
6778pitch = ui.reference("AA", "Anti-aimbot angles", "Pitch")
6779yaw_base = ui.reference("AA", "Anti-aimbot angles", "Yaw base")
6780yaw, yaw_num = ui.reference("AA", "Anti-aimbot angles", "Yaw")
6781yaw_jitter = ui.reference("AA", "Anti-aimbot angles", "Yaw jitter")
6782body, body_num = ui.reference("AA", "Anti-aimbot angles", "Body yaw")
6783limit = ui.reference("AA", "Anti-aimbot angles", "Fake yaw limit")
6784lby = ui.reference("AA", "Anti-aimbot angles", "Lower body yaw target")
6785
6786rageautofire = ui.reference("Rage", "Aimbot", "Automatic Fire")
6787ragebot, ragebotmode = ui.reference("Rage", "Aimbot", "Enabled")
6788autowall = ui.reference("RAGE", "Aimbot", "Automatic Penetration")
6789min_dmg = ui.reference('rage', 'aimbot', 'minimum damage')
6790trans = ui.reference('VISUALS', 'Effects', 'Transparent props')
6791FOVS5 = ui.reference('RAGE', 'AIMBOT', 'Maximum FOV')
6792preticle = ui.reference("VISUALS", "Other ESP", "Penetration reticle")
6793ref_fl = ui.reference("AA", "Fake lag", "Limit")
6794ref_fakeduck = ui.reference("Rage", "Other", "Duck peek assist")
6795trigger = ui.reference("RAGE", "Aimbot", "Automatic fire")
6796rage_enabl = ui.reference("RAGE", "Aimbot", "Enabled")
6797silent = ui.reference("RAGE", "Aimbot", "Silent aim")
6798force_body_aim = ui.reference("RAGE", "Other", "Force body aim")
6799Max_f0v = ui.reference("RAGE", "Aimbot", "Maximum FOV")
6800selectedplayer = ui.reference("players", "players", "player list")
6801forcebody1, forcebodyyaw1 = ui.reference("players", "adjustments", "force body yaw")
6802resetlist = ui.reference("players", "players", "reset all")
6803applyall = ui.reference("players", "adjustments", "Apply to all")
6804triggers = ui.reference("AA", "Fake lag", "Triggers")
6805fakelag_enable, fakelag_key = ui.reference("AA", "Fake lag", "Enabled")
6806triggerz = ui.reference("AA", "Fake lag", "Customize triggers")
6807fl, fl_enable = ui.reference("AA", "Fake lag", "Enabled")
6808ref_aimbot_enabled = ui.reference("RAGE", "Aimbot", "Enabled")
6809ui_fd = ui.reference("Rage", "Other", "Duck peek assist")
6810forcebody, forcebodyyaw = ui.reference("players", "adjustments", "force body yaw")
6811resetlist = ui.reference("players", "players", "reset all")
6812applyall = ui.reference("players", "adjustments", "Apply to all")
6813autodirection, autodirection_key = ui.reference("AA", "Anti-aimbot angles", "Freestanding")
6814edgeyaw = ui.reference("AA", "Anti-aimbot angles", "Edge yaw")
6815bodyyaw_freestand = ui.reference("AA", "Anti-aimbot angles", "Freestanding body yaw")
6816fakelag_limit = ui.reference("AA", "Fake lag", "Limit")
6817checkbox_reference, hotkey_reference = ui.reference("AA", "Other", "Slow motion")
6818brightness, adjustment = ui.reference("Visuals", "Effects", "Brightness adjustment")
6819variance = ui.reference("AA", "Fake lag", "Variance")
6820amount = ui.reference("AA", "Fake lag", "Amount")
6821hitchance = ui.reference("RAGE", "Aimbot", "Minimum hit chance")
6822plistoverride = ui.reference("players", "adjustments", "Override anti-aim correction")
6823thirdpersonk, forcethirdpkey = ui.reference("VISUALS", "Effects", "Force third person (alive)")
6824thirdpersondead = ui.reference("VISUALS", "Effects", "Force third person (dead)")
6825infiniteduck = ui.reference("MISC", "Movement", "Infinite duck")
6826
6827getui = ui.get
6828
6829function table_contains(tbl, value)
6830 for i = 1, #tbl do
6831 if tbl[i] == value then
6832 return true
6833 end
6834 end
6835 return false
6836end
6837
6838--adaptive weapon
6839
6840bit_band, client_delay_call, client_set_event_callback, entity_get_local_player, entity_get_player_weapon, entity_get_prop, print, func, select, table_insert, table_sort, type, ui.get, ui_name, ui_new_checkbox, ui_new_combobox, ui_new_multiselect, ui_reference, ui.set, ui.set_callback, ui.set_visible, xpcall, pairs = bit.band, client.delay_call, client.set_event_callback, entity.get_local_player, entity.get_player_weapon, entity.get_prop, print, func, select, table.insert, table.sort, type, ui.get, ui.name, ui.new_checkbox, ui.new_combobox, ui.new_multiselect, ui.reference, ui.set, ui.set_callback, ui.set_visible, xpcall, pairs
6841adaptive_weapons = {
6842 ["Global"] = {},
6843 ["Auto"] = { 11, 38 },
6844 ["Awp"] = { 9 },
6845 ["Scout"] = { 40 },
6846 ["Desert Eagle"] = { 1 },
6847 ["Revolver"] = { 64 },
6848 ["Pistol"] = { 2, 3, 4, 30, 32, 36, 61, 63 },
6849 ["Rifle"] = { 7, 8, 10, 13, 16, 39, 60 },
6850 --["Submachine gun"] = {17, 19, 24, 26, 33, 34},
6851 --["Machine gun"] = {14, 28},
6852 --["Shotgun"] = {25, 27, 29, 35},
6853}
6854
6855local adaptive = {}
6856local references = {}
6857local callbacks = {}
6858local active_config = "Global"
6859local weapon_id_lookup_table
6860local run_command
6861
6862function collect_keys(tbl, sort)
6863 local keys = {}
6864 sort = sort or true
6865 for k in pairs(tbl) do
6866 keys[#keys + 1] = k
6867 end
6868 if sort then
6869 table_sort(keys)
6870 end
6871 return keys
6872end
6873function table_contains(tbl, value)
6874 for i = 1, #tbl do
6875 if tbl[i] == value then
6876 return true
6877 end
6878 end
6879 return false
6880end
6881function create_lookup_table(tbl)
6882 local result = {}
6883 for name, weapon_ids in pairs(tbl) do
6884 for i = 1, #weapon_ids do
6885 result[weapon_ids[i]] = name
6886 end
6887 end
6888 return result
6889end
6890
6891adaptive_options2 = ui_new_multiselect("RAGE", "Other", "asddd", "Log", "Visible")
6892adaptive_config2 = ui_new_combobox("RAGE", "Aimbot", "addd", collect_keys(adaptive_weapons))
6893
6894function update_menu(visible)
6895 ui.set(adaptive_config2, active_config)
6896 if visible then
6897 end
6898end
6899
6900run_command = function()
6901 local local_player = entity_get_local_player()
6902 local weapon_entindex = entity_get_player_weapon(local_player)
6903 local item_definition_index = bit_band(65535, entity_get_prop(weapon_entindex, "m_iItemDefinitionIndex"))
6904 local config_name = weapon_id_lookup_table[item_definition_index] or "Global"
6905 if config_name ~= active_config then
6906 active_config = config_name
6907 local options = ui.get(adaptive_options2)
6908 if table_contains(options, "Log") then
6909 print(active_config, " config loaded.")
6910 end
6911 update_menu(table_contains(options, "Visible"))
6912 end
6913end
6914
6915function init()
6916 -- Create and reference menu items
6917
6918 -- Create the lookup table
6919 weapon_id_lookup_table = create_lookup_table(adaptive_weapons)
6920
6921 -- Set custom callbacks for the default menu items
6922 for name, reference in pairs(references) do
6923 set_callback(reference, update_settings)
6924 end
6925
6926 -- Set callbacks for all of the adaptive menu items
6927 for config, items in pairs(adaptive) do
6928 for name, reference in pairs(items) do
6929 ui.set_callback(reference, handle_adaptive_config)
6930 end
6931 end
6932 client.set_event_callback("run_command", run_command)
6933end
6934
6935init()
6936
6937--dynamic fov
6938hitbox_head, hitbox_neck, hitbox_pelvis, hitbox_spine_0, hitbox_spine_1, hitbox_spine_2, hitbox_spine_3, hitbox_leg_upper_L, hitbox_leg_upper_R, hitbox_leg_lower_L, hitbox_leg_lower_R, hitbox_ankle_L, hitbox_ankle_R, hitbox_hand_L, hitbox_hand_R, hitbox_arm_upper_L, hitbox_arm_lower_L, hitbox_arm_upper_R, hitbox_arm_lower_R = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
6939
6940adaptiveselect = ui.reference('RAGE', 'Aimbot', 'addd')
6941
6942dynamicfov_new_fov = 0
6943bool_in_fov = false
6944closest_enemy = nil
6945
6946function dynamicfov_logic()
6947 local local_player = entity_get_local_player()
6948
6949 if not local_player or not entity.is_alive(local_player) then
6950 return
6951 end
6952 if ui.get(dynamicfov_enable, true) then
6953 else
6954 return
6955 end
6956 if ui.get(dynamicfov_select) == "Adaptive weapon dynamic FOV" then
6957 return
6958 end
6959 local old_fov = ui.get(ragebot_maximum_fov)
6960 dynamicfov_new_fov = old_fov
6961 local enemy_players = entity_get_players(true)
6962
6963 local min_fov = ui.get(dynamicfov_min)
6964 local max_fov = ui.get(dynamicfov_max)
6965
6966 if min_fov > max_fov then
6967 local store_min_fov = min_fov
6968 min_fov = max_fov
6969 max_fov = store_min_fov
6970 end
6971
6972 if #enemy_players ~= 0 then
6973 local own_x, own_y, own_z = client_eye_position()
6974 local own_pitch, own_yaw = client_camera_angles()
6975 closest_enemy = nil
6976 local closest_distance = 999999999
6977
6978 for i = 1, #enemy_players do
6979 local enemy = enemy_players[i]
6980 local enemy_x, enemy_y, enemy_z = entity_hitbox_position(enemy, 0)
6981
6982 local x = enemy_x - own_x
6983 local y = enemy_y - own_y
6984 local z = enemy_z - own_z
6985
6986 local yaw = ((math_atan2(y, x) * 180 / math_pi))
6987 local pitch = -(math_atan2(z, math_sqrt(math_pow(x, 2) + math_pow(y, 2))) * 180 / math_pi)
6988
6989 local yaw_dif = math_abs(own_yaw % 360 - yaw % 360) % 360
6990 local pitch_dif = math_abs(own_pitch - pitch) % 360
6991
6992 if yaw_dif > 180 then
6993 yaw_dif = 360 - yaw_dif
6994 end
6995
6996 local real_dif = math_sqrt(math_pow(yaw_dif, 2) + math_pow(pitch_dif, 2))
6997
6998 if closest_distance > real_dif then
6999 closest_distance = real_dif
7000 closest_enemy = enemy
7001 end
7002 end
7003
7004 if closest_enemy ~= nil then
7005 local closest_enemy_x, closest_enemy_y, closest_enemy_z = entity_hitbox_position(closest_enemy, 0)
7006 local real_distance = math_sqrt(math_pow(own_x - closest_enemy_x, 2) + math_pow(own_y - closest_enemy_y, 2) + math_pow(own_z - closest_enemy_z, 2))
7007
7008 dynamicfov_new_fov = (3800 / real_distance) * (ui.get(dynamicfov_auto_factor) * 0.01)
7009
7010 if (dynamicfov_new_fov > max_fov) then
7011 dynamicfov_new_fov = max_fov
7012 elseif dynamicfov_new_fov < min_fov then
7013 dynamicfov_new_fov = min_fov
7014 end
7015 end
7016
7017 dynamicfov_new_fov = math_floor(dynamicfov_new_fov + 0.5)
7018
7019 if (dynamicfov_new_fov > closest_distance) then
7020 bool_in_fov = true
7021 else
7022 bool_in_fov = false
7023 end
7024 else
7025 dynamicfov_new_fov = min_fov
7026 bool_in_fov = false
7027 end
7028
7029 if dynamicfov_new_fov ~= old_fov then
7030 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
7031 end
7032
7033end
7034--drawing
7035function on_paint(ctx)
7036 dynamicfov_logic()
7037end
7038
7039client.set_event_callback('paint', on_paint)
7040
7041--pistol
7042
7043function dynamicfov_logicpistol()
7044 local local_player = entity_get_local_player()
7045
7046 if not local_player or not entity.is_alive(local_player) then
7047 return
7048 end
7049 if ui.get(dynamicfov_enable, true) then
7050 else
7051 return
7052 end
7053 if ui.get(dynamicfov_select) == "Adaptive weapon dynamic FOV" then
7054 else
7055 return
7056 end
7057 if ui.get(adaptiveselect) == "Desert Eagle" then
7058 elseif ui.get(adaptiveselect) == "Pistol" then
7059 elseif ui.get(adaptiveselect) == "Revolver" then
7060 else
7061 return
7062 end
7063 local old_fov = ui.get(ragebot_maximum_fov)
7064 dynamicfov_new_fov = old_fov
7065 local enemy_players = entity_get_players(true)
7066
7067 local min_fov = ui.get(dynamicfov_minpistol)
7068 local max_fov = ui.get(dynamicfov_maxpistol)
7069
7070 if min_fov > max_fov then
7071 local store_min_fov = min_fov
7072 min_fov = max_fov
7073 max_fov = store_min_fov
7074 end
7075
7076 if #enemy_players ~= 0 then
7077 local own_x, own_y, own_z = client_eye_position()
7078 local own_pitch, own_yaw = client_camera_angles()
7079 closest_enemy = nil
7080 local closest_distance = 999999999
7081
7082 for i = 1, #enemy_players do
7083 local enemy = enemy_players[i]
7084 local enemy_x, enemy_y, enemy_z = entity_hitbox_position(enemy, 0)
7085
7086 local x = enemy_x - own_x
7087 local y = enemy_y - own_y
7088 local z = enemy_z - own_z
7089
7090 local yaw = ((math_atan2(y, x) * 180 / math_pi))
7091 local pitch = -(math_atan2(z, math_sqrt(math_pow(x, 2) + math_pow(y, 2))) * 180 / math_pi)
7092
7093 local yaw_dif = math_abs(own_yaw % 360 - yaw % 360) % 360
7094 local pitch_dif = math_abs(own_pitch - pitch) % 360
7095
7096 if yaw_dif > 180 then
7097 yaw_dif = 360 - yaw_dif
7098 end
7099
7100 local real_dif = math_sqrt(math_pow(yaw_dif, 2) + math_pow(pitch_dif, 2))
7101
7102 if closest_distance > real_dif then
7103 closest_distance = real_dif
7104 closest_enemy = enemy
7105 end
7106 end
7107
7108 if closest_enemy ~= nil then
7109 local closest_enemy_x, closest_enemy_y, closest_enemy_z = entity_hitbox_position(closest_enemy, 0)
7110 local real_distance = math_sqrt(math_pow(own_x - closest_enemy_x, 2) + math_pow(own_y - closest_enemy_y, 2) + math_pow(own_z - closest_enemy_z, 2))
7111
7112 dynamicfov_new_fov = (3800 / real_distance) * (ui.get(dynamicfov_auto_factor) * 0.01)
7113
7114 if (dynamicfov_new_fov > max_fov) then
7115 dynamicfov_new_fov = max_fov
7116 elseif dynamicfov_new_fov < min_fov then
7117 dynamicfov_new_fov = min_fov
7118 end
7119 end
7120
7121 dynamicfov_new_fov = math_floor(dynamicfov_new_fov + 0.5)
7122
7123 if (dynamicfov_new_fov > closest_distance) then
7124 bool_in_fov = true
7125 else
7126 bool_in_fov = false
7127 end
7128 else
7129 dynamicfov_new_fov = min_fov
7130 bool_in_fov = false
7131 end
7132
7133 if dynamicfov_new_fov ~= old_fov then
7134 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
7135 end
7136
7137end
7138function on_paintpistol(ctx)
7139 dynamicfov_logicpistol()
7140end
7141client.set_event_callback('paint', on_paintpistol)
7142
7143--rifle
7144
7145function dynamicfov_logicrifle()
7146 local local_player = entity_get_local_player()
7147
7148 if not local_player or not entity.is_alive(local_player) then
7149 return
7150 end
7151 if ui.get(dynamicfov_enable, true) then
7152 else
7153 return
7154 end
7155 if ui.get(dynamicfov_select) == "Adaptive weapon dynamic FOV" then
7156 else
7157 return
7158 end
7159 if ui.get(adaptiveselect) == "Rifle" then
7160 else
7161 return
7162 end
7163 local old_fov = ui.get(ragebot_maximum_fov)
7164 dynamicfov_new_fov = old_fov
7165 local enemy_players = entity_get_players(true)
7166
7167 local min_fov = ui.get(dynamicfov_minrifle)
7168 local max_fov = ui.get(dynamicfov_maxrifle)
7169
7170 if min_fov > max_fov then
7171 local store_min_fov = min_fov
7172 min_fov = max_fov
7173 max_fov = store_min_fov
7174 end
7175
7176 if #enemy_players ~= 0 then
7177 local own_x, own_y, own_z = client_eye_position()
7178 local own_pitch, own_yaw = client_camera_angles()
7179 closest_enemy = nil
7180 local closest_distance = 999999999
7181
7182 for i = 1, #enemy_players do
7183 local enemy = enemy_players[i]
7184 local enemy_x, enemy_y, enemy_z = entity_hitbox_position(enemy, 0)
7185
7186 local x = enemy_x - own_x
7187 local y = enemy_y - own_y
7188 local z = enemy_z - own_z
7189
7190 local yaw = ((math_atan2(y, x) * 180 / math_pi))
7191 local pitch = -(math_atan2(z, math_sqrt(math_pow(x, 2) + math_pow(y, 2))) * 180 / math_pi)
7192
7193 local yaw_dif = math_abs(own_yaw % 360 - yaw % 360) % 360
7194 local pitch_dif = math_abs(own_pitch - pitch) % 360
7195
7196 if yaw_dif > 180 then
7197 yaw_dif = 360 - yaw_dif
7198 end
7199
7200 local real_dif = math_sqrt(math_pow(yaw_dif, 2) + math_pow(pitch_dif, 2))
7201
7202 if closest_distance > real_dif then
7203 closest_distance = real_dif
7204 closest_enemy = enemy
7205 end
7206 end
7207
7208 if closest_enemy ~= nil then
7209 local closest_enemy_x, closest_enemy_y, closest_enemy_z = entity_hitbox_position(closest_enemy, 0)
7210 local real_distance = math_sqrt(math_pow(own_x - closest_enemy_x, 2) + math_pow(own_y - closest_enemy_y, 2) + math_pow(own_z - closest_enemy_z, 2))
7211
7212 dynamicfov_new_fov = (3800 / real_distance) * (ui.get(dynamicfov_auto_factor) * 0.01)
7213
7214 if (dynamicfov_new_fov > max_fov) then
7215 dynamicfov_new_fov = max_fov
7216 elseif dynamicfov_new_fov < min_fov then
7217 dynamicfov_new_fov = min_fov
7218 end
7219 end
7220
7221 dynamicfov_new_fov = math_floor(dynamicfov_new_fov + 0.5)
7222
7223 if (dynamicfov_new_fov > closest_distance) then
7224 bool_in_fov = true
7225 else
7226 bool_in_fov = false
7227 end
7228 else
7229 dynamicfov_new_fov = min_fov
7230 bool_in_fov = false
7231 end
7232
7233 if dynamicfov_new_fov ~= old_fov then
7234 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
7235 end
7236
7237end
7238--drawing
7239function on_paintrifle(ctx)
7240 dynamicfov_logicrifle()
7241end
7242client.set_event_callback('paint', on_paintrifle)
7243
7244--scoped weapons
7245
7246function dynamicfov_logicscope()
7247 local local_player = entity_get_local_player()
7248
7249 if not local_player or not entity.is_alive(local_player) then
7250 return
7251 end
7252 if ui.get(dynamicfov_enable, true) then
7253 else
7254 return
7255 end
7256 if ui.get(dynamicfov_select) == "Adaptive weapon dynamic FOV" then
7257 else
7258 return
7259 end
7260 if ui.get(adaptiveselect) == "Awp" then
7261 elseif ui.get(adaptiveselect) == "Auto" then
7262 elseif ui.get(adaptiveselect) == "Scout" then
7263 else
7264 return
7265 end
7266 local old_fov = ui.get(ragebot_maximum_fov)
7267 dynamicfov_new_fov = old_fov
7268 local enemy_players = entity_get_players(true)
7269
7270 local min_fov = ui.get(dynamicfov_minscope)
7271 local max_fov = ui.get(dynamicfov_maxscope)
7272
7273 if min_fov > max_fov then
7274 local store_min_fov = min_fov
7275 min_fov = max_fov
7276 max_fov = store_min_fov
7277 end
7278
7279 if #enemy_players ~= 0 then
7280 local own_x, own_y, own_z = client_eye_position()
7281 local own_pitch, own_yaw = client_camera_angles()
7282 closest_enemy = nil
7283 local closest_distance = 999999999
7284
7285 for i = 1, #enemy_players do
7286 local enemy = enemy_players[i]
7287 local enemy_x, enemy_y, enemy_z = entity_hitbox_position(enemy, 0)
7288
7289 local x = enemy_x - own_x
7290 local y = enemy_y - own_y
7291 local z = enemy_z - own_z
7292
7293 local yaw = ((math_atan2(y, x) * 180 / math_pi))
7294 local pitch = -(math_atan2(z, math_sqrt(math_pow(x, 2) + math_pow(y, 2))) * 180 / math_pi)
7295
7296 local yaw_dif = math_abs(own_yaw % 360 - yaw % 360) % 360
7297 local pitch_dif = math_abs(own_pitch - pitch) % 360
7298
7299 if yaw_dif > 180 then
7300 yaw_dif = 360 - yaw_dif
7301 end
7302
7303 local real_dif = math_sqrt(math_pow(yaw_dif, 2) + math_pow(pitch_dif, 2))
7304
7305 if closest_distance > real_dif then
7306 closest_distance = real_dif
7307 closest_enemy = enemy
7308 end
7309 end
7310
7311 if closest_enemy ~= nil then
7312 local closest_enemy_x, closest_enemy_y, closest_enemy_z = entity_hitbox_position(closest_enemy, 0)
7313 local real_distance = math_sqrt(math_pow(own_x - closest_enemy_x, 2) + math_pow(own_y - closest_enemy_y, 2) + math_pow(own_z - closest_enemy_z, 2))
7314
7315 dynamicfov_new_fov = (3800 / real_distance) * (ui.get(dynamicfov_auto_factor) * 0.01)
7316
7317 if (dynamicfov_new_fov > max_fov) then
7318 dynamicfov_new_fov = max_fov
7319 elseif dynamicfov_new_fov < min_fov then
7320 dynamicfov_new_fov = min_fov
7321 end
7322 end
7323
7324 dynamicfov_new_fov = math_floor(dynamicfov_new_fov + 0.5)
7325
7326 if (dynamicfov_new_fov > closest_distance) then
7327 bool_in_fov = true
7328 else
7329 bool_in_fov = false
7330 end
7331 else
7332 dynamicfov_new_fov = min_fov
7333 bool_in_fov = false
7334 end
7335
7336 if dynamicfov_new_fov ~= old_fov then
7337 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
7338 end
7339
7340end
7341--drawing
7342function on_paintscope(ctx)
7343 dynamicfov_logicscope()
7344end
7345client.set_event_callback('paint', on_paintscope)
7346
7347--other
7348
7349--scoped weapons
7350
7351function dynamicfov_logicother()
7352 local local_player = entity_get_local_player()
7353
7354 if not local_player or not entity.is_alive(local_player) then
7355 return
7356 end
7357 if ui.get(dynamicfov_enable, true) then
7358 else
7359 return
7360 end
7361 if ui.get(dynamicfov_select) == "Adaptive weapon dynamic FOV" then
7362 else
7363 return
7364 end
7365 if ui.get(adaptiveselect) == "Global" then
7366 else
7367 return
7368 end
7369 local old_fov = ui.get(ragebot_maximum_fov)
7370 dynamicfov_new_fov = old_fov
7371 local enemy_players = entity_get_players(true)
7372
7373 local min_fov = ui.get(dynamicfov_minother)
7374 local max_fov = ui.get(dynamicfov_maxother)
7375
7376 if min_fov > max_fov then
7377 local store_min_fov = min_fov
7378 min_fov = max_fov
7379 max_fov = store_min_fov
7380 end
7381
7382 if #enemy_players ~= 0 then
7383 local own_x, own_y, own_z = client_eye_position()
7384 local own_pitch, own_yaw = client_camera_angles()
7385 closest_enemy = nil
7386 local closest_distance = 999999999
7387
7388 for i = 1, #enemy_players do
7389 local enemy = enemy_players[i]
7390 local enemy_x, enemy_y, enemy_z = entity_hitbox_position(enemy, 0)
7391
7392 local x = enemy_x - own_x
7393 local y = enemy_y - own_y
7394 local z = enemy_z - own_z
7395
7396 local yaw = ((math_atan2(y, x) * 180 / math_pi))
7397 local pitch = -(math_atan2(z, math_sqrt(math_pow(x, 2) + math_pow(y, 2))) * 180 / math_pi)
7398
7399 local yaw_dif = math_abs(own_yaw % 360 - yaw % 360) % 360
7400 local pitch_dif = math_abs(own_pitch - pitch) % 360
7401
7402 if yaw_dif > 180 then
7403 yaw_dif = 360 - yaw_dif
7404 end
7405
7406 local real_dif = math_sqrt(math_pow(yaw_dif, 2) + math_pow(pitch_dif, 2))
7407
7408 if closest_distance > real_dif then
7409 closest_distance = real_dif
7410 closest_enemy = enemy
7411 end
7412 end
7413
7414 if closest_enemy ~= nil then
7415 local closest_enemy_x, closest_enemy_y, closest_enemy_z = entity_hitbox_position(closest_enemy, 0)
7416 local real_distance = math_sqrt(math_pow(own_x - closest_enemy_x, 2) + math_pow(own_y - closest_enemy_y, 2) + math_pow(own_z - closest_enemy_z, 2))
7417
7418 dynamicfov_new_fov = (3800 / real_distance) * (ui.get(dynamicfov_auto_factor) * 0.01)
7419
7420 if (dynamicfov_new_fov > max_fov) then
7421 dynamicfov_new_fov = max_fov
7422 elseif dynamicfov_new_fov < min_fov then
7423 dynamicfov_new_fov = min_fov
7424 end
7425 end
7426
7427 dynamicfov_new_fov = math_floor(dynamicfov_new_fov + 0.5)
7428
7429 if (dynamicfov_new_fov > closest_distance) then
7430 bool_in_fov = true
7431 else
7432 bool_in_fov = false
7433 end
7434 else
7435 dynamicfov_new_fov = min_fov
7436 bool_in_fov = false
7437 end
7438
7439 if dynamicfov_new_fov ~= old_fov then
7440 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
7441 end
7442
7443end
7444--drawing
7445function on_paintother(ctx)
7446 dynamicfov_logicother()
7447end
7448client.set_event_callback('paint', on_paintother)
7449
7450local render_text = renderer.text
7451local GetBoundingBox = entity.get_bounding_box
7452
7453local world_to_screen = function(x, y, z, func)
7454 local x, y = renderer.world_to_screen(x, y, z)
7455 if x ~= nil and y ~= nil then
7456 func(x, y)
7457 end
7458end
7459--end of local variables
7460local leftdamage = 0
7461local rightdamage = 0
7462local rad2deg = function(rad)
7463 return (rad * 180 / math.pi)
7464end
7465local deg2rad = function(deg)
7466 return (deg * math.pi / 180)
7467end
7468local trace_line = function(entity, start, _end)
7469 return client.trace_line(entity, start.x, start.y, start.z, _end.x, _end.y, _end.z)
7470end
7471
7472local screenx, screeny = client_screen_size()
7473
7474local vector = function(x, y, z)
7475 x = x ~= nil and x or 0
7476 y = y ~= nil and y or 0
7477 z = z ~= nil and z or 0
7478
7479 return {
7480 ["x"] = x,
7481 ["y"] = y,
7482 ["z"] = z
7483 }
7484end
7485
7486local vector_add = function(vector1, vector2)
7487 return {
7488 ["x"] = vector1.x + vector2.x,
7489 ["y"] = vector1.y + vector2.y,
7490 ["z"] = vector1.z + vector2.z
7491 }
7492end
7493
7494local vector_substract = function(vector1, vector2)
7495 return {
7496 ["x"] = vector1.x - vector2.x,
7497 ["y"] = vector1.y - vector2.y,
7498 ["z"] = vector1.z - vector2.z
7499 }
7500end
7501function slot136(slot0, slot1)
7502 for slot5 = 1, #slot0, 1 do
7503 if slot0[slot5] == slot1 then
7504 return true
7505 end
7506 end
7507
7508 return false
7509end
7510
7511function slot137(slot0, slot1)
7512 for slot5, slot6 in ipairs(slot0) do
7513 if slot6 == slot1 then
7514 return true, slot5
7515 end
7516 end
7517
7518 return false
7519end
7520
7521function slot138()
7522 if ui.get(otherref.tp_alive) and ui.get(otherref.tp_alive_key) then
7523 ui.set_visible(otherref.tp_dead, true)
7524 else
7525 ui.set_visible(otherref.tp_dead, false)
7526 end
7527end
7528local clamp_angles = function(angle)
7529 angle = angle % 360
7530 angle = (angle + 360) % 360
7531
7532 if angle > 180 then
7533 angle = angle - 360
7534 end
7535
7536 return angle
7537end
7538
7539function LAASetup()
7540 if ui.get(legitAA) then
7541 if ui.get(legitAAbase) == "Manual" then
7542 ui.set_visible(LegitAAHotkey, true)
7543 elseif ui.get(legitAAbase) == "Dynamic" then
7544 ui.set_visible(LegitAAHotkey, false)
7545 end
7546 else
7547 ui.set_visible(LegitAAHotkey, false)
7548 end
7549end
7550
7551function LAAFunc()
7552 ----------------------------------------------------------------------LEGITAA
7553 local legita = ui.get(legitAA)
7554 local base = ui.get(legitAAbase)
7555 local aamodes = ui.get(LegitAABreaker)
7556 local aamoving = ui.get(enableaawm)
7557 local movingbox = ui.get(legitaamoving)
7558
7559 ui.set_visible(legitAAbase, legita)
7560 ui.set_visible(LegitAABreaker, legita)
7561
7562 ui.set_visible(brutemode2, legita and aamodes == "Break bruteforce")
7563 ui.set_visible(ui_indicator_combobox4, legita)
7564 ui.set_visible(ui_indicator_color_picker4, legita)
7565 ui.set_visible(LegitAAHotkey, legita and base == "Manual")
7566 ----------------------------------------------------------------------LEGITAA WHILE MOVING
7567 ui.set_visible(enableaawm, legita)
7568 ui.set_visible(legitaamoving, legita and aamoving)
7569
7570 ui.set_visible(slowmode, aamoving and legita and movingbox == "Slow walk")
7571 ui.set_visible(movemode, aamoving and legita and movingbox == "Moving")
7572 ui.set_visible(standmode, aamoving and legita and movingbox == "Standing")
7573
7574 if not ui.get(legitAA) then
7575 LAASetup()
7576 ui.set(yaw, "Off")
7577 ui.set(body, "Off")
7578 ui.set(autodirection, "-")
7579 ui.set(autodirection_key, "On hotkey")
7580 ui.set(aaenablers, false)
7581 elseif ui.get(legitAA) then
7582 LAASetup()
7583 ui.set(yaw, "180")
7584 ui.set(yaw_num, 180)
7585 ui.set(body, "Static")
7586 ui.set(autodirection, "-")
7587 ui.set(autodirection_key, "On hotkey")
7588 ui.set(aaenablers, true)
7589 end
7590end
7591
7592LAAFunc()
7593ui.set_callback(legitAA, LAAFunc)
7594ui.set_callback(legitAAbase, LAAFunc)
7595ui.set_callback(LegitAAHotkey, LAAFunc)
7596ui.set_callback(LegitAABreaker, LAAFunc)
7597ui.set_callback(enableaawm, LAAFunc)
7598ui.set_callback(legitaamoving, LAAFunc)
7599
7600local get_atan = function(ent, eye_pos, camera)
7601 local data = { id = nil, dst = 2147483647, fov = 360 }
7602 local screenx, screeny = client_screen_size()
7603 local crosshair = screenx / 2, screeny / 2
7604 for i = 0, 19 do
7605 local hitbox = vector(entity.hitbox_position(ent, i))
7606 local ext = vector_substract(hitbox, eye_pos)
7607
7608 local yaw = rad2deg(math.atan2(ext.y, ext.x))
7609 local pitch = -rad2deg(math.atan2(ext.z, math.sqrt(ext.x ^ 2 + ext.y ^ 2)))
7610
7611 local yaw_dif = math.abs(camera.y % 360 - yaw % 360) % 360
7612 local pitch_dif = math.abs(camera.x - pitch) % 360
7613
7614 if yaw_dif > 180 then
7615 yaw_dif = 360 - yaw_dif
7616 end
7617
7618 local dst = math.sqrt(yaw_dif ^ 2 + pitch_dif ^ 2)
7619 local dstcorrect = math.sqrt(ext.x ^ 2 + ext.y ^ 2 + ext.z ^ 2)
7620 if dstcorrect < data.dst then
7621 data.dst = dstcorrect
7622 data.id = i
7623 data.fov = yaw - crosshair
7624 end
7625 end
7626
7627 return data.id, data.dst, data.fov
7628end
7629
7630local function getdistance()
7631 local get_players = entity.get_players(true)
7632
7633 if #get_players == 0 then
7634 return
7635 end
7636 local eye_pos = vector(client.eye_position())
7637 local camera = vector(client.camera_angles())
7638 camera.z = z_pos ~= nil and 64 or camera.z
7639 local distance = math.huge
7640 local closest_enemy = nil
7641 local adv_fov = 1000
7642 local screenx, screeny = client_screen_size()
7643 local crosshair = screenx / 2, screeny / 2
7644 for i = 1, #get_players do
7645 local hitbox_id, dist, fov = get_atan(get_players[i], eye_pos, camera)
7646 if distance > dist then
7647 distance = dist
7648 hitbox = hitbox_id
7649 closest_enemy = get_players[i]
7650 adv_fov = fov
7651 end
7652 end
7653
7654 return closest_enemy, hitbox, distance, adv_fov
7655end
7656
7657function slot158()
7658 if ui.get(yaw) == "Off" then
7659 return
7660 end
7661
7662 if entity_get_prop(entity.get_game_rules(), "m_bFreezePeriod") == 1 then
7663 return
7664 end
7665
7666 local screenx, screeny = client_screen_size()
7667 local lx, ly, lz = entity_get_prop(entity_get_local_player(), "m_angEyeAngles")
7668 local divisor = screenx / 2
7669 local divisor2 = screeny / 2
7670 local size = 15 * cvar.cl_crosshairsize:get_float() * 0.67
7671
7672 if ui.get(yaw_num) ~= 180 and ui.get(yaw_num) ~= -180 then
7673 render_text(divisor, divisor2, 255, 0, 0, 255, "c-", 0, "AA IS BROKEN, SET YAW SLIDER TO 180 OR -180")
7674 render_text(divisor, divisor2 + 10, 255, 0, 0, 255, "c-", 0, "CURRENT YAW: ", ly)
7675 end
7676end
7677
7678function slot159()
7679 ui.set(pitch, "Off")
7680 ui.set(yaw_base, "Local view")
7681 ui.set(yaw, "180")
7682 ui.set(yaw_jitter, "Off")
7683 ui.set(edgeyaw, "Off")
7684 ui.set(bodyyaw_freestand, false)
7685 ui.set(autodirection_key, "On hotkey")
7686end
7687
7688function slot160()
7689 if not ui.get(legitAA) or ui.get(ref_fakeduck) or ui.get(legitAAbase) == "Dynamic" or entity_get_local_player() == nil or entity_get_prop(entity_get_local_player(), "m_lifeState") ~= 0 then
7690 return
7691 end
7692
7693 if entity_get_prop(entity.get_game_rules(), "m_bFreezePeriod") == 1 then
7694 return
7695 end
7696
7697 local screenx, screeny = client_screen_size()
7698 local halfx = screenx / 2
7699 local halfy = screeny / 2
7700
7701 if ui.get(legitAA) then
7702 if ui.get(legitAAbase) == "Manual" then
7703 ui.set_visible(LegitAAHotkey, true)
7704 ui.set(LegitAAHotkey, "Toggle")
7705
7706 if ui.get(LegitAAHotkey) then
7707 slot159()
7708 ui.set(yaw_num, 180)
7709 ui.set(body_num, 90)
7710
7711 slot94 = "RIGHT"
7712 else
7713 slot159()
7714 ui.set(yaw_num, 180)
7715 ui.set(body_num, -90)
7716
7717 slot94 = "LEFT"
7718 end
7719 else
7720 ui.set_visible(LegitAAHotkey, false)
7721 end
7722 end
7723end
7724local edge_count = { [1] = 7, [2] = 12, [3] = 15, [4] = 19, [5] = 23, [6] = 28, [7] = 35, [8] = 39 }
7725
7726local function do_legit_aa()
7727 local local_player = entity_get_local_player()
7728
7729 if not local_player or not entity.is_alive(local_player) then
7730 return
7731 end
7732
7733 local m_vecOrigin = vector(entity_get_prop(local_player, "m_vecOrigin"))
7734 local m_vecViewOffset = vector(entity_get_prop(local_player, "m_vecViewOffset"))
7735
7736 local m_vecOrigin = vector_add(m_vecOrigin, m_vecViewOffset)
7737
7738 local radius = 20 + 110 + 0.1
7739 local step = math.pi * 2.0 / edge_count[8]
7740
7741 local camera = vector(client.camera_angles())
7742 local central = deg2rad(math.floor(camera.y + 0.5))
7743
7744 local data = {
7745 fraction = 1,
7746 surpassed = false,
7747 angle = vector(0, 0, 0),
7748 var = 0,
7749 side = "LAST KNOWN"
7750 }
7751
7752 for a = central, math.pi * 3.0, step do
7753 if a == central then
7754 central = clamp_angles(rad2deg(a))
7755 local trace_line = function(entity, start, _end)
7756 return client.trace_line(entity, start.x, start.y, start.z, _end.x, _end.y, _end.z)
7757 end
7758 end
7759
7760 local clm = clamp_angles(central - rad2deg(a))
7761 local abs = math.abs(clm)
7762
7763 if abs < 90 and abs > 1 then
7764
7765 local side = "LAST KNOWN"
7766 local location = vector(
7767 radius * math.cos(a) + m_vecOrigin.x,
7768 radius * math.sin(a) + m_vecOrigin.y,
7769 m_vecOrigin.z
7770 )
7771
7772 local _fr, entindex = client.trace_line(local_player, m_vecOrigin.x, m_vecOrigin.y, m_vecOrigin.z, location.x, location.y, location.z)
7773
7774 if math.floor(clm + 0.5) < -21 then
7775 side = "LEFT"
7776 end
7777 if math.floor(clm + 0.5) > 21 then
7778 side = "RIGHT"
7779 end
7780
7781 local fr_info = {
7782 fraction = _fr,
7783 surpassed = (_fr < 1),
7784 angle = vector(0, clamp_angles(rad2deg(a)), 0),
7785 var = math.floor(clm + 0.5),
7786 side = side --[ 0 - center / 1 - left / 2 - right ]
7787 }
7788
7789 if data.fraction > _fr then
7790 data = fr_info
7791 end
7792 end
7793 end
7794
7795 return data
7796end
7797
7798function dodynamic()
7799 local local_player = entity_get_local_player()
7800
7801 if not local_player or not entity.is_alive(local_player) then
7802 return
7803 end
7804
7805 local local_player = entity_get_local_player()
7806 topX, topY, botX, botY, alpha = entity.get_bounding_box(client_draw_text, local_player)
7807 local origin = vector(entity_get_prop(local_player, "m_vecOrigin"))
7808 local collision = (entity_get_prop(local_player, "m_Collision"))
7809 local vecmin = vector(entity_get_prop(local_player, "m_vecMins"))
7810 local vecmax = vector(entity_get_prop(local_player, "m_vecMaxs"))
7811 local min = vector_add(vecmin, origin)
7812 local max = vector_add(vecmax, origin)
7813
7814 if not ui.get(legitAA) or ui.get(ref_fakeduck) or ui.get(legitAAbase) == "Manual" then
7815 return
7816 end
7817
7818 if ui.get(legitAA) and ui.get(legitAAbase) == "Dynamic" then
7819
7820 if entity_get_prop(entity.get_game_rules(), "m_bFreezePeriod") == 1 then
7821 return
7822 end
7823 local data = do_legit_aa()
7824
7825 if data == nil then
7826 return
7827 end
7828 if data.fraction < 1 then
7829 slot159()
7830 ui.set(body_num, data.var > 0 and 180 or -180)
7831 ui.set(yaw_num, -180)
7832 end
7833 end
7834
7835
7836end
7837
7838local function fyls()
7839 if ui.get(legitAA) == false then
7840 return
7841 else
7842 if ui.get(LegitAABreaker) == "Smart" then
7843 ui.set(limit, 60)
7844 ui.set(body, "Static")
7845 elseif ui.get(LegitAABreaker) == "Maximum" then
7846 ui.set(limit, 60)
7847 ui.set(body, "Static")
7848 elseif ui.get(LegitAABreaker) == "Slow" then
7849 ui.set(limit, 60)
7850 ui.set(body, "Static")
7851 elseif ui.get(LegitAABreaker) == "Fast" then
7852 ui.set(limit, 60)
7853 ui.set(body, "Static")
7854 elseif ui.get(LegitAABreaker) == "Break bruteforce" then
7855 ui.set(lby, "Opposite")
7856 ui.set(body, "Static")
7857 end
7858 end
7859end
7860
7861client.set_event_callback("paint", fyls)
7862
7863function slot163()
7864 if ui.get(legitAA) then
7865 if ui.get(LegitAABreaker) == "Maximum" then
7866 ui.set(lby, "Opposite")
7867 elseif ui.get(LegitAABreaker) == "Smart" then
7868 ui.set(lby, "Eye yaw")
7869 end
7870 else
7871 ui.set(lby, "Off")
7872 end
7873end
7874
7875client.set_event_callback("run_command", function()
7876 slot158()
7877 slot160()
7878end)
7879
7880client.set_event_callback("paint", function(c)
7881 slot163()
7882 dodynamic()
7883end)
7884
7885client.set_event_callback("game_newmap", function()
7886end)
7887
7888--aa indicator
7889function on_paint(c)
7890 local scrsize_x, scrsize_y = client.screen_size()
7891 local center_x, center_y = scrsize_x / 2, scrsize_y / 2
7892
7893 local indicator = ui.get(ui_indicator_combobox4)
7894 local indicator_r, indicator_g, indicator_b, indicator_a = ui.get(ui_indicator_color_picker4)
7895
7896 if ui.get(body_num) == 90 and indicator == "Metro" and ui.get(legitAA) == true or ui.get(body_num) == 180 and indicator == "Metro" and ui.get(legitAA) == true then
7897 client.draw_text(c, center_x + 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c+", 0, "⮞")
7898 elseif ui.get(body_num) == -90 and indicator == "Metro" and ui.get(legitAA) == true or ui.get(body_num) == -180 and indicator == "Metro" and ui.get(legitAA) == true then
7899 client.draw_text(c, center_x - 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c+", 0, "⮜")
7900 end
7901 if ui.get(body_num) == 90 and indicator == "Point arrows" and ui.get(legitAA) == true or ui.get(body_num) == 180 and indicator == "Point arrows" and ui.get(legitAA) == true then
7902 client.draw_text(c, center_x + 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c+", 0, "→")
7903 elseif ui.get(body_num) == -90 and indicator == "Point arrows" and ui.get(legitAA) == true or ui.get(body_num) == -180 and indicator == "Point arrows" and ui.get(legitAA) == true then
7904 client.draw_text(c, center_x - 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c+", 0, "←")
7905 end
7906 if ui.get(body_num) == 90 and indicator == "Dashes" and ui.get(legitAA) == true or ui.get(body_num) == 180 and indicator == "Dashes" and ui.get(legitAA) == true then
7907 client.draw_text(c, center_x + 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c-", 0, "‒")
7908 elseif ui.get(body_num) == -90 and indicator == "Dashes" and ui.get(legitAA) == true or ui.get(body_num) == -180 and indicator == "Dashes" and ui.get(legitAA) == true then
7909 client.draw_text(c, center_x - 45, center_y, indicator_r, indicator_g, indicator_b, indicator_a, "c-", 0, "‒")
7910 end
7911end
7912err = client.set_event_callback('paint', on_paint)
7913--trigger magnet
7914
7915--thx saph for callback shit
7916function on_paint(ctx)
7917 if ui.get(tm_cb) then
7918 local width, height = client.screen_size()
7919 if ui.get(triggermagnet) then
7920 ui.set(rageautofire, true)
7921 ui.set(ragebotmode, "Always on")
7922 else
7923 ui.set(rageautofire, false)
7924 ui.set(ragebotmode, "On hotkey")
7925 end
7926 end
7927end
7928
7929client.set_event_callback("paint", on_paint)
7930
7931reduce = false
7932
7933function reduction(c)
7934 if ui.get(tm_cb, true) and ui.get(typeselect) == "Advanced" then
7935 else
7936 return
7937 end
7938 local h_key = ui.get(triggermagnet)
7939 local hc_slider_ref = ui.get(triggerhtc)
7940 local dmg_slider_ref = ui.get(triggerdmg)
7941
7942 if h_key and reduce == false then
7943 stored_hc = ui.get(hitchance)
7944 stored_dmg = ui.get(min_dmg)
7945 ui.set(hitchance, hc_slider_ref)
7946 ui.set(min_dmg, dmg_slider_ref)
7947 reduce = true
7948 elseif not h_key and reduce == true then
7949 ui.set(hitchance, stored_hc)
7950 ui.set(min_dmg, stored_dmg)
7951 reduce = false
7952 end
7953
7954end
7955
7956client.set_event_callback("paint", reduction)
7957
7958-- autowall
7959function on_paint(ctx)
7960 if not ui.get(autowallbutton, true) then
7961 autowallvar1 = false
7962 end
7963 if ui.get(autowallbutton, true) then
7964 else
7965 return
7966 end
7967
7968 if ui.get(autowalltoggle) then
7969
7970 autowallvar1 = true
7971
7972 else
7973
7974 autowallvar1 = false
7975
7976 end
7977end
7978
7979client.set_event_callback("paint", on_paint)
7980--autowall transperency
7981range = false
7982-- Trans range function
7983function changed1(c)
7984 local state = table_contains(ui.get(auto_autowall), "Transparent props")
7985 local dmg_slider_ref1 = ui.get(slider_trans)
7986 local autowaller1 = ui.get(autowalltoggle)
7987 if state and ui.get(autowallbutton, true) then
7988 else
7989 return
7990 end
7991
7992 if autowaller1 and range == false then
7993 stored_dmg2 = ui.get(trans)
7994 ui.set(trans, dmg_slider_ref1)
7995 range = true
7996 elseif not autowaller1 and range == true then
7997 ui.set(trans, stored_dmg2)
7998 range = false
7999 end
8000
8001end
8002client.set_event_callback("paint", changed1)
8003
8004--min dmg override
8005
8006reducer = false
8007
8008function reduction(c)
8009 if ui.get(autowallbutton) == true then
8010 else
8011 return
8012 end
8013
8014 local state = table_contains(ui.get(auto_autowall), "Min dmg override")
8015 if state and ui.get(autowallbutton) == true then
8016 else
8017 return
8018 end
8019
8020 local h_key = ui.get(autowalltoggle)
8021 local dmg_slider_ref = ui.get(autowalldmg)
8022
8023 if h_key and reducer == false then
8024 stored_hc = ui.get(hitchance)
8025 stored_dmg = ui.get(min_dmg)
8026 ui.set(min_dmg, dmg_slider_ref)
8027 reducer = true
8028 elseif not h_key and reducer == true then
8029 ui.set(min_dmg, stored_dmg)
8030 reducer = false
8031 end
8032
8033end
8034
8035client.set_event_callback("paint", reduction)
8036
8037--penetration reticle
8038function on_paint2(ctx)
8039 local state = table_contains(ui.get(auto_autowall), "Penetration reticle")
8040 if state and ui.get(autowallbutton, true) then
8041 else
8042 return
8043 end
8044
8045 if ui.get(autowalltoggle) then
8046 ui.set(preticle, true)
8047 else
8048 ui.set(preticle, false)
8049 end
8050end
8051
8052client.set_event_callback("paint", on_paint2)
8053--autowall if shot me
8054
8055function enablewhileshotme()
8056 autowallvar2 = true
8057end
8058
8059function disablewhileshotme()
8060 autowallvar2 = false
8061end
8062
8063function on_fire(e)
8064 local userID = e.userid
8065 local userEntIndex = client.userid_to_entindex(userID)
8066
8067 if userEntIndex == entity.get_local_player() then
8068 local state = table_contains(ui.get(auto_autowall), "Autowall if shot me")
8069 if not state then
8070 autowallvar2 = false
8071 return
8072 end
8073 if ui.get(autowallbutton, true) then
8074 else
8075 return
8076 end
8077
8078 client.delay_call(globals.tickinterval() * ui.get(beforedelay), enablewhileshotme)
8079 client.delay_call(globals.tickinterval() * ui.get(autodely), disablewhileshotme)
8080 end
8081end
8082
8083client.set_event_callback("player_hurt", on_fire)
8084
8085function dynamicfov_logicaw()
8086 local state = table_contains(ui.get(auto_autowall), "Dynamic autowall FOV")
8087 if not state then
8088 return
8089 end
8090 if ui.get(autowalltoggle) and ui.get(autowallbutton, true) then
8091 else
8092 return
8093 end
8094
8095 local old_fov = ui.get(ragebot_maximum_fov)
8096 dynamicfov_new_fov = old_fov
8097 local enemy_players = entity_get_players(true)
8098
8099 local min_fov = ui.get(dynamicfov_minaw)
8100 local max_fov = ui.get(dynamicfov_maxaw)
8101
8102 if min_fov > max_fov then
8103 local store_min_fov = min_fov
8104 min_fov = max_fov
8105 max_fov = store_min_fov
8106 end
8107
8108 if #enemy_players ~= 0 then
8109 local own_x, own_y, own_z = client_eye_position()
8110 local own_pitch, own_yaw = client_camera_angles()
8111 closest_enemy = nil
8112 local closest_distance = 999999999
8113
8114 for i = 1, #enemy_players do
8115 local enemy = enemy_players[i]
8116 local enemy_x, enemy_y, enemy_z = entity_hitbox_position(enemy, 0)
8117
8118 local x = enemy_x - own_x
8119 local y = enemy_y - own_y
8120 local z = enemy_z - own_z
8121
8122 local yaw = ((math_atan2(y, x) * 180 / math_pi))
8123 local pitch = -(math_atan2(z, math_sqrt(math_pow(x, 2) + math_pow(y, 2))) * 180 / math_pi)
8124
8125 local yaw_dif = math_abs(own_yaw % 360 - yaw % 360) % 360
8126 local pitch_dif = math_abs(own_pitch - pitch) % 360
8127
8128 if yaw_dif > 180 then
8129 yaw_dif = 360 - yaw_dif
8130 end
8131
8132 local real_dif = math_sqrt(math_pow(yaw_dif, 2) + math_pow(pitch_dif, 2))
8133
8134 if closest_distance > real_dif then
8135 closest_distance = real_dif
8136 closest_enemy = enemy
8137 end
8138 end
8139
8140 if closest_enemy ~= nil then
8141 local closest_enemy_x, closest_enemy_y, closest_enemy_z = entity_hitbox_position(closest_enemy, 0)
8142 local real_distance = math_sqrt(math_pow(own_x - closest_enemy_x, 2) + math_pow(own_y - closest_enemy_y, 2) + math_pow(own_z - closest_enemy_z, 2))
8143
8144 dynamicfov_new_fov = max_fov - ((max_fov - min_fov) * (real_distance - 250) / 1000)
8145 end
8146
8147 if (dynamicfov_new_fov > max_fov) then
8148 dynamicfov_new_fov = max_fov
8149 elseif dynamicfov_new_fov < min_fov then
8150 dynamicfov_new_fov = min_fov
8151 end
8152
8153 dynamicfov_new_fov = math_floor(dynamicfov_new_fov + 0.5)
8154
8155 if (dynamicfov_new_fov > closest_distance) then
8156 bool_in_fov = true
8157 else
8158 bool_in_fov = false
8159 end
8160 else
8161 dynamicfov_new_fov = min_fov
8162 bool_in_fov = false
8163 end
8164
8165 if dynamicfov_new_fov ~= old_fov then
8166 ui.set(ragebot_maximum_fov, dynamicfov_new_fov)
8167 end
8168
8169end
8170
8171function on_paint(ctx)
8172 dynamicfov_logicaw()
8173end
8174
8175client.set_event_callback('paint', on_paint)
8176
8177--legitbot weapons
8178
8179function legitbotimp(disab)
8180 if ui.get(legitbotimprovements, true) and not ui.get(triggermagnet) then
8181 else
8182 return
8183 end
8184 local_entindex = entity.get_local_player()
8185 local local_weapon = entity.get_player_weapon(local_entindex)
8186 local weapon_name = entity.get_classname(local_weapon)
8187 if weapon_name == "CWeaponAWP" or weapon_name == "CDEagle" or weapon_name == "CWeaponElite" or weapon_name == "CWeaponSSG08" or weapon_name == "CWeaponGlock" or weapon_name == "CWeaponHKP2000" or weapon_name == "CWeaponCZ75" or weapon_name == "CWeaponUSP" or weapon_name == "CWeaponP250" then
8188 ui.set(ragebot, true)
8189 return
8190 end
8191 if disab.in_attack == 1 then
8192 ui.set(ragebot, false)
8193 else
8194 ui.set(ragebot, true)
8195 end
8196end
8197client.set_event_callback("setup_command", legitbotimp)
8198
8199--indicators
8200
8201legit_active, legit_key = ui.reference("Legit", "Aimbot", "Enabled")
8202rage_active, active_key = ui.reference("RAGE", "Aimbot", "Enabled")
8203
8204indicator = renderer.indicator
8205text = renderer.text
8206w, h = client.screen_size()
8207draw = {
8208 box = renderer.rectangle,
8209 line = renderer.line,
8210 text = renderer.text,
8211 measure_text = renderer.measure_text,
8212 gradient = renderer.gradient
8213}
8214h2o = 5
8215mouse_position = ui.mouse_position
8216wnd = {
8217 x = database.read("speclist_x") or 250,
8218 y = database.read("speclist_y") or 25,
8219 w = database.read("speclist_w") or 150,
8220 dragging = false,
8221 resize = false,
8222 rx = 0,
8223}
8224function intersect(x, y, w, h, debug)
8225 local cx, cy = mouse_position()
8226 debug = debug or false
8227 if debug then
8228 renderer.rectangle(x, y, w, h, 255, 0, 0, 50)
8229 end
8230 return cx >= x and cx <= x + w and cy >= y and cy <= y + h
8231end
8232client.set_event_callback("paint", function(ctx, entity_index)
8233 if ui.get(indicate_enable, true) then
8234 else
8235 return
8236 end
8237 local local_player = entity_get_local_player()
8238
8239 if not local_player or not entity.is_alive(local_player) then
8240 return
8241 end
8242 local_entindex = get_local_player()
8243 local local_weapon = entity.get_player_weapon(local_entindex)
8244 local weapon_name = entity.get_classname(local_weapon)
8245 local width, height = client.screen_size()
8246 local indiselect = ui.get(indicate_on)
8247 local triggermag = table_contains(ui.get(indicate_select), "Triggermagnet")
8248 local silentaim = table_contains(ui.get(indicate_select), "Silent aim")
8249 local autowalli = table_contains(ui.get(indicate_select), "Autowall")
8250 local fovi = table_contains(ui.get(indicate_select), "FOV")
8251 local forcebodyaims = table_contains(ui.get(indicate_select), "Force body aim")
8252 local legitboti = table_contains(ui.get(indicate_select), "Legitbot improvements")
8253 local bruteforcei = table_contains(ui.get(indicate_select), "Bruteforce")
8254 local safepointind = table_contains(ui.get(indicate_select), "Safe point")
8255
8256 local cx, cy = mouse_position()
8257
8258 local left_click = client.key_state(0x01)
8259
8260 if not wnd.resize and ui.is_menu_open() then
8261 if wnd.dragging and not left_click then
8262 wnd.dragging = false
8263 end
8264
8265 if wnd.dragging and left_click then
8266 wnd.x = cx - wnd.drag_x
8267 wnd.y = cy - wnd.drag_y
8268 end
8269
8270 if intersect(wnd.x, wnd.y, wnd.w, 180) and left_click then
8271 wnd.dragging = true
8272 wnd.drag_x = cx - wnd.x
8273 wnd.drag_y = cy - wnd.y
8274 end
8275 end
8276 if indiselect == "Default" then
8277 for iiiiiiiii = ui.get(indicateposition), 1, -1
8278 do
8279 renderer.indicator(255, 255, 255, 0, iiiiiiiii)
8280 end
8281 end
8282 local r, g, b, a = ui.get(indicate_color)
8283 if getui(rageautofire) == true and triggermag and indiselect == "Small" then
8284 text(wnd.x + 8, wnd.y + 10, r, g, b, a, "", 0, "TRIGGERBOT")
8285 elseif ui.get(rageautofire, true) and triggermag and indiselect == "Big" then
8286 client_draw_text(c, wnd.x + 8, wnd.y + 10, r, g, b, a, "+", 0, "trigger")
8287 elseif ui.get(rageautofire, true) and triggermag and indiselect == "Default" then
8288 renderer.indicator(r, g, b, a, "TM")
8289 end
8290 if getui(silent, true) and silentaim and indiselect == "Small" then
8291 text(wnd.x + 8, wnd.y + 22, r, g, b, a, "", 0, "SILENT AIM")
8292 elseif ui.get(silent, true) and silentaim and indiselect == "Big" then
8293 client_draw_text(c, wnd.x + 8, wnd.y + 30, r, g, b, a, "+", 0, "silent")
8294 elseif ui.get(silent, true) and silentaim and indiselect == "Default" then
8295 renderer.indicator(r, g, b, a, "SILENT")
8296 end
8297 if getui(autowall, true) and autowalli and indiselect == "Small" then
8298 text(wnd.x + 8, wnd.y + 34, r, g, b, a, "", 0, "AUTOWALL")
8299 elseif getui(autowall, true) and autowalli and indiselect == "Big" then
8300 client_draw_text(c, wnd.x + 8, wnd.y + 50, r, g, b, a, "+", 0, "autowall")
8301 elseif getui(autowall, true) and autowalli and indiselect == "Default" then
8302 renderer.indicator(r, g, b, a, "AW")
8303 end
8304 if getui(force_body_aim, true) and forcebodyaims and indiselect == "Small" then
8305 text(wnd.x + 8, wnd.y + 46, r, g, b, a, "", 0, "FORCE BODY AIM")
8306 elseif getui(force_body_aim, true) and forcebodyaims and indiselect == "Big" then
8307 client_draw_text(c, wnd.x + 8, wnd.y + 70, r, g, b, a, "+", 0, "baim")
8308 elseif getui(force_body_aim, true) and forcebodyaims and indiselect == "Default" then
8309 renderer.indicator(r, g, b, a, "BAIM")
8310 end
8311 if fovi and indiselect == "Small" then
8312 text(wnd.x + 8, wnd.y + 58, r, g, b, a, "", 0, "FOV:", getui(ragebot_maximum_fov))
8313 elseif fovi and indiselect == "Big" then
8314 client_draw_text(c, wnd.x + 8, wnd.y + 90, r, g, b, a, "+", 0, "fov:", getui(ragebot_maximum_fov))
8315 elseif fovi and indiselect == "Default" then
8316 renderer.indicator(r, g, b, a, "FOV:", getui(ragebot_maximum_fov))
8317 end
8318 if ui.get(forcebodyyaw) == 60 and bruteforcei and indiselect == "Small" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
8319 text(wnd.x + 8, wnd.y + 70, r, g, b, a, "", 0, "BRUTE:RIGHT")
8320 elseif ui.get(forcebodyyaw) == 60 and bruteforcei and indiselect == "Big" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
8321 client_draw_text(c, wnd.x + 8, wnd.y + 110, r, g, b, a, "+", 0, "brute:right")
8322 elseif ui.get(forcebodyyaw) == 60 and bruteforcei and indiselect == "Default" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
8323 renderer.indicator(r, g, b, a, "B:RIGHT")
8324 end
8325 if ui.get(forcebodyyaw) == -60 and bruteforcei and indiselect == "Small" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
8326 text(wnd.x + 8, wnd.y + 70, r, g, b, a, "", 0, "BRUTE:LEFT")
8327 elseif ui.get(forcebodyyaw) == -60 and bruteforcei and indiselect == "Big" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
8328 client_draw_text(c, wnd.x + 8, wnd.y + 110, r, g, b, a, "+", 0, "brute:left")
8329 elseif ui.get(forcebodyyaw) == -60 and bruteforcei and indiselect == "Default" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
8330 renderer.indicator(r, g, b, a, "B:LEFT")
8331 end
8332 if ui.get(forcebody) == false and bruteforcei and indiselect == "Small" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
8333 text(wnd.x + 8, wnd.y + 70, r, g, b, a, "", 0, "BRUTE:OFF")
8334 elseif ui.get(forcebody) == false and bruteforcei and indiselect == "Big" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
8335 client_draw_text(c, wnd.x + 8, wnd.y + 110, r, g, b, a, "+", 0, "brute:off")
8336 elseif ui.get(forcebody) == false and bruteforcei and indiselect == "Default" and ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
8337 renderer.indicator(r, g, b, a, "B:OFF")
8338 end
8339 if ui.get(forcesafepoint) and safepointind and indiselect == "Small" then
8340 text(wnd.x + 8, wnd.y + 94, r, g, b, a, "", 0, "SAFE POINT")
8341 elseif ui.get(forcesafepoint) and safepointind and indiselect == "Big" then
8342 client_draw_text(c, wnd.x + 8, wnd.y + 150, r, g, b, a, "+", 0, "safe")
8343 elseif ui.get(forcesafepoint) and safepointind and indiselect == "Default" then
8344 renderer.indicator(r, g, b, a, "SAFE")
8345 end
8346 if weapon_name == "CWeaponAWP" and legitboti and indiselect == "Small" or weapon_name == "CDEagle" and legitboti and indiselect == "Small" or weapon_name == "CWeaponElite" and legitboti and indiselect == "Small" or weapon_name == "CWeaponSSG08" and legitboti and indiselect == "Small" or weapon_name == "CWeaponGlock" and legitboti and indiselect == "Small" or weapon_name == "CWeaponHKP2000" and legitboti and indiselect == "Small" or weapon_name == "CWeaponCZ75" and legitboti and indiselect == "Small" or weapon_name == "CWeaponUSP" and legitboti and indiselect == "Small" or weapon_name == "CWeaponP250" and legitboti and indiselect == "Small" then
8347 text(wnd.x + 8, wnd.y + 82, r, g, b, a, "", 0, "RAGEBOT")
8348 elseif weapon_name == "CWeaponAWP" and legitboti and indiselect == "Big" or weapon_name == "CDEagle" and legitboti and indiselect == "Big" or weapon_name == "CWeaponElite" and legitboti and indiselect == "Big" or weapon_name == "CWeaponSSG08" and legitboti and indiselect == "Big" or weapon_name == "CWeaponGlock" and legitboti and indiselect == "Big" or weapon_name == "CWeaponHKP2000" and legitboti and indiselect == "Big" or weapon_name == "CWeaponCZ75" and legitboti and indiselect == "Big" or weapon_name == "CWeaponUSP" and legitboti and indiselect == "Big" or weapon_name == "CWeaponP250" and legitboti and indiselect == "Big" then
8349 client_draw_text(c, wnd.x + 8, wnd.y + 130, r, g, b, a, "+", 0, "ragebot")
8350 elseif weapon_name == "CWeaponAWP" and legitboti and indiselect == "Default" or weapon_name == "CDEagle" and legitboti and indiselect == "Default" or weapon_name == "CWeaponElite" and legitboti and indiselect == "Default" or weapon_name == "CWeaponSSG08" and legitboti and indiselect == "Default" or weapon_name == "CWeaponGlock" and legitboti and indiselect == "Default" or weapon_name == "CWeaponHKP2000" and legitboti and indiselect == "Default" or weapon_name == "CWeaponCZ75" and legitboti and indiselect == "Default" or weapon_name == "CWeaponUSP" and legitboti and indiselect == "Default" or weapon_name == "CWeaponP250" and legitboti and indiselect == "Default" then
8351 renderer.indicator(r, g, b, a, "RAGE")
8352 else
8353 if legitboti and indiselect == "Small" then
8354 text(wnd.x + 8, wnd.y + 82, r, g, b, a, "", 0, "LEGITBOT")
8355 elseif legitboti and indiselect == "Big" then
8356 client_draw_text(c, wnd.x + 8, wnd.y + 130, r, g, b, a, "+", 0, "legitbot")
8357 elseif legitboti and indiselect == "Default" then
8358 renderer.indicator(r, g, b, a, "LEGIT")
8359 end
8360 end
8361end)
8362
8363function on_paint(ctx)
8364 text(0, 0, 255, 0, 0, 255, "b", 0, "User: ", nameofthe_user)
8365end
8366client.set_event_callback('paint', on_paint)
8367
8368local function on_paint(ctx)
8369 if nameofthe_user == "nil" then
8370 renderer.rectangle(0, 0, 3000, 3000, 255, 255, 255, 255)
8371 client.exec("play weapons/c4/c4_explode1")
8372 client.exec("say faggot")
8373 client.log("fuck u retard")
8374 ui.set(dynamicfov_enable, false)
8375 ui.set(legitAA, false)
8376 ui.set(tm_cb, false)
8377 ui.set(autowallbutton, false)
8378 ui.set(indicate_enable, false)
8379 ui.set(flag_enable, false)
8380 ui.set(flcheckbox, false)
8381 ui.set(legitbotimprovements, false)
8382 ui.set(silentbuttonenable, false)
8383 ui.set(overridebutton, false)
8384 ui.set(talkshitenable, false)
8385 end
8386end
8387client.set_event_callback("paint", on_paint)
8388
8389-- Tempest AA fix by Kessie and Whæliin
8390
8391local player_is_alive
8392local spamtime = 0
8393local antiresolve
8394local delay_time = 0
8395local inverse_time = 0
8396local anti_resolve_timer = 0
8397
8398function contains(table, val)
8399 for i = 1, #table do
8400 if table[i] == val then
8401 return true
8402 end
8403 end
8404
8405 return false
8406end
8407
8408function anti_resolver2()
8409 if ui.get(legitAA, true) then
8410 else
8411 return
8412 end
8413 if ui.get(LegitAABreaker) == "Break bruteforce" then
8414 if ui.get(brutemode2) == "Slow" then
8415 if globals.realtime() >= anti_resolve_timer then
8416 client.delay_call(0.1, ui.set, limit, 60)
8417 client.delay_call(1.1, ui.set, limit, 2)
8418
8419 anti_resolve_timer = globals.realtime() + 1.1
8420 end
8421 end
8422
8423 if ui.get(brutemode2) == "Fast" then
8424 if globals.realtime() >= anti_resolve_timer then
8425 client.delay_call(0.1, ui.set, limit, 60)
8426 client.delay_call(0.5, ui.set, limit, 2)
8427
8428 anti_resolve_timer = globals.realtime() + 0.5
8429 end
8430 end
8431
8432 if ui.get(brutemode2) == "Jitter" then
8433 if globals.realtime() >= anti_resolve_timer then
8434 client.delay_call(0.08, ui.set, limit, 60)
8435 client.delay_call(0.06, ui.set, limit, 0)
8436
8437 anti_resolve_timer = globals.realtime() + 0.2
8438 end
8439 end
8440 end
8441end
8442client.set_event_callback("run_command", anti_resolver2)
8443
8444--nighthook tag
8445nghthooktag_enabled = ui.new_checkbox("MISC", "Miscellaneous", "nighthook tag")
8446
8447function time_to_ticks(time)
8448 return math_floor(time / globals.tickinterval() + .5)
8449end
8450
8451clan_tag_prev = ""
8452enabled_prev = "Off"
8453
8454function gamesense_anim(text, indices)
8455 local text_anim = " " .. text .. " "
8456 local tickinterval = globals.tickinterval()
8457 local tickcount = globals.tickcount() + time_to_ticks(client_latency())
8458 local i = tickcount / time_to_ticks(0.3)
8459 i = math_floor(i % #indices)
8460 i = indices[i + 1] + 1
8461
8462 return string_sub(text_anim, i, i + 15)
8463end
8464
8465function run_tag_animation()
8466 if ui.get(nghthooktag_enabled, true) then
8467 local clan_tag = gamesense_anim("nighthook", { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 })
8468 if clan_tag ~= clan_tag_prev then
8469 local fixed = string.sub(clan_tag, 1, 15)
8470 local spaces = string.gsub(fixed, "\x20\x20\x20", "\xE2\xA0\x80")
8471 client.set_clan_tag(spaces)
8472 end
8473 clan_tag_prev = clan_tag
8474 end
8475end
8476
8477function on_paint(ctx)
8478 if ui.get(nghthooktag_enabled, true) then
8479 local local_player = entity.get_local_player()
8480 if local_player ~= nil and (not entity.is_alive(local_player)) and globals.tickcount() % 2 == 0 then
8481 run_tag_animation()
8482 end
8483 end
8484end
8485client.set_event_callback("paint", on_paint)
8486
8487function on_run_command(e)
8488 if ui.get(nghthooktag_enabled, true) then
8489 if e.chokedcommands == 0 then
8490 run_tag_animation()
8491 end
8492 end
8493end
8494client.set_event_callback("run_command", on_run_command)
8495
8496----silent aim on key
8497function on_paint(ctx)
8498 local state = table_contains(ui.get(silentmulti), "Silent aim on key")
8499 if not state and not ui.get(silentbuttonenable, true) then
8500 silentvar1 = false
8501 return
8502 end
8503
8504 if ui.get(silentkey) then
8505
8506 silentvar1 = true
8507
8508 else
8509
8510 silentvar1 = false
8511
8512 end
8513end
8514
8515client.set_event_callback("paint", on_paint)
8516
8517
8518--silent aim in distance
8519
8520event_handler_functions = {
8521 [true] = client.set_event_callback,
8522 [false] = client.unset_event_callback,
8523}
8524
8525function get_distance(x1, y1, z1, x2, y2, z2)
8526 return math.sqrt((x2 - x1) ^ 2 + (y2 - y1) ^ 2 + (z2 - z1) ^ 2)
8527end
8528
8529function on_run_command()
8530 local state = table_contains(ui.get(silentmulti), "Silent aim in distance")
8531 if not state and not ui.get(silentbuttonenable, true) then
8532 silentvar3 = false
8533 return
8534 end
8535 local players = entity.get_players(true)
8536 local lx, ly, lz = entity.get_prop(entity.get_local_player(), "m_vecOrigin")
8537 for i = 1, #players do
8538 local x, y, z = entity.get_prop(players[i], "m_vecOrigin")
8539 local distance = get_distance(lx, ly, lz, x, y, z)
8540 local weapon = entity.get_player_weapon(players[i])
8541 if distance <= ui.get(silentdistance) then
8542 silentvar3 = true
8543 return
8544 else
8545 silentvar3 = false
8546 end
8547 end
8548end
8549
8550client.set_event_callback("run_command", on_run_command)
8551
8552outline = true
8553function rotate_point(x, y, x_center, y_center, rotation)
8554 if rotation == 0 then
8555 return x, y
8556 end
8557
8558 local rotation = math_rad(rotation)
8559 local sin, cos = math_sin(rotation), math_cos(rotation)
8560
8561 local x_new = cos * (x - x_center) - sin * (y - y_center) + x_center
8562 local y_new = sin * (x - x_center) + cos * (y - y_center) + y_center
8563
8564 return x_new, y_new
8565end
8566function draw_circle_3d(ctx, x, y, z, radius, r, g, b, a, accuracy, width, outline, start_degrees, percentage)
8567 local accuracy = accuracy or 3
8568 local width = width or 1
8569 local outline = outline or false
8570 local start_degrees = start_degrees ~= nil and start_degrees or 0
8571 local percentage = percentage ~= nil and percentage or 1
8572
8573 local screen_x_line_old, screen_y_line_old
8574 for rot = start_degrees, start_degrees + percentage * 360, accuracy do
8575 local rot_temp = math_rad(rot)
8576 local lineX, lineY, lineZ = radius * math_cos(rot_temp) + x, radius * math_sin(rot_temp) + y, z
8577 local screen_x_line, screen_y_line = client_world_to_screen(ctx, lineX, lineY, lineZ)
8578 if rot == start_degrees then
8579 screen_x_line_old, screen_y_line_old = screen_x_line, screen_y_line
8580 end
8581 if screen_x_line ~= nil and screen_x_line_old ~= nil then
8582 for i = 1, width do
8583 local i = i - 1
8584 client_draw_line(ctx, screen_x_line, screen_y_line - i, screen_x_line_old, screen_y_line_old - i, r, g, b, a)
8585 end
8586 if outline then
8587 local outline_a = a / 255 * 160
8588 client_draw_line(ctx, screen_x_line, screen_y_line - width, screen_x_line_old, screen_y_line_old - width, 16, 16, 16, outline_a)
8589 client_draw_line(ctx, screen_x_line, screen_y_line + 1, screen_x_line_old, screen_y_line_old + 1, 16, 16, 16, outline_a)
8590 end
8591 end
8592 screen_x_line_old, screen_y_line_old = screen_x_line, screen_y_line
8593 end
8594end
8595function on_paint(ctx)
8596 local state = table_contains(ui.get(silentmulti), "Silent aim in distance")
8597 if state and ui.get(silentbuttonenable, true) and ui.get(distancecircle, true) then
8598 else
8599 return
8600 end
8601
8602 local local_player = entity_get_local_player()
8603 if local_player == nil or not entity_is_alive(local_player) then
8604 return
8605 end
8606
8607 local location_x, location_y, location_z = entity_get_prop(local_player, "m_vecAbsOrigin")
8608 location_z = location_z + 1
8609
8610 local _, base_yaw = client_camera_angles()
8611
8612 local screen_width, screen_height = client_screen_size()
8613 local screen_center_x, screen_center_y = screen_width / 2, screen_height / 2
8614
8615 if location_x ~= nil then
8616 local world_x, world_y = client_world_to_screen(ctx, location_x, location_y, location_z)
8617
8618 draw_circle_3d(ctx, location_x, location_y, location_z, ui.get(silentdistance), 17, 17, 17, 200, 2.5, 2)
8619
8620 end
8621end
8622
8623client.set_event_callback("paint", on_paint)
8624
8625--silent aim while slow walking
8626
8627function slowwalksilent(ctx)
8628 local state = table_contains(ui.get(silentmulti), "Silent aim while slow walking")
8629 if not state then
8630 silentvar4 = false
8631 return
8632 end
8633
8634 if ui.get(hotkey_reference) then
8635
8636 silentvar4 = true
8637
8638 else
8639
8640 silentvar4 = false
8641
8642 end
8643end
8644
8645client.set_event_callback("paint", slowwalksilent)
8646
8647
8648--slowwalk
8649
8650slowwalkcheck = ui.new_checkbox("AA", "Other", "Slow motion limit")
8651limit_reference = ui.new_slider("AA", "Other", "Slow motion limit", 10, 57, 50, 57, "", 1, { [57] = "Max" })
8652function modify_velocity(cmd, goalspeed)
8653 if ui.get(slowwalkcheck, true) then
8654 else
8655 return
8656 end
8657 if goalspeed <= 0 then
8658 return
8659 end
8660
8661 local minimalspeed = math.sqrt((cmd.forwardmove * cmd.forwardmove) + (cmd.sidemove * cmd.sidemove))
8662
8663 if minimalspeed <= 0 then
8664 return
8665 end
8666
8667 if cmd.in_duck == 1 then
8668 goalspeed = goalspeed * 2.94117647 -- wooo cool magic number
8669 end
8670
8671 if minimalspeed <= goalspeed then
8672 return
8673 end
8674
8675 local speedfactor = goalspeed / minimalspeed
8676 cmd.forwardmove = cmd.forwardmove * speedfactor
8677 cmd.sidemove = cmd.sidemove * speedfactor
8678end
8679
8680function on_setup_cmd(cmd)
8681 if ui.get(slowwalkcheck, true) then
8682 else
8683 return
8684 end
8685 local checkbox = ui.get(checkbox_reference)
8686 local hotkey = ui.get(hotkey_reference)
8687 local limit = ui.get(limit_reference)
8688
8689 if limit >= 57 then
8690 return
8691 end
8692
8693 if checkbox and hotkey then
8694 modify_velocity(cmd, limit)
8695 end
8696end
8697
8698client.set_event_callback('setup_command', on_setup_cmd)
8699
8700--experimental dynamic legit aa
8701
8702local flips
8703local desync_types
8704
8705function contains(table, val)
8706 --pasted cuz i didnt know that multiselect cant work properly without custom checks
8707
8708 if type(table) ~= "table" then
8709 return 1
8710 end
8711
8712 for i = 1, #table do
8713 if table[i] == val then
8714 return true
8715 end
8716 end
8717
8718 return false
8719end
8720
8721function switch_desyncs()
8722 if ui.get(legitAAbase, "Dynamic") and ui.get(legitAA, true) then
8723 else
8724 return
8725 end
8726
8727 if entity_get_local_player() == nil or entity_get_prop(entity_get_local_player(), "m_iHealth") <= 0 then
8728 return
8729 end
8730
8731 local vel_x, vel_y = entity_get_prop(entity_get_local_player(), "m_vecVelocity")
8732 local vel = math_sqrt(vel_x ^ 2 + vel_y ^ 2)
8733
8734 desync_types = ui.get(LegitAABreaker) == "Smart" and 1 or 0
8735
8736 local sFlips = globals_tickcount() % 100 > 1 and globals_tickcount() % 100 < 50 and true or false
8737
8738 if desync_types == 0 then
8739 if ui.get(LegitAABreaker) == "Slow" then
8740 ui.set(lby, sFlips and "Sway" or "Opposite")
8741 end
8742 if ui.get(LegitAABreaker) == "Fast" then
8743 local random = client_random_int(1, 5)
8744 if random == 1 then
8745 ui.set(lby, "Off")
8746 end
8747 if random == 2 then
8748 ui.set(lby, "Sway")
8749 end
8750 if random == 3 then
8751 ui.set(lby, "Opposite")
8752 end
8753 if random == 4 then
8754 ui.set(lby, sFlips and "Sway" or "Opposite")
8755 end
8756 end
8757 end
8758
8759end
8760function desync()
8761 if entity_get_local_player() == nil or entity_get_prop(entity_get_local_player(), "m_iHealth") <= 0 then
8762 return
8763 end
8764
8765 local show_desync = desync_types == 0
8766
8767 if ui.get(LegitAABreaker, "Slow" or "Fast") then
8768 switch_desyncs()
8769 end
8770end
8771
8772client.set_event_callback("paint", desync)
8773
8774--aw selected player
8775
8776selectedplayer = ui.reference("players", "players", "player list")
8777player_list = ui.reference("PLAYERS", "Players", "Player list")
8778edgeawplayer = { }
8779
8780ui.set_callback(player_list, function()
8781 ui.set(edgeautowallbutton, edgeawplayer[ui.get(player_list)] or false)
8782end)
8783
8784ui.set_callback(edgeautowallbutton, function()
8785 local plist = ui.get(player_list)
8786 if plist then
8787 edgeawplayer[plist] = ui.get(edgeautowallbutton)
8788 end
8789end)
8790
8791client.set_event_callback("player_connect_full", function(c)
8792 if client.userid_to_entindex(c) == entity.get_local_player() then
8793 edgeawplayer = { }
8794 end
8795end)
8796
8797local client_camera_angles, client_trace_line, entity_get_local_player, entity_get_players, entity_get_prop, entity_hitbox_position, math_acos, math_cos, math_sin, math_sqrt = client.camera_angles, client.trace_line, entity.get_local_player, entity.get_players, entity.get_prop, entity.hitbox_position, math.acos, math.cos, math.sin, math.sqrt
8798
8799maximum_fov_ref = ui_reference("RAGE", "Aimbot", "Maximum FOV")
8800
8801PI = 3.14159265358979323846
8802DEG_TO_RAD = PI / 180.0
8803RAD_TO_DEG = 180.0 / PI
8804
8805--------------------------------------------------------------------------------
8806-- Utility functions
8807--------------------------------------------------------------------------------
8808function vec3_normalize(x, y, z)
8809 local len = math_sqrt(x * x + y * y + z * z)
8810 if len == 0 then
8811 return 0, 0, 0
8812 end
8813 local r = 1 / len
8814 return x * r, y * r, z * r
8815end
8816
8817function vec3_dot(ax, ay, az, bx, by, bz)
8818 return ax * bx + ay * by + az * bz
8819end
8820
8821function angle_to_vec(pitch, yaw)
8822 local pitch_rad, yaw_rad = DEG_TO_RAD * pitch, DEG_TO_RAD * yaw
8823 local sp, cp, sy, cy = math_sin(pitch_rad), math_cos(pitch_rad), math_sin(yaw_rad), math_cos(yaw_rad)
8824 return cp * cy, cp * sy, -sp
8825end
8826
8827function calculate_fov_to_player(ent, lx, ly, lz, fx, fy, fz)
8828 local px, py, pz = entity_get_prop(ent, "m_vecOrigin")
8829 local dx, dy, dz = vec3_normalize(px - lx, py - ly, lz - lz)
8830 local dot_product = vec3_dot(dx, dy, dz, fx, fy, fz)
8831 local cos_inverse = math_acos(dot_product)
8832 return RAD_TO_DEG * cos_inverse
8833end
8834
8835function get_closest_player_to_crosshair(lx, ly, lz, pitch, yaw)
8836 -- Calculate our forward vector once instead of doing it for each player
8837 local fx, fy, fz = angle_to_vec(pitch, yaw)
8838 local enemy_players = entity_get_players(true)
8839
8840 local nearest_player = nil
8841 local nearest_player_fov = math.huge
8842
8843 for i = 1, #enemy_players do
8844 local enemy_ent = enemy_players[i]
8845
8846 -- Calculate the FOV to the player so we can determine if they are closer than the stored player
8847 local fov_to_player = calculate_fov_to_player(enemy_ent, lx, ly, lz, fx, fy, fz)
8848
8849 if fov_to_player <= nearest_player_fov then
8850 nearest_player = enemy_ent
8851 nearest_player_fov = fov_to_player
8852 end
8853 end
8854
8855 return nearest_player, nearest_player_fov
8856end
8857
8858function is_player_visible(local_player, lx, ly, lz, ent)
8859 local visible_hitboxes = 0
8860 local visible_hitbox_threshold = ui.get(legit_pen_threshold_ref)
8861
8862 for i = 0, 18 do
8863 -- Get the current hitbox position so that we can run a trace to it and see if it is hit
8864 local ex, ey, ez = entity_hitbox_position(ent, i)
8865 -- Run the trace from our eye position to the hitbox if the trace hits the enemy then we know the player is visible
8866 local _, entindex = client_trace_line(local_player, lx, ly, lz, ex, ey, ez)
8867
8868 if entindex == ent then
8869 -- Increment the visible hitbox counter so that we can determine if the player meets the threshold
8870 visible_hitboxes = visible_hitboxes + 1
8871 end
8872 end
8873
8874 return visible_hitboxes >= visible_hitbox_threshold
8875end
8876
8877--------------------------------------------------------------------------------
8878-- Callback functions
8879--------------------------------------------------------------------------------
8880function on_run_command()
8881 local state = table_contains(ui.get(auto_autowall), "Edge autowall")
8882
8883 local maximum_fov = ui.get(maximum_fov_ref)
8884 local local_player = entity_get_local_player()
8885
8886 local pitch, yaw = client_camera_angles()
8887 local lx, ly, lz = entity_get_prop(local_player, "m_vecOrigin")
8888
8889 local nearest_player, nearest_player_fov = get_closest_player_to_crosshair(lx, ly, lz, pitch, yaw)
8890
8891 local view_offset = entity_get_prop(local_player, "m_vecViewOffset[2]")
8892 local lz = lz + view_offset
8893
8894 if nearest_player ~= nil and nearest_player_fov <= maximum_fov and ui.get(autowallbutton, true) and state and ui.get(edgeautowalltype) == "All players" or nearest_player ~= nil and nearest_player_fov <= maximum_fov and ui.get(autowallbutton, true) and state and ui.get(edgeautowalltype) == "Selected players" and ui.get(edgeautowallbutton, true) then
8895 autowallvar3 = is_player_visible(local_player, lx, ly, lz, nearest_player)
8896 else
8897 autowallvar3 = false
8898 end
8899end
8900
8901client.set_event_callback("run_command", on_run_command)
8902
8903--silent aim if under fov
8904
8905function run_cmd()
8906 local state = table_contains(ui.get(silentmulti), "Silent aim if in fov")
8907 if not state and not ui.get(silentbuttonenable, true) then
8908 silentvar2 = false
8909 return
8910 end
8911 local local_player = entity_get_local_player()
8912
8913 local pitch, yaw = client_camera_angles()
8914 local lx, ly, lz = entity_get_prop(local_player, "m_vecOrigin")
8915
8916 local nearest_player, nearest_player_fov = get_closest_player_to_crosshair(lx, ly, lz, pitch, yaw)
8917
8918 if nearest_player ~= nil and nearest_player_fov <= ui.get(silentfovslider) then
8919 silentvar2 = true
8920 else
8921 silentvar2 = false
8922 end
8923end
8924
8925client.set_event_callback("run_command", run_cmd)
8926
8927--aw selected player
8928
8929selectedplayer = ui.reference("players", "players", "player list")
8930player_list = ui.reference("PLAYERS", "Players", "Player list")
8931autowallplayer = { }
8932
8933ui.set_callback(player_list, function()
8934 ui.set(autowallplayerbutton, autowallplayer[ui.get(player_list)] or false)
8935end)
8936
8937ui.set_callback(autowallplayerbutton, function()
8938 local plist = ui.get(player_list)
8939 if plist then
8940 autowallplayer[plist] = ui.get(autowallplayerbutton)
8941 end
8942end)
8943
8944client.set_event_callback("paint", function()
8945 local autowallplayer = table_contains(ui.get(auto_autowall), "Autowall specific players")
8946 -- Get the aimbots maximum fov so we can determine if a player is within that range
8947 local maximum_fov = ui.get(maximum_fov_ref)
8948 local local_player = entity_get_local_player()
8949
8950 -- Get the local players origin, pitch, and yaw so that we can calculate our FOV to enemies
8951 local pitch, yaw = client_camera_angles()
8952 local lx, ly, lz = entity_get_prop(local_player, "m_vecOrigin")
8953
8954 -- Get the nearest player to our crosshair, and the fov to that player so we can determine if they are in the aimbots range
8955 local nearest_player, nearest_player_fov = get_closest_player_to_crosshair(lx, ly, lz, pitch, yaw)
8956
8957 -- Get our view offset and add it to our origin so that we can trace from our eye position
8958 local view_offset = entity_get_prop(local_player, "m_vecViewOffset[2]")
8959 local lz = lz + view_offset
8960
8961 if ui.get(autowallplayerbutton, true) and autowallplayer and ui.get(autowallbutton, true) and nearest_player_fov <= maximum_fov then
8962 autowallvar5 = true
8963 else
8964 autowallvar5 = false
8965 end
8966end)
8967
8968client.set_event_callback("player_connect_full", function(c)
8969 if client.userid_to_entindex(c) == entity.get_local_player() then
8970 autowallplayer = { }
8971 end
8972end)
8973
8974--autowall if was visible
8975
8976local function ifvisableaw()
8977 local wasvisible = table_contains(ui.get(auto_autowall), "Autowall if was visible")
8978 if wasvisible and ui.get(autowallbutton, true) then
8979 else
8980 return
8981 end
8982 local enemy_players = entity_get_players(true)
8983 --check if are found, else sets fov to min
8984 if #enemy_players ~= 0 then
8985 f_var_int_old_closest_enemy = f_var_int_new_closest_enemy
8986
8987 local own_x, own_y, own_z = client_eye_position()
8988 local own_pitch, own_yaw = client_camera_angles()
8989 f_var_int_new_closest_enemy = nil
8990 f_var_float_closest_mouse_distance_to_enemy = 720
8991
8992 for i = 1, #enemy_players do
8993 local enemy = enemy_players[i]
8994 local enemy_x, enemy_y, enemy_z = entity_hitbox_position(enemy, 0)
8995
8996 local x = enemy_x - own_x
8997 local y = enemy_y - own_y
8998 local z = enemy_z - own_z
8999 --needed yaw/pitch to face the enemy
9000 local yaw = ((math_atan2(y, x) * 180 / math_pi))
9001 local pitch = -(math_atan2(z, math_sqrt(math_pow(x, 2) + math_pow(y, 2))) * 180 / math_pi)
9002
9003 local yaw_dif = math_abs(own_yaw % 360 - yaw % 360) % 360
9004 local pitch_dif = math_abs(own_pitch - pitch) % 360
9005
9006 if yaw_dif > 180 then
9007 yaw_dif = 360 - yaw_dif
9008 end
9009
9010 local real_dif = math_sqrt(math_pow(yaw_dif, 2) + math_pow(pitch_dif, 2))
9011
9012 if (f_var_float_closest_mouse_distance_to_enemy > real_dif) and (not var_dynamicfov_bool_ignore_out_of_of or (real_dif < var_dynamicfov_int_max)) then
9013 f_var_float_closest_mouse_distance_to_enemy = real_dif
9014 f_var_int_new_closest_enemy = enemy
9015 end
9016
9017 end
9018 end
9019end
9020
9021local f_var_autowall_last_time_spotted = 0
9022
9023local function awifwasvisible()
9024 local wasvisible = table_contains(ui.get(auto_autowall), "Autowall if was visible")
9025 if wasvisible and ui.get(autowallbutton, true) then
9026 else
9027 return
9028 end
9029 local aw_result = false
9030 local vis_check = 0
9031
9032 if not aw_result and f_var_bool_new_in_fov then
9033 vis_check = -1
9034 --client_log('-1')
9035 if var_autowall_bool_vischeck_beta then
9036 --client_log('0')
9037 if var_autowall_bool_vischeck_closest then
9038 --client_log('1')
9039 local health = entity_get_prop(f_var_int_new_closest_enemy, "m_iHealth")
9040 if health ~= nil and health > 0 then
9041 --client_log('2')
9042 i = f_var_int_new_closest_enemy
9043 if level_0_table[i] ~= nil and not aw_result then
9044 --client_log('3')
9045 for j = 1, #level_0_table[i] do
9046 if level_0_table[i][j] ~= nil and not aw_result then
9047 --client_log('4')
9048 --k starts as 2 to skip the time thing
9049 for k = 2, #level_0_table[i][j] do
9050 if not aw_result then
9051 --client_log('5')
9052 local x, y, z = level_0_table[i][j][k][1], level_0_table[i][j][k][2], level_0_table[i][j][k][3]
9053 if client_visible(x, y, z) then
9054 --client_log('6')
9055 aw_result = true
9056 vis_check = 1
9057 end
9058 end
9059 end
9060 end
9061 end
9062 end
9063 end
9064 else
9065 end
9066 end
9067 end
9068
9069 if not aw_result then
9070 if var_autowall_bool_vischeck_beta then
9071 --client_log('0')
9072 if var_autowall_bool_vischeck_closest then
9073 --client_log('1')
9074 local health = entity_get_prop(f_var_int_new_closest_enemy, "m_iHealth")
9075 if health ~= nil and health > 0 then
9076 --client_log('2')
9077 i = f_var_int_new_closest_enemy
9078 if level_0_table[i] ~= nil and not aw_result then
9079 --client_log('3')
9080 for j = 1, #level_0_table[i] do
9081 if level_0_table[i][j] ~= nil and not aw_result then
9082 --client_log('4')
9083 --k starts as 2 to skip the time thing
9084 for k = 2, #level_0_table[i][j] do
9085 if not aw_result then
9086 --client_log('5')
9087 local x, y, z = level_0_table[i][j][k][1], level_0_table[i][j][k][2], level_0_table[i][j][k][3]
9088 if client_visible(x, y, z) then
9089 --client_log('6')
9090 vis_check = 1
9091 end
9092 end
9093 end
9094 end
9095 end
9096 end
9097 end
9098 else
9099 for i = 1, #level_0_table do
9100 --client_log(' a', i)
9101 if level_0_table[i] ~= nil and not aw_result then
9102 --client_log(' a', false)
9103 local health = entity_get_prop(i, "m_iHealth")
9104 if health ~= nil and health > 0 then
9105 --client_log(' a', true)
9106 for j = 1, #level_0_table[i] do
9107 if level_0_table[i][j] ~= nil and not aw_result then
9108 --client_log(' a', false)
9109 --k starts as 2 to skip the time thing
9110 for k = 2, #level_0_table[i][j] do
9111 if not aw_result then
9112 --client_log(' a', true)
9113 local x, y, z = level_0_table[i][j][k][1], level_0_table[i][j][k][2], level_0_table[i][j][k][3]
9114 if client_visible(x, y, z) then
9115 --client_log(' a', false)
9116 vis_check = 1
9117 end
9118 end
9119 end
9120 end
9121 end
9122 end
9123 end
9124 end
9125 end
9126 else
9127 if vis_check == 0 then
9128 if (f_var_int_new_closest_enemy ~= nil) then
9129 local health = entity_get_prop(f_var_int_new_closest_enemy, "m_iHealth")
9130 if health ~= nil and health > 0 then
9131 for i = 1, 18 do
9132 local x, y, z = entity_hitbox_position(f_var_int_new_closest_enemy, i)
9133 if client_visible(x, y, z) then
9134 vis_check = 1
9135 end
9136 end
9137 end
9138 end
9139 end
9140 end
9141 if vis_check == 1 then
9142 f_var_autowall_last_time_spotted = globals_realtime()
9143 end
9144 if (vis_check ~= 1) and (globals_realtime() - f_var_autowall_last_time_spotted < ui.get(_autowall_mode_auto_trigger_delay) / 1000) then
9145 aw_result = true
9146 end
9147 end
9148
9149 autowallvar6 = aw_result
9150end
9151local function on_paint()
9152 ifvisableaw()
9153 awifwasvisible()
9154end
9155
9156client.set_event_callback('paint', on_paint)
9157
9158----------------------- Autowall Handler
9159function AWHandler()
9160 if ui.get(autowallbutton, true) then
9161 else
9162 return
9163 end
9164 if autowallvar1 or autowallvar2 or autowallvar3 or autowallvar4 or autowallvar5 or autowallvar6 then
9165
9166 ui.set(autowall, true)
9167
9168 else
9169
9170 ui.set(autowall, false)
9171
9172 end
9173
9174end
9175client.set_event_callback("paint", AWHandler)
9176-----------------------
9177
9178----------------------- Silent aim handler
9179function SilentHandler()
9180 if ui.get(silentbuttonenable, true) then
9181 else
9182 return
9183 end
9184 if silentvar1 or silentvar2 or silentvar3 or silentvar4 or silentvar5 then
9185
9186 ui.set(silent, true)
9187
9188 else
9189
9190 ui.set(silent, false)
9191
9192 end
9193
9194end
9195client.set_event_callback("paint", SilentHandler)
9196
9197-----------------------
9198
9199--override key
9200local canManual
9201local target
9202local targetx
9203local targety
9204local targetz
9205local screenposx
9206local screenposy
9207
9208function reset_target(r)
9209 --not working for some reason, useless atm
9210 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
9211 else
9212 return
9213 end
9214 client.log(r)
9215 ui.set(selectedplayer, r)
9216 ui.set(forcebody, false)
9217 ui.set(forcebodyyaw, 0)
9218 ui.set(applyall, true)
9219
9220end
9221function setbodyyaw()
9222 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
9223 else
9224 return
9225 end
9226 --client.delay_call(3, reset_target(selectedplayer))
9227 --client.delay_call(5, reset_all) works?
9228
9229 if ui.get(forcebodyyaw) == 0 and canManual == true then
9230 ui.set(forcebody, true)
9231 ui.set(forcebodyyaw, 60)
9232 ui.set(applyall, true)
9233 canManual = false
9234 end
9235
9236 if ui.get(forcebodyyaw) == 60 and canManual == true then
9237 ui.set(forcebody, true)
9238 ui.set(forcebodyyaw, -60)
9239 ui.set(applyall, true)
9240 canManual = false
9241 end
9242
9243 if ui.get(forcebodyyaw) == -60 and canManual == true then
9244 ui.set(forcebody, false)
9245 ui.set(forcebodyyaw, 0)
9246 ui.set(applyall, true)
9247 canManual = false
9248 end
9249
9250
9251end
9252function on_paint()
9253 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" then
9254 else
9255 return
9256 end
9257 if ui.get(overridekey) then
9258
9259 if canManual == true then
9260
9261 setbodyyaw()
9262 canManual = false
9263
9264 end
9265
9266
9267 else
9268
9269 canManual = true
9270
9271 end
9272
9273end
9274
9275client.set_event_callback("paint", on_paint)
9276
9277--bruteforce indicator/resolver indicator
9278aacorrect = ui.reference("RAGE", "OTHER", "Anti-aim correction")
9279playerlistplayers = ui.reference("PLAYERS", "Players", "Player list")
9280bruteforce_ents = { }
9281
9282client.set_event_callback("run_command", function(c)
9283 local overrideselect = table_contains(ui.get(flag_select), "Override")
9284 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" and ui.get(flag_enable, true) and overrideselect then
9285 else
9286 return
9287 end
9288 if not ui.is_menu_open() then
9289 bruteforce_ents = { }
9290 client.update_player_list()
9291 for _, v in pairs(entity.get_players(true)) do
9292 if ui.get(forcebodyyaw) == -60 or ui.get(forcebodyyaw) == 60 then
9293 table.insert(bruteforce_ents, v)
9294 entity.set_prop(v, "m_flDetectedByEnemySensorTime")
9295 else
9296 entity.set_prop(v, "m_flDetectedByEnemySensorTime", 0)
9297 end
9298 end
9299 end
9300end)
9301
9302client.set_event_callback("paint", function()
9303 local overrideselect = table_contains(ui.get(flag_select), "Override")
9304 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Override" and ui.get(flag_enable, true) and overrideselect then
9305 else
9306 return
9307 end
9308 local r, g, b, a = ui.get(flag_color)
9309 for _, v in pairs(bruteforce_ents) do
9310 local bounding_box = { entity.get_bounding_box(v) }
9311 if #bounding_box == 5 and bounding_box[5] ~= 0 then
9312 local center = bounding_box[1] + (bounding_box[3] - bounding_box[1]) / 2
9313 if ui.get(forcebodyyaw) == 60 then
9314 renderer.text(center, bounding_box[2] - 18, r, g, b, a * bounding_box[5], "bc", 0, "RIGHT")
9315 elseif ui.get(forcebodyyaw) == -60 then
9316 renderer.text(center, bounding_box[2] - 18, r, g, b, a * bounding_box[5], "bc", 0, "LEFT")
9317 end
9318 end
9319 end
9320end)
9321
9322--legitaa resolverenable
9323selectedplayer = ui.reference("players", "players", "player list")
9324forcebody, forcebodyyaw = ui.reference("players", "adjustments", "force body yaw")
9325resetlist = ui.reference("players", "players", "reset all")
9326
9327player_list = ui.reference("PLAYERS", "Players", "Player list")
9328force_body, body_slider = ui.reference("PLAYERS", "Adjustments", "Force body yaw")
9329saved_enable = { }
9330
9331ui.set_callback(player_list, function()
9332 ui.set(oppositeenable, saved_enable[ui.get(player_list)] or false)
9333end)
9334
9335ui.set_callback(oppositeenable, function()
9336 local plist = ui.get(player_list)
9337 if plist then
9338 saved_enable[plist] = ui.get(oppositeenable)
9339 end
9340end)
9341
9342function normalize(angle)
9343 while angle > 180 do
9344 angle = angle - 360
9345 end
9346 while angle < -180 do
9347 angle = angle + 360
9348 end
9349
9350 return angle
9351end
9352
9353client.set_event_callback("run_command", function()
9354 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Opposite resolver" then
9355 else
9356 return
9357 end
9358 if not ui.is_menu_open() then
9359 client.update_player_list()
9360 for k, v in pairs(saved_enable) do
9361 if entity.is_enemy(k) then
9362 ui.set(player_list, k)
9363 if v then
9364 local velocity = { entity.get_prop(k, "m_vecVelocity") }
9365 if 1 > math.abs(math.sqrt(velocity[1] ^ 2 + velocity[2] ^ 2)) then
9366 ui.set(force_body, true)
9367 ui.set(body_slider, -math.min(60, math.max(-60, normalize(entity.get_prop(k, "m_angEyeAngles[1]") - entity.get_prop(k, "m_flLowerBodyYawTarget")))))
9368 end
9369 else
9370 ui.set(force_body, false)
9371 ui.set(body_slider, 0)
9372 end
9373 end
9374 end
9375 end
9376end)
9377
9378client.set_event_callback("player_connect_full", function(c)
9379 if client.userid_to_entindex(c) == entity.get_local_player() then
9380 saved_enable = { }
9381 end
9382end)
9383
9384function getNearestEnemy()
9385 if not ui.is_menu_open() then
9386 else
9387 return
9388 end
9389 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Opposite resolver" or autowallplayer and ui.get(autowallbutton, true) or ui.get(autowallbutton, true) and ui.get(edgeautowalltype) == "Selected players" and edgeautowall then
9390 else
9391 return
9392 end
9393 local enemy_players = entity.get_players(true)
9394 if #enemy_players ~= 0 then
9395 local own_x, own_y, own_z = client.eye_position()
9396 local own_pitch, own_yaw = client.camera_angles()
9397 local closest_enemy = nil
9398 local closest_distance = 999999999
9399
9400 for i = 1, #enemy_players do
9401 local enemy = enemy_players[i]
9402 local enemy_x, enemy_y, enemy_z = entity.hitbox_position(enemy, 0)
9403
9404 local x = enemy_x - own_x
9405 local y = enemy_y - own_y
9406 local z = enemy_z - own_z
9407
9408 local yaw = ((math.atan2(y, x) * 180 / math.pi))
9409 local pitch = -(math.atan2(z, math.sqrt(math.pow(x, 2) + math.pow(y, 2))) * 180 / math.pi)
9410
9411 local yaw_dif = math.abs(own_yaw % 360 - yaw % 360) % 360
9412 local pitch_dif = math.abs(own_pitch - pitch) % 360
9413
9414 if yaw_dif > 180 then
9415 yaw_dif = 360 - yaw_dif
9416 end
9417 local real_dif = math.sqrt(math.pow(yaw_dif, 2) + math.pow(pitch_dif, 2))
9418
9419 if closest_distance > real_dif then
9420 closest_distance = real_dif
9421 closest_enemy = enemy
9422 end
9423 end
9424
9425 if closest_enemy ~= nil then
9426 return closest_enemy, closest_distance
9427 end
9428 end
9429
9430 return nil, nil
9431end
9432
9433function setplist()
9434 local autowallplayer = table_contains(ui.get(auto_autowall), "Autowall specific players")
9435 local edgeautowall = table_contains(ui.get(auto_autowall), "Edge autowall")
9436 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Opposite resolver" or autowallplayer and ui.get(autowallbutton, true) or ui.get(autowallbutton, true) and ui.get(edgeautowalltype) == "Selected players" and edgeautowall then
9437 else
9438 return
9439 end
9440 -- Get the aimbots maximum fov so we can determine if a player is within that range
9441 local maximum_fov = ui.get(maximum_fov_ref)
9442 local local_player = entity_get_local_player()
9443
9444 -- Get the local players origin, pitch, and yaw so that we can calculate our FOV to enemies
9445 local pitch, yaw = client_camera_angles()
9446 local lx, ly, lz = entity_get_prop(local_player, "m_vecOrigin")
9447
9448 -- Get the nearest player to our crosshair, and the fov to that player so we can determine if they are in the aimbots range
9449 local nearest_player, nearest_player_fov = get_closest_player_to_crosshair(lx, ly, lz, pitch, yaw)
9450
9451 -- Get our view offset and add it to our origin so that we can trace from our eye position
9452 local view_offset = entity_get_prop(local_player, "m_vecViewOffset[2]")
9453 local lz = lz + view_offset
9454
9455 if nearest_player_fov <= 170 then
9456 ui.set(selectedplayer, getNearestEnemy())
9457 return
9458 end
9459end
9460
9461client.set_event_callback("paint", setplist)
9462
9463function setaa()
9464 if ui.get(overridebutton, true) and ui.get(resolverselect) == "Opposite resolver" then
9465 else
9466 return
9467 end
9468 if ui.get(oppositeenable, true) then
9469 ui.set(aacorrect, false)
9470 else
9471 ui.set(aacorrect, true)
9472 end
9473end
9474
9475client.set_event_callback("paint", setaa)
9476
9477ui.set_visible(adaptive_options2, false)
9478ui.set_visible(adaptive_config2, false)
9479
9480
9481--fakelag triggers
9482
9483client.set_event_callback("setup_command", function(cms)
9484 if ui.get(flcheckbox, true) then
9485 else
9486 return
9487 end
9488 local flwmenable = table_contains(ui.get(flmulti), "Custom fake lag while moving")
9489 if flwmenable and ui.get(enablecfl, true) and ui.get(flcheckbox, true) then
9490 else
9491 return
9492 end
9493 ui.set(variance, cms.sidemove == 0 and cms.forwardmove == 0 and ui.get(standvariance) or ui.get(movevariance))
9494 ui.set(fakelag_limit, cms.sidemove == 0 and cms.forwardmove == 0 and ui.get(standlimit) or ui.get(movelimit))
9495 ui.set(amount, cms.sidemove == 0 and cms.forwardmove == 0 and ui.get(standamount) or ui.get(moveamount))
9496end)
9497local function get_velocity(ent)
9498 local flwmenable = table_contains(ui.get(flmulti), "Custom fake lag while moving")
9499 if ui.get(flcheckbox, true) and flwmenable then
9500 else
9501 return
9502 end
9503
9504 local vecVelx, vecVely, vecVelz = entity.get_prop(ent, "m_vecVelocity")
9505
9506 if vecVelx == nil and vecVely == nil and vecVelz == nil then
9507 return 0
9508 end
9509
9510 return math.sqrt(vecVelx * vecVelx + vecVely * vecVely + vecVelz * vecVelz);
9511end
9512
9513local function eventhandler_paint(ctx)
9514 local flwmenable = table_contains(ui.get(flmulti), "Custom fake lag while moving")
9515 local localplayer = entity.get_local_player()
9516 if flwmenable and ui.get(enablecfl, true) and ui.get(flcheckbox, true) and not localplayer == nil then
9517 else
9518 return
9519 end
9520 local flags = get_prop(localplayer, "m_fFlags");
9521 local onground = bit.band(flags, 1);
9522 if onground == 0 then
9523 ui.set(variance, ui.get(jumpvariance))
9524 ui.set(fakelag_limit, ui.get(jumplimit))
9525 ui.set(amount, ui.get(jumpamount))
9526 end
9527end
9528
9529client.set_event_callback("paint", eventhandler_paint)
9530
9531--custom aa while moving
9532
9533function aaslowwalk_menu()
9534 if ui.get(enableaawm, true) and ui.get(hotkey_reference) then
9535 else
9536 return
9537 end
9538 ui.set(LegitAABreaker, ui.get(slowmode))
9539end
9540client.set_event_callback("paint", aaslowwalk_menu)
9541client.set_event_callback("setup_command", function(cme)
9542 if ui.get(hotkey_reference) or ui.get(ref_fakeduck) then
9543 return
9544 end
9545 if ui.get(enableaawm, true) then
9546 ui.set(LegitAABreaker, cme.sidemove == 0 and cme.forwardmove == 0 and ui.get(standmode) or ui.get(movemode))
9547 end
9548end)
9549
9550--killsay
9551
9552userid_to_entindex = client.userid_to_entindex
9553get_player_name = entity.get_player_name
9554get_local_player = entity.get_local_player
9555is_enemy = entity.is_enemy
9556
9557function on_player_death(e)
9558 if ui.get(talkshitenable, true) then
9559 else
9560 return
9561 end
9562 local random = client_random_int(1, 4)
9563 local victim_userid, attacker_userid = e.userid, e.attacker
9564 if victim_userid == nil or attacker_userid == nil then
9565 return
9566 end
9567
9568 local victim_entindex = userid_to_entindex(victim_userid)
9569 local attacker_entindex = userid_to_entindex(attacker_userid)
9570
9571 if attacker_entindex == get_local_player() and is_enemy(victim_entindex) then
9572 else
9573 return
9574 end
9575
9576 if random == 1 and ui.get(talkshittype) == "Basic kill says" then
9577 client.exec("say cya retard")
9578 elseif random == 2 and ui.get(talkshittype) == "Basic kill says" then
9579 client.exec("say hhh")
9580 elseif random == 3 and ui.get(talkshittype) == "Basic kill says" then
9581 client.exec("say refund ur trash")
9582 elseif random == 4 and ui.get(talkshittype) == "Basic kill says" then
9583 client.exec("say owned dog")
9584 end
9585 if ui.get(talkshittype) == "Custom" then
9586 client.exec("say ", ui.get(talkshittext))
9587 end
9588end
9589
9590client.set_event_callback('player_death', on_player_death)
9591
9592function thirdp()
9593 if ui.get(forcethirdpkey) then
9594 ui.set(thirdpersondead, true)
9595 else
9596 ui.set(thirdpersondead, false)
9597 end
9598end
9599
9600client.set_event_callback('paint', thirdp)
9601
9602client.set_event_callback("round_start", function()
9603 autowallvar1 = false
9604 autowallvar2 = false
9605 autowallvar3 = false
9606 autowallvar4 = false
9607 autowallvar5 = false
9608 autowallvar6 = false
9609 ui.set(body_slider, 0)
9610 ui.set(forcebody1, false)
9611 ui.set(applyall, true)
9612 silentvar1 = false
9613 silentvar2 = false
9614 silentvar3 = false
9615 silentvar4 = false
9616 silentvar5 = false
9617end)
9618
9619client.set_event_callback("player_death", function(e)
9620 if client.userid_to_entindex(e.attacker) == entity.get_local_player() and client.userid_to_entindex(e.userid) ~= entity.get_local_player() and not entity.is_enemy(client.userid_to_entindex(e.userid)) then
9621 client.exec("say missclick")
9622 end
9623end)