Adding sounds to stamps (#17834)

* Add sounds

* FixSound

* Delete sound

* hmmmmmm
This commit is contained in:
Alex
2023-07-07 05:53:38 +03:00
committed by GitHub
parent 70d6e3dcbd
commit 68bd6f63d1
6 changed files with 20 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ namespace Content.Server.Paper
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly TagSystem _tagSystem = default!;
[Dependency] private readonly UserInterfaceSystem _uiSystem = default!;
[Dependency] private readonly SharedAudioSystem _audio = default!;
public override void Initialize()
{
@@ -119,6 +120,8 @@ namespace Content.Server.Paper
var stampPaperSelfMessage = Loc.GetString("paper-component-action-stamp-paper-self", ("target", Identity.Entity(args.Target, EntityManager)),("stamp", args.Used));
_popupSystem.PopupEntity(stampPaperSelfMessage, args.User, args.User);
_audio.PlayPvs(stampComp.Sound, uid);
UpdateUserInterface(uid, paperComp);
}
}