Skip to content

Commit

Permalink
fix event's
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup committed Oct 5, 2023
1 parent 22f0c6b commit 538b993
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Content.Server/StationEvents/Events/PowerGridCheckRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ protected override void Ended(EntityUid uid, PowerGridCheckRuleComponent compone
}

// Can't use the default EndAudio
/*
component.AnnounceCancelToken?.Cancel();
component.AnnounceCancelToken = new CancellationTokenSource();
Timer.Spawn(3000, () =>
{
Audio.PlayGlobal("/Audio/Announcements/power_on.ogg", Filter.Broadcast(), true, AudioParams.Default.WithVolume(-4f));
}, component.AnnounceCancelToken.Token);
*/
component.Unpowered.Clear();
}

Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
weight: 10
startDelay: 30
duration: 35
startAudio: # Corvax-Announcements
path: /Audio/Corvax/Announcements/flux.ogg
params:
volume: -4
# startAudio: # Corvax-Announcements
# path: /Audio/Corvax/Announcements/flux.ogg
# params:
# volume: -4
- type: AnomalySpawnRule

- type: entity
Expand Down

0 comments on commit 538b993

Please sign in to comment.