Skip to content

Commit c4daff6

Browse files
v5.0
1 parent 0e5965e commit c4daff6

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

Swing_Prediction.lua

+22-2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ local Maimbot = menu:AddComponent(MenuLib.Checkbox("Aimbot(Silent)", true,
4242
local Mchargebot = menu:AddComponent(MenuLib.Checkbox("charge steer", true, ItemFlags.FullWidth))
4343
local mFov = menu:AddComponent(MenuLib.Slider("Aimbot FOV",10 ,360 ,180 ))
4444
local mAutoRefill = menu:AddComponent(MenuLib.Checkbox("Crit Refill", true))
45+
local Achargebot = menu:AddComponent(MenuLib.Checkbox("Charge Reach", true, ItemFlags.FullWidth))
4546
local mAutoGarden = menu:AddComponent(MenuLib.Checkbox("Troldier assist", false))
4647
local mmVisuals = menu:AddComponent(MenuLib.Checkbox("Enable Visuals", false))
4748
local mKeyOverrite = menu:AddComponent(MenuLib.Keybind("Manual overide", key))
@@ -83,7 +84,7 @@ local Safe_Strafe = false
8384
local latency = 0
8485
local lerp = 0
8586
local pivot
86-
87+
local can_charge = false
8788
local settings = {
8889
MinDistance = 200,
8990
MaxDistance = 1000,
@@ -374,18 +375,31 @@ if not Helpers.VisPos(closestPlayer,vPlayerFuture + Vector3(0, 0, 150), pLocalFu
374375
--[[check if can hit after swing]]
375376
-- Simulate swing and return result
376377
local collisionPoint
378+
377379
local collision = checkCollision(vPlayerFuture, pLocalFuture, swingrange)
378380
can_attack = collision
381+
can_charge = false
379382

380383
if collision then
381384
can_attack = true
382-
elseif collision == false then
385+
elseif not collision then
383386
collision, collisionPoint = checkCollision(vPlayerOrigin, pLocalOrigin, swingrange)
384387
if collision then
385388
can_attack = true
386389
end
387390
end
388391

392+
if Achargebot:GetValue() and chargeLeft >= 100.0 then
393+
collision, collisionPoint = checkCollision(vPlayerFuture, pLocalFuture, (swingrange * 1.5)) --increased range when in charge
394+
if collision then
395+
can_attack = true
396+
tick_count = tick_count + 1
397+
if tick_count % 6 == 0 then
398+
can_charge = true
399+
end
400+
end
401+
end
402+
389403
--[--------------AimBot-------------------] --get hitbox of ennmy pelwis(jittery but works)
390404
local hitboxes = closestPlayer:GetHitboxes()
391405
local hitbox = hitboxes[4]
@@ -453,6 +467,12 @@ end
453467
end
454468
end
455469

470+
if can_charge then
471+
pCmd:SetButtons(pCmd:GetButtons() | IN_ATTACK2)-- charge
472+
end
473+
474+
475+
456476
-- Update last variables
457477
vPlayerOriginLast = vPlayerOrigin
458478
pLocalOriginLast = pLocalOrigin

0 commit comments

Comments
 (0)