zombiesurvival-evolved/gamemodes/zombiesurvival/gamemode/zombieclasses/shadow_gore_child/server.lua
William Moodhe e9da54c2f9 ZS updates for 2014-2018
Too many changes to list.
2018-05-01 18:32:59 -04:00

17 lines
436 B
Lua

AddCSLuaFile("shared.lua")
include("shared.lua")
function CLASS:ProcessDamage(pl, dmginfo)
if dmginfo:GetInflictor().IsMelee then
dmginfo:SetDamage(dmginfo:GetDamage() / 2)
end
end
function CLASS:OnKilled(pl, attacker, inflictor, suicide, headshot, dmginfo)
local fd = pl:FakeDeath(pl:LookupSequence("death_0"..math.random(4)), self.ModelScale)
if fd and fd:IsValid() then
fd:SetColor(Color(0,0,0,255))
end
return true
end