Update lua/weapons/koolaids_poo_blaster.lua

main
koolaid 2023-11-07 13:44:31 -05:00
parent 5257b20d1b
commit 154342a1df
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ local mdls = {"models/props_docks/channelmarker_gib01.mdl","models/props_c17/dol
function SWEP:PrimaryAttack()
-- This weapon is 'automatic'. This function call below defines
-- the rate of fire. Here we set it to shoot every 0.5 seconds.
self:SetNextPrimaryFire( CurTime() + 0.0001 )
self:SetNextPrimaryFire( CurTime() )
self:EmitSound( self.Primary.Sound )
-- Call 'ThrowChair' on self with this model
self:ThrowChair( mdls[math.random(1,table.Count(mdls))] )
@ -63,7 +63,7 @@ end
function SWEP:SecondaryAttack()
-- Though the secondary fire isn't automatic
-- players shouldn't be able to fire too fast
self:SetNextSecondaryFire( CurTime() + 0.0001 )
self:SetNextSecondaryFire( CurTime() )
self:EmitSound( self.Secondary.Sound )
self:ThrowChair( "models/weapons/w_bugbait.mdl" )
end