zombiesurvival-evolved/gamemodes/zombiesurvival/entities/weapons/weapon_zs_bloatedzombie.lua

38 lines
790 B
Lua
Raw Permalink Normal View History

2014-10-02 08:49:54 +08:00
AddCSLuaFile()
SWEP.PrintName = "Bloated Zombie"
2014-10-02 08:49:54 +08:00
SWEP.Base = "weapon_zs_zombie"
SWEP.MeleeDamage = 31
2014-10-02 08:49:54 +08:00
SWEP.MeleeForceScale = 1.25
SWEP.Primary.Delay = 1.4
2014-10-02 08:49:54 +08:00
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")
2014-10-02 08:49:54 +08:00
end
function SWEP:PlayAttackSound()
self:EmitSound("npc/ichthyosaur/attack_growl"..math.random(3)..".wav", 70, math.Rand(145, 155))
2014-10-02 08:49:54 +08:00
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