using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using HarmonyLib; using Il2Cpp; using MelonLoader; using ScottJumpMod; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: MelonInfo(typeof(Core), "Scott Jump Mod V2", "2.0.0", "Scott", null)] [assembly: MelonGame(null, null)] [assembly: AssemblyTitle("ClassLibrary1")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ClassLibrary1")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("6c25417f-0ba0-4ddc-98ac-dce960330424")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace ScottJumpMod; public class Core : MelonMod { public static bool jumpEnabled = true; public static float jumpForce = 55f; private static bool showMenu = false; private static readonly float[] presets = new float[5] { 10f, 25f, 55f, 100f, 200f }; private static readonly string[] presetNames = new string[5] { "Low", "Normal", "High", "Ultra", "Moon" }; public override void OnUpdate() { if (Input.GetKeyDown((KeyCode)287)) { showMenu = !showMenu; } } public override void OnGUI() { //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Expected O, but got Unknown //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_0106: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_0199: Unknown result type (might be due to invalid IL or missing references) //IL_01c1: Unknown result type (might be due to invalid IL or missing references) //IL_01c7: Expected O, but got Unknown //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01f5: Unknown result type (might be due to invalid IL or missing references) if (!showMenu) { return; } GUI.Box(new Rect(20f, 20f, 300f, 350f), ""); GUIStyle val = new GUIStyle(GUI.skin.label); val.fontSize = 18; val.fontStyle = (FontStyle)1; val.normal.textColor = Color.cyan; GUI.Label(new Rect(30f, 25f, 280f, 30f), "Scott Jump Mod V2", val); GUI.Label(new Rect(30f, 60f, 280f, 25f), $"Jump Force: {jumpForce:F0}"); jumpForce = GUI.HorizontalSlider(new Rect(30f, 85f, 260f, 20f), jumpForce, 1f, 300f); GUI.Label(new Rect(30f, 115f, 280f, 25f), "Presets:"); for (int i = 0; i < presets.Length; i++) { if (GUI.Button(new Rect((float)(30 + i * 56), 140f, 50f, 25f), presetNames[i])) { jumpForce = presets[i]; } } string text = (jumpEnabled ? "Mod: ON" : "Mod: OFF"); if (GUI.Button(new Rect(30f, 180f, 260f, 35f), text)) { jumpEnabled = !jumpEnabled; } GUIStyle val2 = new GUIStyle(GUI.skin.label); val2.normal.textColor = Color.gray; val2.fontSize = 11; GUI.Label(new Rect(30f, 330f, 280f, 20f), "Press F6 to close", val2); } } [HarmonyPatch(typeof(PlayerMovement), "Jump")] public class JumpPatch { private static void Prefix(ref float __0) { if (Core.jumpEnabled) { __0 = Core.jumpForce; } } }