]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix pod launch offset (#25855)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 6 Mar 2024 01:44:26 +0000 (12:44 +1100)
committerGitHub <noreply@github.com>
Wed, 6 Mar 2024 01:44:26 +0000 (12:44 +1100)
Was too lazy to fix and forgot.

Content.Server/Shuttles/Systems/EmergencyShuttleSystem.Console.cs

index a28ae07b8a8ddf0e1a9f928e12a919dfe2a410c0..6d2c28edcfcde579dba1c525cee78a0100092e5c 100644 (file)
@@ -178,13 +178,11 @@ public sealed partial class EmergencyShuttleSystem
             }
 
             var podQuery = AllEntityQuery<EscapePodComponent>();
-            var podLaunchOffset = 0.5f;
 
             // Stagger launches coz funny
             while (podQuery.MoveNext(out _, out var pod))
             {
-                pod.LaunchTime = _timing.CurTime + TimeSpan.FromSeconds(podLaunchOffset);
-                podLaunchOffset += _random.NextFloat(0.5f, 2.5f);
+                pod.LaunchTime = _timing.CurTime + TimeSpan.FromSeconds(_random.NextFloat(0.05f, 0.75f));
             }
         }
 
@@ -195,7 +193,9 @@ public sealed partial class EmergencyShuttleSystem
             var stationUid = _station.GetOwningStation(uid);
 
             if (!TryComp<StationCentcommComponent>(stationUid, out var centcomm) ||
-                Deleted(centcomm.Entity) || pod.LaunchTime == null || pod.LaunchTime < _timing.CurTime)
+                Deleted(centcomm.Entity) ||
+                pod.LaunchTime == null ||
+                pod.LaunchTime > _timing.CurTime)
             {
                 continue;
             }