Radiation pulse ECS (#10641)

This commit is contained in:
Alex Evgrashin
2022-08-31 12:24:21 +02:00
committed by GitHub
parent ccb240ccca
commit cad6c760ad
18 changed files with 146 additions and 258 deletions

View File

@@ -4,7 +4,12 @@
noSpawn: true
description: Looking at this anomaly makes you feel strange, like something is pushing at your eyes.
components:
- type: RadiationPulse
minPulseLifespan: 0.8
maxPulseLifespan: 2.5
- type: RadiationSource
radsPerSecond: 5
- type: TimedDespawn
lifetime: 2
- type: EmitSoundOnSpawn
sound:
collection:
RadiationPulse
- type: RadiationPulse

View File

@@ -24,13 +24,10 @@
layer:
- AllMask
- type: Singularity
radsPerLevel: 1 # determines RadiationPulse's radiation per second.
radsPerLevel: 1
- type: SingularityDistortion
- type: RadiationPulse
- type: RadiationSource
range: 10
decay: false
minPulseLifespan: 1
maxPulseLifespan: 1
- type: Sprite
sprite: Structures/Power/Generation/Singularity/singularity_1.rsi
state: singularity_1

View File

@@ -243,8 +243,5 @@
layers:
- state: rtg_damaged
- state: rtg_glow
- type: RadiationPulse # ideally only when opened.
- type: RadiationSource # ideally only when opened.
range: 2
decay: false
minPulseLifespan: 1
maxPulseLifespan: 1