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

46 lines
1,018 B
Lua

AddCSLuaFile()
SWEP.Base = "weapon_zs_zombie"
SWEP.PrintName = "Skeletal Shambler"
SWEP.MeleeDamage = 33
function SWEP:Reload()
self:SecondaryAttack()
end
function SWEP:StartMoaning()
end
function SWEP:StopMoaning()
end
function SWEP:IsMoaning()
return false
end
function SWEP:PlayIdleSound()
self:GetOwner():EmitSound(string.format("npc/strider/creak%d.wav", math.random(4)), 70, math.random(95, 105))
end
function SWEP:PlayAlertSound()
self:GetOwner():EmitSound("npc/stalker/breathing3.wav", 70, math.random(110, 120))
end
function SWEP:PlayAttackSound()
self:EmitSound("npc/fast_zombie/wake1.wav", 70, math.random(95, 105))
self:EmitSound("npc/metropolice/pain"..math.random(4)..".wav", 74, math.Rand(105, 115), 0.65, CHAN_WEAPON + 20)
end
if not CLIENT then return end
local matSheet = Material("models/props_c17/doll01")
function SWEP:PreDrawViewModel(vm, wep, pl)
render.ModelMaterialOverride(matSheet)
end
function SWEP:PostDrawViewModel(vm, wep, pl)
render.ModelMaterialOverride(nil)
end