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:
ScalyChimp
2022-02-06 15:59:41 +00:00
committed by GitHub
parent ff8ebf1896
commit 3c9328ff99
14 changed files with 441 additions and 27 deletions

View File

@@ -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