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()
|
||||
-- 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.5 )
|
||||
self:SetNextPrimaryFire( CurTime() + 0.0001 )
|
||||
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.1 )
|
||||
self:SetNextSecondaryFire( CurTime() + 0.0001 )
|
||||
self:EmitSound( self.Secondary.Sound )
|
||||
self:ThrowChair( "models/weapons/w_bugbait.mdl" )
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue