From 6c48699da6adb4e89bbf7fbe35077f0685a6a72b Mon Sep 17 00:00:00 2001 From: themias <89101928+themias@users.noreply.github.com> Date: Wed, 18 May 2022 18:00:29 -0400 Subject: [PATCH] Fix hard hat lights (#8265) --- .../Entities/Clothing/Head/hardhats.yml | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Resources/Prototypes/Entities/Clothing/Head/hardhats.yml b/Resources/Prototypes/Entities/Clothing/Head/hardhats.yml index d1dec87e70..1d25b11b69 100644 --- a/Resources/Prototypes/Entities/Clothing/Head/hardhats.yml +++ b/Resources/Prototypes/Entities/Clothing/Head/hardhats.yml @@ -4,7 +4,7 @@ abstract: true components: - type: Sprite - netsync: true + netsync: false layers: - state: icon - state: light-icon @@ -14,13 +14,29 @@ - type: Clothing HeldPrefix: off - type: PointLight + netsync: false enabled: false + mask: /Textures/Effects/LightMasks/cone.png + autoRot: true radius: 3 - type: Appearance visuals: - type: FlashLightVisualizer - type: HandheldLight - addPrefix: true + addPrefix: false + - type: ToggleableLightVisuals + spriteLayer: light + inhandVisuals: + left: + - state: on-inhand-left + shader: unshaded + right: + - state: on-inhand-right + shader: unshaded + clothingVisuals: + head: + - state: on-equipped-HELMET + shader: unshaded - type: PowerCellSlot cellSlot: startingItem: PowerCellSmallHigh