Cooler zombie moths (#21744)
This commit is contained in:
11
Content.Server/Zombies/ZombieAccentOverrideComponent.cs
Normal file
11
Content.Server/Zombies/ZombieAccentOverrideComponent.cs
Normal file
@@ -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";
|
||||||
|
}
|
||||||
@@ -103,7 +103,11 @@ namespace Content.Server.Zombies
|
|||||||
RemComp<ThirstComponent>(target);
|
RemComp<ThirstComponent>(target);
|
||||||
|
|
||||||
//funny voice
|
//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
|
//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.
|
//in an attempt to make an entity not attack. This is the easiest way to do it.
|
||||||
|
|||||||
@@ -52,6 +52,14 @@ accent-words-zombie-8 = Braughhh...
|
|||||||
accent-words-zombie-9 = Breshhhh...
|
accent-words-zombie-9 = Breshhhh...
|
||||||
accent-words-zombie-10 = Graaaaaa...
|
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
|
# Generic Aggressive
|
||||||
accent-words-generic-aggressive-1 = Grr!
|
accent-words-generic-aggressive-1 = Grr!
|
||||||
accent-words-generic-aggressive-2 = Rrrr!
|
accent-words-generic-aggressive-2 = Rrrr!
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
- accent-words-mouse-2
|
- accent-words-mouse-2
|
||||||
- accent-words-mouse-3
|
- accent-words-mouse-3
|
||||||
- accent-words-mouse-4
|
- accent-words-mouse-4
|
||||||
- accent-words-mouse-5
|
- accent-words-mouse-5
|
||||||
- accent-words-mouse-6
|
- accent-words-mouse-6
|
||||||
- accent-words-mouse-7
|
- accent-words-mouse-7
|
||||||
|
|
||||||
- type: accent
|
- type: accent
|
||||||
@@ -77,6 +77,24 @@
|
|||||||
- accent-words-zombie-9
|
- accent-words-zombie-9
|
||||||
- accent-words-zombie-10
|
- 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
|
- type: accent
|
||||||
id: genericAggressive
|
id: genericAggressive
|
||||||
fullReplacements:
|
fullReplacements:
|
||||||
|
|||||||
@@ -417,6 +417,8 @@
|
|||||||
grindableSolutionName: food
|
grindableSolutionName: food
|
||||||
- type: ReplacementAccent
|
- type: ReplacementAccent
|
||||||
accent: mothroach
|
accent: mothroach
|
||||||
|
- type: ZombieAccentOverride
|
||||||
|
accent: zombieMoth
|
||||||
- type: Vocal
|
- type: Vocal
|
||||||
sounds:
|
sounds:
|
||||||
Male: UnisexMoth
|
Male: UnisexMoth
|
||||||
|
|||||||
@@ -22,6 +22,8 @@
|
|||||||
- type: Damageable
|
- type: Damageable
|
||||||
damageContainer: Biological
|
damageContainer: Biological
|
||||||
damageModifierSet: Moth
|
damageModifierSet: Moth
|
||||||
|
- type: ZombieAccentOverride
|
||||||
|
accent: zombieMoth
|
||||||
- type: Speech
|
- type: Speech
|
||||||
speechVerb: Moth
|
speechVerb: Moth
|
||||||
- type: TypingIndicator
|
- type: TypingIndicator
|
||||||
|
|||||||
Reference in New Issue
Block a user