From b74d1f010063767b8f78e0881d1e9eb183b07b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=AB?= Date: Sat, 26 Jul 2025 18:23:45 +0800 Subject: [PATCH 1/3] fix pos --- HelpSense/Handler/LobbyLocationHandler.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/HelpSense/Handler/LobbyLocationHandler.cs b/HelpSense/Handler/LobbyLocationHandler.cs index 7139df3..e3e1225 100644 --- a/HelpSense/Handler/LobbyLocationHandler.cs +++ b/HelpSense/Handler/LobbyLocationHandler.cs @@ -14,12 +14,12 @@ public static void TowerLocation() { LobbyPosition = Random.Range(1, 6) switch { - 1 => new Vector3(162.893f, 1019.470f, -13.430f), - 2 => new Vector3(107.698f, 1014.048f, -12.555f), - 3 => new Vector3(39.262f, 1014.112f, -31.844f), - 4 => new Vector3(-15.854f, 1014.461f, -31.543f), - 5 => new Vector3(130.483f, 993.366f, 20.601f), - _ => new Vector3(39.262f, 1014.112f, -31.844f), + 1 => new Vector3(162.893f, 319.470f, -13.430f), + 2 => new Vector3(107.698f, 314.048f, -12.555f), + 3 => new Vector3(39.262f, 314.112f, -31.844f), + 4 => new Vector3(-15.854f, 314.461f, -31.543f), + 5 => new Vector3(130.483f, 293.366f, 20.601f), + _ => new Vector3(39.262f, 314.112f, -31.844f), }; } @@ -36,13 +36,13 @@ public static void IntercomLocation() public static void MountainLocation() { - LobbyPosition = new Vector3(103.492f, 998.946f, 24.672f); + LobbyPosition = new Vector3(103.492f, 298.946f, 24.672f); } public static void ChaosLocation() { - LobbyPosition = new Vector3(-49.074f, 989.055f, -42.844f); - //LobbyPosition = new Vector3(-7.500f, 995.402f, -7.910f); + LobbyPosition = new Vector3(-49.074f, 289.055f, -42.844f); + //LobbyPosition = new Vector3(-7.500f, 295.402f, -7.910f); } } -} \ No newline at end of file +} From d09e07c5bdc3f6736978e31ede85c29b838082ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=AB?= Date: Sat, 26 Jul 2025 18:55:23 +0800 Subject: [PATCH 2/3] fix: scp029 effects --- HelpSense/API/Events/CustomEventHandler.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/HelpSense/API/Events/CustomEventHandler.cs b/HelpSense/API/Events/CustomEventHandler.cs index 3821c70..c22a3af 100644 --- a/HelpSense/API/Events/CustomEventHandler.cs +++ b/HelpSense/API/Events/CustomEventHandler.cs @@ -96,6 +96,22 @@ public class CustomEventHandler : CustomEventsHandler public static TranslateConfig TranslateConfig; public static SSSSTranslateConfig SSSSTranslateConfig; public static CommandTranslateConfig CommandTranslateConfig; + + public IEnumerator Scp029InfEffect(Player player) + { + while(true) + { + yield return Timing.WaitForSeconds(1f); + if(!player.HasEffect()) + player.EnableEffect(20); + if (!player.HasEffect()) + player.EnableEffect(2); + if (!player.HasEffect()) + player.EnableEffect(15); + if (player.GetRoleName() != "SCP-029") + yield break; + } + } public override void OnServerWaitingForPlayers() { @@ -311,6 +327,7 @@ public override void OnPlayerEscaped(PlayerEscapedEventArgs ev) player.AddItem(ItemType.SCP268); player.GetPlayerUi().CommonHint.ShowOtherHint(TranslateConfig.SCP029EscapeHint); } + Timing.RunCoroutine(Scp029InfEffect(player)); }); } if (player.GetRoleName() == "SCP-703") From 112308c68545ab5e9bf391038c37689f2c0df98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E8=92=82=E5=A4=AB?= Date: Sat, 26 Jul 2025 19:02:22 +0800 Subject: [PATCH 3/3] fix scp029 effects --- HelpSense/API/Events/CustomEventHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HelpSense/API/Events/CustomEventHandler.cs b/HelpSense/API/Events/CustomEventHandler.cs index c22a3af..15d39a8 100644 --- a/HelpSense/API/Events/CustomEventHandler.cs +++ b/HelpSense/API/Events/CustomEventHandler.cs @@ -327,7 +327,6 @@ public override void OnPlayerEscaped(PlayerEscapedEventArgs ev) player.AddItem(ItemType.SCP268); player.GetPlayerUi().CommonHint.ShowOtherHint(TranslateConfig.SCP029EscapeHint); } - Timing.RunCoroutine(Scp029InfEffect(player)); }); } if (player.GetRoleName() == "SCP-703") @@ -603,6 +602,8 @@ public override void OnServerRoundStarted() player.EnableEffect(15); player.Health = 120; + + Timing.RunCoroutine(Scp029InfEffect(player)); }; }); }