zombiesurvival-evolved/gamemodes/zombiesurvival/entities/entities/status_zombiespawnbuff.lua
JetBoom 53743b1aee Merge with current nox changes.
Random starting loadouts now include things that aren't weapons (ammo,
traits, etc.).
Added an option to disable the automatic suicide when changing zombie
classes.
Zombies will no longer receive damage resistance when only one human
remains.
Players can no longer claim the arsenal crate that gets spawned in the
human spawn when nobody has one. Any player can pack it up though.
The Ghoul's ghoul touch special ability has been changed. It will no
longer slow targets but will debuff them for the next 10 seconds. They
will take 40% more damage (the extra damage is attributed to the person
who ghoul touched them last) for the next 10 seconds as well as slightly
disorienting them.
The Ghoul movement speed has been reduced from 185 to 170.
Added crafting recipe: 'Waraxe' Handgun. Combine two 'Battleaxe'
Handguns to craft this. Slightly better version of the Owens.
The Flesh Creeper model has been changed to one that doesn't have
severely awkward hitboxes.
The Flesh Creeper can no longer jump and attack at the same time.
The Lead Pipe special trait has been changed from a disorientation to a
severe view punch/snap on a global cooldown of 1.5 seconds.
The Regenerative trait is now 1 health every 6 seconds under 50% health
instead of 1 health every 5 seconds under 50% health.
Fast Zombie Legs have been changed to be a slightly faster but slightly
weaker version of Zombie Legs.
Zombies that have just spawned or enter zombie gas will now have a
temporary buff which gives 25% extra speed and 40% damage resistance.
This buff lasts for 3 seconds and is refreshed by entering the gas. Gas
will no longer heal. Zombies with this buff on will strobe dark green.
Added crafting recipe: Bladehack. Combine a saw blade with a manhack to
get this. Slower but has more health, does more damage, and has less of
a knockback when hitting something.
Resupply Boxes now award the owner a point for every 2 people who use
their box instead of every single person (so half as many points).
Fixed Fast Zombie Legs spawning much more abundantly than intended.
Fixed Flesh Creepers not being able to jump over obstacles due to their
insanely low jump height.
Fixed zombies taking themselves in to account when calculating horde
damage resistance (bosses always had full resistance because of this).
Fixed allowing people to use worth menu after redeeming.
2014-11-07 00:03:40 -05:00

47 lines
1.1 KiB
Lua

AddCSLuaFile()
ENT.Type = "anim"
ENT.Base = "status__base"
function ENT:Initialize()
self.BaseClass.Initialize(self)
hook.Add("Move", self, self.Move)
hook.Add("EntityTakeDamage", self, self.EntityTakeDamage)
if CLIENT then
hook.Add("PrePlayerDraw", self, self.PrePlayerDraw)
hook.Add("PostPlayerDraw", self, self.PostPlayerDraw)
end
end
function ENT:Move(pl, move)
if pl ~= self:GetOwner() then return end
move:SetMaxSpeed(move:GetMaxSpeed() * 1.25)
move:SetMaxClientSpeed(move:GetMaxSpeed())
end
function ENT:EntityTakeDamage(ent, dmginfo)
if ent ~= self:GetOwner() then return end
local attacker = dmginfo:GetAttacker()
if attacker:IsValid() and attacker:IsPlayer() then
dmginfo:SetDamage(dmginfo:GetDamage() * 0.4)
end
end
if not CLIENT then return end
function ENT:PrePlayerDraw(pl)
if pl ~= self:GetOwner() then return end
local r = math.abs(math.sin((CurTime() + self:EntIndex()) * 3)) * 0.6
render.SetColorModulation(r, 1, r)
end
function ENT:PostPlayerDraw(pl)
if pl ~= self:GetOwner() then return end
render.SetColorModulation(1, 1, 1)
end