SHOW:
|
|
- or go back to the newest paste.
1 | SWEP.CanDoTimer = true | |
2 | ||
3 | function SWEP:Think() | |
4 | - | if (self.CanDoTimer == true && self.Owner:GetAmmoCount("GaussEnergy") < 20) then |
4 | + | |
5 | - | self.CanDoTimer = false |
5 | + | if (self.CanDoTimer == true && self:Clip1() < 20) then |
6 | - | timer.Simple( 1, function() self.Owner:SetClip1( self.Owner:Clip1()+1 ) self.CanDoTimer = true end) |
6 | + | self.CanDoTimer = false |
7 | - | end |
7 | + | timer.Simple( 1, function() self:SetClip1( self:Clip1()+1 ) self.CanDoTimer = true end) |
8 | end | |
9 | ||
10 | end |