diff --git a/Content.Server/Zombies/ZombieSystem.cs b/Content.Server/Zombies/ZombieSystem.cs index d263df9ce5..55d226ca5e 100644 --- a/Content.Server/Zombies/ZombieSystem.cs +++ b/Content.Server/Zombies/ZombieSystem.cs @@ -1,9 +1,11 @@ using System.Linq; +using Content.Shared.NPC.Prototypes; using Content.Server.Actions; using Content.Server.Body.Systems; using Content.Server.Chat; using Content.Server.Chat.Systems; using Content.Server.Emoting.Systems; +using Content.Server.GameTicking.Rules.Components; using Content.Server.Speech.EntitySystems; using Content.Server.Roles; using Content.Shared.Anomaly.Components; @@ -43,6 +45,8 @@ namespace Content.Server.Zombies [Dependency] private readonly SharedPopupSystem _popup = default!; [Dependency] private readonly SharedRoleSystem _role = default!; + public readonly ProtoId Faction = "Zombie"; + public const SlotFlags ProtectiveSlots = SlotFlags.FEET | SlotFlags.HEAD | @@ -88,6 +92,7 @@ namespace Content.Server.Zombies private void OnPendingMapInit(EntityUid uid, IncurableZombieComponent component, MapInitEvent args) { _actions.AddAction(uid, ref component.Action, component.ZombifySelfActionPrototype); + _faction.AddFaction(uid, Faction); if (HasComp(uid) || HasComp(uid)) return;