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

17 lines
376 B
Lua
Raw Normal View History

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