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

17 lines
338 B
Lua

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