-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathPingAdjust.lua
More file actions
30 lines (25 loc) · 789 Bytes
/
PingAdjust.lua
File metadata and controls
30 lines (25 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- // DaHood Ping To Prediciton Thing - supg#2289 //--
-- // This table can be expanded / lowered / replaced.
local sets = {
[40] = 7.62,
[50] = 7.46,
[60] = 7.22,
[70] = 7.02,
[80] = 6.82,
[90] = 6.612,
[100] = 6.41,
[110] = 6.18
}
-- // Actual Script //--
local ping = dx9.GetPing()
loadstring(dx9.Get("https://raw.githubusercontent.com/soupg/DXLibUI/main/main.lua"))() --// To make loadstrings work
local smallest_diff, prediction
for i, y in pairs(sets) do
if not smallest_diff or (math.abs(ping - i) < smallest_diff) then
smallest_diff = math.abs(ping - i)
prediction = sets[i]
end
end
dx9.SetAimbotValue("prediction", prediction)
-- // Drawing Debug Text
dx9.DrawString({ 180, 0 }, {255, 255, 255}, "PRED: " .. prediction .. " | PING: " .. ping)