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:
juanjp600
2018-03-07 22:53:28 -03:00
parent 3bfca8c67d
commit 82dcbc3ae8
4 changed files with 84 additions and 29 deletions
@@ -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)
{