zombiesurvival-evolved/gamemodes/zombiesurvival/entities/entities/status_poisonrecovery/shared.lua
2014-10-01 20:49:54 -04:00

21 lines
383 B
Lua

ENT.Type = "anim"
ENT.Base = "status__base"
function ENT:Initialize()
self:DrawShadow(false)
if self:GetDTFloat(1) == 0 then
self:SetDTFloat(1, CurTime())
end
end
function ENT:AddDamage(damage)
self:SetDamage(self:GetDamage() + damage)
end
function ENT:SetDamage(damage)
self:SetDTFloat(0, math.min(50, damage))
end
function ENT:GetDamage()
return self:GetDTFloat(0)
end