Admin improvements for Looc and Deadchat (#41273)

* looc and deadchat speak interrupt events

* comment

* admin log tweak

* clean up log entity targets; switch admin deadchat logged entity from player to mob

* one event only

* rename event, broadcast player session with the event
This commit is contained in:
Errant
2025-11-21 22:41:24 +01:00
committed by GitHub
parent eb95f4b214
commit b02edf29e3
3 changed files with 45 additions and 13 deletions

View File

@@ -0,0 +1,9 @@
using Robust.Shared.Player;
namespace Content.Shared.Chat;
/// <summary>
/// Event fired before a player's entity speaks on LOOC or Deadchat.
/// </summary>
[ByRefEvent]
public record struct InGameOocMessageAttemptEvent(ICommonSession Session, InGameOOCChatType Type, bool Cancelled = false);