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:
@@ -29,6 +29,15 @@ namespace Content.Server.Light.Components
|
||||
[DataField("BurningTemperature")]
|
||||
public int BurningTemperature = 1400;
|
||||
|
||||
[DataField("lightEnergy")]
|
||||
public float lightEnergy = 0.8f;
|
||||
|
||||
[DataField("lightRadius")]
|
||||
public float lightRadius = 10;
|
||||
|
||||
[DataField("lightSoftness")]
|
||||
public float lightSoftness = 1;
|
||||
|
||||
[DataField("PowerUse")]
|
||||
public int PowerUse = 40;
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ using Robust.Shared.Analyzers;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Light.Components
|
||||
@@ -25,8 +27,8 @@ namespace Content.Server.Light.Components
|
||||
[DataField("turnOnSound")]
|
||||
public SoundSpecifier TurnOnSound = new SoundPathSpecifier("/Audio/Machines/light_tube_on.ogg");
|
||||
|
||||
[DataField("hasLampOnSpawn")]
|
||||
public bool HasLampOnSpawn = true;
|
||||
[DataField("hasLampOnSpawn", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string? HasLampOnSpawn = null;
|
||||
|
||||
[DataField("bulb")]
|
||||
public LightBulbType BulbType;
|
||||
|
||||
Reference in New Issue
Block a user