Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local vm = self.Owner:GetViewModel()
- if self.Anim == 1 then
- vm:SendViewModelMatchingSequence( vm:LookupSequence( "attack1" ))
- self.Anim = 0
- else
- vm:SendViewModelMatchingSequence( vm:LookupSequence( "attack2" ))
- self.Anim = 1
- end
- self.Owner:SetAnimation( PLAYER_ATTACK1 )
- self.Weapon:SetNextPrimaryFire( CurTime() + self.HitRate )
- self.Weapon:SetNextSecondaryFire( CurTime() + self.HitRate )
- self.Owner:EmitSound(self.SwingSound, 75, 100)
- timer.Create("hitdelay", 0.1, 1, function() self.HitWait(self) end)
- timer.Start( "hitdelay" )
Advertisement
Add Comment
Please, Sign In to add comment