Advertisement
spinsquad

better silent aim

May 16th, 2015
1,985
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local ang;
  2.  
  3. hook.Add("CreateMove", "", function(ucmd)
  4.     if(!ang) then ang = ucmd:GetViewAngles(); end
  5.     ang = ang + Angle(ucmd:GetMouseY() * .023, ucmd:GetMouseX() * -.023, 0);
  6.     ang.x = math.NormalizeAngle(ang.x);
  7.     ang.p = math.Clamp(ang.p, -89, 89);
  8.     if(ucmd:CommandNumber() == 0) then
  9.         ucmd:SetViewAngles(ang);
  10.         return;
  11.     end
  12.     -- aimbot stuff
  13. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement