Aimbot for PB
function aimbot()
local ply = LocalPlayer()
local trace = util.GetPlayerTrace( ply )
local traceRes = util.TraceLine( trace )
if traceRes.HitNonWorld then
local target = traceRes.Entity
if target:IsPlayer() then
local targethead = target:LookupBone("ValveBiped.Bip01_Head1")
local targetheadpos,targetheadang = target:GetBonePosition(targethead)
ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle())
end
end
end
hook.Add("Think","aimbot",aimbot)
Im starting to code the aimbot for Project Blackout, I know its not that good but its a start ._. Anyone want to add onto it?
I have never seen an full aimbot source code but need to add the pointer of game in the code?