Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TriggerBot = CreateClientConVar( "autoshoot_state", 0, true, false )
- local TriggerAim = CreateClientConVar("aimbot_state",0,true,false )
- local Glow = CreateClientConVar("Glow",0,true,false)
- local Aimbone = CreateClientConVar("Aimbone",0,true,false)
- local ShowNick = CreateClientConVar("Show_nick",0,true,false)
- local TapS = false
- local bones = {}
- bones[0] = "ValveBiped.Bip01_Head1"
- bones[1] = "ValveBiped.Bip01_Neck1"
- bones[2] = "ValveBiped.Bip01_Spine4"
- bones[3] = "ValveBiped.Bip01_Spine2"
- bones[4] = "ValveBiped.Bip01_Spine1"
- bones[6] ="ValveBiped.Bip01_Spine"
- bones[7] = "ValveBiped.Bip01_R_UpperArm"
- bones[8] ="ValveBiped.Bip01_R_Forearm"
- bones[9] = "ValveBiped.Bip01_R_Hand"
- bones[10] = "ValveBiped.Bip01_L_UpperArm"
- bones[11] = "ValveBiped.Bip01_L_Forearm"
- bones[12] = "ValveBiped.Bip01_L_Hand"
- bones[13] ="ValveBiped.Bip01_R_Thigh"
- bones[14] = "ValveBiped.Bip01_R_Calf"
- bones[15] = "ValveBiped.Bip01_R_Foot"
- bones[16] = "ValveBiped.Bip01_R_Toe0"
- bones[17] = "ValveBiped.Bip01_L_Thigh"
- bones[18] = "ValveBiped.Bip01_L_Calf"
- bones[19]= "ValveBiped.Bip01_L_Foot"
- bones[20] ="ValveBiped.Bip01_L_Toe0"
- local TriggerBotCon = "autoshoot_state"
- local TriggerAimCon = "aimbot_state"
- local GlowCon = "Glow"
- local ShowNickCon = "Show_nick"
- concommand.Add("addmenu", function()
- local nibber = "DCheckBoxLabel"
- local DermaPanel = vgui.Create( "DFrame" )
- DermaPanel:SetPos( ScrW()/2-300/2,ScrH()/2-200/2 )
- DermaPanel:SetSize( 300, 200 )
- DermaPanel:SetTitle( "My pasted hack" )
- DermaPanel:SetVisible( true )
- DermaPanel:SetDraggable( true )
- DermaPanel:ShowCloseButton( true )
- DermaPanel:MakePopup()
- local NumSliderThingy = vgui.Create( "DNumSlider", DermaPanel )
- NumSliderThingy:SetPos( 10,125 )
- NumSliderThingy:SetSize( 150, 100 ) -- Keep the second number at 100
- NumSliderThingy:SetText( "Aimbone" )
- NumSliderThingy:SetMin( 0 ) -- Minimum number of the slider
- NumSliderThingy:SetMax( 20 ) -- Maximum number of the slider
- NumSliderThingy:SetDecimals( 0 ) -- Sets a decimal. Zero means it's a whole number
- NumSliderThingy:SetConVar( "Aimbone" ) -- Set the convar
- local CheckBoxThing = vgui.Create( nibber, DermaPanel )
- CheckBoxThing:SetPos( 10,50 )
- CheckBoxThing:SetText( "TriggerBot" )
- CheckBoxThing:SetConVar( "autoshoot_state" ) -- ConCommand must be a 1 or 0 value
- CheckBoxThing:SetValue(TriggerBot:GetBool())
- CheckBoxThing:SizeToContents()
- local CheckBox2 = vgui.Create(nibber,DermaPanel)
- CheckBox2:SetPos(10,75)
- CheckBox2:SetText( "Aimbot" )
- CheckBox2:SetConVar( TriggerAimCon ) -- ConCommand must be a 1 or 0 value
- CheckBox2:SetValue(TriggerAim:GetBool())
- CheckBox2:SizeToContents()
- local CheckBox3 = vgui.Create(nibber,DermaPanel)
- CheckBox3:SetPos(10,100)
- CheckBox3:SetText( "Glow" )
- CheckBox3:SetConVar(GlowCon) -- ConCommand must be a 1 or 0 value
- CheckBox3:SetValue(Glow:GetBool())
- CheckBox3:SizeToContents()
- local CheckBox4 = vgui.Create(nibber,DermaPanel)
- CheckBox4:SetPos(10,125 )
- CheckBox4:SetText("ESP")
- CheckBox4:SetConVar(ShowNickCon) -- ConCommand must be a 1 or 0 value
- CheckBox4:SetValue(Glow:GetBool())
- CheckBox4:SizeToContents()
- end )
- hook.Add( "PreDrawHalos", "AddHalos", function()
- local copypasted_from_gmodwiki = {}
- if Glow:GetBool() then
- for k, v in pairs( player.GetAll() ) do
- if v:Health() > 0 then
- table.insert(copypasted_from_gmodwiki, v )
- end
- end
- end
- halo.Add( copypasted_from_gmodwiki, Color( 255, 0 , 0 ), 0, 0, 10, true, true )
- end )
- hook.Add( "HUDPaint", "Wallhack", function()
- if ShowNick:GetBool() then
- for k,v in pairs ( player.GetAll() ) do
- if v:Health() > 0 then
- local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
- local BoxPos = (v:GetPos()+Vector(0,0,50)):ToScreen()
- local Name = ""
- if v == LocalPlayer() then Name = "" else Name = v:Name() end
- draw.DrawText( Name, "ChatFont", Position.x, Position.y, Color( 0, 255, 0, 255 ), 1 )
- end
- end
- end
- end )
- function aimbot() -- Starting the function
- if TriggerAim:GetBool() then
- local ply = LocalPlayer() -- Getting ourselves
- local trace = util.GetPlayerTrace( ply ) -- Player Trace part. 1
- local traceRes = util.TraceLine( trace ) -- Player Trace part. 2
- if traceRes.HitNonWorld then -- If the aimbot aims at something that isn't the map..
- local target = traceRes.Entity -- It's obviously an entity.
- if target:IsPlayer() then -- But it must be a player.
- local targethead = target:LookupBone(bones[Aimbone:GetInt()]) -- In this aimbot we only aim for the head.
- local targetheadpos,targetheadang = target:GetBonePosition(targethead) -- Get the position/angle of the head.
- ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle()) -- And finally, we snap our aim to the head of the target.
- end
- end
- end
- end
- hook.Add("Think","aimbot",aimbot) -- The hook will spam "aimbot" until it finds a target..
- local me = LocalPlayer();
- hook.Add("CreateMove", "", function(ucmd)
- if TriggerBot:GetBool() then
- local trace = me:GetEyeTrace();
- local hitbox, entity = trace.HitGroup, trace.Entity;
- if (!entity:IsValid() || entity:IsDormant() || !entity:IsPlayer() || entity:Health() < 1) then return; end
- ucmd:SetButtons(bit.bor(ucmd:GetButtons(), IN_ATTACK));
- end
- end);
- Chams = CreateMaterial( "Mat", "VertexLitGeneric", { ["$basetexture"] = "models/debug/debugwhite", ["$model"] = 1, ["$ignorez"] = 1 } )
- hook.Add( "HUDPaint", "ESPBoxChams", function()
- for k,v in pairs ( player.GetAll() ) do
- if v ~=LocalPlayer() and v:Alive() and v:IsValid() and v:Health() >= 1 then
- local ply = LocalPlayer()
- local origin = v:GetPos()
- local top = v:OBBMaxs()
- local bottom = v:OBBMins()
- local eye = v:EyeAngles()
- cam.Start3D()
- render.DrawWireframeBox( origin, Angle( 0, eye.y, 0), bottom, top, Color( 255, 0, 0 ) )
- render.MaterialOverride( Chams );
- render.SuppressEngineLighting( true )
- render.SetColorModulation( 0, 0, 255 )
- v:DrawModel();
- if ply then
- render.SuppressEngineLighting( false )
- end
- if v:IsValid( v:GetActiveWeapon() ) then
- render.SetColorModulation( 255, 0, 0 )
- v:GetActiveWeapon():DrawModel()
- end
- cam.End3D()
- end
- end
- end)
- --norecoil
- local Angle = Angle;
- local pcall = pcall;
- local require = require;
- local print = print;
- local Vector = Vector;
- local math = math;
- local fa;
- local e, err = pcall(function() require("dickwrap") end);
- if(err) then print("nononono"); return; end
- local em = {}
- local cones = {};
- local nullvec = Vector() * -1;
- function em.FireBullets(p, data)
- local spread = data.Spread * -1;
- local class = p:GetActiveWeapon():GetClass();
- if (spread != cones[class] && spread != nullvec) then
- cones[class] = spread;
- end
- return(ofb(p, data));
- end
- local ofb = em.FireBullets;
- local function PredictSpread(ucmd, ang)
- local w = LocalPlayer():GetActiveWeapon();
- if (!w || !w:IsValid() || !cones[w:GetClass()]) then return ang; end
- local ang = (dickwrap.Predict(ucmd, ang:Forward(), cones[w:GetClass()])):Angle();
- ang.y, ang.x = math.NormalizeAngle(ang.y), math.NormalizeAngle(ang.x);
- return(ang);
- end
- hook.Add("CalcView", "abc", function(p, o, a, f)
- local view = {};
- view.angles = (fa && fa || a);
- view.fov = f;
- view.origin = o;
- return view;
- end);
- hook.Add("CreateMove", "aaaaaa", function(ucmd)
- if(!fa) then fa = ucmd:GetViewAngles(); end
- fa = fa + Angle(ucmd:GetMouseY() * .023, ucmd:GetMouseX() * -.023, 0);
- fa.p, fa.y, fa.x = math.Clamp(fa.p, -89, 89), math.NormalizeAngle(fa.y), math.NormalizeAngle(fa.x);
- local ang = fa;
- if(ucmd:KeyDown(IN_ATTACK)) then
- ang = PredictSpread(ucmd, ang);
- end
- ucmd:SetViewAngles(ang);
- end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement