[Ready] SoundComponent (#164)

Requires https://github.com/space-wizards/space-station-14/pull/768

- [x] Play sounds
- [x] SoundSchedules actually work
- [x] Send sound to specific users
- [x] Make existing components use SoundComponent
- [x] Add ScheduledSounds from prototypes
- [x] Add Play methods equivalent to those of AudioSystem.
- [x] Document most code.
This commit is contained in:
Víctor Aguilera Puerto
2019-03-28 14:31:49 +01:00
committed by Pieter-Jan Briers
parent 8926669f3a
commit d090e98bd4
21 changed files with 350 additions and 31 deletions

View File

@@ -4,6 +4,7 @@
components:
- type: Clickable
- type: BoundingBox
- type: Sound
- type: Sprite
sprite: Buildings/light_tube.rsi
state: on

View File

@@ -95,6 +95,7 @@
type: ApcBoundUserInterface
- type: BoundingBox
aabb: -0.25, -0.25, 0.25, 0.3
- type: Sound
- type: entity
id: SMES

View File

@@ -18,6 +18,7 @@
Size: 24
sprite: Objects/laser_retro.rsi
prefix: 100
- type: Sound
- type: entity
name: Spear

View File

@@ -11,6 +11,7 @@
- type: Icon
sprite: Objects/c20r.rsi
state: c20r-5
- type: Sound
- type: RangedWeapon
automatic: true
firerate: 8