From: themias <89101928+themias@users.noreply.github.com> Date: Wed, 31 Jul 2024 17:57:41 +0000 (-0400) Subject: Add pen clicking sound (#30531) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2575e44ec399d749effb06d52dfb0344143a704f;p=space-station-14.git Add pen clicking sound (#30531) * Add pen clicking sound * switch to OnUse and reduce distance a little --- diff --git a/Resources/Audio/Items/attributions.yml b/Resources/Audio/Items/attributions.yml index b3ae4f611f..6a2d579b70 100644 --- a/Resources/Audio/Items/attributions.yml +++ b/Resources/Audio/Items/attributions.yml @@ -134,3 +134,8 @@ license: "CC-BY-SA-3.0" copyright: "Taken from tgstation." source: "https://github.com/tgstation/tgstation/blob/a7f525bce9a359ab5282fc754078cd4b5678a006/sound/items" + +- files: ["pen_click.ogg"] + license: "CC0-1.0" + copyright: "Created by dslrguide, converted to ogg and mono by Themias" + source: "https://freesound.org/people/dslrguide/sounds/321484" \ No newline at end of file diff --git a/Resources/Audio/Items/pen_click.ogg b/Resources/Audio/Items/pen_click.ogg new file mode 100644 index 0000000000..621b88c4f8 Binary files /dev/null and b/Resources/Audio/Items/pen_click.ogg differ diff --git a/Resources/Prototypes/Entities/Objects/Misc/pen.yml b/Resources/Prototypes/Entities/Objects/Misc/pen.yml index 187672ec4d..e8f32252be 100644 --- a/Resources/Prototypes/Entities/Objects/Misc/pen.yml +++ b/Resources/Prototypes/Entities/Objects/Misc/pen.yml @@ -18,6 +18,14 @@ - type: PhysicalComposition materialComposition: Steel: 25 + - type: EmitSoundOnUse + sound: + path: /Audio/Items/pen_click.ogg + params: + volume: -4 + maxDistance: 2 + - type: UseDelay + delay: 1.5 - type: entity parent: Pen