From e458ec9fcd73119d453c12bb8007a643c5612c90 Mon Sep 17 00:00:00 2001 From: rhailrake <49613070+rhailrake@users.noreply.github.com> Date: Fri, 28 Apr 2023 07:13:28 +0600 Subject: [PATCH] [add] New ghostrespawn system --- Content.Client/Ghost/GhostSystem.cs | 6 ++ .../Systems/Ghost/GhostUIController.cs | 9 +++ .../Systems/Ghost/Widgets/GhostGui.xaml | 1 + .../Systems/Ghost/Widgets/GhostGui.xaml.cs | 4 + .../GameTicking/GameTicker.GamePreset.cs | 7 ++ .../GameTicking/GameTicker.Spawning.cs | 2 + Content.Server/Ghost/GhostSystem.cs | 74 +++++++++++++++++++ Content.Shared/Ghost/SharedGhostSystem.cs | 6 ++ Content.Shared/White/WhiteCVars.cs | 10 +++ 9 files changed, 119 insertions(+) diff --git a/Content.Client/Ghost/GhostSystem.cs b/Content.Client/Ghost/GhostSystem.cs index f6913d2578..f60b92f13e 100644 --- a/Content.Client/Ghost/GhostSystem.cs +++ b/Content.Client/Ghost/GhostSystem.cs @@ -182,5 +182,11 @@ namespace Content.Client.Ghost { GhostVisibility = !GhostVisibility; } + + public void ReturnToRound() + { + var msg = new GhostReturnToRoundRequest(); + RaiseNetworkEvent(msg); + } } } diff --git a/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs b/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs index 12d6c65953..e40757cf85 100644 --- a/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs +++ b/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs @@ -120,6 +120,8 @@ public sealed class GhostUIController : UIController, IOnSystemChanged