e9da54c2f9
Too many changes to list.
46 lines
934 B
Lua
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
|