zombiesurvival-evolved/gamemodes/zombiesurvival/entities/weapons/weapon_zs_graveshovelz/init.lua

18 lines
338 B
Lua
Raw Normal View History

INC_SERVER()
SWEP.OriginalMeleeDamage = SWEP.MeleeDamage
function SWEP:Deploy()
self.BaseClass.BaseClass.Deploy(self)
end
function SWEP:OnMeleeHit(hitent, hitflesh, tr)
if not hitent:IsPlayer() then
self.MeleeDamage = 30
end
end
function SWEP:PostOnMeleeHit(hitent, hitflesh, tr)
self.MeleeDamage = self.OriginalMeleeDamage
end