Update salvage.ogg (#15688)
This commit is contained in:
@@ -39,6 +39,15 @@ public sealed class SalvageExpeditionComponent : Component
|
||||
/// Countdown audio stream.
|
||||
/// </summary>
|
||||
public IPlayingAudioStream? Stream = null;
|
||||
|
||||
/// <summary>
|
||||
/// Sound that plays when the mission end is imminent.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("sound")]
|
||||
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Misc/tension_session.ogg")
|
||||
{
|
||||
Params = AudioParams.Default.WithVolume(-15),
|
||||
};
|
||||
}
|
||||
|
||||
public enum ExpeditionStage : byte
|
||||
|
||||
@@ -126,19 +126,19 @@ public sealed partial class SalvageSystem
|
||||
comp.Stage = ExpeditionStage.FinalCountdown;
|
||||
Announce(uid, Loc.GetString("salvage-expedition-announcement-countdown-seconds", ("duration", TimeSpan.FromSeconds(30).Seconds)));
|
||||
}
|
||||
else if (comp.Stage < ExpeditionStage.MusicCountdown && remaining < TimeSpan.FromMinutes(2))
|
||||
{
|
||||
// TODO: Some way to play audio attached to a map for players.
|
||||
comp.Stream = _audio.PlayGlobal(comp.Sound,
|
||||
Filter.BroadcastMap(Comp<MapComponent>(uid).MapId), true);
|
||||
comp.Stage = ExpeditionStage.MusicCountdown;
|
||||
Announce(uid, Loc.GetString("salvage-expedition-announcement-countdown-minutes", ("duration", TimeSpan.FromMinutes(2).Minutes)));
|
||||
}
|
||||
else if (comp.Stage < ExpeditionStage.Countdown && remaining < TimeSpan.FromMinutes(5))
|
||||
{
|
||||
comp.Stage = ExpeditionStage.Countdown;
|
||||
Announce(uid, Loc.GetString("salvage-expedition-announcement-countdown-minutes", ("duration", TimeSpan.FromMinutes(5).Minutes)));
|
||||
}
|
||||
else if (comp.Stage < ExpeditionStage.MusicCountdown && remaining < TimeSpan.FromMinutes(2))
|
||||
{
|
||||
// TODO: Some way to play audio attached to a map for players.
|
||||
comp.Stream = _audio.PlayGlobal(new SoundPathSpecifier("/Audio/Misc/salvage.ogg"),
|
||||
Filter.BroadcastMap(Comp<MapComponent>(uid).MapId), true, AudioParams.Default.WithVolume(-7));
|
||||
comp.Stage = ExpeditionStage.MusicCountdown;
|
||||
Announce(uid, Loc.GetString("salvage-expedition-announcement-countdown-minutes", ("duration", TimeSpan.FromMinutes(2).Minutes)));
|
||||
}
|
||||
// Auto-FTL out any shuttles
|
||||
else if (remaining < TimeSpan.FromSeconds(ShuttleSystem.DefaultStartupTime) + TimeSpan.FromSeconds(0.5))
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
copyright: "Taken from TG station."
|
||||
source: "https://github.com/tgstation/tgstation/commit/97945e7d08d1457ffc27e46526a48c0453cc95e4"
|
||||
|
||||
- files: ["salvage.ogg"]
|
||||
- files: ["tension_session.ogg"]
|
||||
license: "CC-BY-3.0"
|
||||
copyright: "Created by qwertyquerty / discord coconatsu#4342"
|
||||
source: "https://www.example.com/wagoogus" # It was sent via DM what do you want
|
||||
copyright: "Created by qwertyquerty"
|
||||
source: "https://www.youtube.com/@qwertyquerty"
|
||||
|
||||
Binary file not shown.
BIN
Resources/Audio/Misc/tension_session.ogg
Normal file
BIN
Resources/Audio/Misc/tension_session.ogg
Normal file
Binary file not shown.
Reference in New Issue
Block a user