Make raiselocalevent not broadcast by default (#8998)
This commit is contained in:
@@ -61,7 +61,7 @@ namespace Content.Shared.Pulling
|
||||
RaiseLocalEvent(puller.Owner, message, broadcast: false);
|
||||
|
||||
if (Initialized(pullable.Owner))
|
||||
RaiseLocalEvent(pullable.Owner, message);
|
||||
RaiseLocalEvent(pullable.Owner, message, true);
|
||||
|
||||
// Networking
|
||||
puller.Dirty();
|
||||
@@ -117,7 +117,7 @@ namespace Content.Shared.Pulling
|
||||
var message = new PullStartedMessage(pullerPhysics, pullablePhysics);
|
||||
|
||||
RaiseLocalEvent(puller.Owner, message, broadcast: false);
|
||||
RaiseLocalEvent(pullable.Owner, message);
|
||||
RaiseLocalEvent(pullable.Owner, message, true);
|
||||
|
||||
// Networking
|
||||
Dirty(puller);
|
||||
@@ -157,11 +157,11 @@ namespace Content.Shared.Pulling
|
||||
|
||||
if (movingTo == null)
|
||||
{
|
||||
RaiseLocalEvent(pullable.Owner, new PullableStopMovingMessage());
|
||||
RaiseLocalEvent(pullable.Owner, new PullableStopMovingMessage(), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
RaiseLocalEvent(pullable.Owner, new PullableMoveMessage());
|
||||
RaiseLocalEvent(pullable.Owner, new PullableMoveMessage(), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,9 +63,9 @@ namespace Content.Shared.Pulling
|
||||
}
|
||||
|
||||
var getPulled = new BeingPulledAttemptEvent(puller, pulled);
|
||||
RaiseLocalEvent(pulled, getPulled);
|
||||
RaiseLocalEvent(pulled, getPulled, true);
|
||||
var startPull = new StartPullAttemptEvent(puller, pulled);
|
||||
RaiseLocalEvent(puller, startPull);
|
||||
RaiseLocalEvent(puller, startPull, true);
|
||||
return (!startPull.Cancelled && !getPulled.Cancelled);
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace Content.Shared.Pulling
|
||||
}
|
||||
|
||||
var msg = new StopPullingEvent(user);
|
||||
RaiseLocalEvent(pullable.Owner, msg);
|
||||
RaiseLocalEvent(pullable.Owner, msg, true);
|
||||
|
||||
if (msg.Cancelled) return false;
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace Content.Shared.Pulling
|
||||
return false;
|
||||
}
|
||||
|
||||
RaiseLocalEvent(pullable.Owner, pullAttempt);
|
||||
RaiseLocalEvent(pullable.Owner, pullAttempt, true);
|
||||
|
||||
if (pullAttempt.Cancelled)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user