Remove server-side sprites from ExpendableLightComponent (#13516)

This commit is contained in:
Leon Friedrich
2023-01-17 22:29:35 +13:00
committed by GitHub
parent a22d87e24e
commit 1459e2138b
4 changed files with 68 additions and 106 deletions

View File

@@ -11,8 +11,6 @@
spentDesc: expendable-light-spent-glowstick-desc
glowDuration: 900 # time in seconds
fadeOutDuration: 300
iconStateOn: glowstick_lit
iconStateSpent: glowstick_unlit
turnOnBehaviourID: turn_on
fadeOutBehaviourID: fade_out
litSound:
@@ -33,6 +31,8 @@
- type: Appearance
visuals:
- type: ExpendableLightVisualizer
iconStateOn: glowstick_lit
iconStateSpent: glowstick_unlit
- type: PointLight
enabled: false
color: "#00FF00"
@@ -70,17 +70,9 @@
components:
- type: ExpendableLight
spentName: expendable-light-spent-red-glowstick-name
spentDesc: expendable-light-spent-glowstick-desc
glowDuration: 900
fadeOutDuration: 300
iconStateOn: glowstick_lit
iconStateSpent: glowstick_unlit
turnOnBehaviourID: turn_on
fadeOutBehaviourID: fade_out
litSound:
path: /Audio/Items/Handcuffs/rope_breakout.ogg
glowDuration: 10 # time in seconds
fadeOutDuration: 5
- type: Sprite
sprite: Objects/Misc/glowstick.rsi
layers:
- state: glowstick_base
- state: glowstick_glow
@@ -89,9 +81,6 @@
shader: unshaded
- state: glowstick_unlit
color: "#FF0000"
- type: Item
sprite: Objects/Misc/glowstick.rsi
heldPrefix: unlit
- type: PointLight
enabled: false
color: "#FF0000"
@@ -105,17 +94,7 @@
components:
- type: ExpendableLight
spentName: expendable-light-spent-purple-glowstick-name
spentDesc: expendable-light-spent-glowstick-desc
glowDuration: 900
fadeOutDuration: 300
iconStateOn: glowstick_lit
iconStateSpent: glowstick_unlit
turnOnBehaviourID: turn_on
fadeOutBehaviourID: fade_out
litSound:
path: /Audio/Items/Handcuffs/rope_breakout.ogg
- type: Sprite
sprite: Objects/Misc/glowstick.rsi
layers:
- state: glowstick_base
- state: glowstick_glow
@@ -124,9 +103,6 @@
shader: unshaded
- state: glowstick_unlit
color: "#FF00FF"
- type: Item
sprite: Objects/Misc/glowstick.rsi
heldPrefix: unlit
- type: PointLight
enabled: false
color: "#FF00FF"
@@ -140,15 +116,6 @@
components:
- type: ExpendableLight
spentName: expendable-light-spent-yellow-glowstick-name
spentDesc: expendable-light-spent-glowstick-desc
glowDuration: 900
fadeOutDuration: 300
iconStateOn: glowstick_lit
iconStateSpent: glowstick_unlit
turnOnBehaviourID: turn_on
fadeOutBehaviourID: fade_out
litSound:
path: /Audio/Items/Handcuffs/rope_breakout.ogg
- type: Sprite
sprite: Objects/Misc/glowstick.rsi
layers:
@@ -159,9 +126,6 @@
shader: unshaded
- state: glowstick_unlit
color: "#FFFF00"
- type: Item
sprite: Objects/Misc/glowstick.rsi
heldPrefix: unlit
- type: PointLight
enabled: false
color: "#FFFF00"
@@ -175,15 +139,6 @@
components:
- type: ExpendableLight
spentName: expendable-light-spent-blue-glowstick-name
spentDesc: expendable-light-spent-glowstick-desc
glowDuration: 900
fadeOutDuration: 300
iconStateOn: glowstick_lit
iconStateSpent: glowstick_unlit
turnOnBehaviourID: turn_on
fadeOutBehaviourID: fade_out
litSound:
path: /Audio/Items/Handcuffs/rope_breakout.ogg
- type: Sprite
sprite: Objects/Misc/glowstick.rsi
layers:
@@ -194,8 +149,6 @@
shader: unshaded
- state: glowstick_unlit
color: "#0000FF"
- type: Item
sprite: Objects/Misc/glowstick.rsi
heldPrefix: unlit
- type: PointLight
enabled: false
@@ -210,6 +163,7 @@
name: light pulse test
parent: BaseItem
id: LightBehaviourTest1
noSpawn: true
components:
- type: Sprite
sprite: Objects/Misc/glowstick.rsi
@@ -240,6 +194,7 @@
name: color cycle test
parent: BaseItem
id: LightBehaviourTest2
noSpawn: true
components:
- type: Sprite
sprite: Objects/Misc/glowstick.rsi
@@ -271,6 +226,7 @@
name: multi-behaviour light test
parent: BaseItem
id: LightBehaviourTest3
noSpawn: true
components:
- type: Sprite
sprite: Objects/Misc/glowstick.rsi
@@ -310,6 +266,7 @@
name: light fade in test
parent: BaseItem
id: LightBehaviourTest4
noSpawn: true
components:
- type: Sprite
sprite: Objects/Misc/glowstick.rsi
@@ -340,6 +297,7 @@
name: light pulse radius test
parent: BaseItem
id: LightBehaviourTest5
noSpawn: true
components:
- type: Sprite
sprite: Objects/Misc/glowstick.rsi
@@ -371,6 +329,7 @@
name: light randomize radius test
parent: BaseItem
id: LightBehaviourTest6
noSpawn: true
components:
- type: Sprite
sprite: Objects/Misc/glowstick.rsi