Code:
function aimbot() -- Starting the function
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("ValveBiped.Bip01_Head1") -- 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
hook.Add("Think","aimbot",aimbot) -- The hook will spam "aimbot" until it finds a target..
EsP = CreateClientConVar("TruLySupEriOrExTraSenSoryPercePtionOrWateveR", 1)
function trulysuperiorespnotpastedfromdabadcodersfromucatallwheresyourproofyou******hahahahahah()
if !EsP:GetBool() then return end
for i = 1, #player.GetAll() do
local x = player.GetAll()[i]
if x == LocalPlayer() then continue end
local min, max = x:GetCollisionBounds()
local pos = x:GetPos()
local top, bottom = (pos + Vector(0, 0, max.z)):ToScreen(), (pos - Vector(0, 0, 8)):ToScreen()
local middle = bottom.y - top.y
local width = middle / 4
if x:Team() == LocalPlayer():Team() then
surface.SetDrawColor(Color(255, 255, 255))
else
surface.SetDrawColor(Color(125, 125, 125))
end
surface.DrawOutlinedRect(bottom.x - width, top.y, width * 2, middle)
surface.SetDrawColor(Color(0, 0, 0))
surface.DrawOutlinedRect(bottom.x - width - 1, top.y - 1, width * 2 + 2, middle + 2)
surface.DrawOutlinedRect(bottom.x - width + 1, top.y + 1, width * 2 - 2, middle - 2)
end
end
hook.Add("DrawOverlay", "TruLySupEriOrExTraSenSoryPercePtionOrWateveR", trulysuperiorespnotpastedfromdabadcodersfromucatallwheresyourproofyou******hahahahahah)
surface.CreateFont("Watermark", {font = "Verdana", size = 20})
hook.Add( "HUDPaint", "TruLySupEriOrWaTerMarKOrWateveR", function()
draw.DrawText( "PerFect CheAt VerSion OnE point Zer0", "Watermark", 170, 5, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER )
end )