Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function aimbot()
- local ply = LocalPlayer()
- local trace = util.GetPlayerTrace( ply )
- local traceRes = util.GetPlayerTrace( ply )
- 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)
- local aimbot = CreatclientConVar( "lel_enabled", 0, true, false )
- hook.Remove("Think","aimbot",aimbot)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement