]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Port FTL arrival effect fix from https://github.com/new-frontiers-14/frontier-station...
authorCrude Oil <124208219+CroilBird@users.noreply.github.com>
Mon, 22 Dec 2025 21:01:56 +0000 (22:01 +0100)
committerGitHub <noreply@github.com>
Mon, 22 Dec 2025 21:01:56 +0000 (21:01 +0000)
Port FTL arrival fix from https://github.com/new-frontiers-14/frontier-station-14/pull/3495

Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs
Resources/Prototypes/Entities/Effects/shuttle.yml

index 5e3029333e86d2651a917e1bddc446450b46015d..57ebf13e73005b577b9aff37131b0ad266181421 100644 (file)
@@ -203,7 +203,8 @@ public sealed partial class DockingSystem
                     var spawnPosition = new EntityCoordinates(targetGridXform.MapUid!.Value, _transform.ToMapCoordinates(gridPosition).Position);
 
                     // TODO: use tight bounds
-                    var dockedBounds = new Box2Rotated(shuttleAABB.Translated(spawnPosition.Position), targetAngle, spawnPosition.Position);
+                    var targetWorldAngle = (targetGridAngle + targetAngle).Reduced();
+                    var dockedBounds = new Box2Rotated(shuttleAABB.Translated(spawnPosition.Position), targetWorldAngle, spawnPosition.Position);
 
                     // Check if there's no intersecting grids (AKA oh god it's docking at cargo).
                     grids.Clear();
index 4dae76a48ac1127e7de31bfbe2a8d1cd3c216eee..9b1fc1e4c379e902f4fe95944b47ff5ca943bebc 100644 (file)
@@ -4,7 +4,7 @@
   description: Visualizer for shuttles arriving. You shouldn't see this!
   components:
   - type: Transform
-    noRot: true
+    noRot: false
     gridTraversal: false
   - type: FtlVisualizer
     sprite: