New gyroscope sprite for the shuttle (#5617)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
@@ -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))
|
||||
|
||||
@@ -84,3 +84,11 @@
|
||||
- state: thrust_burn_unshaded
|
||||
map: ["enum.ThrusterVisualLayers.ThrustingUnshaded"]
|
||||
shader: unshaded
|
||||
- type: PointLight
|
||||
radius: 1.3
|
||||
energy: 0.8
|
||||
enabled: false
|
||||
mask: /Textures/Effects/LightMasks/cone.png
|
||||
autoRot: true
|
||||
offset: "0, 0.1" # shine from the top, not bottom of the computer
|
||||
color: "#4246b3"
|
||||
|
||||
|
Before Width: | Height: | Size: 687 B After Width: | Height: | Size: 3.6 KiB |
@@ -4,7 +4,7 @@
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/tree/23e73e051a838bc190a589d6d464a318c641b6a5",
|
||||
"copyright": "Made with love by Shaeone",
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"states": [
|
||||
{
|
||||
@@ -17,8 +17,6 @@
|
||||
"name": "thrust_burn",
|
||||
"delays": [
|
||||
[
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
@@ -30,8 +28,6 @@
|
||||
"name": "thrust_burn_unshaded",
|
||||
"delays": [
|
||||
[
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
|
||||
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 3.2 KiB |