Здравствуйте можете помочь, при запуске вкладки antiaim builder скрипт крашит, честно не ебу в чем проблема(либо 1 либо 2 дает краш)
Lua:
-- antiaim builder
local function maina()
if not engine.is_connected() then return end
if not entity_list.get_local_player():is_alive() then return end
if aa_f.warmup_check:get() and game_rules.get_prop("m_bWarmupPeriod") == 1 then return end
if aa_f.aa_check:get() then
local state = get_state(get_velocity())
refs.overridestandmove:set(false)
refs.overridestandslide:set(false)
refs.jittermode:set(2)
refs.leanmode:set(1)
local randgloballeft = 0
local randglobalright = 0
local randstandleft = 0
local randstandright = 0
local randmoveleft = 0
local randmoveright = 0
local randairleft = 0
local randairright = 0
local randairduckleft = 0
local randairduckright = 0
local randcrouchleft = 0
local randcrouchright = 0
local randslowwalkleft = 0
local randslowwalkright = 0
-- randomise global
if aa_f.aa_randomise_global_left_check:get(true) then
randgloballeft = math.random(aa_f.aa_randomise_global_left1:get(), aa_f.aa_randomise_global_left2:get())
else
randgloballeft = 0
end
if aa_f.aa_randomise_global_right_check:get(true) then
randglobalright = math.random(aa_f.aa_randomise_global_right1:get(), aa_f.aa_randomise_global_right2:get())
else
randglobalright = 0
end
-- randomise stand
if aa_f.aa_randomise_stand_left_check:get(true) then
randstandleft = math.random(aa_f.aa_randomise_stand_left1:get(), aa_f.aa_randomise_stand_left2:get())
else
randstandleft = 0
end
if aa_f.aa_randomise_stand_right_check:get(true) then
randstandright = math.random(aa_f.aa_randomise_stand_right1:get(), aa_f.aa_randomise_stand_right2:get())
else
randstandright = 0
end
-- randomise move
if aa_f.aa_randomise_move_left_check:get(true) then
randmoveleft = math.random(aa_f.aa_randomise_move_left1:get(), aa_f.aa_randomise_move_left2:get())
else
randmoveleft = 0
end
if aa_f.aa_randomise_move_right_check:get(true) then
randmoveright = math.random(aa_f.aa_randomise_move_right1:get(), aa_f.aa_randomise_move_right2:get())
else
randmoveright = 0
end
-- randomise air
if aa_f.aa_randomise_air_left_check:get(true) then
randairleft = math.random(aa_f.aa_randomise_air_left1:get(), aa_f.aa_randomise_air_left2:get())
else
randairleft = 0
end
if aa_f.aa_randomise_air_right_check:get(true) then
randairright = math.random(aa_f.aa_randomise_air_right1:get(), aa_f.aa_randomise_air_right2:get())
else
randairright = 0
end
-- randomise airduck
if aa_f.aa_randomise_airduck_left_check:get(true) then
randairduckleft = math.random(aa_f.aa_randomise_airduck_left1:get(), aa_f.aa_randomise_airduck_left2:get())
else
randairduckleft = 0
end
if aa_f.aa_randomise_airduck_right_check:get(true) then
randairduckright = math.random(aa_f.aa_randomise_airduck_right1:get(), aa_f.aa_randomise_airduck_right2:get())
else
randairduckright = 0
end
-- randomise crouch
if aa_f.aa_randomise_crouch_left_check:get(true) then
randcrouchleft = math.random(aa_f.aa_randomise_crouch_left1:get(), aa_f.aa_randomise_crouch_left2:get())
else
randcrouchleft = 0
end
if aa_f.aa_randomise_crouch_right_check:get(true) then
randcrouchright = math.random(aa_f.aa_randomise_crouch_right1:get(), aa_f.aa_randomise_crouch_right2:get())
else
randcrouchright = 0
end
-- randomise slowwalk
if aa_f.aa_randomise_slowwalk_left_check:get(true) then
randslowwalkleft = math.random(aa_f.aa_randomise_slowwalk_left1:get(), aa_f.aa_randomise_slowwalk_left2:get())
else
randslowwalkleft = 0
end
if aa_f.aa_randomise_slowwalk_right_check:get(true) then
randslowwalkright = math.random(aa_f.aa_randomise_slowwalk_right1:get(), aa_f.aa_randomise_slowwalk_right2:get())
else
randslowwalkright = 0
end
-- global
refs.yawadd:set(antiaim.get_desync_side() == 2 and -aa_f.aa_yawlimleft_global:get() + randgloballeft + aa_f.aa_offset_global:get() or aa_f.aa_yawlimright_global:get() + randglobalright + aa_f.aa_offset_global:get())
refs.fakemode:set(4)
if aa_f.aa_jittertype_global:get() == 1 then refs.jittertype:set(2) else refs.jittertype:set(1) end
refs.jitteradd:set(aa_f.aa_jitter_global:get())
if aa_f.aa_lean_mode_global:get() == 2 and aa_f.aa_lean_check_global:get() then
refs.leanval:set(antiaim.get_desync_side() == 2 and -aa_f.aa_leanlimleft_global:get() or aa_f.aa_leanlimright_global:get())
refs.leanmode:set(2)
end
--stand
if aa_f.aa_overg_stand:get() and state == 1 then
refs.yawadd:set(antiaim.get_desync_side() == 2 and -aa_f.aa_yawlimleft_stand:get() + randstandleft + aa_f.aa_offset_stand:get() or aa_f.aa_yawlimright_stand:get() + randstandright + aa_f.aa_offset_stand:get())
refs.fakemode:set(4)
if aa_f.aa_jittertype_stand:get() == 1 then refs.jittertype:set(2) else refs.jittertype:set(1) end
refs.jitteradd:set(aa_f.aa_jitter_stand:get())
if aa_f.aa_lean_mode_stand:get() == 2 and aa_f.aa_lean_check_stand:get() then
refs.leanval:set(antiaim.get_desync_side() == 2 and -aa_f.aa_leanlimleft_stand:get() or aa_f.aa_leanlimright_stand:get())
refs.leanmode:set(2)
end
end
--move
if aa_f.aa_overg_move:get() and state == 2 then
refs.yawadd:set(antiaim.get_desync_side() == 2 and -aa_f.aa_yawlimleft_move:get() + randmoveleft + aa_f.aa_offset_move:get() or aa_f.aa_yawlimright_move:get() + randmoveright + aa_f.aa_offset_move:get())
refs.fakemode:set(4)
if aa_f.aa_jittertype_move:get() == 1 then refs.jittertype:set(2) else refs.jittertype:set(1) end
refs.jitteradd:set(aa_f.aa_jitter_move:get())
if aa_f.aa_lean_mode_move:get() == 2 and aa_f.aa_lean_check_move:get() then
refs.leanval:set(antiaim.get_desync_side() == 2 and -aa_f.aa_leanlimleft_move:get() or aa_f.aa_leanlimright_move:get())
refs.leanmode:set(2)
end
end
--air
if aa_f.aa_overg_air:get() and state == 5 then
refs.yawadd:set(antiaim.get_desync_side() == 2 and -aa_f.aa_yawlimleft_air:get() + randairleft + aa_f.aa_offset_air:get() or aa_f.aa_yawlimright_air:get() + randairright + aa_f.aa_offset_air:get())
refs.fakemode:set(4)
if aa_f.aa_jittertype_air:get() == 1 then refs.jittertype:set(2) else refs.jittertype:set(1) end
refs.jitteradd:set(aa_f.aa_jitter_air:get())
if aa_f.aa_lean_mode_air:get() == 2 and aa_f.aa_lean_check_air:get() then
refs.leanval:set(antiaim.get_desync_side() == 2 and -aa_f.aa_leanlimleft_air:get() or aa_f.aa_leanlimright_air:get())
refs.leanmode:set(2)
end
end
--crouch
if aa_f.aa_overg_crouch:get() and state == 4 then
refs.yawadd:set(antiaim.get_desync_side() == 2 and -aa_f.aa_yawlimleft_crouch:get() + randcrouchleft + aa_f.aa_offset_crouch:get() or aa_f.aa_yawlimright_crouch:get() + randcrouchright + aa_f.aa_offset_crouch:get())
refs.fakemode:set(4)
if aa_f.aa_jittertype_crouch:get() == 1 then refs.jittertype:set(2) else refs.jittertype:set(1) end
refs.jitteradd:set(aa_f.aa_jitter_crouch:get())
if aa_f.aa_lean_check_crouch:get() == 2 and aa_f.aa_lean_mode_crouch:get() then
refs.leanval:set(antiaim.get_desync_side() == 2 and -aa_f.aa_leanlimleft_crouch:get() or aa_f.aa_leanlimright_crouch:get())
refs.leanmode:set(2)
end
end
--air-duck
if aa_f.aa_overg_airduck:get() and state == 6 then
refs.yawadd:set(antiaim.get_desync_side() == 2 and -aa_f.aa_yawlimleft_airduck:get() + randairduckleft + aa_f.aa_offset_airduck:get() or aa_f.aa_yawlimright_airduck:get() + randairduckright + aa_f.aa_offset_airduck:get())
refs.fakemode:set(4)
if aa_f.aa_jittertype_airduck:get() == 1 then refs.jittertype:set(2) else refs.jittertype:set(1) end
refs.jitteradd:set(aa_f.aa_jitter_airduck:get())
if aa_f.aa_lean_mode_airduck:get() == 2 and aa_f.aa_lean_check_airduck:get() then
refs.leanval:set(antiaim.get_desync_side() == 2 and -aa_f.aa_leanlimleft_airduck:get() or aa_f.aa_leanlimright_airduck:get())
refs.leanmode:set(2)
end
end
--slowwalk
if aa_f.aa_overg_slowwalk:get() and state == 3 then
refs.yawadd:set(antiaim.get_desync_side() == 2 and -aa_f.aa_yawlimleft_slowwalk:get() + randslowwalkleft + aa_f.aa_offset_slowwalk:get() or aa_f.aa_yawlimright_slowwalk:get() + randslowwalkright + aa_f.aa_offset_slowwalk:get())
refs.fakemode:set(4)
if aa_f.aa_jittertype_slowwalk:get() == 1 then refs.jittertype:set(2) else refs.jittertype:set(1) end
refs.jitteradd:set(aa_f.aa_jitter_slowwalk:get())
if aa_f.aa_lean_mode_slowwalk:get() == 2 and aa_f.aa_lean_check_slowwalk:get() then
refs.leanval:set(antiaim.get_desync_side() == 2 and -aa_f.aa_leanlimleft_slowwalk:get() or aa_f.aa_leanlimright_slowwalk:get())
refs.leanmode:set(2)
end
end
--static lean
--stand
if not binds.aa_lean_switchside_bind:get() then
--global
if aa_f.aa_lean_mode_global:get() == 1 and aa_f.aa_lean_check_global:get() then
refs.leanval:set(-aa_f.aa_leanlimleft_global:get())
refs.leanmode:set(2)
end
--stand
if aa_f.aa_lean_mode_stand:get() == 1 and aa_f.aa_lean_check_stand:get() and aa_f.aa_overg_stand:get() then
if state == 1 then
refs.leanval:set(-aa_f.aa_leanlimleft_stand:get())
refs.leanmode:set(2)
end
end
--move
if aa_f.aa_lean_mode_move:get() == 1 and aa_f.aa_lean_check_move:get() and aa_f.aa_overg_move:get() then
if state == 2 then
refs.leanval:set(-aa_f.aa_leanlimleft_move:get())
refs.leanmode:set(2)
end
end
--air
if aa_f.aa_lean_mode_air:get() == 1 and aa_f.aa_lean_check_air:get() and aa_f.aa_overg_air:get() then
if state == 5 then
refs.leanval:set(-aa_f.aa_leanlimleft_air:get())
refs.leanmode:set(2)
end
end
--crouch
if aa_f.aa_lean_mode_crouch:get() == 1 and aa_f.aa_lean_check_crouch:get() and aa_f.aa_overg_crouch:get() then
if state == 4 then
refs.leanval:set(-aa_f.aa_leanlimleft_crouch:get())
refs.leanmode:set(2)
end
end
--air-duck
if aa_f.aa_lean_mode_airduck:get() == 1 and aa_f.aa_lean_check_airduck:get() and aa_f.aa_overg_airduck:get() then
if state == 6 then
refs.leanval:set(-aa_f.aa_leanlimleft_airduck:get())
refs.leanmode:set(2)
end
end
--slowwalk
if aa_f.aa_lean_mode_slowwalk:get() == 1 and aa_f.aa_lean_check_slowwalk:get() and aa_f.aa_overg_slowwalk:get() then
if state == 3 then
refs.leanval:set(-aa_f.aa_leanlimleft_slowwalk:get())
refs.leanmode:set(2)
end
end
else
--global
if aa_f.aa_lean_mode_global:get() == 1 and aa_f.aa_lean_check_global:get() then
refs.leanval:set(aa_f.aa_leanlimright_global:get())
refs.leanmode:set(2)
end
--stand
if aa_f.aa_lean_mode_stand:get() == 1 and aa_f.aa_lean_check_stand:get() and aa_f.aa_overg_stand:get() then
if state == 1 then
refs.leanval:set(aa_f.aa_leanlimright_stand:get())
refs.leanmode:set(2)
end
end
--move
if aa_f.aa_lean_mode_move:get() == 1 and aa_f.aa_lean_check_move:get() and aa_f.aa_overg_move:get() then
if state == 2 then
refs.leanval:set(aa_f.aa_leanlimright_move:get())
refs.leanmode:set(2)
end
end
--air
if aa_f.aa_lean_mode_air:get() == 1 and aa_f.aa_lean_check_air:get() and aa_f.aa_overg_air:get() then
if state == 5 then
refs.leanval:set(aa_f.aa_leanlimright_air:get())
refs.leanmode:set(2)
end
end
--crouch
if aa_f.aa_lean_mode_crouch:get() == 1 and aa_f.aa_lean_check_crouch:get() and aa_f.aa_overg_crouch:get() then
if state == 4 then
refs.leanval:set(aa_f.aa_leanlimright_crouch:get())
refs.leanmode:set(2)
end
end
--air-duck
if aa_f.aa_lean_mode_airduck:get() == 1 and aa_f.aa_lean_check_airduck:get() and aa_f.aa_overg_airduck:get() then
if state == 6 then
refs.leanval:set(aa_f.aa_leanlimright_airduck:get())
refs.leanmode:set(2)
end
end
if aa_f.aa_lean_mode_slowwalk:get() == 1 and aa_f.aa_lean_check_slowwalk:get() and aa_f.aa_overg_slowwalk:get() then
if state == 3 then
refs.leanval:set(aa_f.aa_leanlimright_slowwalk:get())
refs.leanmode:set(2)
end
end
end
---- fake
--global
refs.fakevalright:set(aa_f.aa_fakelimright_global:get())
refs.fakevalleft:set(aa_f.aa_fakelimleft_global:get())
--stand
if aa_f.aa_overg_stand:get() and state == 1 then
refs.fakevalright:set(aa_f.aa_fakelimright_stand:get())
refs.fakevalleft:set(aa_f.aa_fakelimleft_stand:get())
end
--move
if aa_f.aa_overg_move:get() and state == 2 then
refs.fakevalright:set(aa_f.aa_fakelimright_move:get())
refs.fakevalleft:set(aa_f.aa_fakelimleft_move:get())
end
--air
if aa_f.aa_overg_air:get() and state == 5 then
refs.fakevalright:set(aa_f.aa_fakelimright_air:get())
refs.fakevalleft:set(aa_f.aa_fakelimleft_air:get())
end
--crouch
if aa_f.aa_overg_crouch:get() and state == 4 then
refs.fakevalright:set(aa_f.aa_fakelimright_crouch:get())
refs.fakevalleft:set(aa_f.aa_fakelimleft_crouch:get())
end
--air-duck
if aa_f.aa_overg_airduck:get() and state == 6 then
refs.fakevalright:set(aa_f.aa_fakelimright_airduck:get())
refs.fakevalleft:set(aa_f.aa_fakelimleft_airduck:get())
end
--slowwalk
if aa_f.aa_overg_slowwalk:get() and state == 3 then
refs.fakevalright:set(aa_f.aa_fakelimright_slowwalk:get())
refs.fakevalleft:set(aa_f.aa_fakelimleft_slowwalk:get())
end
end
end
Lua:
-- aa
aa_f.aa_check:set_visible(maintab.tabselection:get() == 2 and allowload == true)
aa_f.aa_lean_switchside:set_visible(maintab.tabselection:get() == 2 and aa_f.aa_check:get() and allowload == true)
aa_f.aa_animbreaker_check:set_visible(maintab.tabselection:get() == 2 and allowload == true)
aa_f.aa_animbreaker_main:set_visible(maintab.tabselection:get() == 2 and aa_f.aa_animbreaker_check:get() and allowload == true)
aa_f.aa_animbreaker_legs:set_visible(maintab.tabselection:get() == 2 and aa_f.aa_animbreaker_check:get() and aa_f.aa_animbreaker_main:get(2) and allowload == true)
aa_f.aa_animbreaker_other:set_visible(maintab.tabselection:get() == 2 and aa_f.aa_animbreaker_check:get() and allowload == true)
aa_f.onshotfl_check:set_visible(maintab.tabselection:get() == 2 and allowload == true)
aa_f.lc_check:set_visible(maintab.tabselection:get() == 2 and allowload == true)
aa_f.lc_weapons:set_visible(maintab.tabselection:get() == 2 and aa_f.lc_check:get() and allowload == true)
aa_f.lc_state_check:set_visible(maintab.tabselection:get() == 2 and aa_f.lc_check:get() and allowload == true)
aa_f.anti_zeus_check:set_visible(maintab.tabselection:get() == 2 and allowload == true)
aa_f.anti_zeus_max_dist:set_visible(maintab.tabselection:get() == 2 and aa_f.anti_zeus_check:get() and allowload == true)
aa_f.warmup_check:set_visible(maintab.tabselection:get() == 2 and allowload == true)
Последнее редактирование: