Merge remote-tracking branch 'upstream/stable' into ed-30-04-2025-upstream-sync
# Conflicts: # Content.Client/Parallax/ParallaxControl.cs # Content.Client/UserInterface/Systems/Storage/Controls/ItemGridPiece.cs # Content.IntegrationTests/Tests/PostMapInitTest.cs # Content.Server/Chat/Managers/ChatManager.cs # Content.Server/Fluids/EntitySystems/PuddleSystem.Evaporation.cs # Content.Server/Labels/Label/LabelSystem.cs # Content.Shared/Actions/SharedActionsSystem.cs # Content.Shared/Fluids/Components/EvaporationComponent.cs # Content.Shared/Labels/EntitySystems/SharedLabelSystem.cs # README.md # Resources/Prototypes/Entities/Mobs/Player/admin_ghost.yml # Resources/Prototypes/Maps/Pools/deathmatch.yml # Resources/Prototypes/Maps/arenas.yml
This commit is contained in:
@@ -262,7 +262,7 @@ public sealed partial class ShuttleSystem
|
||||
}
|
||||
}
|
||||
|
||||
if (HasComp<PreventPilotComponent>(shuttleUid))
|
||||
if (HasComp<PreventPilotComponent>(shuttleUid) || HasComp<PreventFTLComponent>(shuttleUid))
|
||||
{
|
||||
reason = Loc.GetString("shuttle-console-prevent");
|
||||
return false;
|
||||
@@ -384,8 +384,6 @@ public sealed partial class ShuttleSystem
|
||||
_audio.SetGridAudio(audio);
|
||||
component.StartupStream = audio?.Entity;
|
||||
|
||||
// TODO: Play previs here for docking arrival.
|
||||
|
||||
// Make sure the map is setup before we leave to avoid pop-in (e.g. parallax).
|
||||
EnsureFTLMap();
|
||||
return true;
|
||||
@@ -469,7 +467,8 @@ public sealed partial class ShuttleSystem
|
||||
|
||||
if (entity.Comp1.VisualizerProto != null)
|
||||
{
|
||||
comp.VisualizerEntity = SpawnAtPosition(entity.Comp1.VisualizerProto, entity.Comp1.TargetCoordinates);
|
||||
comp.VisualizerEntity = SpawnAttachedTo(entity.Comp1.VisualizerProto, entity.Comp1.TargetCoordinates);
|
||||
DebugTools.Assert(Transform(comp.VisualizerEntity.Value).ParentUid == entity.Comp1.TargetCoordinates.EntityId);
|
||||
var visuals = Comp<FtlVisualizerComponent>(comp.VisualizerEntity.Value);
|
||||
visuals.Grid = entity.Owner;
|
||||
Dirty(comp.VisualizerEntity.Value, visuals);
|
||||
@@ -775,7 +774,7 @@ public sealed partial class ShuttleSystem
|
||||
// Set position
|
||||
var mapCoordinates = _transform.ToMapCoordinates(config.Coordinates);
|
||||
var mapUid = _mapSystem.GetMap(mapCoordinates.MapId);
|
||||
_transform.SetCoordinates(shuttle.Owner, shuttle.Comp, new EntityCoordinates(mapUid, mapCoordinates.Position), rotation: config.Angle);
|
||||
_transform.SetCoordinates(shuttle.Owner, shuttle.Comp, new EntityCoordinates(mapUid, mapCoordinates.Position), rotation: config.Angle + _transform.GetWorldRotation(config.Coordinates.EntityId));
|
||||
|
||||
// Connect everything
|
||||
foreach (var (dockAUid, dockBUid, dockA, dockB) in config.Docks)
|
||||
|
||||
Reference in New Issue
Block a user