zombiesurvival-evolved/gamemodes/zombiesurvival/entities/weapons/weapon_zs_poisonzombie/shared.lua
2014-10-01 20:49:54 -04:00

41 lines
896 B
Lua

SWEP.Base = "weapon_zs_zombie"
SWEP.MeleeReach = 48
SWEP.MeleeDelay = 0.9
SWEP.MeleeSize = 1.5
SWEP.MeleeDamage = 40
SWEP.MeleeDamageType = DMG_SLASH
SWEP.MeleeAnimationDelay = 0.35
SWEP.Primary.Delay = 1.6
SWEP.FleshThrowRecoil = 40
SWEP.ViewModel = Model("models/weapons/v_pza.mdl")
SWEP.WorldModel = "models/weapons/w_crowbar.mdl"
function SWEP:CheckMoaning()
end
function SWEP:StopMoaningSound()
end
function SWEP:StartMoaningSound()
end
function SWEP:PlayHitSound()
self.Owner:EmitSound("npc/zombie/claw_strike"..math.random(1, 3)..".wav", 75, 80)
end
function SWEP:PlayMissSound()
self.Owner:EmitSound("npc/zombie/claw_miss"..math.random(1, 2)..".wav", 75, 80)
end
function SWEP:PlayAttackSound()
self.Owner:EmitSound("NPC_PoisonZombie.ThrowWarn")
end
function SWEP:PlayAlertSound()
self.Owner:EmitSound("NPC_PoisonZombie.Alert")
end
SWEP.PlayIdleSound = SWEP.PlayAlertSound