Flash payload (#7587)

This commit is contained in:
Ripmorld
2022-04-20 14:08:57 +08:00
committed by GitHub
parent 17a6e4f143
commit cef7d336f2
6 changed files with 36 additions and 0 deletions

View File

@@ -152,6 +152,7 @@
- Flash - Flash
- Handcuffs - Handcuffs
- Stunbaton - Stunbaton
- FlashPayload
- type: technology - type: technology
name: "non-lethal technology" name: "non-lethal technology"

View File

@@ -76,3 +76,19 @@
enum.ChemicalPayloadFilledSlots.Left: payload-chemical-left enum.ChemicalPayloadFilledSlots.Left: payload-chemical-left
enum.ChemicalPayloadFilledSlots.Right: payload-chemical-right enum.ChemicalPayloadFilledSlots.Right: payload-chemical-right
enum.ChemicalPayloadFilledSlots.Both: payload-chemical-armed enum.ChemicalPayloadFilledSlots.Both: payload-chemical-armed
- type: entity
name: flash payload
parent: BasePayload
id: FlashPayload
description: A single-use flash payload.
components:
- type: Sprite
sprite: Objects/Devices/payload.rsi
state: payload-flash-armed
- type: DeleteOnTrigger
- type: FlashOnTrigger
range: 6
- type: EmitSoundOnTrigger
sound:
path: "/Audio/Effects/flash_bang.ogg"

View File

@@ -192,6 +192,7 @@
- FlashlightLantern - FlashlightLantern
- TimerTrigger - TimerTrigger
- ChemicalPayload - ChemicalPayload
- FlashPayload
- type: ActivatableUI - type: ActivatableUI
key: enum.LatheUiKey.Key #Yes only having 1 of them here doesn't break anything key: enum.LatheUiKey.Key #Yes only having 1 of them here doesn't break anything
- type: ActivatableUIRequiresPower - type: ActivatableUIRequiresPower

View File

@@ -19,3 +19,16 @@
materials: materials:
Steel: 200 Steel: 200
Plastic: 300 Plastic: 300
- type: latheRecipe
id: FlashPayload
icon:
sprite: Objects/Devices/payload.rsi
state: payload-flash-armed
result: FlashPayload
completetime: 1
materials:
Steel: 50
Plastic: 100
Glass: 50
#one fourth of what making a flash would cost

View File

@@ -30,6 +30,11 @@
"name": "payload-explosive-armed", "name": "payload-explosive-armed",
"directions": 1, "directions": 1,
"delays": [ [ 0.2, 0.2, 0.2 ] ] "delays": [ [ 0.2, 0.2, 0.2 ] ]
},
{
"name": "payload-flash-armed",
"directions": 1,
"delays": [ [ 0.2, 0.2, 0.2 ] ]
} }
] ]
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB