Beam Component and Lightning Component (#10196)

This commit is contained in:
keronshb
2022-09-15 11:49:01 -04:00
committed by GitHub
parent 24d0766ad0
commit e90e8052c4
32 changed files with 856 additions and 1 deletions

View File

@@ -0,0 +1,106 @@
- type: entity
name: lightning
id: BaseLightning
abstract: true
components:
- type: Sprite
sprite: /Textures/Effects/lightning.rsi
drawdepth: Effects
netsync: false
layers:
- state: "lightning_1"
shader: unshaded
- type: Physics
- type: Electrified
requirePower: false
- type: Lightning
- type: PointLight
enabled: true
color: "#4080FF"
radius: 3.5
softness: 1
autoRot: true
castShadows: false
- type: Beam
sound: /Audio/Effects/Lightning/lightningshock.ogg
- type: TimedDespawn
lifetime: 3
- type: Tag
tags:
- HideContextMenu
- type: entity
name: lightning
id: Lightning
parent: BaseLightning
components:
- type: Lightning
canArc: true
- type: entity
name: charged lightning
id: ChargedLightning
parent: BaseLightning
components:
- type: Sprite
sprite: /Textures/Effects/lightning.rsi
drawdepth: Effects
layers:
- state: "blue_lightning"
shader: unshaded
- type: Electrified
requirePower: false
shockDamage: 40
- type: Lightning
canArc: true
lightningPrototype: ChargedLightning
- type: entity
name: supercharged lightning
id: SuperchargedLightning
parent: ChargedLightning
components:
- type: Sprite
sprite: /Textures/Effects/lightning.rsi
drawdepth: Effects
layers:
- state: "yellow_lightning"
shader: unshaded
- type: Electrified
requirePower: false
shockDamage: 50
- type: Lightning
canArc: true
lightningPrototype: SuperchargedLightning
- type: PointLight
enabled: true
color: "#FFFF00"
radius: 3.5
softness: 1
autoRot: true
castShadows: false
- type: entity
name: hypercharged lightning
id: HyperchargedLightning
parent: ChargedLightning
components:
- type: Sprite
sprite: /Textures/Effects/lightning.rsi
drawdepth: Effects
layers:
- state: "red_lightning"
shader: unshaded
- type: Electrified
requirePower: false
shockDamage: 60
- type: Lightning
canArc: true
lightningPrototype: HyperchargedLightning
- type: PointLight
enabled: true
color: "#ff0000"
radius: 3.5
softness: 1
autoRot: true
castShadows: false

View File

@@ -0,0 +1,12 @@
# Special entity used to keep track of beams from the BeamComponent and what targets they collided with
- type: entity
id: VirtualBeamEntityController
name: BEAM ENTITY YOU SHOULD NOT SEE THIS
noSpawn: true
components:
- type: Beam
- type: TimedDespawn
lifetime: 4
- type: Tag
tags:
- HideContextMenu