Skip to content

Commit 14ae5db

Browse files
v0.5.0
1 parent 27f7eaa commit 14ae5db

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Hvh_Tools.lua

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ local RandomToggle = menu:AddComponent(MenuLib.Checkbox("Random Yaw", true
3131
local RandomPitchToogle = menu:AddComponent(MenuLib.Checkbox("Random Pitch", true))
3232
local RandomPitchtype = menu:AddComponent(MenuLib.Checkbox("Random Pitch type", true))
3333
local downPitch = menu:AddComponent(MenuLib.Checkbox("Allow Down", false))
34-
local mdelay = menu:AddComponent(MenuLib.Slider("Speed", 1, 250, 1))
3534
local Antioverlap = menu:AddComponent(MenuLib.Checkbox("anti overlap", true))
3635
local atenemy = menu:AddComponent(MenuLib.Checkbox("at enemy", true))
3736
local offset = menu:AddComponent(MenuLib.Slider("offset", -180, 180, -2))
37+
local mdelay = menu:AddComponent(MenuLib.Slider("Static Speed", 1, 200, 0))
38+
local mdelayrandommin = menu:AddComponent(MenuLib.Slider("Speed min", 1, 199, 1))
39+
local mdelayrandommax = menu:AddComponent(MenuLib.Slider("Speed max", 2, 200, 5))
3840
--local mmVisuals = menu:AddComponent(MenuLib.Checkbox("Indicators", false))
3941
local FakeLagToggle = menu:AddComponent(MenuLib.Checkbox("Random Fake Lag", true))
4042

@@ -169,14 +171,20 @@ local function OnCreateMove(userCmd)
169171

170172
gui.SetValue("Anti Aim - Custom Yaw (Real)", yaw)
171173
end
174+
175+
--random speed
176+
local delay = mdelay:GetValue()
177+
if mdelay:GetValue() == 0 then
178+
delay = math.random(mdelayrandommin:GetValue(), mdelayrandommax:GetValue())
179+
end
172180
--local angles = Math.PositionAngles(me:GetEyePos(), currentTarget.pos)
173181
if RandomToggle:GetValue() == true then
174182
if not atenemy:GetValue() then
175-
if tick_count % mdelay:GetValue() == 0 then -- delay
183+
if tick_count % delay == 0 then -- delay
176184
gui.SetValue("Anti Aim - Custom Yaw (Real)", math.random(-180, 180))
177185
end
178186
end
179-
if tick_count % mdelay:GetValue() == 0 then -- delay
187+
if tick_count % delay == 0 then -- delay
180188
if Antioverlap:GetValue() then
181189
local YawFake = math.random(-180, 180)
182190
while math.abs(YawFake - gui.GetValue("Anti Aim - Custom Yaw (Real)")) <= 37 do
@@ -190,7 +198,7 @@ local function OnCreateMove(userCmd)
190198
end
191199

192200
if RandomPitchToogle:GetValue() then
193-
if tick_count % mdelay:GetValue() == 0 then -- delay
201+
if tick_count % delay == 0 then -- delay
194202
--[[if FakeAngle == RealAngle then
195203
RealAngle = somethingElse
196204
end]]

0 commit comments

Comments
 (0)