Cleaning up lighting prototypes (#8217)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
EmoGarbage404
2022-05-17 23:44:47 -04:00
committed by GitHub
parent b3456c8376
commit dac8540705
4 changed files with 70 additions and 58 deletions

View File

@@ -38934,7 +38934,7 @@ entities:
parent: 131 parent: 131
type: Transform type: Transform
- uid: 2703 - uid: 2703
type: WallLight type: AlwaysPoweredWallLight
components: components:
- pos: 39.5,-11.5 - pos: 39.5,-11.5
parent: 131 parent: 131

View File

@@ -1,8 +1,14 @@
#==Suffix Guide==
#Always Powered - light doesn't need power to give off life
#Empty - on map init, light spawns without bulb
#Blue/Sodium/etc. - the color of the light
#Basic lights
- type: entity - type: entity
id: WallLight id: AlwaysPoweredWallLight
name: light name: light
description: "An unpowered light." description: "An always powered light."
suffix: Unpowered suffix: Always powered
components: components:
- type: MeleeSound - type: MeleeSound
soundGroups: soundGroups:
@@ -61,8 +67,8 @@
name: light name: light
description: "A light fixture. Draws power and produces light when equipped with a light tube." description: "A light fixture. Draws power and produces light when equipped with a light tube."
id: PoweredlightEmpty id: PoweredlightEmpty
suffix: Powered, Empty suffix: Empty
parent: WallLight parent: AlwaysPoweredWallLight
components: components:
- type: Sprite - type: Sprite
sprite: Structures/Wallmounts/Lighting/light_tube.rsi sprite: Structures/Wallmounts/Lighting/light_tube.rsi
@@ -89,7 +95,7 @@
- type: entity - type: entity
id: Poweredlight id: Poweredlight
description: "A light fixture. Draws power and produces light when equipped with a light tube." description: "A light fixture. Draws power and produces light when equipped with a light tube."
suffix: Powered suffix:
parent: PoweredlightEmpty parent: PoweredlightEmpty
components: components:
- type: Sprite - type: Sprite
@@ -100,10 +106,11 @@
types: types:
Heat: 5 Heat: 5
#LED lights
- type: entity - type: entity
id: PoweredlightLED id: PoweredlightLED
description: "A light fixture. Draws power and produces light when equipped with a light tube." description: "A light fixture. Draws power and produces light when equipped with a light tube."
suffix: Powered, LED suffix: LED
parent: Poweredlight parent: Poweredlight
components: components:
- type: PoweredLight - type: PoweredLight
@@ -113,9 +120,9 @@
Heat: 5 Heat: 5
- type: entity - type: entity
parent: WallLight parent: AlwaysPoweredWallLight
id: UnpoweredLightLED id: AlwaysPoweredLightLED
suffix: Unpowered, LED suffix: Always Powered, LED
components: components:
- type: PointLight - type: PointLight
radius: 10 radius: 10
@@ -123,10 +130,11 @@
softness: 0.9 softness: 0.9
color: "#EEEEFF" color: "#EEEEFF"
#Exterior lights
- type: entity - type: entity
id: PoweredlightExterior id: PoweredlightExterior
description: "A light fixture. Draws power and produces light when equipped with a light tube." description: "A light fixture. Draws power and produces light when equipped with a light tube."
suffix: Powered, Exterior Blue suffix: Blue
parent: Poweredlight parent: Poweredlight
components: components:
- type: PoweredLight - type: PoweredLight
@@ -136,9 +144,9 @@
Heat: 5 Heat: 5
- type: entity - type: entity
parent: WallLight parent: AlwaysPoweredWallLight
id: UnpoweredLightExterior id: AlwaysPoweredLightExterior
suffix: Unpowered, Exterior Blue suffix: Always Powered, Blue
components: components:
- type: PointLight - type: PointLight
radius: 12 radius: 12
@@ -146,11 +154,11 @@
softness: 0.5 softness: 0.5
color: "#B4FCF0" color: "#B4FCF0"
#Sodium lights
- type: entity - type: entity
id: PoweredlightSodium id: PoweredlightSodium
description: "A light fixture. Draws power and produces light when equipped with a light tube." description: "A light fixture. Draws power and produces light when equipped with a light tube."
suffix: Powered, Sodium Orange suffix: Sodium
parent: Poweredlight parent: Poweredlight
components: components:
- type: PoweredLight - type: PoweredLight
@@ -160,9 +168,9 @@
Heat: 5 Heat: 5
- type: entity - type: entity
parent: WallLight parent: AlwaysPoweredWallLight
id: UnpoweredLightSodium id: AlwaysPoweredLightSodium
suffix: Unpowered, Sodium Orange suffix: Always Powered, Sodium
components: components:
- type: PointLight - type: PointLight
radius: 10 radius: 10
@@ -170,12 +178,13 @@
softness: 0.5 softness: 0.5
color: "#FFAF38" color: "#FFAF38"
#Small lights
- type: entity - type: entity
name: small light name: small light
description: "An unpowered light." description: "An always powered light."
id: SmallLight id: SmallLight
suffix: Unpowered suffix: Always Powered
parent: WallLight parent: AlwaysPoweredWallLight
components: components:
- type: AmbientSound - type: AmbientSound
volume: -15 volume: -15
@@ -220,7 +229,7 @@
name: small light name: small light
description: "A light fixture. Draws power and produces light when equipped with a light bulb." description: "A light fixture. Draws power and produces light when equipped with a light bulb."
id: PoweredSmallLightEmpty id: PoweredSmallLightEmpty
suffix: Powered, Empty suffix: Empty
parent: SmallLight parent: SmallLight
components: components:
- type: Sprite - type: Sprite
@@ -246,7 +255,7 @@
- type: entity - type: entity
id: PoweredSmallLight id: PoweredSmallLight
suffix: Powered suffix:
parent: PoweredSmallLightEmpty parent: PoweredSmallLightEmpty
components: components:
- type: Sprite - type: Sprite
@@ -256,3 +265,35 @@
damage: damage:
types: types:
Heat: 5 Heat: 5
#Emergency Lights
- type: entity
id: EmergencyLight
name: emergency light
description: A small red light with an internal battery that turns on as soon as it stops receiving any power.
parent: AlwaysPoweredWallLight
components:
- type: PointLight
enabled: false
radius: 10
energy: 2.5
offset: "0, 0.5"
color: "#FF4020"
mask: /Textures/Effects/LightMasks/cone.png
- type: ApcPowerReceiver
- type: ExtensionCableReceiver
- type: Battery
maxCharge: 30000
startingCharge: 0
- type: EmergencyLight
- type: Sprite
sprite: Structures/Wallmounts/Lighting/emergency_light.rsi
layers:
- state: emergency_light_off
- type: Appearance
visuals:
- type: EmergencyLightVisualizer
placement:
mode: SnapgridCenter
snap:
- Wallmount

View File

@@ -40,8 +40,8 @@
parent: BaseLightStructure parent: BaseLightStructure
id: LightPostSmall id: LightPostSmall
name: post light name: post light
description: "An unpowered light." description: "An always powered light."
suffix: Unpowered suffix: Always Powered
components: components:
- type: Construction - type: Construction
graph: LightFixture graph: LightFixture
@@ -63,7 +63,7 @@
id: PoweredLightPostSmallEmpty id: PoweredLightPostSmallEmpty
name: post light name: post light
description: "A small light post." description: "A small light post."
suffix: Empty, Powered suffix: Empty
parent: BaseLightStructure parent: BaseLightStructure
components: components:
- type: Sprite - type: Sprite
@@ -95,7 +95,7 @@
id: PoweredLightPostSmall id: PoweredLightPostSmall
name: post light name: post light
description: "A light fixture. Draws power and produces light when equipped with a light tube." description: "A light fixture. Draws power and produces light when equipped with a light tube."
suffix: Powered suffix:
parent: PoweredLightPostSmallEmpty parent: PoweredLightPostSmallEmpty
components: components:
- type: Sprite - type: Sprite

View File

@@ -1,29 +0,0 @@
- type: entity
id: EmergencyLight
name: emergency light
description: A small red light with an internal battery that turns on as soon as it stops receiving any power.
parent: WallLight
components:
- type: PointLight
enabled: false
radius: 10
energy: 2.5
offset: "0, 0.5"
color: "#FF4020"
mask: /Textures/Effects/LightMasks/cone.png
- type: ApcPowerReceiver
- type: ExtensionCableReceiver
- type: Battery
maxCharge: 30000
startingCharge: 0
- type: EmergencyLight
- type: Sprite
sprite: Structures/Wallmounts/Lighting/emergency_light.rsi
layers:
- state: emergency_light_off
- type: Appearance
visuals:
- type: EmergencyLightVisualizer
placement:
snap:
- Wallmount