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

16 lines
376 B
Lua

INC_SERVER()
function SWEP:ApplyMeleeDamage(ent, trace, damage)
if ent:IsPlayer() then
ent:GiveStatus("dimvision", 6)
local gt = ent:GiveStatus("frost", 8)
local owner = self:GetOwner()
if gt and gt:IsValid() then
gt.Applier = owner
end
ent:AddLegDamageExt(12, owner, self, SLOWTYPE_COLD)
end
self.BaseClass.ApplyMeleeDamage(self, ent, trace, damage)
end