From 61be7dda82f0c8bb94976c4424a8540f0fb9d533 Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Sun, 12 Oct 2025 18:33:45 -0500 Subject: [PATCH] Maybe fix the issues with kill animations? --- MiraAPI/Networking/CustomMurderRpc.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/MiraAPI/Networking/CustomMurderRpc.cs b/MiraAPI/Networking/CustomMurderRpc.cs index 7b862e1c..c7ab968b 100644 --- a/MiraAPI/Networking/CustomMurderRpc.cs +++ b/MiraAPI/Networking/CustomMurderRpc.cs @@ -169,7 +169,14 @@ public static class CustomMurderRpc if (showKillAnim) { - HudManager.Instance.KillOverlay.ShowKillAnimation(source.Data, data); + try + { + HudManager.Instance.KillOverlay.ShowKillAnimation(source.Data, data); + } + catch + { + // ignored + } } target.cosmetics.SetNameMask(false); @@ -202,7 +209,7 @@ public static class CustomMurderRpc bool teleportMurderer = true) { var cam = Camera.main?.GetComponent(); - var isParticipant = PlayerControl.LocalPlayer == source || PlayerControl.LocalPlayer == target; + var isParticipant = source.AmOwner || target.AmOwner; var sourcePhys = source.MyPhysics; if (teleportMurderer)