Fix missing sounds (#4466)
* Fix missing sounds * Make SoundHitSpecies fallback to SoundHit * Fix crayon YAML * Update PlaySoundBehavior YAML * Fix required
This commit is contained in:
@@ -55,14 +55,21 @@ namespace Content.Client.Light.Visualizers
|
||||
switch (state)
|
||||
{
|
||||
case ExpendableLightState.Lit:
|
||||
{
|
||||
TryStopStream(expendableLight.PlayingStream);
|
||||
expendableLight.PlayingStream = SoundSystem.Play(Filter.Local(), expendableLight.LoopedSound,
|
||||
expendableLight.Owner, SharedExpendableLightComponent.LoopedSoundParams.WithLoop(true));
|
||||
if (expendableLight.LoopedSound != null)
|
||||
{
|
||||
expendableLight.PlayingStream = SoundSystem.Play(Filter.Local(),
|
||||
expendableLight.LoopedSound, expendableLight.Owner,
|
||||
SharedExpendableLightComponent.LoopedSoundParams.WithLoop(true));
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
case ExpendableLightState.Dead:
|
||||
{
|
||||
TryStopStream(expendableLight.PlayingStream);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Content.Client.Trigger
|
||||
{
|
||||
private const string AnimationKey = "priming_animation";
|
||||
|
||||
[DataField("countdown_sound")]
|
||||
[DataField("countdown_sound", required: true)]
|
||||
private SoundSpecifier _countdownSound = default!;
|
||||
|
||||
private Animation PrimingAnimation = default!;
|
||||
|
||||
Reference in New Issue
Block a user