Advertisement
Guest User

aimbot

a guest
Jun 26th, 2013
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. function aimbot()
  2.     local ply = LocalPlayer()
  3.     local trace = util.GetPlayerTrace( ply )
  4.     local traceRes = util.GetPlayerTrace( ply )
  5.     if traceRes.HitNonWorld then
  6.         local target = traceRes.Entity
  7.         if target:IsPlayer() then
  8.             local targethead = target:LookupBone("ValveBiped.Bip01_Head1")
  9.             local targetheadpos,targetheadang = target:GetBonePosition(targethead)
  10.             ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle())
  11.         end
  12.     end
  13. end
  14. hook.Add("Think","aimbot",aimbot)
  15.  
  16. local aimbot = CreatclientConVar( "lel_enabled", 0, true, false )
  17.  
  18. hook.Remove("Think","aimbot",aimbot)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement