Skip to content

Commit 96bfd5e

Browse files
v5.10.1
1 parent 71562b5 commit 96bfd5e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Swing_Prediction.lua

+9-7
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ local mSensetivity = menu:AddComponent(MenuLib.Slider("Charge Sensetivity",1 ,5
4444
--local mAutoMelee = menu:AddComponent(MenuLib.Checkbox("Auto Melee", true, ItemFlags.FullWidth))
4545
local mFov = menu:AddComponent(MenuLib.Slider("Aimbot FOV",10 ,360 ,360 ))
4646
local mAutoRefill = menu:AddComponent(MenuLib.Checkbox("Crit Refill", true))
47-
local AchargeRange = menu:AddComponent(MenuLib.Checkbox("Charge Reach", false, ItemFlags.FullWidth))
47+
local AchargeRange = menu:AddComponent(MenuLib.Checkbox("Charge Reach", true, ItemFlags.FullWidth))
4848
local mAutoGarden = menu:AddComponent(MenuLib.Checkbox("Troldier assist", false))
49-
local mmVisuals = menu:AddComponent(MenuLib.Checkbox("Enable Visuals", true))
49+
local mmVisuals = menu:AddComponent(MenuLib.Checkbox("Enable Visuals", false))
5050
local mKeyOverrite = menu:AddComponent(MenuLib.Keybind("Manual overide", key))
5151
local Visuals = {
5252
["Range Circle"] = true,
@@ -339,6 +339,7 @@ local function OnCreateMove(pCmd)
339339

340340
-- Get current latency and lerp
341341
local latOut = clientstate.GetLatencyOut()
342+
local latIn = clientstate.GetLatencyIn()
342343
lerp = client.GetConVar("cl_interp") or 0
343344
--local Tolerance = 4
344345
--print(lerp)
@@ -549,13 +550,14 @@ local collision = false
549550
can_attack = collision
550551
can_charge = false
551552
end
553+
552554
-- Check for charge range
553555
if pLocalClass == 4 and AchargeRange:GetValue() and chargeLeft == 100 then -- Check for collision during charge
554556
collision = checkCollision(vPlayerFuture, pLocalOrigin, Charge_Range)
555557
if collision then
556558
can_attack = true
557559
tick_count = tick_count + 1
558-
if tick_count % (Latency + 4) == 0 then
560+
if tick_count % (time - Latency + 4) == 0 then
559561
can_charge = true
560562
end
561563
end
@@ -573,7 +575,7 @@ local collision = false
573575

574576
--(swingrange extending and aimpos height_adjustment)
575577

576-
local hitboxSize = Vector3(36, 36, 36) + Vector3(pWeapon:GetSwingRange(), pWeapon:GetSwingRange(), pWeapon:GetSwingRange())
578+
--[[local hitboxSize = Vector3(36, 36, 36) + Vector3(pWeapon:GetSwingRange(), pWeapon:GetSwingRange(), pWeapon:GetSwingRange())
577579
local straightAimDistance = pWeapon:GetSwingRange() + ((swingRangeMultiplier * 36) / 2)
578580
local cornerAimDistance = ((swingRangeMultiplier * 36) / 2) + math.sqrt((pWeapon:GetSwingRange())^2 + pWeapon:GetSwingRange()^2)
579581
@@ -582,7 +584,7 @@ local collision = false
582584
583585
-- Calculate the pitch angle adjustment
584586
pitchAngle = 0 --vdistance * 0.1 * math.atan(adjustedAimPosition.x - pLocalOrigin.x, math.sqrt((adjustedAimPosition.x - pLocalOrigin.x)^2))
585-
587+
]]
586588
elseif aimpos == nil then
587589
aimpos = CurrentTarget:GetAbsOrigin() + Vheight --aimpos = (hitbox[1] + hitbox[2]) * 0.5 --if no collision point accesable then aim at defualt hitbox
588590
end
@@ -604,12 +606,12 @@ local collision = false
604606
elseif Maimbot:GetValue() and flags & FL_ONGROUND == 1 and can_attack then -- if predicted position is visible then aim at it
605607
-- change angles at target
606608
Eaimpos = Math.PositionAngles(pLocalOrigin, Eaimpos)
607-
pCmd:SetViewAngles(Eaimpos.pitch + pitchAngle, Eaimpos.yaw, 0) --pCmd:SetViewAngles(aimpos:Unpack()) --engine.SetViewAngles(aimpos) -- -- engine.SetViewAngles(aimpos) --
609+
pCmd:SetViewAngles(Eaimpos.pitch, Eaimpos.yaw, 0) --pCmd:SetViewAngles(aimpos:Unpack()) --engine.SetViewAngles(aimpos) -- -- engine.SetViewAngles(aimpos) --
608610

609611
elseif Maimbot:GetValue() and flags & FL_ONGROUND == 0 and can_attack then -- if we are in air then aim at target
610612
-- change angles at target
611613
Eaimpos = Math.PositionAngles(pLocalOrigin, Eaimpos)
612-
pCmd:SetViewAngles(Eaimpos.pitch + pitchAngle, Eaimpos.yaw, 45) --engine.SetViewAngles(aimpos) --set angle at aim position manualy not silent aimbot
614+
pCmd:SetViewAngles(Eaimpos.pitch, Eaimpos.yaw, 45) --engine.SetViewAngles(aimpos) --set angle at aim position manualy not silent aimbot
613615

614616
elseif not inAttackAim and Mchargebot:GetValue() and pLocal:InCond(17) then --manual charge controll
615617
-- Calculate the source and destination vectors

0 commit comments

Comments
 (0)