04-26-2019, 04:36 PM
Can you add fly hack with player distance like what's in DailyHuntAssistantMode?
Code:
c_flyhackdham = inheritsFrom( ml_cause )
c_flyhackdham.throttle = 100
c_flyhackdham.doHack = false
function c_flyhackdham:evaluate()
local danger = false
if (next(EntityList("chartype=4,maxdistance=100"))) then
danger = true
end
if ( c_flyhackdham.doHack == true and Player:GetSpeed()["Forward"] ~= 40 and IsFlying() and danger == false) then
Player:SetSpeed(0,40,40,40)
DailyHuntAssistantMode.Log("Speed flying. hacked")
elseif ( (c_flyhackdham.doHack == false or DailyHuntAssistantMode.Settings.SpeedHackFlyEnabled == false or danger == true) and Player:GetSpeed()["Forward"] ~= 20 and IsFlying() ) then
Player:ResetSpeed(0)
DailyHuntAssistantMode.Log("Speed flying. Reset")
end
return false
end