Dryfire semiauto
This commit is contained in:
parent
3d55f6c7d7
commit
dce612e146
|
@ -32,12 +32,15 @@ function SWEP:BFire( hand )
|
||||||
if self:D_GetDelay( hand ) > CurTime() then
|
if self:D_GetDelay( hand ) > CurTime() then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if self:D_GetBurst( hand ) >= self:B_Firemode( hand ).Mode then
|
if self:D_GetClip( hand ) == 0 then
|
||||||
|
if self:D_GetBurst( hand ) >= 1 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
B_Sound( self, wep_class.Sound_DryFire )
|
||||||
|
self:D_SetBurst( hand, self:D_GetBurst( hand ) + 1 )
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if self:D_GetClip( hand ) == 0 then
|
if self:D_GetBurst( hand ) >= self:B_Firemode( hand ).Mode then
|
||||||
B_Sound( self, wep_class.Sound_DryFire )
|
|
||||||
self:D_SetDelay( hand, CurTime() + 0.2 )
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue