Skip to content

Commit

Permalink
Hotfix Radio (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roudenn authored Jan 18, 2025
1 parent 4404ec7 commit 53ef47e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Content.Server/Radio/EntitySystems/HeadsetSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,10 @@ private void OnHeadsetReceive(EntityUid uid, HeadsetComponent component, ref Rad
msg = args.LanguageObfuscatedChatMsg;

_netMan.ServerSendMessage(msg, actor.PlayerSession.Channel);
_audio.PlayPvs(args.Channel.OnSendSound ?? DefaultOnSound, uid); // backmen: radio sound
}

// end-backmen: language


_audio.PlayPvs(args.Channel.OnSendSound ?? DefaultOnSound, uid); // backmen: radio sound
}

private void OnEmpPulse(EntityUid uid, HeadsetComponent component, ref EmpPulseEvent args)
Expand Down
5 changes: 3 additions & 2 deletions Resources/Locale/ru-RU/headset/headset-component.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Chat window radio wrap (prefix and postfix)
chat-radio-message-wrap = [color={ $color }]{ $channel } [bold]{ $name }[/bold] { $verb }, [font={ $fontType } size={ $fontSize }]"{ $message }"[/font][/color]
chat-radio-message-wrap-bold = [color={ $color }]{ $channel } [bold]{ $name }[/bold] { $verb }, [font={ $fontType } size={ $fontSize }][bold]"{ $message }"[/bold][/font][/color]
chat-radio-message-wrap = [color={$color}]{$channel} [bold]{$name}[/bold] {$verb}, "{$message}"[/color]
chat-radio-message-wrap-bold = [color={$color}]{$channel} [bold]{$name}[/bold] {$verb}, [bold]"{$message}"[/bold][/color]
examine-headset-default-channel = Канал по умолчанию этой гарнитуры [color={ $color }]{ $channel }[/color].
chat-radio-common = Общий
chat-radio-centcom = Центком
Expand Down

0 comments on commit 53ef47e

Please sign in to comment.