Skip to content

Commit 68ece02

Browse files
v4.5.0
1 parent a4c609e commit 68ece02

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Swing_Prediction.lua

+8-4
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ menu.Style.Outline = true -- Outline around the menu
3737
end, ItemFlags.FullWidth))]]
3838
local Swingpred = menu:AddComponent(MenuLib.Checkbox("Enable", true, ItemFlags.FullWidth))
3939
local Maimbot = menu:AddComponent(MenuLib.Checkbox("Aimbot(Rage)", true, ItemFlags.FullWidth))
40-
local mFov = menu:AddComponent(MenuLib.Slider("Aimbot FOV",10 ,360 ,180 ))
40+
local mFov = menu:AddComponent(MenuLib.Slider("Aimbot FOV",10 ,360 ,180 ))
4141
local mtime = menu:AddComponent(MenuLib.Slider("prediction(ticks)",3 ,20 ,14 ))
4242
local mAutoRefill = menu:AddComponent(MenuLib.Checkbox("Crit Refill", true))
4343
local mAutoGarden = menu:AddComponent(MenuLib.Checkbox("Troldier assist", false))
4444
local mmVisuals = menu:AddComponent(MenuLib.Checkbox("Enable Visuals", false))
45+
local mKeyOverrite = menu:AddComponent(MenuLib.Keybind("Manual overide", key))
4546
local Visuals = {
4647
["Range Circle"] = true,
4748
["Draw Trail"] = false
@@ -332,9 +333,12 @@ local function OnCreateMove(pCmd)
332333
end
333334

334335
--[-----Get best target------------------]
335-
if GetBestTarget(pLocal) ~= nil then
336-
closestPlayer = GetBestTarget(pLocal).entity --GetClosestEnemy(pLocal, pLocalOrigin, players)
337-
end
336+
local keybind = mKeyOverrite:GetValue()
337+
if (keybind == KEY_NONE) and GetBestTarget(pLocal) ~= nil then -- check if player had no key bound
338+
closestPlayer = GetBestTarget(pLocal).entity --GetClosestEnemy(pLocal, pLocalOrigin, players)
339+
elseif input.IsButtonDown(keybind) and GetBestTarget(pLocal) ~= nil then -- if player boudn key for aimbot then only work when its on.
340+
closestPlayer = GetBestTarget(pLocal).entity
341+
end
338342
--[-----Refil and skip code when alone-----]
339343

340344
if closestPlayer == nil then

0 commit comments

Comments
 (0)