Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- .__ __
- _____ ____ _____ ____ | |__ ____ ____ | | __
- / \_/ __ \ / \_/ __ \| | \ / _ \ / _ \| |/ /
- | Y Y \ ___/| Y Y \ ___/| Y ( <_> | <_> ) <
- |__|_| /\___ >__|_| /\___ >___| /\____/ \____/|__|_ \
- \/ \/ \/ \/ \/ \/
- ya nigaz new fukinnnzzz hack from weed_head
- creditz: weed_head, yung pain (my nigga for real), eth0s
- ya
- */
- /*
- LOCALISATION
- */
- local vgui = vgui;
- local surface = surface;
- local render = render;
- local input = input;
- local hook = hook;
- local timer = timer;
- local util = util;
- local player = player;
- local bit = bit;
- local team = team;
- local draw = draw;
- local debug = debug;
- local table = table;
- local GAMEMODE = GAMEMODE;
- local cam = cam;
- local Color = Color;
- local next = next;
- local Vector = Vector;
- local Angle = Angle;
- local FindMetaTable = FindMetaTable;
- local LocalPlayer = LocalPlayer;
- local require = require;
- local Entity = Entity;
- local ScrW, ScrH = ScrW, ScrH;
- local RunConsoleCommand = RunConsoleCommand;
- local CurTime = CurTime;
- local CreateMaterial = CreateMaterial;
- local pmt = FindMetaTable("Player");
- local emt = FindMetaTable("Entity");
- local cmt = FindMetaTable("CUserCmd");
- /*
- OPTIONS
- */
- local options = {
- {
- "Aimbot",
- {"aimbot func", false, "Checkbox"},
- },
- {
- "Visuals",
- {"esp", false, "Checkbox"},
- {"esp 2", false, "Checkbox"},
- },
- {
- "Misc",
- {"BHop", false, "Checkbox"},
- {"antaim", false, "Checkbox"},
- },
- {
- "Colors",
- {"Menu", nil, "Break"},
- {"Menu - R", 147, "Slider", {0, 255, 0}},
- {"Menu - G", 112, "Slider", {0, 255, 0}},
- {"Menu - B", 219, "Slider", {0, 255, 0}},
- {"Team", nil, "Break"},
- {"Team - R", 0, "Slider", {0, 255, 0}},
- {"Team - G", 0, "Slider", {0, 255, 0}},
- {"Team - B", 0, "Slider", {0, 255, 0}},
- {"Enemy", nil, "Break"},
- {"Enemy - R", 0, "Slider", {0, 255, 0}},
- {"Enemy - G", 0, "Slider", {0, 255, 0}},
- {"Enemy - B", 0, "Slider", {0, 255, 0}},
- }
- };
- /*
- FLOATS
- */
- local floats = {
- {
- "Key",
- {KEY_INSERT, false, false},
- {KEY_F, false, false}
- },
- {
- "Mouse",
- {MOUSE_MIDDLE, false, false},
- {MOUSE_LEFT, false, false}
- },
- {
- "Menu",
- {"Active Tab", "Aimbot"},
- {"Wait", RealTime()}
- }
- }
- /*
- FONTS
- */
- surface.CreateFont("MenuFont", {
- font = "HaxrCorp S8 Standard",
- size = 14,
- antialias = false,
- shadow = true,
- })
- surface.CreateFont("_MenuFont", {
- font = "HaxrCorp S8 Standard",
- size = 12,
- antialias = false,
- shadow = true,
- })
- /*
- MENU FUNCS
- */
- local function gVal(t, c, o)
- for k,v in next, t do
- if (c != t[k][1]) then continue; end
- for i = 2, #t[k] do
- if (t[k][i][1] != o) then continue; end
- if (t[k][i][3] == "Break") then continue; end
- return t[k][i][2];
- end
- end
- end
- local function sVal(t, c, o, v)
- for k,_v in next, t do
- if (c != t[k][1]) then continue; end
- for i = 2, #t[k] do
- if (t[k][i][1] != o) then continue; end
- t[k][i][2] = v;
- end
- end
- end
- local function gKey(c, o)
- for i = 1, 2 do
- if (c != floats[i][1]) then continue; end
- for _i = 2, #floats[i] do
- if (floats[i][_i][1] != o) then continue; end
- return floats[i][_i][2] && !floats[i][_i][3];
- end
- end
- end
- local function UpdateKeys()
- for i = 1, 2 do
- for _i = 2, #floats[i] do
- floats[i][_i][3] = floats[i][_i][2];
- if (i == 1) then
- floats[i][_i][2] = input.IsKeyDown(floats[i][_i][1]);
- end
- if (i == 2) then
- floats[i][_i][2] = input.IsMouseDown(floats[i][_i][1]);
- end
- end
- end
- end
- local function CursorHovering(x, y, w, h, m)
- local cx, cy = input.GetCursorPos();
- local px, py = m:GetPos();
- x = x + px;
- y = y + py;
- return (cx > x && cx < (x+w) && cy > y && cy < (y+h));
- end
- /*
- DRAWING
- */
- local function DrawRect(x, y, w, h, c)
- surface.SetDrawColor(c);
- surface.DrawRect(x, y, w, h);
- end
- local function DrawOutlinedRect(x, y, w, h, c)
- surface.SetDrawColor(c);
- surface.DrawOutlinedRect(x, y, w, h);
- end
- local function DrawText(s, f, x, y, c, ax, ay)
- surface.SetFont(f);
- local w, h = surface.GetTextSize(s);
- surface.SetTextColor(c);
- x = (ax == "c" && x - w/2) || (ax == "r" && x - w) || x;
- y = (ay == "c" && y - h/2) || (ay == "b" && y - h) || y;
- surface.SetTextPos(math.ceil(x), math.ceil(y));
- surface.DrawText(s);
- return w, h;
- end
- local function DrawLine(x, y, _x, _y, c)
- surface.SetDrawColor(c);
- surface.DrawLine(x, y, _x, _y);
- end
- local function DrawTab(s, x, w, h, c, m)
- DrawRect(x, 24, w, h, (s == gVal(floats, "Menu", "Active Tab") && c || CursorHovering(x, 24, w, h, m) && Color(c.r*1.1, c.g*1.1, c.b*1.1) || Color(c.r/1.5, c.g/1.5, c.b/1.5)));
- DrawText(s, "_MenuFont", x+w/2, 24+h/2, Color(255, 255, 255), "c", "c");
- if (CursorHovering(x, 24, w, h, m) && input.IsMouseDown(MOUSE_LEFT)) then
- sVal(floats, "Menu", "Active Tab", s);
- end
- end
- local function DrawCheckbox(s, y, c, o, _c, m)
- DrawOutlinedRect(10, y, 10, 10, Color(0,0,0));
- DrawRect(11, y+1, 8, 8, Color(255,255,255));
- local w, h = surface.GetTextSize(s);
- DrawRect(12, y+2, 6, 6, (gVal(options, c, o) && _c || CursorHovering(10, y, 15 + w, 10, m) && Color(150, 150, 150) || Color(255,255,255)));
- DrawText(s, "_MenuFont", 23, y+4, Color(255, 255, 255), "l", "c");
- if (CursorHovering(10, y, 15 + w, 10, m) && input.IsMouseDown(MOUSE_LEFT) && RealTime() > gVal(floats, "Menu", "Wait")) then
- sVal(options, c, o, !gVal(options, c, o));
- sVal(floats, "Menu", "Wait", RealTime() + 0.1)
- end
- end
- local function DrawBreak(s, y, c, m)
- local w, h = surface.GetTextSize(s);
- DrawText(s, "_MenuFont", 390, y+5, CursorHovering(395 - w, y, w, h, m) && Color(math.random(10,255),math.random(10,255),math.random(10,255)) || c, "r", "c");
- DrawLine(10, y+5, 386 - w, y+5, c);
- end
- local function DrawSlider(s, y, c, o, _s, b, d, _c, m)
- local x, _y = input.GetCursorPos();
- local _x, __y = m:GetPos();
- DrawText(s, "_MenuFont", 13, y+4, Color(255, 255, 255), "l", "c");
- DrawText(math.floor(gVal(options, c, o)*10^d)/10^d, "_MenuFont", 390, y+4, Color(255, 255, 255), "r", "c");
- DrawLine(15, y+25, 385, y+25, _c);
- DrawOutlinedRect(14, y+24, 373, 3, Color(0,0,0));
- DrawOutlinedRect(((gVal(options, c, o)-_s)/(b-_s)*370)+10, y+15, 10, 20, Color(0,0,0));
- DrawRect(((gVal(options, c, o)-_s)/(b-_s)*370)+11, y+16, 8, 18, Color(255,255,255));
- DrawRect(((gVal(options, c, o)-_s)/(b-_s)*370)+12, y+17, 6, 16, CursorHovering(((gVal(options, c, o)-_s)/(b-_s)*370)+10, y+15, 10, 20, m) && Color(150,150,150) || Color(255,255,255));
- if (CursorHovering(15, y+15, 371, 20, m) && input.IsMouseDown(MOUSE_LEFT)) then
- local val = (x-_x-15)/370*(b-_s)+_s;
- sVal(options, c, o, val);
- end
- end
- local function DrawSelection(s, y, c, o, t, _c, m)
- for i = 1, #t do
- if (t[i] == gVal(options, c, o)) then
- q=i;
- end
- end
- DrawText(s, "_MenuFont", 13, y+4, _c, "l", "c");
- DrawText(q, "_MenuFont", 390, y+4, _c, "r", "c");
- DrawRect(11, y+16, 18, 18, _c);
- DrawRect(12, y+17, 16, 16, CursorHovering(10, y+15, 20, 20, m) && Color(150,150,150) || _c);
- DrawLine(15, y+25, 25, y+25, Color(0,0,0));
- DrawLine(29, y+15, 29, y+35, Color(0,0,0));
- DrawOutlinedRect(10, y+15, 380, 20, Color(0,0,0));
- DrawRect(371, y+16, 18, 18, _c);
- DrawRect(372, y+17, 16, 16, CursorHovering(370, y+15, 20, 20, m) && Color(150,150,150) || _c);
- DrawLine(375, y+25, 385, y+25, Color(0,0,0));
- DrawRect(30, y+16, 340, 18, Color(150,150,150));
- DrawText(gVal(options, c, o), "_MenuFont", 200, y+25, CursorHovering(30, y+15, 340, 20, m) && Color(math.random(10,255),math.random(10,255),math.random(10,255)) || Color(255,255,255), "c", "c");
- if (CursorHovering(10, y+15, 20, 20, m) && input.IsMouseDown(MOUSE_LEFT) && RealTime() > gVal(floats, "Menu", "Wait")) then
- sVal(options, c, o, (t[math.Clamp(q-1, 1, #t)]));
- sVal(floats, "Menu", "Wait", RealTime() + 0.1);
- end
- if (CursorHovering(370, y+15, 20, 20, m) && input.IsMouseDown(MOUSE_LEFT) && RealTime() > gVal(floats, "Menu", "Wait")) then
- sVal(options, c, o, (t[math.Clamp(q+1, 1, #t)]));
- sVal(floats, "Menu", "Wait", RealTime() + 0.1);
- end
- if (CursorHovering(30, y+15, 340, 20, m) && input.IsMouseDown(MOUSE_LEFT) && RealTime() > gVal(floats, "Menu", "Wait")) then
- sVal(options, c, o, (t[math.random(1, #t)]));
- sVal(floats, "Menu", "Wait", RealTime() + 0.1);
- end
- end
- /*
- MENU
- */
- local Frame = vgui.Create("DFrame")
- Frame:SetSize(400, 500)
- Frame:ShowCloseButton(false)
- Frame:SetTitle("")
- Frame:MakePopup()
- Frame:Center()
- function Frame.Paint(self)
- local sw, sh = self:GetWide(), self:GetTall();
- DrawOutlinedRect(0, 0, sw, sh, Color(0, 0, 0));
- DrawRect(1, 1, sw-2, sh-2, Color(gVal(options, "Colors", "Menu - R"), gVal(options, "Colors", "Menu - G"), gVal(options, "Colors", "Menu - B")));
- DrawOutlinedRect(3, 23, sw-6, sh-26, Color(0, 0, 0));
- DrawRect(4, 24, sw-8, sh-28, Color(80, 80, 80));
- DrawText("memehook public release", "MenuFont", self:GetWide()/2, 11, Color(255,255,255), "c", "c");
- for k,v in next, options do
- DrawTab(options[k][1], 4+(((sw-8)/#options)*(k-1)), math.ceil((sw-8)/#options), 20, Color(gVal(options, "Colors", "Menu - R"), gVal(options, "Colors", "Menu - G"), gVal(options, "Colors", "Menu - B")), self);
- if (gVal(floats, "Menu", "Active Tab") == options[k][1]) then
- local menuy = 50;
- for i = 2, #options[k] do
- if (options[k][i][3] == "Checkbox") then
- DrawCheckbox(options[k][i][1], menuy, options[k][1], options[k][i][1], Color(gVal(options, "Colors", "Menu - R"), gVal(options, "Colors", "Menu - G"), gVal(options, "Colors", "Menu - B")), self);
- menuy = menuy + 15;
- elseif (options[k][i][3] == "Slider") then
- DrawSlider(options[k][i][1], menuy, options[k][1], options[k][i][1], options[k][i][4][1], options[k][i][4][2], options[k][i][4][3], Color(255,255,255), self);
- menuy = menuy + 40;
- elseif (options[k][i][3] == "Selection") then
- DrawSelection(options[k][i][1], menuy, options[k][1], options[k][i][1], options[k][i][4], Color(255,255,255), self);
- menuy = menuy + 40;
- elseif (options[k][i][3] == "Break") then
- DrawBreak(options[k][i][1], menuy, Color(255,255,255), self);
- menuy = menuy + 15;
- end
- end
- end
- end
- end
- local open = true;
- local function Menu()
- if (gKey("Key", KEY_INSERT) && !LocalPlayer():IsTyping()) then
- open = !open;
- Frame:SetVisible(open)
- end
- end
- /*
- HOOKING
- */
- function GAMEMODE:Think()
- UpdateKeys();
- Menu();
- end
- /*
- actual codenz lal
- */
- local function gethead(v)
- local pos, ang = v:GetBonePosition(v:LookupBone("ValveBiped.Bip01_Head1"))
- if pos then
- return pos
- end
- end
- local me = LocalPlayer()
- local function trashaimbot(cmd)
- if (!gVal("aimbot", "aimbot func")) then return; end
- local myteam = ( team.GetName( me:Team() ) )
- for k,v in next, player.GetAll() do
- if (!IsValid(v)
- or v:Health() < 1
- or v:IsDormant()
- or v == me
- or v:Team() == LocalPlayer():Team() ) then
- continue
- end
- local head = gethead(v)
- local mypos = me:GetShootPos()
- local tracetable = {
- start = head,
- endpos = mypos,
- filter = {me, v},
- mask = MASK_SHOT
- }
- if util.TraceLine(tracetable).Fraction == 1 then
- aiming = 1
- cmd:SetViewAngles((head - mypos):Angle())
- cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_ATTACK))
- else
- aiming = 0
- end
- end
- end
- hook.Add("CreateMove", "", trashaimbot)
- -- WIKI ESPNames I DONT CARE IM BIG HACK USER
- hook.Add( "HUDPaint", "ESPNames", function()
- if (!gVal("Visuals", "esp 2")) then return; end
- for k,v in pairs ( player.GetAll() ) do
- local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
- local Name = ""
- if v == LocalPlayer() then Name = "" else Name = v:Name() end
- draw.DrawText( Name, "DebugFixedSmall", Position.x, Position.y, Color( 255, 0, 255, 255 ), 1 )
- end
- end )
- -- BAD ANTI AIM
- CreateClientConVar("kayko_AntiAim",0,true,false)
- hook.Add("CreateMove","AntiAim", function(CUserCmd)
- if (!gVal("Misc", "antiaim")) then return; end
- local AntiAimToggle = CreateClientConVar( "kayko_AntiAim", 0, true, false )
- if AntiAimToggle:GetInt() == 1 && LocalPlayer():Alive() && aiming == 0 then
- CUserCmd:SetViewAngles(Angle(-181, LocalPlayer():EyeAngles().y, 180))
- end
- end)
- CreateClientConVar("kayko_lock",0,true,false)
- hook.Add( "HUDPaint", "IAmLocked", function()
- if GetConVar("kayko_lock"):GetInt() == 1 then
- if aiming == 1 then
- draw.DrawText( "Target Locked", "CloseCaption_Bold", 800, 500, Color( 0, 255, 0, 255 ), 1 )
- else
- draw.DrawText( "Locating Target", "CloseCaption_Bold", 800, 500, Color( 255, 0, 0, 255 ), 1 )
- end
- end
- end )
- -- WORST BHOP EVER
- hook.Add("Think", "Bhop", function()
- if (!gVal("Misc", "BHop")) then return; end
- if input.IsKeyDown(KEY_SPACE) && LocalPlayer():IsOnGround() && !LocalPlayer():IsTyping() then
- RunConsoleCommand( "+jump" )
- else
- RunConsoleCommand( "-jump" )
- end
- end)
- /*
- WATERMARK
- */
- surface.CreateFont( "MyFont", {
- font = "Arial",
- size = 25,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = true,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false,
- } )
- hook.Add( "HUDPaint", "drawsometext", function()
- if (!gVal("Visuals", "esp")) then return; end
- surface.SetFont( "MyFont" )
- surface.SetTextColor(255, 0, 255)
- surface.SetTextPos( 600, 70 )
- surface.DrawText( "KAYKO~BOT V3.0 by Yung Pain " )
- end )
Advertisement
Add Comment
Please, Sign In to add comment