Add point light to burning entities (#12959)
This commit is contained in:
@@ -18,4 +18,25 @@ public sealed class FireVisualsComponent : Component
|
||||
|
||||
[DataField("sprite")]
|
||||
public string? Sprite;
|
||||
|
||||
[DataField("lightEnergyPerStack")]
|
||||
public float LightEnergyPerStack = 0.5f;
|
||||
|
||||
[DataField("lightRadiusPerStack")]
|
||||
public float LightRadiusPerStack = 0.3f;
|
||||
|
||||
[DataField("maxLightEnergy")]
|
||||
public float MaxLightEnergy = 10f;
|
||||
|
||||
[DataField("maxLightRadius")]
|
||||
public float MaxLightRadius = 4f;
|
||||
|
||||
[DataField("lightColor")]
|
||||
public Color LightColor = Color.Orange;
|
||||
|
||||
/// <summary>
|
||||
/// Client side point-light entity. We use this instead of directly adding a light to
|
||||
/// the burning entity as entities don't support having multiple point-lights.
|
||||
/// </summary>
|
||||
public EntityUid? LightEntity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user