]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cooler zombie moths (#21744)
authorSimon <63975668+Simyon264@users.noreply.github.com>
Mon, 11 Dec 2023 03:17:55 +0000 (04:17 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Dec 2023 03:17:55 +0000 (19:17 -0800)
Content.Server/Zombies/ZombieAccentOverrideComponent.cs [new file with mode: 0644]
Content.Server/Zombies/ZombieSystem.Transform.cs
Resources/Locale/en-US/accent/accents.ftl
Resources/Prototypes/Accents/full_replacements.yml
Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Resources/Prototypes/Entities/Mobs/Species/moth.yml

diff --git a/Content.Server/Zombies/ZombieAccentOverrideComponent.cs b/Content.Server/Zombies/ZombieAccentOverrideComponent.cs
new file mode 100644 (file)
index 0000000..f867114
--- /dev/null
@@ -0,0 +1,11 @@
+namespace Content.Server.Zombies;
+
+/// <summary>
+/// Overrides the applied accent for zombies.
+/// </summary>
+[RegisterComponent]
+public sealed partial class ZombieAccentOverrideComponent : Component
+{
+    [DataField("accent")]
+    public string Accent = "zombie";
+}
index 8b351a59011ac36d2f98ab589125622002e4b936..77cf121102bc7d0a0499549b0faa68419772f123 100644 (file)
@@ -103,7 +103,11 @@ namespace Content.Server.Zombies
             RemComp<ThirstComponent>(target);
 
             //funny voice
-            EnsureComp<ReplacementAccentComponent>(target).Accent = "zombie";
+            var accentType = "zombie";
+            if (TryComp<ZombieAccentOverrideComponent>(target, out var accent))
+                accentType = accent.Accent;
+
+            EnsureComp<ReplacementAccentComponent>(target).Accent = accentType;
 
             //This is needed for stupid entities that fuck up combat mode component
             //in an attempt to make an entity not attack. This is the easiest way to do it.
index fd9b99a5ec11fd81114052afc0b701dc2d449bf0..4a3430b0bfedd28d7d6b2edb0eefd13c9d445242 100644 (file)
@@ -52,6 +52,14 @@ accent-words-zombie-8 = Braughhh...
 accent-words-zombie-9 = Breshhhh...
 accent-words-zombie-10 = Graaaaaa...
 
+# Moth Zombie
+accent-words-zombie-moth-1 = Clothessss...
+accent-words-zombie-moth-2 = Shooooesss...
+accent-words-zombie-moth-3 = Liiiiight...
+accent-words-zombie-moth-4 = Laaamps...
+accent-words-zombie-moth-5 = Haaaatsss... Hatttssss...
+accent-words-zombie-moth-6 = Scarffsss...
+
 # Generic Aggressive
 accent-words-generic-aggressive-1 = Grr!
 accent-words-generic-aggressive-2 = Rrrr!
index d4efc806c2eb9a0982a97ddd92b6dee5f985a488..a62d2c1b64b06d9f53da0806188d6633f50eaa60 100644 (file)
@@ -27,8 +27,8 @@
   - accent-words-mouse-2
   - accent-words-mouse-3
   - accent-words-mouse-4
-  - accent-words-mouse-5 
-  - accent-words-mouse-6 
+  - accent-words-mouse-5
+  - accent-words-mouse-6
   - accent-words-mouse-7
 
 - type: accent
   - accent-words-zombie-9
   - accent-words-zombie-10
 
+- type: accent
+  id: zombieMoth
+  fullReplacements:
+  - accent-words-zombie-moth-1
+  - accent-words-zombie-moth-2
+  - accent-words-zombie-moth-3
+  - accent-words-zombie-moth-4
+  - accent-words-zombie-moth-5
+  - accent-words-zombie-moth-6
+  - accent-words-zombie-1
+  - accent-words-zombie-2
+  - accent-words-zombie-4
+  - accent-words-zombie-5
+  - accent-words-zombie-6
+  - accent-words-zombie-8
+  - accent-words-zombie-9
+  - accent-words-zombie-10
+
 - type: accent
   id: genericAggressive
   fullReplacements:
index 53fc4e36efaa113e9b753915f4c44708d2fb30c5..cbb7448d414261ac6a9d6791d721ccf3decac9ef 100644 (file)
     grindableSolutionName: food
   - type: ReplacementAccent
     accent: mothroach
+  - type: ZombieAccentOverride
+    accent: zombieMoth
   - type: Vocal
     sounds:
       Male: UnisexMoth
index 71385455ac16f31956c2ccc157ff3129eab16183..acb5abcda18a986beb758d18fc097dd2f6dc6458 100644 (file)
@@ -22,6 +22,8 @@
   - type: Damageable
     damageContainer: Biological
     damageModifierSet: Moth
+  - type: ZombieAccentOverride
+    accent: zombieMoth
   - type: Speech
     speechVerb: Moth
   - type: TypingIndicator