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

46 lines
934 B
Lua

AddCSLuaFile()
SWEP.Base = "weapon_zs_zombietorso"
SWEP.PrintName = "Skeletal Crawler"
SWEP.MeleeDelay = 0.25
SWEP.MeleeDamage = 20
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(125, 135))
end
function SWEP:PlayAlertSound()
self:GetOwner():EmitSound("npc/stalker/breathing3.wav", 70, math.random(120, 130))
end
function SWEP:PlayAttackSound()
self:EmitSound("npc/fast_zombie/wake1.wav", 70, math.random(125, 150))
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