Advertisement
Guest User

nice meme

a guest
Jul 20th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.64 KB | None | 0 0
  1. local function Aimbot( cmd )
  2.  
  3.     FakeAngles(cmd)
  4.     bhop(cmd)
  5.  
  6.     local target = FindTarget()
  7.  
  8.     if IsValid( target ) and CanFire() then
  9.         bSendPacket = true
  10.         AAA( target )
  11.         local AimPos = ( GetHeadPos( target ) - LocalPlayer():GetShootPos()  ):Angle()
  12.         AimPos:Normalize()
  13.  
  14.         if AimPos[1] > 0 then
  15.             AimPos[1] = -AimPos[1] - 180
  16.         elseif AimPos[1] < 0 then
  17.             AimPos[1] = -AimPos[1] + 180
  18.         else
  19.             AimPos[1] = -AimPos[1] + 180
  20.         end
  21.         AimPos[2] = AimPos[2] + 180
  22.         cmd:SetForwardMove( -cmd:GetForwardMove() )
  23.  
  24.         cmd:SetViewAngles( AimPos )
  25.         PredictSpread( cmd )
  26.         cmd:SetButtons( bit.bor(cmd:GetButtons(), IN_ATTACK) )
  27.         FixMove(cmd)
  28.     else
  29.         AA( cmd )
  30.     end
  31.  
  32. end
  33. hook.Add("CreateMove", "zz", Aimbot)
  34.  
  35. local function DrawPlayer( Target )
  36.  
  37.         local Min = Target:GetPos();
  38.         local Max = Min + Vector( 0, 0, 70 );
  39.  
  40.         Min,Max = Min:ToScreen(), Max:ToScreen();
  41.  
  42.         local Height = (Min.y - Max.y);
  43.         local Width = Height * 0.5;
  44.  
  45.         surface.SetDrawColor( 0, 255, 0, 255 );
  46.         surface.DrawOutlinedRect(Max.x - (Width*.5), Max.y, Width, Height);
  47.  
  48.  
  49.         for i = 1, Target:GetBoneCount() do
  50.                
  51.                 local Parent = Target:GetBoneParent(i)
  52.                 if Parent == -1  then continue end
  53.  
  54.                 local FirstBone,SecondBone = Target:GetBonePosition(i), Target:GetBonePosition(Parent)
  55.                 if Target:GetPos() == FirstBone then continue end
  56.        
  57.                 local LineStart, LineEnd = FirstBone:ToScreen(), SecondBone:ToScreen()
  58.                 surface.DrawLine( LineStart.x, LineStart.y, LineEnd.x, LineEnd.y )
  59.        
  60.         end
  61.  
  62. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement