Начинающий
Начинающий
- Статус
- Оффлайн
- Регистрация
- 22 Мар 2026
- Сообщения
- 19
- Реакции
- 7
форк древней луа на лагкомп от какого то типа с форума, теперь вырубает к хуям рейдж пока не появится возможность стрельнуть (лучше всего в лцбрикеров делеит)
4345:
local L1 = ui.reference("RAGE", "Aimbot", "Enabled")
local L2 = ui.reference("RAGE", "Aimbot", "Enabled")
local L3 = { }
local L4 = false
local L5 = ui.get(L1)
local L6 = ui.get(L2)
local function L7(L8, L9)
local L8 = L8 ~= nil and L8 or false
local L9 = L9 ~= nil and L9 or true
local L10 = { }
local me = entity.get_local_player()
local player_resource = entity.get_player_resource()
for player = 1, globals.maxplayers() do
local is_enemy, is_alive = true, true
if L8 and not entity.is_enemy(player) then is_enemy = false end
if is_enemy then
if L9 and entity.get_prop(player_resource, 'm_bAlive', player) ~= 1 then is_alive = false end
if is_alive then table.insert(L10, player) end
end
end
return L10
end
local function L11()
local me = entity.get_local_player()
local players = L7(true, true)
for i = 1, #players do
local idx = players[i]
local prev_tick = L3[idx]
if entity.is_dormant(idx) or not entity.is_alive(idx) then
L3[idx] = nil
else
local player_origin = { entity.get_origin(idx) }
local simulation_time = math.floor(0.5 + (entity.get_prop(idx, 'm_flSimulationTime') / globals.tickinterval()))
if prev_tick ~= nil then
local delta = simulation_time - prev_tick.tick
if delta < 0 or delta > 0 and delta <= 64 then
local m_fFlags = entity.get_prop(idx, 'm_fFlags')
local diff_origin = { player_origin[1] - prev_tick.origin[1], player_origin[2] - prev_tick.origin[2], player_origin[3] - prev_tick.origin[3] }
local teleport_distance = diff_origin[1] * diff_origin[1] + diff_origin[2] * diff_origin[2]
if delta < 0 then
-- nothing
end
L3[idx] = {
tick = delta - 1,
origin = player_origin,
lagcomp = teleport_distance > 4096,
}
end
end
L3[idx] = {
tick = simulation_time,
origin = player_origin,
}
end
end
end
local function L12()
local me = entity.get_local_player()
if not me or not entity.is_alive(me) then
return
end
local any_broken = false
local players = L7(true, true)
for i = 1, #players do
local idx = players[i]
if L3[idx] and L3[idx].lagcomp then
any_broken = true
break
end
end
if any_broken then
if not L4 then
L5 = ui.get(L1)
L6 = ui.get(L2)
ui.set(L1, false)
ui.set(L2, false)
L4 = true
end
else
if L4 then
ui.set(L1, L5)
ui.set(L2, L6)
L4 = false
end
end
end
client.set_event_callback("net_update_end", L11)
client.set_event_callback("paint", L12)