]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add pen clicking sound (#30531)
authorthemias <89101928+themias@users.noreply.github.com>
Wed, 31 Jul 2024 17:57:41 +0000 (13:57 -0400)
committerGitHub <noreply@github.com>
Wed, 31 Jul 2024 17:57:41 +0000 (20:57 +0300)
* Add pen clicking sound

* switch to OnUse and reduce distance a little

Resources/Audio/Items/attributions.yml
Resources/Audio/Items/pen_click.ogg [new file with mode: 0644]
Resources/Prototypes/Entities/Objects/Misc/pen.yml

index b3ae4f611f9666aaaa7427592db2bc9442ba1ee4..6a2d579b700c324ef431355d54cfa90acdfd3bb6 100644 (file)
   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 (file)
index 0000000..621b88c
Binary files /dev/null and b/Resources/Audio/Items/pen_click.ogg differ
index 187672ec4dd72533545273fb7f00cf1b92f2ac12..e8f32252be7dfdfab00bcaa798a0fcb263d3d08c 100644 (file)
   - 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