@@ -37,11 +37,12 @@ menu.Style.Outline = true -- Outline around the menu
37
37
end, ItemFlags.FullWidth))]]
38
38
local Swingpred = menu :AddComponent (MenuLib .Checkbox (" Enable" , true , ItemFlags .FullWidth ))
39
39
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 ))
41
41
local mtime = menu :AddComponent (MenuLib .Slider (" prediction(ticks)" ,3 ,20 ,14 ))
42
42
local mAutoRefill = menu :AddComponent (MenuLib .Checkbox (" Crit Refill" , true ))
43
43
local mAutoGarden = menu :AddComponent (MenuLib .Checkbox (" Troldier assist" , false ))
44
44
local mmVisuals = menu :AddComponent (MenuLib .Checkbox (" Enable Visuals" , false ))
45
+ local mKeyOverrite = menu :AddComponent (MenuLib .Keybind (" Manual overide" , key ))
45
46
local Visuals = {
46
47
[" Range Circle" ] = true ,
47
48
[" Draw Trail" ] = false
@@ -332,9 +333,12 @@ local function OnCreateMove(pCmd)
332
333
end
333
334
334
335
-- [-----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
338
342
-- [-----Refil and skip code when alone-----]
339
343
340
344
if closestPlayer == nil then
0 commit comments