Files
wwdpublic/Content.Server/Shuttles/Components/DockingComponent.cs
Will-Oliver-Br 6c121b22dd Port Pod Dock Fix (#2439)
# Description

Port fix for pods escape from
[Harmony](https://github.com/ss14-harmony/ss14-harmony)
Prs:
https://github.com/ss14-harmony/ss14-harmony/pull/364
https://github.com/ss14-harmony/ss14-harmony/pull/372

---

<details><summary><h1>Media</h1></summary>
<p>


https://github.com/user-attachments/assets/0ca72881-fb99-4544-8e4b-44b929cd0f6a

</p>
</details>

---

# Changelog

🆑 Zap527, spanky-spanky and Will-Oliver-Br
- fix: Escape pods now correctly dock at centcomm.

---------

Co-authored-by: jajsha <corbinbinouche7@gmail.com>
Co-authored-by: Spanky <scott@wearejacob.com>
2025-07-12 01:48:18 +10:00

45 lines
1.3 KiB
C#

using Content.Shared.Shuttles.Components;
using Robust.Shared.Physics.Dynamics.Joints;
namespace Content.Server.Shuttles.Components
{
[RegisterComponent]
public sealed partial class DockingComponent : SharedDockingComponent
{
[DataField("dockedWith")]
public EntityUid? DockedWith;
[ViewVariables]
public Joint? DockJoint;
[DataField("dockJointId")]
public string? DockJointId;
[ViewVariables]
public override bool Docked => DockedWith != null;
// Harmony
/// <summary>
/// True if there is currently a grid in FTL trying to dock here.
/// </summary>
[DataField]
public bool QueuedDocked = false;
// End Harmony
/// <summary>
/// Color that gets shown on the radar screen.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("radarColor")]
public Color RadarColor = Color.DarkViolet;
/// <summary>
/// Color that gets shown on the radar screen when the dock is highlighted.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("highlightedRadarColor")]
public Color HighlightedRadarColor = Color.Magenta;
[ViewVariables]
public int PathfindHandle = -1;
}
}