zombiesurvival-evolved/gamemodes/zombiesurvival/entities/weapons/weapon_zs_hyena/init.lua
William Moodhe e9da54c2f9 ZS updates for 2014-2018
Too many changes to list.
2018-05-01 18:32:59 -04:00

19 lines
449 B
Lua

INC_SERVER()
SWEP.Primary.Projectile = "projectile_bomb_sticky"
SWEP.Primary.ProjVelocity = 850
function SWEP:EntModify(ent)
self:SetNextSecondaryFire(CurTime() + 0.2)
end
function SWEP:SecondaryAttack()
if self:GetNextSecondaryFire() > CurTime() then return end
for k,v in pairs(ents.FindByClass(self.Primary.Projectile)) do
if v:GetOwner() == self:GetOwner() then
v:Explode()
end
end
self:SetNextSecondaryFire(CurTime() + 0.2)
end