Guest User

Untitled

a guest
May 4th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1.  
  2. local vm = self.Owner:GetViewModel()
  3. if self.Anim == 1 then
  4. vm:SendViewModelMatchingSequence( vm:LookupSequence( "attack1" ))
  5. self.Anim = 0
  6. else
  7. vm:SendViewModelMatchingSequence( vm:LookupSequence( "attack2" ))
  8. self.Anim = 1
  9. end
  10. self.Owner:SetAnimation( PLAYER_ATTACK1 )
  11.  
  12. self.Weapon:SetNextPrimaryFire( CurTime() + self.HitRate )
  13. self.Weapon:SetNextSecondaryFire( CurTime() + self.HitRate )
  14. self.Owner:EmitSound(self.SwingSound, 75, 100)
  15.  
  16. timer.Create("hitdelay", 0.1, 1, function() self.HitWait(self) end)
  17.  
  18. timer.Start( "hitdelay" )
Advertisement
Add Comment
Please, Sign In to add comment