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

35 lines
738 B
Lua
Raw Permalink Normal View History

AddCSLuaFile()
SWEP.PrintName = "Eradicator"
SWEP.Base = "weapon_zs_zombie"
SWEP.MeleeDamage = 36
SWEP.SlowDownScale = 0
SWEP.AlertDelay = 3.5
function SWEP:Reload()
self:SecondaryAttack()
end
function SWEP:PlayAlertSound()
self:GetOwner():EmitSound("npc/combine_gunship/gunship_moan.wav", 75, math.random(70,75))
end
SWEP.PlayIdleSound = SWEP.PlayAlertSound
function SWEP:PlayAttackSound()
self:EmitSound("npc/antlion_guard/angry"..math.random(3)..".wav", 75, math.random(75,80))
end
if not CLIENT then return end
function SWEP:ViewModelDrawn()
render.ModelMaterialOverride(0)
end
local matSheet = Material("Models/charple/charple4_sheet.vtf")
function SWEP:PreDrawViewModel(vm)
render.ModelMaterialOverride(matSheet)
end