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