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

35 lines
707 B
Lua
Raw Normal View History

2014-10-02 08:49:54 +08:00
AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "Nightmare"
end
SWEP.Base = "weapon_zs_zombie"
SWEP.MeleeDamage = 49
SWEP.SlowDownScale = 2
function SWEP:Reload()
self:SecondaryAttack()
end
function SWEP:PlayAlertSound()
self.Owner:EmitSound("npc/barnacle/barnacle_tongue_pull"..math.random(3)..".wav")
end
SWEP.PlayIdleSound = SWEP.PlayAlertSound
function SWEP:PlayAttackSound()
self.Owner:EmitSound("npc/barnacle/barnacle_bark"..math.random(2)..".wav")
end
if not CLIENT then return end
function SWEP:ViewModelDrawn()
render.ModelMaterialOverride(0)
end
local matSheet = Material("Models/Charple/Charple1_sheet")
function SWEP:PreDrawViewModel(vm)
render.ModelMaterialOverride(matSheet)
end