-
Автор темы
- #1
Дело было вечером, делать было нечего
Выгружайте все осталные луашки на аа для правильной работы аа и фейклагов
Выгружайте все осталные луашки на аа для правильной работы аа и фейклагов
Код:
ui.add_combo("Override anti-aim on slowwalk", "oas", { "None", "Low Delta", "Low Delta jitter" }, 0)
ui.add_checkbox("Alternative Fakelags", "fakelags", false)
ui.add_slider_int("Fakelags choke", "choke", 1, 13, 5)
ui.add_slider_int("Fakelags send", "send", 1, 13, 1)
local lm = ui.get_int("antihit_extra_leg_movement")
local ab = ui.get_bool("antihit_antiaim_enable")
local flor = ui.get_bool("antihit_fakelag_enable")
local fltick = 0
local des_am = 0
local des_st = 0
local sendabs = 0
local m_MoveType = 0x25C
local function isgrn() local m_hActiveWeapon = se.get_netvar("DT_BaseCombatCharacter", "m_hActiveWeapon") local active_weapon_handle = entitylist.get_local_player():get_prop_int(m_hActiveWeapon) local active_weapon = entitylist.get_entity_from_handle(active_weapon_handle) local thrwtm = se.get_netvar("DT_BaseCSGrenade", "m_fThrowTime") if active_weapon:get_prop_float(thrwtm) > 0.1 then return true end return false end
local function hasbit(x, p)
return x % (p + p) >= p
end
local function createaa(pCmd)
if hasbit(pCmd.buttons,1) then return end
if hasbit(pCmd.buttons, 32) then return end
if isgrn() then return end
local LocalPlayer = entitylist.get_local_player()
local MoveType = LocalPlayer:get_prop_int(m_MoveType)
if (MoveType == 9 or MoveType == 8) then
return
end
if ui.get_int("oas") > 0 and ui.get_bind_state("antihit_extra_slowwalk_bind") then
ui.set_int("antihit_extra_leg_movement", 1)
ui.set_bool("antihit_antiaim_enable", false)
pCmd.viewangles.pitch = 89
if ui.get_int("oas") == 1 then
des_am = 115
elseif ui.get_int("oas") == 2 then
if clientstate.get_choked_commands() <= 1 then
des_st = des_st + 1
end
if des_st == 1 then
des_am = 115
elseif des_st == 3 then
des_am = -115
elseif des_st >= 5 then
des_st = 0
end
end
if not pCmd.send_packet then
pCmd.viewangles.yaw = pCmd.viewangles.yaw + des_am
else
pCmd.viewangles.yaw = pCmd.viewangles.yaw + 190
end
if math.abs(pCmd.sidemove) < 4 then
if pCmd.command_number % 2 == 1 then
pCmd.sidemove = client.is_key_pressed(17) and 3.01 or 1.01
else
pCmd.sidemove = client.is_key_pressed(17) and -3.01 or -1.01
end
end
else
ui.set_int("antihit_extra_leg_movement", lm)
ui.set_bool("antihit_antiaim_enable", ab)
end
end
local function fakel(pCmd)
if ui.get_bool("fakelags") then
if clientstate.get_choked_commands() <= 13 then
ui.set_bool("antihit_fakelag_enable", false)
sendabs = ui.get_int("choke") + ui.get_int("send")
fltick = fltick + 1
if fltick > 0 and fltick <= ui.get_int("choke") then
pCmd.send_packet = false
elseif fltick > ui.get_int("choke") and fltick <= sendabs then
pCmd.send_packet = true
elseif fltick > sendabs then
fltick = 0
end
else
pCmd.send_packet = true
end
else
ui.set_bool("antihit_fakelag_enable", flor)
end
end
local function build(pCmd)
fakel(pCmd)
createaa(pCmd)
end
client.register_callback("create_move", build)