diff --git a/Content.Server/Paper/PaperSystem.cs b/Content.Server/Paper/PaperSystem.cs index 034d6a2643..8748b3c6cf 100644 --- a/Content.Server/Paper/PaperSystem.cs +++ b/Content.Server/Paper/PaperSystem.cs @@ -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); } } diff --git a/Content.Shared/Paper/StampComponent.cs b/Content.Shared/Paper/StampComponent.cs index ccb4575662..1c2df18dbb 100644 --- a/Content.Shared/Paper/StampComponent.cs +++ b/Content.Shared/Paper/StampComponent.cs @@ -1,3 +1,5 @@ +using Robust.Shared.Audio; + namespace Content.Shared.Paper { [RegisterComponent] @@ -13,5 +15,8 @@ namespace Content.Shared.Paper /// [DataField("stampState")] public string StampState { get; set; } = "paper_stamp-generic"; + + [DataField("sound")] + public SoundSpecifier? Sound; } } diff --git a/Resources/Audio/Items/Stamp/attributions.yml b/Resources/Audio/Items/Stamp/attributions.yml new file mode 100644 index 0000000000..be38d4d067 --- /dev/null +++ b/Resources/Audio/Items/Stamp/attributions.yml @@ -0,0 +1,9 @@ +- files: ["thick_stamp_sub.ogg"] + license: "CC-BY-4.0" + copyright: "Created by newagesoup. Converted from WAV to OGG." + source: "https://freesound.org/people/newagesoup/sounds/347323/" + +- files: ["automatic_stamp.ogg"] + license: "CC-BY-4.0" + copyright: "Created by kermite607. Converted from WAV to OGG." + source: "https://freesound.org/people/kermite607/sounds/362624/" \ No newline at end of file diff --git a/Resources/Audio/Items/Stamp/automatic_stamp.ogg b/Resources/Audio/Items/Stamp/automatic_stamp.ogg new file mode 100644 index 0000000000..56c00b9dd7 Binary files /dev/null and b/Resources/Audio/Items/Stamp/automatic_stamp.ogg differ diff --git a/Resources/Audio/Items/Stamp/thick_stamp_sub.ogg b/Resources/Audio/Items/Stamp/thick_stamp_sub.ogg new file mode 100644 index 0000000000..1257336fe9 Binary files /dev/null and b/Resources/Audio/Items/Stamp/thick_stamp_sub.ogg differ diff --git a/Resources/Prototypes/Entities/Objects/Misc/paper.yml b/Resources/Prototypes/Entities/Objects/Misc/paper.yml index 561645cffd..be7a7c7d7e 100644 --- a/Resources/Prototypes/Entities/Objects/Misc/paper.yml +++ b/Resources/Prototypes/Entities/Objects/Misc/paper.yml @@ -389,6 +389,7 @@ - type: Stamp stampedName: stamp-component-stamped-name-mime stampState: "paper_stamp-mime" + sound: /Audio/Items/Stamp/thick_stamp_sub.ogg - type: Sprite sprite: Objects/Misc/bureaucracy.rsi state: stamp-mime @@ -466,6 +467,7 @@ - type: Stamp stampedName: stamp-component-stamped-name-denied stampState: "paper_stamp-deny" + sound: /Audio/Items/Stamp/automatic_stamp.ogg - type: Sprite sprite: Objects/Misc/bureaucracy.rsi state: stamp-deny @@ -478,6 +480,7 @@ - type: Stamp stampedName: stamp-component-stamped-name-approved stampState: "paper_stamp-iaa" + sound: /Audio/Items/Stamp/automatic_stamp.ogg - type: Sprite sprite: Objects/Misc/bureaucracy.rsi state: stamp-iaa