Изменение автоэмоций (#625)
This commit is contained in:
parent
72bac26ebe
commit
035b5288e2
14 changed files with 68 additions and 13 deletions
10
Content.Server/_Sunrise/NoEmotions/NoEmotionsComponent.cs
Normal file
10
Content.Server/_Sunrise/NoEmotions/NoEmotionsComponent.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
namespace Content.Server._Sunrise.NoEmotions;
|
||||
|
||||
/// <summary>
|
||||
/// This is used for the NoEmotions trait.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed partial class NoEmotionsComponent : Component
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -18,11 +18,9 @@ namespace Content.Server.Sunrise.Paws
|
|||
[DataField("thresholdDamage")]
|
||||
public FixedPoint2 ThresholdDamage = 5;
|
||||
|
||||
public List<string> EmotesTakeDamage = new()
|
||||
{
|
||||
"Scream",
|
||||
"Crying"
|
||||
};
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("emotesTakeDamage")]
|
||||
public List<string> EmotesTakeDamage = new();
|
||||
|
||||
[DataField("nextChargeTime", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
|
||||
public TimeSpan NextScreamTime = TimeSpan.FromSeconds(0);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
using Content.Server._Sunrise.NoEmotions;
|
||||
using Content.Server.Chat.Systems;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.Mobs;
|
||||
|
|
@ -30,6 +31,9 @@ namespace Content.Server.Sunrise.Paws
|
|||
|
||||
private void OnDamaged(EntityUid uid, PawsComponent component, DamageChangedEvent args)
|
||||
{
|
||||
if (HasComp<NoEmotionsComponent>(uid))
|
||||
return;
|
||||
|
||||
if (!_mobStateSystem.IsAlive(uid))
|
||||
return;
|
||||
|
||||
|
|
|
|||
BIN
Resources/Audio/_Sunrise/Voice/Vulpkanin/dog_whimpering_1.ogg
Normal file
BIN
Resources/Audio/_Sunrise/Voice/Vulpkanin/dog_whimpering_1.ogg
Normal file
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
|||
chat-emote-name-bark = Лаять
|
||||
chat-emote-name-hisses = Шипеть
|
||||
chat-emote-name-purrs = Мурчать
|
||||
chat-emote-name-growls = Рычять
|
||||
chat-emote-name-growls = Рычать
|
||||
chat-emote-name-mews = Мявкать
|
||||
chat-emote-name-howl = Выть
|
||||
chat-emote-name-oink = Хрюкать
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
chat-emote-name-bark = Лаять
|
||||
chat-emote-name-hisses = Шипеть
|
||||
chat-emote-name-purrs = Мурчать
|
||||
chat-emote-name-growls = Рычять
|
||||
chat-emote-name-growls = Рычать
|
||||
chat-emote-name-mews = Мявкать
|
||||
chat-emote-name-howl = Выть
|
||||
chat-emote-name-oink = Хрюкать
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ chat-emote-name-monkeyscreeches = Обезьяньи крики
|
|||
chat-emote-name-robotbeep = Робот
|
||||
chat-emote-name-yawn = Зевать
|
||||
chat-emote-name-snore = Храпеть
|
||||
chat-emote-name-whines = Скулить
|
||||
# Сообщение
|
||||
chat-emote-msg-scream = кричит!
|
||||
chat-emote-msg-laugh = смеётся
|
||||
|
|
@ -61,3 +62,4 @@ chat-emote-msg-cathisses = шипит
|
|||
chat-emote-msg-monkeyscreeches = кричит
|
||||
chat-emote-msg-yawn = зевает
|
||||
chat-emote-msg-snore = храпит
|
||||
chat-emote-msg-whines = скулит!
|
||||
|
|
|
|||
|
|
@ -39,3 +39,5 @@ trait-french-name = Французский акцент
|
|||
trait-french-desc = Ваш акцент имеет некое «je ne sais quoi».
|
||||
trait-spanish-name = Испанский акцент
|
||||
trait-spanish-desc = Hola señor, где находится библиотека?
|
||||
trait-noemotions-name = Крепкий орешек
|
||||
trait-noemotions-desc = Вы настолько очерствели, что физическая боль не вызывает у вас произвольных звуков.
|
||||
|
|
|
|||
|
|
@ -229,6 +229,9 @@
|
|||
screamInterval: 3
|
||||
thresholdDamage: 5
|
||||
coughInterval: 5
|
||||
emotesTakeDamage:
|
||||
- Scream
|
||||
- Crying
|
||||
# Sunrise-End
|
||||
|
||||
- type: entity
|
||||
|
|
|
|||
|
|
@ -20,6 +20,10 @@
|
|||
- type: Inventory
|
||||
speciesId: human
|
||||
- type: VulpaAccent
|
||||
- type: Paws
|
||||
emotesTakeDamage:
|
||||
- Scream
|
||||
- Whines
|
||||
|
||||
|
||||
- type: entity
|
||||
|
|
|
|||
|
|
@ -15,6 +15,12 @@
|
|||
- /Audio/_Sunrise/Voice/Vulpkanin/dog_growl5.ogg
|
||||
- /Audio/_Sunrise/Voice/Vulpkanin/dog_growl6.ogg
|
||||
|
||||
- type: soundCollection
|
||||
id: VulpkaninWhines
|
||||
files:
|
||||
- /Audio/_Sunrise/Voice/Vulpkanin/dog_whimpering_1.ogg
|
||||
- /Audio/_Sunrise/Voice/Vulpkanin/dog_whine.ogg
|
||||
|
||||
- type: soundCollection
|
||||
id: PlushieVulpkaninGrowls
|
||||
files:
|
||||
|
|
@ -28,11 +34,6 @@
|
|||
- /Audio/_Sunrise/Voice/Vulpkanin/dog_snarl2.ogg
|
||||
- /Audio/_Sunrise/Voice/Vulpkanin/dog_snarl3.ogg
|
||||
|
||||
- type: soundCollection
|
||||
id: VulpkaninWhines
|
||||
files:
|
||||
- /Audio/_Sunrise/Voice/Vulpkanin/dog_whine.ogg
|
||||
|
||||
- type: soundCollection
|
||||
id: VulpkaninHowls
|
||||
files:
|
||||
|
|
|
|||
7
Resources/Prototypes/_Sunrise/Trait/quirks.yml
Normal file
7
Resources/Prototypes/_Sunrise/Trait/quirks.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
- type: trait
|
||||
id: NoEmotions
|
||||
name: trait-noemotions-name
|
||||
description: trait-noemotions-desc
|
||||
category: Quirks
|
||||
components:
|
||||
- type: NoEmotions
|
||||
|
|
@ -69,6 +69,8 @@
|
|||
collection: MaleCoughs
|
||||
Crying:
|
||||
collection: MaleCry
|
||||
Whines:
|
||||
collection: VulpkaninWhines
|
||||
Whistle:
|
||||
collection: Whistles
|
||||
Sigh:
|
||||
|
|
@ -95,6 +97,8 @@
|
|||
collection: FemaleCoughs
|
||||
Crying:
|
||||
collection: FemaleCry
|
||||
Whines:
|
||||
collection: VulpkaninWhines
|
||||
Whistle:
|
||||
collection: Whistles
|
||||
Sigh:
|
||||
|
|
@ -168,4 +172,4 @@
|
|||
variation: 0.125
|
||||
sounds:
|
||||
Scream:
|
||||
collection: ClownGoblinScream
|
||||
collection: ClownGoblinScream
|
||||
|
|
|
|||
|
|
@ -207,3 +207,23 @@
|
|||
name: chat-emote-name-insult
|
||||
category: Vocal
|
||||
chatMessages: [инсульт]
|
||||
|
||||
- type: emote
|
||||
id: Whines
|
||||
name: chat-emote-name-whines
|
||||
category: Vocal
|
||||
icon: Interface/Emotes/cry.png
|
||||
whitelist:
|
||||
components:
|
||||
- Vocal
|
||||
blacklist:
|
||||
components:
|
||||
- BorgChassis
|
||||
chatMessages: ["chat-emote-msg-whines"]
|
||||
chatTriggers:
|
||||
- скулит.
|
||||
- скулит!
|
||||
- скулить.
|
||||
- скулить!
|
||||
- скулит
|
||||
- скулить
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue