Skip to content

Commit 9043faf

Browse files
fixed menu
1 parent 05d815d commit 9043faf

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

A_Swing_Prediction.lua

+26-21
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,7 @@ end, ItemFlags.FullWidth))]]
4949
local Menu = {
5050
-- Tab management - Start with Aimbot tab open by default
5151
currentTab = 1, -- 1 = Aimbot, 2 = Charge, 3 = Visuals, 4 = Misc
52-
tabs = {
53-
Aimbot = true,
54-
Charge = false,
55-
Visuals = false,
56-
Misc = false
57-
},
52+
tabs = { "Aimbot", "Demoknight", "Visuals", "Misc" },
5853

5954
-- Aimbot settings
6055
Aimbot = {
@@ -815,7 +810,7 @@ local function checkInRangeWithLatency(playerIndex, swingRange, pWeapon, cmd, On
815810
-- Check if instant attack is ready
816811
local dashKeyBound = gui.GetValue("dash move key") ~= 0
817812
local instantAttackReady = Menu.Misc.InstantAttack and warp.CanWarp() and warp.GetChargedTicks() >= 13 and
818-
dashKeyBound
813+
dashKeyBound
819814

820815
-- Don't attempt prediction when charging without jump charge
821816
if isCharging and not Menu.Misc.ChargeJump then
@@ -1231,7 +1226,7 @@ local function OnCreateMove(pCmd)
12311226

12321227
--[--------------AimBot-------------------] --get hitbox of ennmy pelwis(jittery but works)
12331228
local aimpos = CurrentTarget:GetAbsOrigin() +
1234-
Vheight --aimpos = (hitbox[1] + hitbox[2]) * 0.5 --if no InRange point accesable then aim at defualt hitbox
1229+
Vheight --aimpos = (hitbox[1] + hitbox[2]) * 0.5 --if no InRange point accesable then aim at defualt hitbox
12351230

12361231
-- Inside your game loop
12371232
if Menu.Aimbot.Aimbot then
@@ -2046,17 +2041,15 @@ local function doDraw()
20462041
if gui.IsMenuOpen() and ImMenu and ImMenu.Begin("Swing Prediction", true) then
20472042
ImMenu.BeginFrame(1) -- tabs
20482043
Menu.currentTab = ImMenu.TabControl(Menu.tabs, Menu.currentTab)
2049-
updateTabs(Menu.currentTab)
20502044
ImMenu.EndFrame()
20512045

2052-
if Menu.tabs.Aimbot then
2046+
if Menu.currentTab == 1 then -- Aimbot tab
20532047
ImMenu.BeginFrame(1)
20542048
Menu.Aimbot.Aimbot = ImMenu.Checkbox("Enable", Menu.Aimbot.Aimbot)
20552049
ImMenu.EndFrame()
20562050

20572051
ImMenu.BeginFrame(1)
20582052
Menu.Aimbot.Silent = ImMenu.Checkbox("Silent Aim", Menu.Aimbot.Silent)
2059-
Menu.Aimbot.ChargeBot = ImMenu.Checkbox("Charge Bot", Menu.Aimbot.ChargeBot)
20602053
ImMenu.EndFrame()
20612054

20622055
ImMenu.BeginFrame(1)
@@ -2073,16 +2066,29 @@ local function doDraw()
20732066
ImMenu.EndFrame()
20742067
end
20752068

2076-
if Menu.tabs.Misc then
2069+
if Menu.currentTab == 2 then -- Demoknight tab
20772070
ImMenu.BeginFrame(1)
2078-
Menu.Misc.strafePred = ImMenu.Checkbox("Local Strafe Pred", Menu.Misc.strafePred)
2079-
Menu.Misc.ChargeReach = ImMenu.Checkbox("Charge Reach", Menu.Misc.ChargeReach)
2071+
Menu.Charge.ChargeBot = ImMenu.Checkbox("Charge Bot", Menu.Charge.ChargeBot)
2072+
ImMenu.EndFrame()
2073+
2074+
ImMenu.BeginFrame(1)
2075+
Menu.Charge.ChargeControl = ImMenu.Checkbox("Charge Control", Menu.Charge.ChargeControl)
2076+
ImMenu.EndFrame()
2077+
2078+
ImMenu.BeginFrame(1)
2079+
Menu.Charge.ChargeReach = ImMenu.Checkbox("Charge Reach", Menu.Charge.ChargeReach)
20802080
ImMenu.EndFrame()
20812081

2082+
ImMenu.BeginFrame(1)
2083+
Menu.Charge.ChargeJump = ImMenu.Checkbox("Charge Jump", Menu.Charge.ChargeJump)
2084+
ImMenu.EndFrame()
2085+
end
2086+
2087+
if Menu.currentTab == 4 then -- Misc tab
20822088
ImMenu.BeginFrame()
2083-
Menu.Misc.InstantAttack = ImMenu.Checkbox("Instant Attack", Menu.Misc.InstantAttack)
2084-
Menu.Misc.advancedHitreg = ImMenu.Checkbox("Advanced Hitreg", Menu.Misc.advancedHitreg)
2085-
Menu.Misc.TroldierAssist = ImMenu.Checkbox("Troldier Assist", Menu.Misc.TroldierAssist)
2089+
Menu.Misc.InstantAttack = ImMenu.Checkbox("Instant Attack", Menu.Misc.InstantAttack)
2090+
Menu.Misc.advancedHitreg = ImMenu.Checkbox("Advanced Hitreg", Menu.Misc.advancedHitreg)
2091+
Menu.Misc.TroldierAssist = ImMenu.Checkbox("Troldier Assist", Menu.Misc.TroldierAssist)
20862092
ImMenu.EndFrame()
20872093

20882094
ImMenu.BeginFrame()
@@ -2097,14 +2103,12 @@ local function doDraw()
20972103
end
20982104
ImMenu.EndFrame()
20992105

2100-
21012106
ImMenu.BeginFrame(1)
2102-
Menu.Misc.ChargeControl = ImMenu.Checkbox("Charge Control", Menu.Misc.ChargeControl)
2103-
Menu.Misc.ChargeJump = ImMenu.Checkbox("Charge Jump", Menu.Misc.ChargeJump)
2107+
Menu.Misc.strafePred = ImMenu.Checkbox("Local Strafe Pred", Menu.Misc.strafePred)
21042108
ImMenu.EndFrame()
21052109
end
21062110

2107-
if Menu.tabs.Visuals then
2111+
if Menu.currentTab == 3 then -- Visuals tab
21082112
ImMenu.BeginFrame(1)
21092113
Menu.Visuals.EnableVisuals = ImMenu.Checkbox("Enable", Menu.Visuals.EnableVisuals)
21102114
ImMenu.EndFrame()
@@ -2135,6 +2139,7 @@ local function doDraw()
21352139
ImMenu.EndFrame()
21362140
end
21372141
end
2142+
21382143
ImMenu.End()
21392144
end
21402145
end

0 commit comments

Comments
 (0)