]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Added toy nuke sound on use/interact (#15325)
authorvanx <61917534+Vaaankas@users.noreply.github.com>
Sat, 29 Apr 2023 11:37:13 +0000 (18:37 +0700)
committerGitHub <noreply@github.com>
Sat, 29 Apr 2023 11:37:13 +0000 (21:37 +1000)
Co-authored-by: vanx <vanx#5477>
Resources/Prototypes/Entities/Objects/Fun/toys.yml

index f08d59f44a284306e92eda6d77d0109461bc6da5..d6de39b922dca37c1a70c05ba86f6a337c8bd428 100644 (file)
   components:
   - type: Sprite
     state: nuketoy
+  - type: UseDelay
+    delay: 180.0
+  - type: EmitSoundOnUse
+    sound:
+      path: /Audio/Machines/Nuke/nuke_alarm.ogg
+      params:
+        volume: -5
+        maxdistance: 10
+  - type: EmitSoundOnActivate
+    sound:
+      path: /Audio/Machines/Nuke/nuke_alarm.ogg
+      params:
+        volume: -5
+        maxdistance: 10
 
 - type: entity
   parent: BaseFigurine