]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix toy sword (#23137)
authorthemias <89101928+themias@users.noreply.github.com>
Fri, 29 Dec 2023 00:59:23 +0000 (19:59 -0500)
committerGitHub <noreply@github.com>
Fri, 29 Dec 2023 00:59:23 +0000 (17:59 -0700)
Resources/Prototypes/Entities/Objects/Fun/toys.yml

index d6d79edcef775e7829c84e8929d2b34971f8889d..b2ba859d062268b9ac836eb91b87121787266660 100644 (file)
       isSharp: false
       colorOptions:
         - DodgerBlue
+    - type: ItemToggle
+      soundActivate:
+        path: /Audio/Weapons/ebladeon.ogg
+      soundDeactivate:
+        path: /Audio/Weapons/ebladeoff.ogg
+    - type: ItemToggleActiveSound
+      activeSound:
+        path: /Audio/Weapons/ebladehum.ogg
     - type: Sprite
       sprite: Objects/Fun/toy_sword.rsi
       layers:
       damage:
         types:
           Blunt: 0
+    - type: ItemToggleMeleeWeapon
+      activatedSoundOnHit:
+        path: /Audio/Weapons/eblade1.ogg
+        params:
+          variation: 0.250
+      activatedSoundOnHitNoDamage:
+        path: /Audio/Weapons/eblade1.ogg
+        params:
+          variation: 0.250
+      activatedSoundOnSwing:
+        path: /Audio/Weapons/eblademiss.ogg
+        params:
+          variation: 0.125
 
 - type: entity
   parent: BasePlushie