* Nerf Space zombies, get DoT in space (barotrauma) and spawn stunned. - Also discard any helmet or mask you might be wearing. * Zombies have heal over time, infection far more fatal - Stun time reduced to 2 seconds * Zombification occurs after you die, rather than after you crit. - Zombies cannot inflict Zombification DoT on other zombies. * Heal shock damage, space zombies are back. * Lower the chance of infection per hit * Removed the stun, reduced zombification virus slightly
30 lines
739 B
C#
30 lines
739 B
C#
using Content.Shared.Damage;
|
|
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Server.Zombies;
|
|
|
|
/// <summary>
|
|
/// Temporary because diseases suck.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed class PendingZombieComponent : Component
|
|
{
|
|
[DataField("damage")] public DamageSpecifier Damage = new()
|
|
{
|
|
DamageDict = new ()
|
|
{
|
|
{ "Blunt", 0.5 },
|
|
{ "Cellular", 0.2 },
|
|
{ "Toxin", 0.2 },
|
|
}
|
|
};
|
|
|
|
[DataField("nextTick", customTypeSerializer:typeof(TimeOffsetSerializer))]
|
|
public TimeSpan NextTick;
|
|
|
|
// Scales damage over time.
|
|
[DataField("infectedSecs")]
|
|
public int InfectedSecs;
|
|
}
|