Add sfx for writing on paper (#25257)

* Initial commit

* Moved params to sound

* Removed type tag

* Removed null check

* Forced default
This commit is contained in:
Krunklehorn
2024-02-16 18:48:18 -05:00
committed by GitHub
parent b2e8c2e3aa
commit 1de3f24f16
9 changed files with 21 additions and 0 deletions

View File

@@ -160,6 +160,8 @@ namespace Content.Server.Paper
if (args.Session.AttachedEntity != null)
_adminLogger.Add(LogType.Chat, LogImpact.Low,
$"{ToPrettyString(args.Session.AttachedEntity.Value):player} has written on {ToPrettyString(uid):entity} the following text: {args.Text}");
_audio.PlayPvs(paperComp.Sound, uid);
}
paperComp.Mode = PaperAction.Read;