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

37 lines
790 B
Lua

AddCSLuaFile()
SWEP.PrintName = "Bloated Zombie"
SWEP.Base = "weapon_zs_zombie"
SWEP.MeleeDamage = 31
SWEP.MeleeForceScale = 1.25
SWEP.Primary.Delay = 1.4
function SWEP:Reload()
self.BaseClass.SecondaryAttack(self)
end
function SWEP:PlayAlertSound()
self:PlayAttackSound()
end
function SWEP:PlayIdleSound()
self:GetOwner():EmitSound("npc/barnacle/barnacle_tongue_pull"..math.random(3)..".wav")
end
function SWEP:PlayAttackSound()
self:EmitSound("npc/ichthyosaur/attack_growl"..math.random(3)..".wav", 70, math.Rand(145, 155))
end
if not CLIENT then return end
function SWEP:ViewModelDrawn()
render.ModelMaterialOverride(0)
end
local matSheet = Material("models/weapons/v_zombiearms/ghoulsheet")
function SWEP:PreDrawViewModel(vm)
render.ModelMaterialOverride(matSheet)
end