Adds portable flasher (#4523)
Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -49,3 +49,53 @@
|
||||
size: 2
|
||||
sprite: Objects/Weapons/Melee/flash.rsi
|
||||
- type: ItemCooldown
|
||||
|
||||
- type: entity
|
||||
name: portable flasher
|
||||
parent: BaseStructure
|
||||
id: Portableflasher
|
||||
description: An ultrabright flashbulb with a proximity trigger, useful for making an area security-only.
|
||||
components:
|
||||
- type: SoundOnTrigger
|
||||
sound:
|
||||
path: /Audio/Weapons/flash.ogg
|
||||
- type: FlashOnTrigger
|
||||
repeating: true
|
||||
range: 3
|
||||
- type: TriggerOnProximity
|
||||
enabled: true
|
||||
cooldown: 5
|
||||
shape:
|
||||
!type:PhysShapeCircle
|
||||
radius: 2
|
||||
- type: Anchorable
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
sprite: Objects/Weapons/pflash.rsi
|
||||
layers:
|
||||
- state: "off"
|
||||
map: ["enum.ProximityTriggerVisualLayers.Base"]
|
||||
- type: InteractionOutline
|
||||
- type: Physics
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.15,-0.3,0.15,0.3"
|
||||
mask:
|
||||
- Impassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- MobImpassable
|
||||
mass: 70
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: ProximityTriggerVisualizer
|
||||
animationState: flashing
|
||||
- type: PointLight
|
||||
energy: 2.0
|
||||
radius: 0
|
||||
softness: 0
|
||||
enabled: true
|
||||
|
||||
|
||||
BIN
Resources/Textures/Objects/Weapons/pflash.rsi/flashing.png
Normal file
BIN
Resources/Textures/Objects/Weapons/pflash.rsi/flashing.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
30
Resources/Textures/Objects/Weapons/pflash.rsi/meta.json
Normal file
30
Resources/Textures/Objects/Weapons/pflash.rsi/meta.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/f349b842c84f500399bd5673e5e34a6bc45b001a",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "off"
|
||||
},
|
||||
{
|
||||
"name": "on"
|
||||
},
|
||||
{
|
||||
"name": "on-unlit"
|
||||
},
|
||||
{
|
||||
"name": "flashing",
|
||||
"delays": [
|
||||
[
|
||||
0.1,
|
||||
0.1,
|
||||
0.1
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Resources/Textures/Objects/Weapons/pflash.rsi/off.png
Normal file
BIN
Resources/Textures/Objects/Weapons/pflash.rsi/off.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 489 B |
BIN
Resources/Textures/Objects/Weapons/pflash.rsi/on-unlit.png
Normal file
BIN
Resources/Textures/Objects/Weapons/pflash.rsi/on-unlit.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 113 B |
BIN
Resources/Textures/Objects/Weapons/pflash.rsi/on.png
Normal file
BIN
Resources/Textures/Objects/Weapons/pflash.rsi/on.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 503 B |
Reference in New Issue
Block a user