New gyroscope sprite for the shuttle (#5617)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
shaeone
2021-12-03 10:39:17 +01:00
committed by GitHub
parent 225d409308
commit 705db5596c
7 changed files with 22 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ using Content.Shared.Interaction;
using Content.Shared.Maps;
using Content.Shared.Physics;
using Content.Shared.Shuttles.Components;
using Robust.Server.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Localization;
using Robust.Shared.Log;
@@ -233,7 +234,7 @@ namespace Content.Server.Shuttles.EntitySystems
if (!EntityManager.TryGetComponent(grid.GridEntityId, out ShuttleComponent? shuttleComponent)) return;
Logger.DebugS("thruster", $"Enabled thruster {uid}");
// Logger.DebugS("thruster", $"Enabled thruster {uid}");
switch (component.Type)
{
@@ -277,6 +278,11 @@ namespace Content.Server.Shuttles.EntitySystems
appearanceComponent.SetData(ThrusterVisualState.State, true);
}
if (EntityManager.TryGetComponent(uid, out PointLightComponent? pointLightComponent))
{
pointLightComponent.Enabled = true;
}
_ambient.SetAmbience(uid, true);
}
@@ -293,7 +299,7 @@ namespace Content.Server.Shuttles.EntitySystems
if (!EntityManager.TryGetComponent(grid.GridEntityId, out ShuttleComponent? shuttleComponent)) return;
Logger.DebugS("thruster", $"Disabled thruster {uid}");
// Logger.DebugS("thruster", $"Disabled thruster {uid}");
switch (component.Type)
{
@@ -319,6 +325,11 @@ namespace Content.Server.Shuttles.EntitySystems
appearanceComponent.SetData(ThrusterVisualState.State, false);
}
if (EntityManager.TryGetComponent(uid, out PointLightComponent? pointLightComponent))
{
pointLightComponent.Enabled = false;
}
_ambient.SetAmbience(uid, false);
if (EntityManager.TryGetComponent(uid, out PhysicsComponent? physicsComponent))