Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local oldTickCount = 0
- local font = draw.CreateFont("", 18)
- local LocalPlayer = entities.GetLocalPlayer()
- local real = 0
- local desync = 0
- local realAdd = 0
- local lag = 0
- local text = 0
- local textWidth, textHeight = 0
- --local w, h = draw.GetScreenSize()
- function Display()
- ---------------------------------------------------------------
- -- Get Yaw Type
- if gui.GetValue("rbot_antiaim_stand_real") == 0 then
- real = "off"
- elseif gui.GetValue("rbot_antiaim_stand_real") == 1 then
- real = "static"
- elseif gui.GetValue("rbot_antiaim_stand_real") == 2 then
- real = "spinbot"
- elseif gui.GetValue("rbot_antiaim_stand_real") == 3 then
- real = "jitter"
- elseif gui.GetValue("rbot_antiaim_stand_real") == 4 then
- real = "zero"
- elseif gui.GetValue("rbot_antiaim_stand_real") == 5 then
- real = "switch"
- end
- -- Get Desync Type
- if gui.GetValue("rbot_antiaim_stand_desync") == 0 then
- desync = "off"
- elseif gui.GetValue("rbot_antiaim_stand_desync") == 1 then
- desync = "still"
- elseif gui.GetValue("rbot_antiaim_stand_desync") == 2 then
- desync = "balance"
- elseif gui.GetValue("rbot_antiaim_stand_desync") == 3 then
- desync = "stretch"
- elseif gui.GetValue("rbot_antiaim_stand_desync") == 4 then
- desync = "jitter"
- end
- -- Get Lag Type
- if gui.GetValue("lua_fakelag_moving") == 5 then
- lag = "peek"
- elseif gui.GetValue("lua_fakelag_moving") == 3 then
- lag = "adaptive"
- end
- ---------------------------------------------------------------
- -- Draw stuff --
- local w, h = draw.GetScreenSize()
- h = h-600
- -- Draw Title of Menu --
- text = "Display Information"
- textWidth, textHeight = draw.GetTextSize(text);
- draw.Color(25,25,25)
- draw.FilledRect(5, h, 181, h+textHeight+20)
- draw.Color(255,0,0)
- draw.OutlinedRect(5, h, 181, h+textHeight+20)
- draw.Color(255,255,255)
- draw.Text(25,h+10,text)
- -- Draw Yaw Information --
- text = "Yaw: " .. real
- textWidth, textHeight = draw.GetTextSize(text);
- draw.Color(40,40,40)
- draw.FilledRect(5, h+textHeight+20, 181, h+3*textHeight+20)
- draw.Color(255,255,255)
- draw.Text(25,h+2*textHeight+12,text)
- --Draw Desync Information --
- text = "Desync: " .. desync
- textWidth, textHeight = draw.GetTextSize(text);
- draw.Color(40, 40, 40)
- draw.FilledRect(5, h+3*textHeight+20, 181, h+5*textHeight+20)
- draw.Color(255,255,255)
- draw.Text(25,h+4*textHeight+12,text)
- -- Draw Fakelag Type --
- text = "Fakelag: " .. lag
- textWidth, textHeight = draw.GetTextSize(text)
- draw.Color(40,40,40)
- draw.FilledRect(5, h+5*textHeight+20, 181, h+7*textHeight+20)
- draw.Color(255,255,255)
- draw.Text(25,h+6*textHeight+12,text)
- -- Draw outline --
- draw.Color(255,0,0)
- draw.OutlinedRect(5, h, 181, h+7*textHeight+20)
- ---------------------------------------------------------------
- end
- function AntiAim()
- local aaEnable = 1
- local difference = globals.TickCount() - oldTickCount
- if difference > 1 then
- --print(difference)
- -- Random Jitter/Switch Range --
- local count = math.random(-1,1)
- local jitterRange = math.random(0,6)
- local switchRange = math.random(0,10)
- gui.SetValue("rbot_antiaim_jitter_range", jitterRange)
- gui.SetValue("rbot_antiaim_switch_range", switchRange)
- --
- -- Antiaim Switch --
- -- Combinations;
- -- 1: Switch, Balance, yawAdd; 45
- -- 2: Switch, Stretch
- -- 3: Jitter, Jitter, yawAdd; -180 or 180, jitterRange; 1 to 10
- -- 4: Jitter, Balance, yawAdd 0
- -- 5: Jitter, Stretch, yawAdd 0
- -- 6: Static, Jitter
- if aaEnable == 1 then
- if difference > 16 then
- local selectAntiAim = math.random(0,10)
- if selectAntiAim == 1 then
- -- 1
- gui.SetValue("rbot_antiaim_stand_real", 5)
- gui.SetValue("rbot_antiaim_stand_desync", 2)
- gui.SetValue("rbot_antiaim_stand_real_add", 25)
- elseif selectAntiAim == 2 then
- -- 2
- gui.SetValue("rbot_antiaim_stand_real", 5)
- gui.SetValue("rbot_antiaim_stand_desync", 3)
- gui.SetValue("rbot_antiaim_stand_real_add", -25)
- elseif selectAntiAim == 3 then
- -- 3
- gui.SetValue("rbot_antiaim_stand_real", 3)
- gui.SetValue("rbot_antiaim_stand_desync", 4)
- gui.SetValue("rbot_antiaim_stand_real_add", 180)
- elseif selectAntiAim == 4 then
- -- 4
- gui.SetValue("rbot_antiaim_stand_real", 3)
- gui.SetValue("rbot_antiaim_stand_desync", 2)
- gui.SetValue("rbot_antiaim_stand_real_add", 35)
- elseif selectAntiAim == 5 then
- -- 5
- gui.SetValue("rbot_antiaim_stand_real", 3)
- gui.SetValue("rbot_antiaim_stand_desync", 3)
- gui.SetValue("rbot_antiaim_stand_real_add", -35)
- elseif selectAntiAim == 6 then
- -- 6
- gui.SetValue("rbot_antiaim_stand_real", 1)
- gui.SetValue("rbot_antiaim_stand_desync", 4)
- gui.SetValue("rbot_antiaim_stand_real_add", 0)
- end
- oldTickCount = globals.TickCount();
- end
- end
- --oldTickCount = globals.TickCount()
- end
- end
- callbacks.Register( "Draw", "AntiAim", AntiAim);
- callbacks.Register( "Draw", "Display", Display);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement