From ddbee3aa17bc51b582fb3a3422f74a94791d9331 Mon Sep 17 00:00:00 2001 From: giplgwm Date: Sun, 9 Jun 2024 12:22:36 -0400 Subject: [PATCH] Add project files. --- Helltakercheat.sln | 31 +++ Helltakercheat/AssemblyInfo1.cs | 5 + Helltakercheat/Class1.cs | 140 ++++++++++ Helltakercheat/Helltakercheat.csproj | 319 ++++++++++++++++++++++ Helltakercheat/Properties/AssemblyInfo.cs | 36 +++ 5 files changed, 531 insertions(+) create mode 100644 Helltakercheat.sln create mode 100644 Helltakercheat/AssemblyInfo1.cs create mode 100644 Helltakercheat/Class1.cs create mode 100644 Helltakercheat/Helltakercheat.csproj create mode 100644 Helltakercheat/Properties/AssemblyInfo.cs diff --git a/Helltakercheat.sln b/Helltakercheat.sln new file mode 100644 index 0000000..f49b9e4 --- /dev/null +++ b/Helltakercheat.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34902.65 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Helltakercheat", "Helltakercheat\Helltakercheat.csproj", "{3E852543-A5D5-4917-A920-D405CE69DBFB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3E852543-A5D5-4917-A920-D405CE69DBFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3E852543-A5D5-4917-A920-D405CE69DBFB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3E852543-A5D5-4917-A920-D405CE69DBFB}.Debug|x64.ActiveCfg = Debug|x64 + {3E852543-A5D5-4917-A920-D405CE69DBFB}.Debug|x64.Build.0 = Debug|x64 + {3E852543-A5D5-4917-A920-D405CE69DBFB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3E852543-A5D5-4917-A920-D405CE69DBFB}.Release|Any CPU.Build.0 = Release|Any CPU + {3E852543-A5D5-4917-A920-D405CE69DBFB}.Release|x64.ActiveCfg = Release|x64 + {3E852543-A5D5-4917-A920-D405CE69DBFB}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {43DC379B-5094-473E-89F9-CF9ACD9D6ACE} + EndGlobalSection +EndGlobal diff --git a/Helltakercheat/AssemblyInfo1.cs b/Helltakercheat/AssemblyInfo1.cs new file mode 100644 index 0000000..17b680d --- /dev/null +++ b/Helltakercheat/AssemblyInfo1.cs @@ -0,0 +1,5 @@ +using MelonLoader; +using Helltakercheat; // The namespace of your mod class +// ... +[assembly: MelonInfo(typeof(HellCheat), "Helltaker Cheats", "0.0.1", "Lurk")] +[assembly: MelonGame()] \ No newline at end of file diff --git a/Helltakercheat/Class1.cs b/Helltakercheat/Class1.cs new file mode 100644 index 0000000..b85c739 --- /dev/null +++ b/Helltakercheat/Class1.cs @@ -0,0 +1,140 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using MelonLoader; +using UnityEngine; +using HarmonyLib; +using Helltakercheat; + +namespace Helltakercheat +{ + public class HellCheat : MelonMod + { + public Rect windowRect = new Rect(20, 20, 200, 255); + public bool noClipObstacles = false; + public bool noClipWalls = false; + public static bool maxWill = false; + public GameObject border; + + public override void OnGUI() + { + windowRect = GUI.Window(420024, windowRect, MakeGuiWork, "Helltaker cheat -"); + } + + public override void OnSceneWasLoaded(int buildIndex, string sceneName) + { + checkBoxCollider2Ds(); + } + + public void MakeGuiWork(int windowID) + { + if (GUILayout.Button("Kill all enemies")) + { + DestroyAllBreakables(); + } + noClipObstacles = GUILayout.Toggle(noClipObstacles, "No Clip Obstacles"); + noClipWalls = GUILayout.Toggle(noClipWalls, "No Clip Walls"); + + if (GUILayout.Button("TP to Goal")) + { + TPtoGoal(); + } + if (GUI.changed) + { + checkBoxCollider2Ds(); + } + + maxWill = GUILayout.Toggle(maxWill, "Max Will"); + + } + + public void checkBoxCollider2Ds() + { + GameObject[] unbreakableObjects = GameObject.FindGameObjectsWithTag("unBreakable"); + GameObject[] walls = GameObject.FindGameObjectsWithTag("wall"); + GameObject[] spikes = GameObject.FindGameObjectsWithTag("spikes"); + if (noClipObstacles) + { + // Iterate through each found object + SetActiveBoxCollider2D(unbreakableObjects, false); + SetActiveBoxCollider2D(walls, false); + SetActiveBoxCollider2D(spikes, false); + } + else + { + // Iterate through each found object + SetActiveBoxCollider2D(unbreakableObjects, true); + SetActiveBoxCollider2D(walls, true); + SetActiveBoxCollider2D(spikes, false); + } + + if (noClipWalls) + { + border = GameObject.Find("border"); + border.SetActive(false); + } + else + { + if (border != null) + { + border.SetActive(true); + } + } + } + + public void SetActiveBoxCollider2D(GameObject[] obj_list, bool active) + { + foreach (GameObject obj in obj_list) + { + if (obj.GetComponent().enabled != active) + { + obj.GetComponent().enabled = active; + } + else + { + break; + } + } + } + + public void DestroyAllBreakables() + { + GameObject[] breakableObjects = GameObject.FindGameObjectsWithTag("breakable"); + + // Iterate through each found object + foreach (GameObject breakableObject in breakableObjects) + { + GameObject.Destroy(breakableObject); + } + } + + public void TPtoGoal() + { + GameObject player = GameObject.Find("player"); + GameObject goal = GameObject.Find("demon_regular"); + if (player != null && goal != null) + { + player.transform.position = goal.transform.position - new Vector3(1, 0, 0); + } + } + + } + + [HarmonyPatch(typeof(Player), "MinusWill")] + static class WillPatch + { + private static void Postfix(Player __instance) + { + if (HellCheat.maxWill) + { + __instance.will = 49; + } + + } + } + + +} + diff --git a/Helltakercheat/Helltakercheat.csproj b/Helltakercheat/Helltakercheat.csproj new file mode 100644 index 0000000..8213ab1 --- /dev/null +++ b/Helltakercheat/Helltakercheat.csproj @@ -0,0 +1,319 @@ + + + + + Debug + AnyCPU + {3E852543-A5D5-4917-A920-D405CE69DBFB} + Library + Properties + Helltakercheat + Helltakercheat + v4.7.2 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + 7.3 + prompt + + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\MelonLoader\0Harmony.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\Assembly-CSharp.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\Assembly-CSharp-firstpass.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\MelonLoader\MelonLoader.dll + + + + + + + + + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.AccessibilityModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.AIModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.AndroidJNIModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.AnimationModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.ARModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.AssetBundleModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.AudioModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.ClothModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.ClusterInputModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.ClusterRendererModule.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.CoreModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.CrashReportingModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.DirectorModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.DSPGraphModule.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.FileSystemHttpModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.GameCenterModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.GridModule.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.HotReloadModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.ImageConversionModule.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.IMGUIModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.InputLegacyModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.InputModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.JSONSerializeModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.LocalizationModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.ParticleSystemModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.PerformanceReportingModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.Physics2DModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.PhysicsModule.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.ProfilerModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.ScreenCaptureModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.SharedInternalsModule.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.SpatialTracking.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.SpriteMaskModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.SpriteShapeModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.StreamingModule.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.SubstanceModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.TerrainModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.TerrainPhysicsModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.TextCoreModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.TextRenderingModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.TilemapModule.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.TLSModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UI.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UIElementsModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UIModule.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UmbraModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UNETModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UnityAnalyticsModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UnityConnectModule.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UnityTestProtocolModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UnityWebRequestAudioModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UnityWebRequestModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UnityWebRequestTextureModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.UnityWebRequestWWWModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.VehiclesModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.VFXModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.VideoModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.VRModule.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.WindModule.dll + + + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.XR.LegacyInputHelpers.dll + + + False + ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Helltaker\Helltaker_Data\Managed\UnityEngine.XRModule.dll + + + + + + + + + \ No newline at end of file diff --git a/Helltakercheat/Properties/AssemblyInfo.cs b/Helltakercheat/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..a906744 --- /dev/null +++ b/Helltakercheat/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Helltakercheat")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Helltakercheat")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("3e852543-a5d5-4917-a920-d405ce69dbfb")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")]