Speech Noises 2: Quality of Life, New Sounds (#8044)

* Vending machine jingle much less intense

* SpeechSoundsPrototype has a built in variation parameter

* Sounds in your face are louder but roll off more aggressively so that distant talking sounds are less distracting

* Redo that

* Speech noise system now supports variation of pitch

* license stuff

* PAIs have speech sounds now. Made by altering the pAI sounds.

* Monkeys have sounds from goon now

* New Speech Sounds

* Oops
This commit is contained in:
hubismal
2022-05-08 23:55:23 -05:00
committed by GitHub
parent 7d5c109383
commit 3421e4f4de
13 changed files with 53 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ namespace Content.Shared.Speech
public string? SpeechSounds;
[DataField("audioParams")]
public AudioParams AudioParams = AudioParams.Default.WithVolume(5f);
public AudioParams AudioParams = AudioParams.Default.WithVolume(6f).WithRolloffFactor(4.5f);
[ViewVariables(VVAccess.ReadWrite)]
[DataField("soundCooldownTime")]

View File

@@ -15,6 +15,11 @@ namespace Content.Shared.Speech
[IdDataFieldAttribute]
public string ID { get; } = default!;
//Variation is here instead of in SharedSpeechComponent since some sets of
//sounds may require more fine tuned pitch variation than others.
[DataField("variation")]
public float Variation { get; set; } = 0.1f;
[DataField("saySound")]
public SoundSpecifier SaySound { get; set; } = new SoundPathSpecifier("/Audio/Voice/Talk/speak_2.ogg");