]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Zombies can no longer Suicide take 2 (#36453)
authorEthan_k <eknowles27@dtechhs.org>
Fri, 11 Apr 2025 01:12:13 +0000 (18:12 -0700)
committerGitHub <noreply@github.com>
Fri, 11 Apr 2025 01:12:13 +0000 (03:12 +0200)
* 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>
Content.Server/Zombies/ZombieSystem.Transform.cs

index 155796481b690a478aa431a5d92867dcc27d9e05..48954db4f178f8bcc4042b8bde8d1fd8c0e304bb 100644 (file)
@@ -63,7 +63,7 @@ public sealed partial class ZombieSystem
     [Dependency] private readonly NameModifierSystem _nameMod = default!;
 
     private static readonly ProtoId<TagPrototype> InvalidForGlobalSpawnSpellTag = "InvalidForGlobalSpawnSpell";
-
+    private static readonly ProtoId<TagPrototype> CannotSuicideTag = "CannotSuicide";
     /// <summary>
     /// Handles an entity turning into a zombie when they die or go into crit
     /// </summary>
@@ -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);
     }
 }