]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Change explosive triggers to be more consistent (#34465)
authorSlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>
Wed, 28 May 2025 07:31:34 +0000 (09:31 +0200)
committerGitHub <noreply@github.com>
Wed, 28 May 2025 07:31:34 +0000 (09:31 +0200)
* yes I watch liltenhead

* oops

* Revert pen changes

* Add comment for the future

Resources/Prototypes/Entities/Objects/Devices/Electronics/triggers.yml
Resources/Prototypes/Entities/Objects/Weapons/Bombs/pen.yml
Resources/Prototypes/Entities/Objects/Weapons/Bombs/plastic.yml

index acc82abebe46051e2757578352827e6b030bba70..67374a81f1b68b8863c401a192a0c97bdc5e8d1a 100644 (file)
     - SignalTrigger
   - type: PayloadTrigger
     components:
-    - type: TriggerOnSignal
+    - type: TimerStartOnSignal
     - type: DeviceNetwork
       deviceNetId: Wireless
       receiveFrequencyId: BasicDevice
     - type: WirelessNetworkConnection
       range: 200
     - type: DeviceLinkSink
+    - type: OnUseTimerTrigger
+      delay: 3
+      initialBeepDelay: 0
+      beepSound:
+        path: /Audio/Machines/Nuke/general_beep.ogg
+        params:
+          volume: -2
 
 - type: entity
   parent: BaseItem
index 2d641568d78a59f2bac7255bd1c321371612ac8e..d553b2b2a41cd0462680ae4aa29f74e8139d92bd 100644 (file)
@@ -17,9 +17,9 @@
   - type: ActivateOnPaperOpened
   - type: ExplodeOnTrigger
   - type: TriggerOnSignal
-  - type: DeviceLinkSink
+  - type: DeviceLinkSink # This should be changed into separate behavior where triggering via signal makes beep, while triggering manually is quiet, when that functionality is supported.
     ports:
-      - Trigger
+    - Trigger
   - type: EmitSoundOnUse
     handle: false # don't want the sound to stop the explosion from triggering
 
index 391ceb9eba283544a9b272fdb53ec0327bc2dab4..761e6513d4b59412288a9ea40bf12672c5304ee7 100644 (file)
@@ -64,7 +64,7 @@
   - type: TimerStartOnSignal
   - type: DeviceLinkSink
     ports:
-      - Timer
+    - Timer
   - type: Explosive # Powerful explosion in a very small radius. Doesn't break underplating.
     explosionType: DemolitionCharge
     totalIntensity: 60
         volume: -6
     startOnStick: false
     canToggleStartOnStick: true
-  - type: TriggerOnSignal
+  - type: TimerStartOnSignal
   - type: DeviceLinkSink
     ports:
-    - Trigger
+    - Timer
   - type: Explosive
     explosionType: Cryo
     totalIntensity: 120