Rework emergency lights (#1830)
* Implement emergency lights reacting to lost power * Add emergency light sprites Remove shared emergency light component * Remove unused import * Remove EmergencyLight NetID * Add rich description Change comments Add license Implement ExposeData Co-authored-by: Julian Giebel <j.giebel@netrocks.info>
This commit is contained in:
@@ -1,17 +1,27 @@
|
||||
- type: entity
|
||||
- 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.5, 0"
|
||||
color: "#FF4020"
|
||||
mask: /Textures/emergency_mask.png
|
||||
|
||||
- type: EmergencyLight
|
||||
|
||||
- type: PowerReceiver
|
||||
- type: Battery
|
||||
maxCharge: 30000
|
||||
startingCharge: 0
|
||||
- type: Sprite
|
||||
sprite: Constructible/Lighting/emergency_light.rsi
|
||||
state: emergency_light_off
|
||||
- type: Icon
|
||||
sprite: Constructible/Lighting/emergency_light.rsi
|
||||
state: emergency_light_off
|
||||
placement:
|
||||
snap:
|
||||
- Wallmount
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 336 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"version": 1,
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"states": [
|
||||
{
|
||||
"name": "emergency_light_off",
|
||||
"directions": 4,
|
||||
"delays": [
|
||||
[
|
||||
1.0
|
||||
],
|
||||
[
|
||||
1.0
|
||||
],
|
||||
[
|
||||
1.0
|
||||
],
|
||||
[
|
||||
1.0
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "emergency_light_on",
|
||||
"directions": 4,
|
||||
"delays": [
|
||||
[
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3
|
||||
],
|
||||
[
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3
|
||||
],
|
||||
[
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3
|
||||
],
|
||||
[
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3,
|
||||
0.3
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user