Light sources now follow the direction of parent Turrets + changed Controller's output signal and Turret's input signal to an angle
This commit is contained in:
@@ -37,6 +37,8 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
}
|
||||
|
||||
public float Rotation;
|
||||
|
||||
[Editable(ToolTip = "Should structures cast shadows when light from this light source hits them. "+
|
||||
"Disabling shadows increases the performance of the game, and is recommended for lights with a short range."), Serialize(true, true)]
|
||||
public bool CastShadows
|
||||
@@ -155,6 +157,12 @@ namespace Barotrauma.Items.Components
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
#if CLIENT
|
||||
light.Rotation = -Rotation;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (powerConsumption == 0.0f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user