Various Entities make sounds when speaking (#7980)

* Speech Sounds from Goonstation

* Added some speech sound prototypes for humans, mice, and vending machines. More to come later?

* Custom synthesized sound for a vending machine ad

* Gave mice and vending machines Speech Components on their base prototypes to make sounds

* Humans now talk using the 'Alto' voice. In the future this can be changed in customization screen

* New Prototype 'SpeechSounds' with three soundspecifiers for saying sound, asking sound, exclaiming sound.

* SharedSpeechComponent modified from being useless to being responsible for making speech noises.

* Initial creation of SpeechNoiseSystem for making Sounds when certain entities speak.

* whitespace fix

* License fix

* Remove leftover using from debugging

* Added a cooldown editable in yaml

* SharedSpeechComponent has the proper cooldown now. oops
This commit is contained in:
hubismal
2022-05-08 08:23:08 -05:00
committed by GitHub
parent 41a74b8c2a
commit 304e9b824e
21 changed files with 219 additions and 3 deletions

Binary file not shown.

View File

@@ -0,0 +1,15 @@
speak_1_ask.ogg
speak_1_exclaim.ogg
speak_1.ogg
speak_2_ask.ogg
speak_2_exclaim.ogg
speak_2.ogg
speak_3_ask.ogg
speak_3_exclaim.ogg
speak_3.ogg
speak_4_ask.ogg
speak_4_exclaim.ogg
speak_4.ogg
all taken from
https://github.com/goonstation/goonstation/tree/master/sound/misc/talk
licensed under CC BY-NC-SA 3.0

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -17,6 +17,8 @@
state: bat
sprite: Mobs/Animals/bat.rsi
- type: Physics
- type: Speech
speechSoundsId: Squeak
- type: Fixtures
fixtures:
- shape:
@@ -663,6 +665,9 @@
makeSentient: true
name: mouse
description: A hungry and mischievous mouse.
- type: Speech
playSpeechSound: true
speechSoundsId: Squeak
- type: Sprite
drawdepth: FloorObjects
layers:

View File

@@ -309,6 +309,7 @@
# - type: Recyclable Turns out turning off recycler safeties without considering the instagib is a bad idea
# safe: false
- type: Speech
playSpeechSound: true
- type: Vocal
- type: Emoting
- type: Grammar
@@ -414,7 +415,7 @@
- map: [ "pocket2" ]
- map: ["hand-left"]
- map: ["hand-right"]
- type: Markings
- type: Markings
- type: Physics
bodyType: Dynamic
- type: Fixtures

View File

@@ -52,6 +52,9 @@
BoardName: "Vending Machine"
LayoutId: Vending
- type: Anchorable
- type: Speech
playSpeechSound: true
speechSoundsId: Vending
- type: DoAfter
- type: Electrified
enabled: false
@@ -156,7 +159,7 @@
energy: 1.3
color: "#ffb0b0"
- type: AccessReader
access: [["HeadOfPersonnel"]]
access: [["HeadOfPersonnel"]]
- type: entity
parent: VendingMachine

View File

@@ -0,0 +1,54 @@
- type: speechSounds
id: Bass
saySound:
path: /Audio/Voice/Talk/speak_4.ogg
askSound:
path: /Audio/Voice/Talk/speak_4_ask.ogg
exclaimSound:
path: /Audio/Voice/Talk/speak_4_exclaim.ogg
- type: speechSounds
id: Baritone
saySound:
path: /Audio/Voice/Talk/speak_1.ogg
askSound:
path: /Audio/Voice/Talk/speak_1_ask.ogg
exclaimSound:
path: /Audio/Voice/Talk/speak_1_exclaim.ogg
- type: speechSounds
id: Tenor
saySound:
path: /Audio/Voice/Talk/speak_3.ogg
askSound:
path: /Audio/Voice/Talk/speak_3_ask.ogg
exclaimSound:
path: /Audio/Voice/Talk/speak_3_exclaim.ogg
- type: speechSounds
id: Alto
saySound:
path: /Audio/Voice/Talk/speak_2.ogg
askSound:
path: /Audio/Voice/Talk/speak_2_ask.ogg
exclaimSound:
path: /Audio/Voice/Talk/speak_2_exclaim.ogg
- type: speechSounds
id: Squeak
saySound:
path: /Audio/Animals/mouse_squeak.ogg
askSound:
path: /Audio/Animals/mouse_squeak.ogg
exclaimSound:
path: /Audio/Animals/mouse_squeak.ogg
- type: speechSounds
id: Vending
saySound:
path: /Audio/Machines/vending_jingle.ogg
askSound:
path: /Audio/Machines/vending_jingle.ogg
exclaimSound:
path: /Audio/Machines/vending_jingle.ogg