Python1320

Untitled

Dec 4th, 2010
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.17 KB | None | 0 0
  1. local yaw = 0
  2. local sides = 360/2
  3.  
  4. hook.Add("CalcView", "SPIN", function(p,_,a)
  5.     yaw = (yaw + sides)%360
  6.    
  7.     angles = Angle(a.p,a.y + yaw,0)
  8.     return {angles = angles}
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment