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

46 lines
905 B
Lua
Raw Permalink Normal View History

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