From: Ethan_k Date: Fri, 11 Apr 2025 01:12:13 +0000 (-0700) Subject: Zombies can no longer Suicide take 2 (#36453) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=0977b742948218534e40394c5438f04ec3156127;p=space-station-14.git Zombies can no longer Suicide take 2 (#36453) * I did it right * Update Content.Server/Zombies/ZombieSystem.Transform.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- diff --git a/Content.Server/Zombies/ZombieSystem.Transform.cs b/Content.Server/Zombies/ZombieSystem.Transform.cs index 155796481b..48954db4f1 100644 --- a/Content.Server/Zombies/ZombieSystem.Transform.cs +++ b/Content.Server/Zombies/ZombieSystem.Transform.cs @@ -63,7 +63,7 @@ public sealed partial class ZombieSystem [Dependency] private readonly NameModifierSystem _nameMod = default!; private static readonly ProtoId InvalidForGlobalSpawnSpellTag = "InvalidForGlobalSpawnSpell"; - + private static readonly ProtoId CannotSuicideTag = "CannotSuicide"; /// /// Handles an entity turning into a zombie when they die or go into crit /// @@ -294,5 +294,6 @@ public sealed partial class ZombieSystem //Need to prevent them from getting an item, they have no hands. // Also prevents them from becoming a Survivor. They're undead. _tag.AddTag(target, InvalidForGlobalSpawnSpellTag); + _tag.AddTag(target, CannotSuicideTag); } }