From fa4445fdc7c0988abcb14846ef0749041829d13b Mon Sep 17 00:00:00 2001 From: Valentijn Date: Sat, 30 May 2026 14:38:10 +0200 Subject: [PATCH] removed debug macro's --- Patches/LeverPatch.cs | 100 +++++++++++++++++++++--------------------- 1 file changed, 51 insertions(+), 49 deletions(-) diff --git a/Patches/LeverPatch.cs b/Patches/LeverPatch.cs index 02fbb67..14aee3b 100644 --- a/Patches/LeverPatch.cs +++ b/Patches/LeverPatch.cs @@ -25,54 +25,6 @@ public class LeverPatch LungProp[] allApparatuses = Object.FindObjectsOfType(); - // ========================================== - // QUICK DEBUG MACROS - // ========================================== - if (Keyboard.current != null) - { - // Press Numpad Minus (-) to Teleport to the UNSECURED Apparatus - if (Keyboard.current[Key.NumpadMinus].wasPressedThisFrame) - { - LungProp targetApparatus = null; - - // Find the core that is actually out in the wild, not the one on the ship - foreach (LungProp apparatus in allApparatuses) - { - if (!apparatus.isInShipRoom) - { - targetApparatus = apparatus; - break; - } - } - - // Fallback: If they are all secured, just grab any of them - if (targetApparatus == null && allApparatuses.Length > 0) - { - targetApparatus = allApparatuses[0]; - } - - if (targetApparatus != null && GameNetworkManager.Instance?.localPlayerController != null) - { - GameNetworkManager.Instance.localPlayerController.TeleportPlayer(targetApparatus.transform.position + Vector3.up); - HUDManager.Instance.DisplayTip("Debug", "Teleported to Apparatus!"); - } - } - - // Press Numpad Plus (+) to Teleport back to the Ship Lever - if (Keyboard.current[Key.NumpadPlus].wasPressedThisFrame) - { - if (GameNetworkManager.Instance?.localPlayerController != null) - { - GameNetworkManager.Instance.localPlayerController.TeleportPlayer(__instance.transform.position); - HUDManager.Instance.DisplayTip("Debug", "Teleported back to Ship!"); - } - } - } - // ========================================== - // END QUICK DEBUG MACROS - // ========================================== - - // Checking if its actually been pulled. bool isApparatusPulled = true; @@ -95,4 +47,54 @@ public class LeverPatch __instance.triggerScript.hoverTip = "Pull lever : [Start Ship]"; } } -} \ No newline at end of file +} + + +/* +// ========================================== +// QUICK DEBUG MACROS +// ========================================== +if (Keyboard.current != null) +{ + // Press Numpad Minus (-) to Teleport to the UNSECURED Apparatus + if (Keyboard.current[Key.NumpadMinus].wasPressedThisFrame) + { + LungProp targetApparatus = null; + + // Find the core that is actually out in the wild, not the one on the ship + foreach (LungProp apparatus in allApparatuses) + { + if (!apparatus.isInShipRoom) + { + targetApparatus = apparatus; + break; + } + } + + // Fallback: If they are all secured, just grab any of them + if (targetApparatus == null && allApparatuses.Length > 0) + { + targetApparatus = allApparatuses[0]; + } + + if (targetApparatus != null && GameNetworkManager.Instance?.localPlayerController != null) + { + GameNetworkManager.Instance.localPlayerController.TeleportPlayer(targetApparatus.transform.position + Vector3.up); + HUDManager.Instance.DisplayTip("Debug", "Teleported to Apparatus!"); + } + } + + // Press Numpad Plus (+) to Teleport back to the Ship Lever + if (Keyboard.current[Key.NumpadPlus].wasPressedThisFrame) + { + if (GameNetworkManager.Instance?.localPlayerController != null) + { + GameNetworkManager.Instance.localPlayerController.TeleportPlayer(__instance.transform.position); + HUDManager.Instance.DisplayTip("Debug", "Teleported back to Ship!"); + } + } +} +// ========================================== +// END QUICK DEBUG MACROS +// ========================================== +*/ \ No newline at end of file