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