Revert "Revert "Emp more effects" (#16159)" (#16165)

This reverts commit 0da5a78509.
This commit is contained in:
metalgearsloth
2023-05-07 01:26:04 +10:00
committed by GitHub
parent de1613f7ef
commit f7950d07e2
18 changed files with 245 additions and 14 deletions

View File

@@ -80,6 +80,7 @@ public sealed class RadioSystem : EntitySystem
var sendAttemptEv = new RadioSendAttemptEvent(channel, radioSource);
RaiseLocalEvent(ref sendAttemptEv);
RaiseLocalEvent(radioSource, ref sendAttemptEv);
var canSend = !sendAttemptEv.Cancelled;
var sourceMapId = Transform(radioSource).MapID;
@@ -105,6 +106,7 @@ public sealed class RadioSystem : EntitySystem
// check if message can be sent to specific receiver
var attemptEv = new RadioReceiveAttemptEvent(channel, radioSource, receiver);
RaiseLocalEvent(ref attemptEv);
RaiseLocalEvent(receiver, ref attemptEv);
if (attemptEv.Cancelled)
continue;