Skip to content

Commit 6f7c7a9

Browse files
v5.11.0
1 parent 4535d11 commit 6f7c7a9

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

Swing_Prediction.lua

+32-4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ 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 AutoFakelat = menu:AddComponent(MenuLib.Checkbox("Adaptive Latency", true, ItemFlags.FullWidth))
4748
local AchargeRange = menu:AddComponent(MenuLib.Checkbox("Charge Reach", true, ItemFlags.FullWidth))
4849
local mAutoGarden = menu:AddComponent(MenuLib.Checkbox("Troldier assist", false))
4950
local mmVisuals = menu:AddComponent(MenuLib.Checkbox("Enable Visuals", false))
@@ -78,6 +79,7 @@ local Safe_Strafe = false
7879
local can_charge = false
7980
local Charge_Range = 128
8081
local swingRangeMultiplier = 1
82+
local defFakeLatency = gui.GetValue("Fake Latency Value (MS)")
8183

8284
local pLocalClass = nil
8385
local pLocalFuture = nil
@@ -367,7 +369,7 @@ local function OnCreateMove(pCmd)
367369
local pWeaponName = pWeaponDef:GetName()
368370

369371
--get maximum swing range
370-
swingrange = (pWeapon:GetSwingRange() + ((swingRangeMultiplier * 35.9) / 2))
372+
swingrange = (pWeapon:GetSwingRange() + ((swingRangeMultiplier * 35.7) / 2))
371373

372374
--maximum swign range physicly possible VV
373375
--swingrange = (swingRangeMultiplier * pWeapon:GetSwingRange() + (math.sqrt(36^2 / 2)))
@@ -562,7 +564,33 @@ local collision = false
562564
end
563565
end
564566
end
565-
567+
568+
-- Initialize the temporary fake latency value
569+
if gui.GetValue("Fake Latency Value (MS)") ~= 200 then
570+
defFakeLatency = gui.GetValue("Fake Latency Value (MS)")
571+
end
572+
573+
-- Check if AutoFakelat is enabled
574+
if AutoFakelat:GetValue() then
575+
-- Check if there is a collision
576+
if collision then
577+
-- Check if the global fake latency value is not already 200 and is greater than or equal to 200
578+
if defFakeLatency ~= 200 then
579+
-- Set the fake latency value to 200
580+
gui.SetValue("Fake Latency Value (MS)", 200)
581+
end
582+
elseif not collision then
583+
-- Check if the fake latency value is already 200
584+
if gui.GetValue("Fake Latency Value (MS)") == 200 then
585+
-- Set the fake latency value to the global fake latency value
586+
gui.SetValue("Fake Latency Value (MS)", defFakeLatency)
587+
588+
end
589+
end
590+
end
591+
592+
593+
566594

567595

568596
--[--------------AimBot-------------------] --get hitbox of ennmy pelwis(jittery but works)
@@ -617,11 +645,11 @@ local collision = false
617645
-- Calculate the source and destination vectors
618646
ChargeControll(pCmd)
619647
end
620-
aimposVis = aimpos -- transfer aim point to visuals
648+
621649
--[shield bashing strat]
622650

623651
if pLocalClass == 4 and (pLocal:InCond(17)) then -- If we are charging (17 is TF_COND_SHIELD_CHARGE)
624-
local Bashed = checkCollision(vPlayerFuture, pLocalOrigin, 18)
652+
local Bashed = checkCollision(vPlayerOrigin, pLocalOrigin, 20)
625653

626654
if not Bashed then -- if demoknight bashed on enemy
627655
can_attack = false

0 commit comments

Comments
 (0)