Guest User

Untitled

a guest
May 13th, 2014
155
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function GAMEMODE:Move( ply, mv )
  2. local ang = mv:GetMoveAngles()
  3. local pos = mv:GetOrigin()
  4. local ply = LocalPlayer()
  5.  
  6. if ( mv:KeyDown( IN_ATTACK ) ) then util.QuickTrace(ply():GetShootPos(), gui.ScreenToVector( gui.MousePos() ),ply()) end
  7.  
  8. mv:SetOrigin( pos )
  9.  
  10. return true
  11.  
  12. end
  13. hook.Add("Move", "CreateMove", Move)
  14.  
  15. function GM:FinishMove( ply, mv )
  16.  
  17. ply:SetNetworkOrigin( mv:GetOrigin() )
  18.  
  19. return true
  20.  
  21. end
RAW Paste Data