aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui/overlay/DeathOverlay.Network.cs
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-07-28 22:06:03 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-07-28 22:06:03 +0100
commit1e5c6393a6b29eb00dbb8fb137d86647cb0c356b (patch)
tree95cbba0e7ade6bd97675480c2559c8e01f74a635 /code/ui/overlay/DeathOverlay.Network.cs
parentf137095304f456b06229e4d17ee8249e974fceaf (diff)
Add TryUnstuck and death overlay
Diffstat (limited to 'code/ui/overlay/DeathOverlay.Network.cs')
-rw-r--r--code/ui/overlay/DeathOverlay.Network.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/code/ui/overlay/DeathOverlay.Network.cs b/code/ui/overlay/DeathOverlay.Network.cs
new file mode 100644
index 0000000..f1f3bb2
--- /dev/null
+++ b/code/ui/overlay/DeathOverlay.Network.cs
@@ -0,0 +1,18 @@
+using Sandbox;
+
+namespace MurderGame;
+
+public partial class DeathOverlay
+{
+ [ClientRpc]
+ public static void Show( )
+ {
+ if (Instance != null) Instance.ShowOverlay = true;
+ }
+
+ [ClientRpc]
+ public static void Hide()
+ {
+ if (Instance != null) Instance.ShowOverlay = false;
+ }
+}