]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Eject mech pilot alert (#31649)
authorGorox221 <139872389+Gorox221@users.noreply.github.com>
Fri, 13 Sep 2024 14:01:26 +0000 (17:01 +0300)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2024 14:01:26 +0000 (00:01 +1000)
* Bruh

* well

* yes

Content.Server/Mech/Systems/MechSystem.cs
Resources/Locale/en-US/mech/mech.ftl

index b738d28b4674020730c06c1c3e98a3fad5fc96cb..9da96a76f8e910d4d9b23fefedec6ed9da315192 100644 (file)
@@ -211,8 +211,11 @@ public sealed partial class MechSystem : SharedMechSystem
                         return;
                     }
 
-                    var doAfterEventArgs = new DoAfterArgs(EntityManager, args.User, component.ExitDelay,
-                        new MechExitEvent(), uid, target: uid);
+                    var doAfterEventArgs = new DoAfterArgs(EntityManager, args.User, component.ExitDelay, new MechExitEvent(), uid, target: uid)
+                    {
+                        BreakOnMove = true,
+                    };
+                    _popup.PopupEntity(Loc.GetString("mech-eject-pilot-alert", ("item", uid), ("user", args.User)), uid, PopupType.Large);
 
                     _doAfter.TryStartDoAfter(doAfterEventArgs);
                 }
index 9d4f7ef0e079a01ccb67739a738b48d6f327929f..7fac0387edbaab50215f6553066f4bc4c4afb527 100644 (file)
@@ -17,3 +17,5 @@ mech-energy-missing = Energy: MISSING
 mech-slot-display = Open Slots: {$amount}
 
 mech-no-enter = You cannot pilot this.
+
+mech-eject-pilot-alert = {$user} is pulling the pilot out of the {$item}!
\ No newline at end of file