Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor light mask prototypes for compatibility with illumination measuring system of RobustToolbox #34056

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
enabled: false
radius: 3
energy: 1
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
netsync: false
- type: Appearance
Expand Down Expand Up @@ -198,7 +198,7 @@
enabled: false
radius: 3
energy: 2
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
netsync: false
- type: Appearance
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Clothing/Head/hardhats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
equippedPrefix: off
- type: PointLight
enabled: false
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
radius: 7
netsync: false
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Clothing/Head/helmets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@
energy: 1.4
color: red
netsync: false
mask: /Textures/Effects/LightMasks/double_cone.png
lightMask: ConeDouble
- type: RotatingLight
speed: 360
- type: PowerCellSlot
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Clothing/Head/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
enabled: false
radius: 3
energy: 1
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
color: "#cc6600"
netsync: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
color: "#80ff80"
radius: 5
energy: 2
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
netsync: false
- type: LightBehaviour
Expand Down Expand Up @@ -359,4 +359,3 @@
- type: GroupExamine
- type: ProtectedFromStepTriggers
slots: WITHOUT_POCKET

Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
- type: ToggleableLightVisuals
- type: PointLight
enabled: false
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
radius: 4
netsync: false
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/NPCs/silicon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
enabled: false
radius: 3.5
softness: 2
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
- type: FootstepModifier
footstepSoundCollection:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
enabled: false
radius: 2.5
softness: 5
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
- type: Tag
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
storedRotation: -90
- type: PointLight
enabled: false
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
radius: 6
netsync: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
radius: 1.6
energy: 1.2
enabled: false
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
offset: "0, 0.6"
- type: Damageable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@
energy: 0.6
offset: "0, 0.4"
color: "#7CFC00"
mask: /Textures/Effects/LightMasks/double_cone.png
lightMask: ConeDouble
- type: ApcPowerReceiver
- type: ExtensionCableReceiver
- type: Battery
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
shader: unshaded
state: base
- type: PointLight
mask: /Textures/Effects/LightMasks/double_cone.png
lightMask: ConeDouble
color: "#FFE4CE"
energy: 5
radius: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
radius: 1.5
energy: 1.6
enabled: false
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
offset: "0, 0.4" # shine from the top, not bottom of the computer
castShadows: false
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Structures/Machines/nuke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
radius: 4
energy: 2.0
color: "#FF4020"
mask: /Textures/Effects/LightMasks/double_cone.png
lightMask: ConeDouble
- type: RotatingLight
speed: 120
- type: NavMapBeacon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
radius: 1.3
energy: 0.8
enabled: false
mask: /Textures/Effects/LightMasks/cone.png
lightMask: ConeSingle
autoRot: true
offset: "0, 0.1" # shine from the top, not bottom of the computer
color: "#4246b3"
Expand Down
12 changes: 12 additions & 0 deletions Resources/Prototypes/light_mask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- type: lightMask
id: ConeSingle
maskPath: /Textures/Effects/LightMasks/cone.png
lightCones:
- { direction: 0, innerWidth: 30, outerWidth: 60 }

- type: lightMask
id: ConeDouble
maskPath: /Textures/Effects/LightMasks/double_cone.png
lightCones:
- { direction: 0, innerWidth: 30, outerWidth: 60 }
- { direction: 180, innerWidth: 30, outerWidth: 60 }
Loading