Files
tbd-station-14/Content.Shared/Speech/SpeechSoundsPrototype.cs
hubismal 3421e4f4de 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
2022-05-09 14:55:23 +10:00

33 lines
1.2 KiB
C#

using System.Collections.Generic;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;
using Robust.Shared.Audio;
using Content.Shared.Sound;
namespace Content.Shared.Speech
{
[Prototype("speechSounds")]
public sealed class SpeechSoundsPrototype : IPrototype
{
[ViewVariables]
[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");
[DataField("askSound")]
public SoundSpecifier AskSound { get; set; } = new SoundPathSpecifier("/Audio/Voice/Talk/speak_2_ask.ogg");
[DataField("exclaimSound")]
public SoundSpecifier ExclaimSound { get; set; } = new SoundPathSpecifier("/Audio/Voice/Talk/speak_2_exclaim.ogg");
}
}