Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gui_set = gui.SetValue
- local gui_get = gui.GetValue
- local b_toggle = input.IsButtonDown
- local auto = gui_get("rbot_autosniper_autostop")
- local awp = gui_get("rbot_sniper_autostop")
- local ssg = gui_get("rbot_scout_autostop")
- local rev = gui_get("rbot_revolver_autostop")
- local pist = gui_get("rbot_pistol_autostop")
- local smg = gui_get("rbot_smg_autostop")
- local rifle = gui_get("rbot_rifle_autostop")
- local shotg = gui_get("rbot_shotgun_autostop")
- local lmg = gui_get("rbot_lmg_autostop")
- local shared = gui_get("rbot_shared_autostop")
- local slowwalk_key = gui_get("msc_slowwalk")
- local editboxVarNames = { "rab_pmodal_hex_input", "rab_hands_hex_input", "rab_weapons_hex_input", "rab_ghost_hex_input", "rab_glow_hex_input", "rab_crosshair_hex_input" };
- local reference = gui.Reference("SETTINGS", "Miscellaneous")
- local indicator = gui.Checkbox(reference, "indicate_on", "Indicators", 0);
- local indicatorR = gui.Slider(reference, "indicator_red", "Indicators Red", 0, 0, 255);
- local indicatorG = gui.Slider(reference, "indicator_green", "Indicators Green", 0, 0, 255);
- local indicatorB = gui.Slider(reference, "indicator_blue", "Indicators Blue", 0, 0, 255);
- local switchspeed = gui.Slider(reference, "switch_speed", "Switch Speed", 32, 0, 120);
- local switchrange1 = gui.Slider(reference, "switch_range", "Switch range", 0, 0, 120);
- local switchrange2 = gui.Slider(reference, "switch_range2", "Switch range 2", 14, 0, 120);
- function rangeswitch()
- local switchvalue = switchspeed:GetValue()
- local switchget = math.floor(switchrange1:GetValue())
- local switchget2 = math.floor(switchrange2:GetValue())
- if globals.TickCount() % math.floor(switchvalue) == 0 then
- if switchget < switchget2 then
- local switchrange = math.random(switchget, switchget2)
- gui_set("rbot_antiaim_switch_range", switchrange)
- end
- end
- end
- function drawrange()
- if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
- local font = draw.CreateFont("Gobold", 30)
- draw.SetFont(font);
- local w, h = draw.GetScreenSize()
- local w = w/2
- local h = h/2
- local antiaim = gui.GetValue("rbot_antiaim_switch_range")
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+30, "S: " .. math.floor(antiaim))
- draw.TextShadow(w-940.5,h+30, "S: " .. math.floor(antiaim))
- end
- end
- function desyncindicator()
- if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
- local font = draw.CreateFont("Gobold", 30);
- draw.SetFont(font);
- local w, h = draw.GetScreenSize()
- local w = w/2
- local h = h/2
- local antiaim2 = gui.GetValue("rbot_antiaim_stand_desync")
- local threshold = gui.GetValue("rbot_antiaim_stand_velocity");
- local LocalPlayer = entities.GetLocalPlayer();
- local velocityX = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[0]");
- local velocityY = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[1]");
- local velocity = math.sqrt(velocityX^2 + velocityY^2);
- local FinalVelocity = tonumber(math.floor(math.min(9999, velocity) + 0.2));
- if antiaim2 == 0 and FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+60, "D: Off")
- draw.TextShadow(w-940.5,h+60, "D: Off")
- elseif antiaim2 == 1 and FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+60, "D: Still")
- draw.TextShadow(w-940.5,h+60, "D: Still")
- elseif antiaim2 == 2 and FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+60, "D: Balance")
- draw.TextShadow(w-940.5,h+60, "D: Balance")
- elseif antiaim2 == 3 and FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+60, "D: Stretch")
- draw.TextShadow(w-940.5,h+60, "D: Stretch")
- elseif antiaim2 == 4 and FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+60, "D: Jitter")
- draw.TextShadow(w-940.5,h+60, "D: Jitter")
- elseif FinalVelocity > threshold then
- desyncindicatormove()
- end
- end
- end
- function desyncindicatormove()
- if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
- local font = draw.CreateFont("Gobold", 30);
- draw.SetFont(font);
- local w, h = draw.GetScreenSize()
- local w = w/2
- local h = h/2
- local antiaim2 = gui.GetValue("rbot_antiaim_move_desync")
- local threshold = gui.GetValue("rbot_antiaim_stand_velocity");
- local LocalPlayer = entities.GetLocalPlayer();
- local velocityX = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[0]");
- local velocityY = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[1]");
- local velocity = math.sqrt(velocityX^2 + velocityY^2);
- local FinalVelocity = tonumber(math.floor(math.min(9999, velocity) + 0.2));
- if antiaim2 == 0 and FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+60, "D: Off")
- draw.TextShadow(w-940.5,h+60, "D: Off")
- elseif antiaim2 == 1 and FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+60, "D: Still")
- draw.TextShadow(w-940.5,h+60, "D: Still")
- elseif antiaim2 == 2 and FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+60, "D: Balance")
- draw.TextShadow(w-940.5,h+60, "D: Balance")
- elseif antiaim2 == 3 and FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+60, "D: Stretch")
- draw.TextShadow(w-940.5,h+60, "D: Stretch")
- elseif antiaim2 == 4 and FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+60, "D: Jitter")
- draw.TextShadow(w-940.5,h+60, "D: Jitter")
- elseif FinalVelocity < threshold then
- realindicator()
- end
- end
- end
- function yawindicator()
- if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
- local font = draw.CreateFont("Gobold", 30);
- draw.SetFont(font);
- local w, h = draw.GetScreenSize()
- local w = w/2
- local h = h/2
- local autodir = gui.GetValue("rbot_antiaim_autodir")
- local antiaimvalue = gui.GetValue("rbot_antiaim_stand_real_add")
- local antiaimvalue2 = gui.GetValue("rbot_antiaim_move_real_add")
- local threshold = gui.GetValue("rbot_antiaim_stand_velocity");
- local LocalPlayer = entities.GetLocalPlayer();
- local velocityX = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[0]");
- local velocityY = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[1]");
- local velocity = math.sqrt(velocityX^2 + velocityY^2);
- local FinalVelocity = tonumber(math.floor(math.min(9999, velocity) + 0.2));
- if autodir ~= 0 then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+90, "Y: Auto")
- draw.TextShadow(w-940.5,h+90, "Y: Auto")
- elseif FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.TextShadow(w-940.5,h+90, "Y: " .. math.floor(antiaimvalue))
- draw.TextShadow(w-940.5,h+90, "Y: " .. math.floor(antiaimvalue))
- elseif FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.TextShadow(w-940.5,h+90, "Y: " .. math.floor(antiaimvalue2))
- draw.TextShadow(w-940.5,h+90, "Y: " .. math.floor(antiaimvalue2))
- end
- end
- end
- function autostopoff()
- local player = entities.GetLocalPlayer()
- slowwalk_key = gui_get("msc_slowwalk")
- if b_toggle(slowwalk_key) and player:IsAlive() then
- local screen_x, screen_y = draw.GetScreenSize()
- gui_set("rbot_autosniper_autostop", 0)
- gui_set("rbot_lmg_autostop", 0)
- gui_set("rbot_pistol_autostop", 0)
- gui_set("rbot_revolver_autostop", 0)
- gui_set("rbot_rifle_autostop", 0)
- gui_set("rbot_scout_autostop", 0)
- gui_set("rbot_shared_autostop", 0)
- gui_set("rbot_shotgun_autostop", 0)
- gui_set("rbot_smg_autostop", 0)
- gui_set("rbot_sniper_autostop", 0)
- else
- gui_set("rbot_autosniper_autostop", auto)
- gui_set("rbot_lmg_autostop", lmg)
- gui_set("rbot_pistol_autostop", pist)
- gui_set("rbot_revolver_autostop", rev)
- gui_set("rbot_rifle_autostop", rifle)
- gui_set("rbot_scout_autostop", ssg)
- gui_set("rbot_shared_autostop", shared)
- gui_set("rbot_shotgun_autostop", shotg)
- gui_set("rbot_smg_autostop", smg)
- gui_set("rbot_sniper_autostop", awp)
- end
- end
- function realindicator()
- if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
- local font = draw.CreateFont("Gobold", 30);
- draw.SetFont(font);
- local w, h = draw.GetScreenSize()
- local w = w/2
- local h = h/2
- local getyaw = gui.GetValue("rbot_antiaim_stand_real")
- local threshold = gui.GetValue("rbot_antiaim_stand_velocity");
- local LocalPlayer = entities.GetLocalPlayer();
- local velocityX = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[0]");
- local velocityY = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[1]");
- local velocity = math.sqrt(velocityX^2 + velocityY^2);
- local FinalVelocity = tonumber(math.floor(math.min(9999, velocity) + 0.2));
- if getyaw == 0 and FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.TextShadow(w-940.5,h+120, "R: Off")
- draw.TextShadow(w-940.5,h+120, "R: Off")
- elseif getyaw == 1 and FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.TextShadow(w-940.5,h+120, "R: Static")
- draw.TextShadow(w-940.5,h+120, "R: Static")
- elseif getyaw == 2 and FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.TextShadow(w-940.5,h+120, "R: Spinbot")
- draw.TextShadow(w-940.5,h+120, "R: Spinbot")
- elseif getyaw == 3 and FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+120, "R: Jitter")
- draw.TextShadow(w-940.5,h+120, "R: Jitter")
- elseif getyaw == 4 and FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+120, "R: Zero")
- draw.TextShadow(w-940.5,h+120, "R: Zero")
- elseif getyaw == 5 and FinalVelocity < threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+120, "R: Switch")
- draw.TextShadow(w-940.5,h+120, "R: Switch")
- elseif FinalVelocity > threshold then
- realindicatormove()
- end
- end
- end
- function realindicatormove()
- if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
- local font = draw.CreateFont("Gobold", 30);
- draw.SetFont(font);
- local w, h = draw.GetScreenSize()
- local w = w/2
- local h = h/2
- local getyawmove = gui.GetValue("rbot_antiaim_move_real")
- local threshold = gui.GetValue("rbot_antiaim_stand_velocity");
- local LocalPlayer = entities.GetLocalPlayer();
- local velocityX = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[0]");
- local velocityY = LocalPlayer:GetPropFloat("localdata", "m_vecVelocity[1]");
- local velocity = math.sqrt(velocityX^2 + velocityY^2);
- local FinalVelocity = tonumber(math.floor(math.min(9999, velocity) + 0.2));
- if getyawmove == 0 and FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.TextShadow(w-940.5,h+120, "R: Off")
- draw.TextShadow(w-940.5,h+120, "R: Off")
- elseif getyawmove == 1 and FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.TextShadow(w-940.5,h+120, "R: Static")
- draw.TextShadow(w-940.5,h+120, "R: Static")
- elseif getyawmove == 2 and FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.TextShadow(w-940.5,h+120, "R: Spinbot")
- draw.TextShadow(w-940.5,h+120, "R: Spinbot")
- elseif getyawmove == 3 and FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+120, "R: Jitter")
- draw.TextShadow(w-940.5,h+120, "R: Jitter")
- elseif getyawmove == 4 and FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+120, "R: Zero")
- draw.TextShadow(w-940.5,h+120, "R: Zero")
- elseif getyawmove == 5 and FinalVelocity > threshold then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+120, "R: Switch")
- draw.TextShadow(w-940.5,h+120, "R: Switch")
- elseif FinalVelocity < threshold then
- realindicator()
- end
- end
- end
- function fadingfake()
- local speed = 3
- local r = 0
- local g = 100
- local b = 255
- local a = math.floor(math.sin(globals.RealTime() * speed + 4) * 70 + 70)
- for k,v in pairs({ "clr_chams_ghost_client",
- "clr_chams_ghost_client",
- "clr_chams_ghost_client",
- "clr_chams_ghost_client"}) do
- gui.SetValue(v, r,g,b,a)
- end
- end
- function fakelagindicator()
- if entities.GetLocalPlayer() ~= nil and indicator:GetValue() and entities.GetLocalPlayer():IsAlive() then
- local font = draw.CreateFont("Gobold", 30);
- draw.SetFont(font);
- local w, h = draw.GetScreenSize()
- local w = w/2
- local h = h/2
- local fakelagon = gui.GetValue("msc_fakelag_enable")
- local fakelagmode = gui.GetValue("msc_fakelag_mode")
- if fakelagmode == 0 and fakelagon then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+150, "F: Factor")
- draw.TextShadow(w-940.5,h+150, "F: Factor")
- elseif fakelagmode == 1 and fakelagon then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+150, "F: Switch")
- draw.TextShadow(w-940.5,h+150, "F: Switch")
- elseif fakelagmode == 2 and fakelagon then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+150, "F: Adaptive")
- draw.TextShadow(w-940.5,h+150, "F: Adaptive")
- elseif fakelagmode == 3 and fakelagon then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+150, "F: Random")
- draw.TextShadow(w-940.5,h+150, "F: Random")
- elseif fakelagmode == 4 and fakelagon then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+150, "F: Peek")
- draw.TextShadow(w-940.5,h+150, "F: Peek")
- elseif fakelagmode == 5 and fakelagon then
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+150, "F: Rapid Peek")
- draw.TextShadow(w-940.5,h+150, "F: Rapid Peek")
- else
- draw.Color(gui.GetValue("indicator_red"),gui.GetValue("indicator_green"),gui.GetValue("indicator_blue"),255);
- draw.Text(w-940.5,h+150, "F: Off")
- draw.TextShadow(w-940.5,h+150, "F: Off")
- end
- end
- end
- callbacks.Register("CreateMove", "rangeswitch", rangeswitch)
- callbacks.Register("Draw", "fadingfake", fadingfake)
- callbacks.Register("Draw", "drawrange", drawrange)
- callbacks.Register("Draw", "desyncindicator", desyncindicator)
- callbacks.Register("Draw", "yawindicator", yawindicator)
- callbacks.Register("Draw", "realindicator", realindicator)
- callbacks.Register("Draw", "fakelagindicator", fakelagindicator)
- callbacks.Register("Draw", "autostopoff", autostopoff)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement