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

45 lines
905 B
Lua

AddCSLuaFile()
SWEP.Base = "weapon_zs_zombie"
SWEP.PrintName = "Skeletal Walker"
SWEP.MeleeDamage = 27
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(115, 125))
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(115, 140))
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