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

40 lines
811 B
Lua
Raw Normal View History

2014-10-02 08:49:54 +08:00
AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "Bloated Zombie"
end
SWEP.Base = "weapon_zs_zombie"
SWEP.MeleeDamage = 30
SWEP.MeleeForceScale = 1.25
SWEP.Primary.Delay = 1.5
function SWEP:Reload()
self.BaseClass.SecondaryAttack(self)
end
function SWEP:PlayAlertSound()
self:PlayAttackSound()
end
function SWEP:PlayIdleSound()
self.Owner:EmitSound("npc/barnacle/barnacle_tongue_pull"..math.random(3)..".wav")
end
function SWEP:PlayAttackSound()
self.Owner: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