From 2d0fc0d0752a1c962b25072636436967f111dd06 Mon Sep 17 00:00:00 2001 From: Mrhootyhoot1 <200413016+Mrhootyhoot1@users.noreply.github.com> Date: Sun, 12 Apr 2026 08:21:03 -0400 Subject: [PATCH 1/5] fix: AnnouncingScpTerminationEventArgs not denying the event when IsAllowed is set to false. Describe the changes Return from CassieScpTerminationAnnouncement:ONStartedPlaying if IsAllowed is set to false. What is the current behavior? It does not stop the SCP termination announcement. What is the new behavior? It stops the SCP termination announcement. Does this PR introduce a breaking change? No --- .../Patches/Events/Map/AnnouncingScpTermination.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs b/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs index 5064239e0..1162798e2 100644 --- a/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs +++ b/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs @@ -82,9 +82,12 @@ private static IEnumerable Transpiler(IEnumerable Date: Fri, 17 Apr 2026 19:35:24 -0400 Subject: [PATCH 2/5] Update EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs Co-authored-by: @Someone <45270312+Someone-193@users.noreply.github.com> --- .../Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs b/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs index 1162798e2..43394a795 100644 --- a/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs +++ b/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs @@ -41,6 +41,7 @@ private static IEnumerable Transpiler(IEnumerable)); + LocalBuilder footprint = generator.DeclareLocal(typeof(Footprint)); ExceptionBlock beginTry = new(ExceptionBlockType.BeginExceptionBlock); ExceptionBlock beginFinally = new(ExceptionBlockType.BeginFinallyBlock); From 7adc6d68a34e2103d417d4a74c512aa15c7a2ca7 Mon Sep 17 00:00:00 2001 From: Liam <200413016+Mrhootyhoot1@users.noreply.github.com> Date: Fri, 17 Apr 2026 19:35:34 -0400 Subject: [PATCH 3/5] Update EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs Co-authored-by: @Someone <45270312+Someone-193@users.noreply.github.com> --- .../Patches/Events/Map/AnnouncingScpTermination.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs b/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs index 43394a795..2504e6741 100644 --- a/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs +++ b/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs @@ -79,6 +79,8 @@ private static IEnumerable Transpiler(IEnumerable), nameof(IEnumerator.Current))), + new(OpCodes.Stloc_S, footprint), + new(OpCodes.Ldloc_S, footprint), new(OpCodes.Call, Method(typeof(Player), nameof(Player.Get), new[] { typeof(Footprint) })), new(OpCodes.Ldloc_S, cause), new(OpCodes.Newobj, Constructor(typeof(AnnouncingScpTerminationEventArgs), new[] { typeof(Player), typeof(string) })), From 334f268b6dc77371da42f30c1bb267ae43dee3cb Mon Sep 17 00:00:00 2001 From: Liam <200413016+Mrhootyhoot1@users.noreply.github.com> Date: Fri, 17 Apr 2026 19:35:44 -0400 Subject: [PATCH 4/5] Update EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs Co-authored-by: @Someone <45270312+Someone-193@users.noreply.github.com> --- .../Patches/Events/Map/AnnouncingScpTermination.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs b/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs index 2504e6741..39ee240d8 100644 --- a/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs +++ b/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs @@ -90,7 +90,12 @@ private static IEnumerable Transpiler(IEnumerable), nameof(List<>.Remove))), // entry point new CodeInstruction(OpCodes.Ldloc_S, enumerator).WithLabels(entryLabel), From 4b9a82c13b95c16892c79d239752a486397c7ff4 Mon Sep 17 00:00:00 2001 From: Liam <200413016+Mrhootyhoot1@users.noreply.github.com> Date: Wed, 29 Apr 2026 19:07:19 -0400 Subject: [PATCH 5/5] Update EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs Co-authored-by: @Someone <45270312+Someone-193@users.noreply.github.com> --- .../Patches/Events/Map/AnnouncingScpTermination.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs b/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs index 39ee240d8..1a0b5d511 100644 --- a/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs +++ b/EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs @@ -95,7 +95,7 @@ private static IEnumerable Transpiler(IEnumerable), nameof(List<>.Remove))), + new(OpCodes.Callvirt, Method(typeof(List), nameof(List.Remove))), // entry point new CodeInstruction(OpCodes.Ldloc_S, enumerator).WithLabels(entryLabel),