Skip to content

Commit

Permalink
Поблажки экипажу
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed Jul 24, 2024
1 parent 5a30a19 commit 5a4b9eb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Content.Server/_Sunrise/VigersRay/VigersRaySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ private void OnVigersRayLeave(VigersRayLeaveEvent args)
{
_chatManager.DispatchServerAnnouncement("VigersRay ушел", Color.Green);

var audio = AudioParams.Default;
_audioSystem.PlayGlobal("/Audio/_Sunrise/leave.ogg", Filter.Broadcast(), false, audio.WithVolume(10));
// Увы
//var audio = AudioParams.Default;
//_audioSystem.PlayGlobal("/Audio/_Sunrise/leave.ogg", Filter.Broadcast(), false, audio.WithVolume(10));
}

private void OnVigersRayJoin(VigersRayJoinEvent args)
Expand All @@ -65,14 +66,15 @@ private void OnVigersRayJoin(VigersRayJoinEvent args)
var statusEffectQuery = EntityQueryEnumerator<StatusEffectsComponent>();
while (statusEffectQuery.MoveNext(out var ent, out var comp))
{
_stunSystem.TryParalyze(ent, TimeSpan.FromSeconds(10), true);
_jittering.DoJitter(ent, TimeSpan.FromSeconds(10), true);
_stunSystem.TryParalyze(ent, TimeSpan.FromSeconds(5), true);
_jittering.DoJitter(ent, TimeSpan.FromSeconds(15), true);
_stuttering.DoStutter(ent, TimeSpan.FromSeconds(30), true);
}

var audio = AudioParams.Default;
_audioSystem.PlayGlobal("/Audio/_Sunrise/stab.ogg", Filter.Broadcast(), false, audio.WithVolume(10));
_audioSystem.PlayGlobal("/Audio/_Sunrise/night.ogg", Filter.Broadcast(), false, audio.WithVolume(10));
// Увы
//var audio = AudioParams.Default;
//_audioSystem.PlayGlobal("/Audio/_Sunrise/stab.ogg", Filter.Broadcast(), false, audio.WithVolume(10));
//_audioSystem.PlayGlobal("/Audio/_Sunrise/night.ogg", Filter.Broadcast(), false, audio.WithVolume(10));
}

private const float CheckDelay = 10;
Expand Down

0 comments on commit 5a4b9eb

Please sign in to comment.