Light bulb brightness (and other settings) change clientside PointLights (#5869)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Matz05
2022-01-04 22:25:37 -07:00
committed by GitHub
parent adbc4ee5b0
commit 919053c5f1
5 changed files with 63 additions and 34 deletions

View File

@@ -60,6 +60,9 @@
- type: LightBulb
bulb: Bulb
color: "#FFD1A3" # 4000K color temp
lightEnergy: 1.0
lightRadius: 6
lightSoftness: 1.1
- type: Sprite
sprite: Objects/Power/light_bulb.rsi
state: normal
@@ -73,6 +76,9 @@
- type: LightBulb
bulb: Tube
color: "#FFE4CE" # 5000K color temp
lightEnergy: 0.8
lightRadius: 10
lightSoftness: 1
- type: Sprite
sprite: Objects/Power/light_tube.rsi
state: normal
@@ -85,6 +91,9 @@
- type: LightBulb
bulb: Tube
color: "#EEEEFF"
lightEnergy: 4
lightRadius: 10
lightSoftness: 0.9
BurningTemperature: 350
PowerUse: 9
- type: Sprite

View File

@@ -61,14 +61,14 @@
- type: entity
name: light
description: "A powered wall light emitting... light."
id: Poweredlight
suffix: Powered
description: "A light fixture. Draws power and produces light when equipped with a light tube."
id: PoweredlightEmpty
suffix: Empty, Powered
parent: WallLight
components:
- type: Sprite
sprite: Structures/Wallmounts/Lighting/light_tube.rsi
state: off
state: empty
- type: PointLight
enabled: false
- type: PoweredLight
@@ -88,15 +88,27 @@
path: "/Audio/Machines/light_tube_on.ogg"
- type: entity
id: PoweredlightEmpty
description: "A wall light. It's empty."
suffix: Empty, Powered
parent: Poweredlight
id: Poweredlight
description: "A light fixture. Draws power and produces light when equipped with a light tube."
suffix: Powered
parent: PoweredlightEmpty
components:
- type: Sprite
state: empty
state: off
- type: PoweredLight
hasLampOnSpawn: False
hasLampOnSpawn: LightTube
damage:
types:
Heat: 20
- type: entity
id: PoweredlightLED
description: "A light fixture. Draws power and produces light when equipped with a light tube."
suffix: LED tube, Powered
parent: Poweredlight
components:
- type: PoweredLight
hasLampOnSpawn: LedLightTube
damage:
types:
Heat: 20
@@ -143,14 +155,14 @@
- type: entity
name: small light
description: "A powered wall light emitting... light."
id: PoweredSmallLight
suffix: Powered
description: "A light fixture. Draws power and produces light when equipped with a light bulb."
id: PoweredSmallLightEmpty
suffix: Empty, Powered
parent: SmallLight
components:
- type: Sprite
sprite: Structures/Wallmounts/Lighting/light_small.rsi
state: off
state: empty
- type: PointLight
enabled: false
offset: "0, -0.5"
@@ -176,14 +188,14 @@
- type: PoweredLightVisualizer
- type: entity
id: PoweredSmallLightEmpty
suffix: Empty, Powered
parent: PoweredSmallLight
id: PoweredSmallLight
suffix: Powered
parent: PoweredSmallLightEmpty
components:
- type: Sprite
state: empty
state: off
- type: PoweredLight
hasLampOnSpawn: False
hasLampOnSpawn: LightBulb
damage:
types:
Heat: 20