- Joined
- Jul 11, 2020
- Messages
- 314
- Reaction score
- 121
- Points
- 43
Lua:
local fl_enable = ui.new_checkbox("AA", "Fake lag", "Xares fake lag")
local fl_mode = ui.new_combobox("AA", "Fake lag", "Mode \n", {"Fluctuate", "Spike"})
local fl_disable_on_dt = ui.new_checkbox("AA", "Fake lag", "Disable on double tap")
local completed_cycles = 0
local old_choke = 2
local wait = 0
local random = 0
--References--
local menu = {
aa = ui.reference("AA", "Anti-aimbot angles", "Enabled"),
pitch = ui.reference("AA", "Anti-aimbot angles", "Pitch"),
yaw_base = ui.reference("AA", "Anti-aimbot angles", "Yaw base"),
yaw = {ui.reference("AA", "Anti-aimbot angles", "Yaw")},
yaw_jitter = {ui.reference("AA", "Anti-aimbot angles", "Yaw jitter")},
body_yaw = {ui.reference("AA", "Anti-aimbot angles", "Body yaw")},
frestanding_body_yaw = ui.reference("AA", "Anti-aimbot angles", "Freestanding body yaw"),
lower_body_target = ui.reference("AA", "Anti-aimbot angles", "Lower body yaw target"),
fake_yaw_limit = ui.reference("AA", "anti-aimbot angles", "Fake yaw limit"),
edge_yaw = ui.reference("AA", "Anti-aimbot angles", "Edge yaw"),
freestanding = {ui.reference("AA", "Anti-aimbot angles", "Freestanding")},
fakelag_mode = ui.reference("AA", "Fake lag", "Amount"),
limit = ui.reference("AA", "Fake lag", "Limit"),
variance = ui.reference("AA", "Fake lag", "Variance"),
onshot = {ui.reference("AA", "Other", "On shot anti-aim")},
fakeduck = ui.reference("RAGE", "Other", "Duck peek assist"),
doubletap = {ui.reference("RAGE", "Other", "Double tap")},
doubletap_mdoe = ui.reference("RAGE", "Other", "Double tap mode"),
doubletap_hitchance = ui.reference("RAGE", "Other", "Double tap hit chance"),
doubletap_fakelag = ui.reference("RAGE", "Other", "Double tap fake lag limit"),
forceobdyaim = ui.reference("RAGE", "Other", "Force body aim"),
quickpeek = {ui.reference("RAGE", "Other", "Quick peek assist")},
usercmd_holdaim = ui.reference("MISC", "Settings", "sv_maxusrcmdprocessticks_holdaim"),
usercmd = ui.reference("misc", "settings", "sv_maxusrcmdprocessticks"),
}
local function clamp(min, max, value)
if min < max then
return math.max(min, math.min(max, value))
else
return math.max(max, math.min(min, value))
end
end
--Handle GUI
local function set_visible(state, ...)
local items = {...}
for i=1, #items do
ui.set_visible(items[i], state)
end
end
--TODO: Hide default fakelag setting if the lua is enabled.
local function handle_gui()
--AA
set_visible(fl_enable)
set_visible(ui.get(fl_enable), fl_mode, fl_disable_on_dt)
-- set_visible(ui.get(fl_enable), fl_mode, fl_disable_on_dt)
set_visible(ui.get(fl_mode) == "Incremental", fl_incremental_reset)
end
local function setup_command(cmd)
if ui.get(fl_enable) then
local mode_g = ui.get(fl_mode)
cmd.allow_send_packet = false
if cmd.chokedcommands == 0 then
local max_lag = cvar.sv_maxusrcmdprocessticks:get_int()-2 --added overhead to prevent fakelag from shitting itself if you have a ping above 50
local new_limit = max_lag
local fakeduck_g = ui.get(menu.fakeduck)
local doubletap_g = ui.get(menu.doubletap[1]) and ui.get(menu.doubletap[2])
if ui.get(fl_disable_on_dt) then
if doubletap_g then
new_limit = 1
end
end
if fakeduck_g then
new_limit = 14
end
--Add percentage to fluctuate
new_limit = clamp(1, max_lag, math.floor(new_limit))
new_limit = clamp(1, ui.get(menu.usercmd)-2, new_limit)
if mode_g == "Fluctuate" then
if old_choke < 14 then
old_choke = old_choke + 7
else
old_choke = 1
end
new_limit = old_choke
elseif mode_g == "Spike" then
if old_choke < 2 then
-- old_choke = old_choke + 7
old_choke = old_choke + 1
new_limit = 6
random = client.random_int(0, 5)
else
old_choke = 0
new_limit = 14 - random
end
end
ui.set(menu.limit, clamp(1,14,new_limit)) --nice gamesnooze bug, cant create a standalone fakelag due to gs forcing it off so need to set the slider
completed_cycles = completed_cycles + 1
end
end
end
local function set_callbacks(event, ...)
local items = {...}
for i=1, #items do
client.set_event_callback(event, items[i])
end
end
local function on_shot(e)
wait = 14
end
set_callbacks('weapon_fire', on_shot)
set_callbacks("paint_ui", handle_gui)
set_callbacks("setup_command", setup_command)
No this wont work for Neverlose or any other cheat than gamesense
Last edited by a moderator: