Skip to content

Commit cd8f563

Browse files
v3.1.1
1 parent 2f42c02 commit cd8f563

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Swing_Prediction.lua

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ menu.Style.Outline = true -- Outline around the menu
2121
client.SetConVar("mp_disable_respawn_times", 1)
2222
client.SetConVar("mp_respawnwavetime", -1)
2323
end, ItemFlags.FullWidth))]]
24-
local debug = menu:AddComponent(MenuLib.Checkbox("indicator", false))
24+
2525
local Swingpred = menu:AddComponent(MenuLib.Checkbox("Enable", true))
26-
local mAutoRefill = menu:AddComponent(MenuLib.Checkbox("Auto Crit Refill", true))
26+
local debug = menu:AddComponent(MenuLib.Checkbox("visuals", false))
27+
local mAutoRefill = menu:AddComponent(MenuLib.Checkbox("Crit Refill", true))
2728
local mKillaura = menu:AddComponent(MenuLib.Checkbox("Killaura (soon)", false))
28-
local mtime = menu:AddComponent(MenuLib.Slider("movement ahead", 100 ,300 , 250 ))
29-
local msamples = menu:AddComponent(MenuLib.Slider("Velocity Samples", 1 ,777 , 132 ))
29+
local mtime = menu:AddComponent(MenuLib.Slider("attack distance", 150 ,300 , 250 ))
30+
3031
local solution = {
3132
"default",
3233
"strafe pred"
@@ -36,7 +37,7 @@ local msolution = menu:AddComponent(MenuLib.Combo("Prediction Solution", solutio
3637
--solution:GetSelectedIndex() -- Selected item index (number)
3738

3839
--amples = menu:AddComponent(MenuLib.Slider("movement ahead", 1 ,25 , 200 ))
39-
40+
local msamples = 132
4041
local pastPredictions = {}
4142
local hitbox_min = Vector3(14, 14, 0)
4243
local hitbox_max = Vector3(-14, -14, 85)
@@ -253,7 +254,6 @@ if not isMelee then return end
253254
vPlayerFuture = (vPlayerOrigin + closestPlayer:EstimateAbsVelocity() * time)--TargetPositionPrediction(vPlayerOrigin, vPlayerOriginLast, tickRate, time, tick)
254255
pLocalFuture = (pLocalOrigin + pLocal:EstimateAbsVelocity() * time) --TargetPositionPrediction(pLocalOrigin, pLocalOriginLast, tickRate, time, tick)
255256
else
256-
print("working")
257257
if tick % 8 == 0 or tick == nil then
258258
tick = 0
259259
end

0 commit comments

Comments
 (0)