Holopads no longer log broadcasted speech and emotes in the chat (#34114)

Initial commit
This commit is contained in:
chromiumboy
2024-12-31 04:52:08 -06:00
committed by GitHub
parent c1c4b1c9a4
commit 8545c3a70e
2 changed files with 8 additions and 3 deletions

View File

@@ -109,8 +109,10 @@ public sealed class TelephoneSystem : SharedTelephoneSystem
("speaker", Name(entity)),
("originalName", nameEv.VoiceName));
var range = args.TelephoneSource.Comp.LinkedTelephones.Count > 1 ? ChatTransmitRange.HideChat : ChatTransmitRange.GhostRangeLimit;
var volume = entity.Comp.SpeakerVolume == TelephoneVolume.Speak ? InGameICChatType.Speak : InGameICChatType.Whisper;
_chat.TrySendInGameICMessage(entity, args.Message, volume, ChatTransmitRange.GhostRangeLimit, nameOverride: name, checkRadioPrefix: false);
_chat.TrySendInGameICMessage(entity, args.Message, volume, range, nameOverride: name, checkRadioPrefix: false);
}
#endregion