fixed for .net6 & newest MelonLoader

This commit is contained in:
2023-01-08 18:34:24 +01:00
parent 735b9d61f7
commit 0fcb62ee6d
8 changed files with 174 additions and 238 deletions

View File

@@ -1,37 +1,25 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16 # Visual Studio Version 17
VisualStudioVersion = 16.0.28729.10 VisualStudioVersion = 17.1.32407.343
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevourClient", "DevourClient\DevourClient.csproj", "{87349803-31DC-462A-87A3-677CD23AFBA7}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevourClient", "DevourClient\DevourClient.csproj", "{87349803-31DC-462A-87A3-677CD23AFBA7}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|x64 = Release|x64
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{87349803-31DC-462A-87A3-677CD23AFBA7}.Debug|Any CPU.ActiveCfg = Debug|x64 {87349803-31DC-462A-87A3-677CD23AFBA7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{87349803-31DC-462A-87A3-677CD23AFBA7}.Debug|Any CPU.Build.0 = Debug|x64 {87349803-31DC-462A-87A3-677CD23AFBA7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{87349803-31DC-462A-87A3-677CD23AFBA7}.Debug|Mixed Platforms.ActiveCfg = Debug|x64 {87349803-31DC-462A-87A3-677CD23AFBA7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{87349803-31DC-462A-87A3-677CD23AFBA7}.Debug|Mixed Platforms.Build.0 = Debug|x64 {87349803-31DC-462A-87A3-677CD23AFBA7}.Release|Any CPU.Build.0 = Release|Any CPU
{87349803-31DC-462A-87A3-677CD23AFBA7}.Debug|x64.ActiveCfg = Debug|x64
{87349803-31DC-462A-87A3-677CD23AFBA7}.Debug|x64.Build.0 = Debug|x64
{87349803-31DC-462A-87A3-677CD23AFBA7}.Release|Any CPU.ActiveCfg = Release|x64
{87349803-31DC-462A-87A3-677CD23AFBA7}.Release|Any CPU.Build.0 = Release|x64
{87349803-31DC-462A-87A3-677CD23AFBA7}.Release|Mixed Platforms.ActiveCfg = Release|x64
{87349803-31DC-462A-87A3-677CD23AFBA7}.Release|Mixed Platforms.Build.0 = Release|x64
{87349803-31DC-462A-87A3-677CD23AFBA7}.Release|x64.ActiveCfg = Release|x64
{87349803-31DC-462A-87A3-677CD23AFBA7}.Release|x64.Build.0 = Release|x64
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {99B5936A-A0A9-48E0-98C4-105DAEB535C3} SolutionGuid = {CC319521-F66A-4BE0-9D8F-BD285A35C847}
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal

View File

@@ -1,114 +1,65 @@
<?xml version="1.0" encoding="utf-8"?> <Project Sdk="Microsoft.NET.Sdk">
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <TargetFramework>net6.0</TargetFramework>
<Platform Condition=" '$(Platform)' == '' ">x64</Platform> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<ProjectGuid>{87349803-31DC-462A-87A3-677CD23AFBA7}</ProjectGuid> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<RootNamespace>DevourClient</RootNamespace>
<AssemblyName>DevourClient</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<PlatformTarget>x64</PlatformTarget> <WarningLevel>0</WarningLevel>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PlatformTarget>x64</PlatformTarget> <WarningLevel>0</WarningLevel>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="0Harmony, Version=2.9.0.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="0Harmony">
<SpecificVersion>False</SpecificVersion> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\net6\0Harmony.dll</HintPath>
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\0Harmony.dll</HintPath>
</Reference> </Reference>
<Reference Include="Assembly-CSharp"> <Reference Include="Assembly-CSharp">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\Assembly-CSharp.dll</HintPath> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\Assembly-CSharp.dll</HintPath>
</Reference> </Reference>
<Reference Include="BehaviorDesigner.Runtime, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="Il2CppBehaviorDesigner.Runtime">
<SpecificVersion>False</SpecificVersion> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\Il2CppBehaviorDesigner.Runtime.dll</HintPath>
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\BehaviorDesigner.Runtime.dll</HintPath>
</Reference> </Reference>
<Reference Include="bolt, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="Il2Cppbolt">
<SpecificVersion>False</SpecificVersion> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\Il2Cppbolt.dll</HintPath>
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\bolt.dll</HintPath>
</Reference> </Reference>
<Reference Include="bolt.user, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="Il2Cppbolt.user">
<SpecificVersion>False</SpecificVersion> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\Il2Cppbolt.user.dll</HintPath>
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\bolt.user.dll</HintPath> </Reference>
<Reference Include="Il2CppInterop.Runtime">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\net6\Il2CppInterop.Runtime.dll</HintPath>
</Reference> </Reference>
<Reference Include="Il2Cppmscorlib"> <Reference Include="Il2Cppmscorlib">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\Il2Cppmscorlib.dll</HintPath> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\Il2Cppmscorlib.dll</HintPath>
</Reference>
<Reference Include="Il2CppOpsive.UltimateCharacterController">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\Il2CppOpsive.UltimateCharacterController.dll</HintPath>
</Reference> </Reference>
<Reference Include="MelonLoader"> <Reference Include="MelonLoader">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\MelonLoader.dll</HintPath> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\net6\MelonLoader.dll</HintPath>
</Reference>
<Reference Include="Opsive.UltimateCharacterController, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\Opsive.UltimateCharacterController.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="UnhollowerBaseLib">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Il2CppAssemblyUnhollower\UnhollowerBaseLib.dll</HintPath>
</Reference>
<Reference Include="UnhollowerRuntimeLib">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Il2CppAssemblyUnhollower\UnhollowerRuntimeLib.dll</HintPath>
</Reference> </Reference>
<Reference Include="UnityEngine"> <Reference Include="UnityEngine">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\UnityEngine.dll</HintPath> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\UnityEngine.dll</HintPath>
</Reference> </Reference>
<Reference Include="UnityEngine.CoreModule"> <Reference Include="UnityEngine.CoreModule">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\UnityEngine.CoreModule.dll</HintPath> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\UnityEngine.CoreModule.dll</HintPath>
</Reference> </Reference>
<Reference Include="UnityEngine.HotReloadModule"> <Reference Include="UnityEngine.HotReloadModule">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\UnityEngine.HotReloadModule.dll</HintPath> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\UnityEngine.HotReloadModule.dll</HintPath>
</Reference> </Reference>
<Reference Include="UnityEngine.IMGUIModule"> <Reference Include="UnityEngine.IMGUIModule">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\UnityEngine.IMGUIModule.dll</HintPath> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\UnityEngine.IMGUIModule.dll</HintPath>
</Reference> </Reference>
<Reference Include="UnityEngine.InputLegacyModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="UnityEngine.InputLegacyModule">
<SpecificVersion>False</SpecificVersion> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\UnityEngine.InputLegacyModule.dll</HintPath>
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
</Reference> </Reference>
<Reference Include="UnityEngine.InputModule"> <Reference Include="UnityEngine.InputModule">
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\UnityEngine.InputModule.dll</HintPath> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\UnityEngine.InputModule.dll</HintPath>
</Reference> </Reference>
<Reference Include="UnityEngine.UI, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="UnityEngine.UI">
<SpecificVersion>False</SpecificVersion> <HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Il2CppAssemblies\UnityEngine.UI.dll</HintPath>
<HintPath>D:\Jeux\steamapps\common\Devour\MelonLoader\Managed\UnityEngine.UI.dll</HintPath>
</Reference> </Reference>
<Reference Include="WindowsBase" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Compile Include="Hacks\Misc.cs" />
<Compile Include="Hacks\Unlock.cs" />
<Compile Include="Helpers\Map.cs" />
<Compile Include="Helpers\GUIHelper.cs" />
<Compile Include="Helpers\Render.cs" />
<Compile Include="Helpers\StateHelper.cs" />
<Compile Include="Hooks\Hooks.cs" />
<Compile Include="MelonMain.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Settings\Settings.cs" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View File

@@ -6,8 +6,8 @@ using System.Runtime.InteropServices;
using DevourClient.Helpers; using DevourClient.Helpers;
using System.Linq; using System.Linq;
using System.Collections.Generic; using System.Collections.Generic;
using Opsive.UltimateCharacterController.Character; using Il2CppOpsive.UltimateCharacterController.Character;
using Photon.Bolt; using Il2CppPhoton.Bolt;
namespace DevourClient.Hacks namespace DevourClient.Hacks
{ {
@@ -15,9 +15,9 @@ namespace DevourClient.Hacks
{ {
public static void Fly(float speed) //normal speed 5f public static void Fly(float speed) //normal speed 5f
{ {
NolanBehaviour nb = Player.GetPlayer(); Il2Cpp.NolanBehaviour nb = Player.GetPlayer();
Vector3 pos = nb.transform.position; Vector3 pos = nb.transform.position;
RewiredHelpers helpers = UnityEngine.Object.FindObjectOfType<RewiredHelpers>(); Il2Cpp.RewiredHelpers helpers = UnityEngine.Object.FindObjectOfType<Il2Cpp.RewiredHelpers>();
if (Input.GetKey((KeyCode)System.Enum.Parse(typeof(KeyCode), helpers.GetCurrentBinding("Move Up").ToString().Replace(" ", "")))) if (Input.GetKey((KeyCode)System.Enum.Parse(typeof(KeyCode), helpers.GetCurrentBinding("Move Up").ToString().Replace(" ", ""))))
{ {
pos += nb.transform.forward * speed * Time.deltaTime; pos += nb.transform.forward * speed * Time.deltaTime;
@@ -45,51 +45,51 @@ namespace DevourClient.Hacks
nb.locomotion.SetPosition(pos, false); nb.locomotion.SetPosition(pos, false);
} }
public static void WalkInLobby(bool walk) public static void WalkInLobby(bool walk)
{ {
try { try {
if (Helpers.Entities.LocalPlayer_.GetComponent<UltimateCharacterLocomotionHandler>() == null) if (Helpers.Entities.LocalPlayer_.GetComponent<UltimateCharacterLocomotionHandler>() == null)
{ {
Helpers.Entities.LocalPlayer_.AddComponent<UltimateCharacterLocomotionHandler>(); Helpers.Entities.LocalPlayer_.AddComponent<UltimateCharacterLocomotionHandler>();
Helpers.Entities.LocalPlayer_.GetComponent<UltimateCharacterLocomotionHandler>().enabled = false; Helpers.Entities.LocalPlayer_.GetComponent<UltimateCharacterLocomotionHandler>().enabled = false;
} }
Helpers.Entities.LocalPlayer_.GetComponent<UltimateCharacterLocomotionHandler>().enabled = walk; Helpers.Entities.LocalPlayer_.GetComponent<UltimateCharacterLocomotionHandler>().enabled = walk;
} }
catch { return; } catch { return; }
} }
public static void BurnRitualObj(string map, bool burnAll) public static void BurnRitualObj(string map, bool burnAll)
{ {
SurvivalObjectBurnController _altar = UnityEngine.Object.FindObjectOfType<SurvivalObjectBurnController>(); Il2Cpp.SurvivalObjectBurnController _altar = UnityEngine.Object.FindObjectOfType<Il2Cpp.SurvivalObjectBurnController>();
InnMapController _innMapController = UnityEngine.Object.FindObjectOfType<InnMapController>(); Il2Cpp.InnMapController _innMapController = UnityEngine.Object.FindObjectOfType<Il2Cpp.InnMapController>();
if (map != "Inn") if (map != "Inn")
{ {
if (burnAll) if (burnAll)
{ {
_altar.SkipToGoat(10); _altar.SkipToGoat(10);
}
else
{
_altar.BurnGoat();
}
} }
else else
{ {
_altar.BurnGoat(); if (burnAll){
_innMapController.SetProgressTo(10);
}
else{
_innMapController.IncreaseProgress();
}
} }
} }
else
{
if (burnAll){
_innMapController.SetProgressTo(10);
}
else{
_innMapController.IncreaseProgress();
}
}
}
public static void SpawnAzazel(PrefabId _azazelPrefabId) public static void SpawnAzazel(PrefabId _azazelPrefabId)
{ {
if (!Photon.Bolt.BoltNetwork.IsServer) if (!Il2CppPhoton.Bolt.BoltNetwork.IsServer)
{ {
MelonLogger.Msg("You need to be host to spawn stuff !"); MelonLogger.Msg("You need to be host to spawn stuff !");
return; return;
@@ -100,12 +100,12 @@ namespace DevourClient.Hacks
_azazel = BoltNetwork.Instantiate(_azazelPrefabId, new Vector3(pos.x, pos.y, pos.z + 1f), Quaternion.identity); _azazel = BoltNetwork.Instantiate(_azazelPrefabId, new Vector3(pos.x, pos.y, pos.z + 1f), Quaternion.identity);
_azazel.gameObject.GetComponent<SurvivalAzazelBehaviour>().Spawn(); _azazel.gameObject.GetComponent<Il2Cpp.SurvivalAzazelBehaviour>().Spawn();
} }
public static void SpawnGoatOrRat(PrefabId _goatPrefabID) public static void SpawnGoatOrRat(PrefabId _goatPrefabID)
{ {
if (!Photon.Bolt.BoltNetwork.IsServer) if (!Il2CppPhoton.Bolt.BoltNetwork.IsServer)
{ {
MelonLogger.Msg("You need to be host to spawn stuff !"); MelonLogger.Msg("You need to be host to spawn stuff !");
return; return;
@@ -115,8 +115,8 @@ namespace DevourClient.Hacks
Vector3 pos = Player.GetPlayer().transform.position; Vector3 pos = Player.GetPlayer().transform.position;
_goat = BoltNetwork.Instantiate(_goatPrefabID, new Vector3(pos.x, pos.y, pos.z + 1f), Quaternion.identity); _goat = BoltNetwork.Instantiate(_goatPrefabID, new Vector3(pos.x, pos.y, pos.z + 1f), Quaternion.identity);
_goat.gameObject.GetComponent<GoatBehaviour>().Spawn(); _goat.gameObject.GetComponent<Il2Cpp.GoatBehaviour>().Spawn();
BehaviorDesigner.Runtime.Behavior goat_behavior = _goat.gameObject.GetComponent<GoatBehaviour>().m_mainBehaviour; Il2CppBehaviorDesigner.Runtime.Behavior goat_behavior = _goat.gameObject.GetComponent<Il2Cpp.GoatBehaviour>().m_mainBehaviour;
goat_behavior.EnableBehavior(); goat_behavior.EnableBehavior();
} }
@@ -128,7 +128,7 @@ namespace DevourClient.Hacks
for (int i = 0; i < fountains.Length; i++) for (int i = 0; i < fountains.Length; i++)
{ {
fountains[i].GetComponent<InnFountainController>().Clean(); fountains[i].GetComponent<Il2Cpp.InnFountainController>().Clean();
} }
} }
catch { return; } catch { return; }
@@ -136,7 +136,7 @@ namespace DevourClient.Hacks
public static void AutoRespawn() public static void AutoRespawn()
{ {
NolanBehaviour nb = Player.GetPlayer(); Il2Cpp.NolanBehaviour nb = Player.GetPlayer();
Vector3 setNewPosition = nb.transform.position = new Vector3(0.0f, -100.0f, 0.0f); Vector3 setNewPosition = nb.transform.position = new Vector3(0.0f, -100.0f, 0.0f);
nb.locomotion.SetPosition(setNewPosition); nb.locomotion.SetPosition(setNewPosition);
@@ -146,11 +146,11 @@ namespace DevourClient.Hacks
{ {
try try
{ {
NolanBehaviour Nolan = Player.GetPlayer(); Il2Cpp.NolanBehaviour Nolan = Player.GetPlayer();
foreach (SurvivalInteractable item in Helpers.Entities.SurvivalInteractables) foreach (Il2Cpp.SurvivalInteractable item in Helpers.Entities.SurvivalInteractables)
{ {
item.transform.position = Nolan.transform.position + Nolan.transform.forward * Random.RandomRange(1f, 3f); item.transform.position = Nolan.transform.position + Nolan.transform.forward * UnityEngine.Random.RandomRange(1f, 3f);
} }
} }
catch { } catch { }
@@ -158,18 +158,18 @@ namespace DevourClient.Hacks
public static void SetSteamName(string name) public static void SetSteamName(string name)
{ {
Horror.Menu Menu_ = UnityEngine.Object.FindObjectOfType<Horror.Menu>(); Il2CppHorror.Menu Menu_ = UnityEngine.Object.FindObjectOfType<Il2CppHorror.Menu>();
Menu_.steamName = name; Menu_.steamName = name;
} }
public static void SetServerName(string name) public static void SetServerName(string name)
{ {
Horror.Menu Menu_ = UnityEngine.Object.FindObjectOfType<Horror.Menu>(); Il2CppHorror.Menu Menu_ = UnityEngine.Object.FindObjectOfType<Il2CppHorror.Menu>();
Menu_.serverNameText.text = name; Menu_.serverNameText.text = name;
} }
public static void BigFlashlight(bool reset) public static void BigFlashlight(bool reset)
{ {
NolanBehaviour Nolan = Player.GetPlayer();//UnityEngine.Object.FindObjectOfType<NolanBehaviour>(); Il2Cpp.NolanBehaviour Nolan = Player.GetPlayer();//UnityEngine.Object.FindObjectOfType<NolanBehaviour>();
if (Nolan == null) if (Nolan == null)
{ {
return; return;
@@ -198,7 +198,7 @@ namespace DevourClient.Hacks
public static void Fullbright(bool reset) public static void Fullbright(bool reset)
{ {
NolanBehaviour Nolan = Player.GetPlayer();//UnityEngine.Object.FindObjectOfType<NolanBehaviour>(); Il2Cpp.NolanBehaviour Nolan = Player.GetPlayer();//UnityEngine.Object.FindObjectOfType<NolanBehaviour>();
if (Nolan == null) if (Nolan == null)
{ {
return; return;
@@ -228,7 +228,7 @@ namespace DevourClient.Hacks
} }
public static void FlashlightColor(Color color) public static void FlashlightColor(Color color)
{ {
NolanBehaviour Nolan = Player.GetPlayer(); //UnityEngine.Object.FindObjectOfType<NolanBehaviour>(); Il2Cpp.NolanBehaviour Nolan = Player.GetPlayer(); //UnityEngine.Object.FindObjectOfType<NolanBehaviour>();
Light flashlightSpot = Nolan.flashlightSpot; Light flashlightSpot = Nolan.flashlightSpot;
flashlightSpot.color = color; flashlightSpot.color = color;
@@ -236,9 +236,9 @@ namespace DevourClient.Hacks
public static void TPKeys() public static void TPKeys()
{ {
NolanBehaviour Nolan = Player.GetPlayer(); //UnityEngine.Object.FindObjectOfType<NolanBehaviour>(); Il2Cpp.NolanBehaviour Nolan = Player.GetPlayer(); //UnityEngine.Object.FindObjectOfType<NolanBehaviour>();
foreach (KeyBehaviour keyBehaviour in Helpers.Entities.Keys) foreach (Il2Cpp.KeyBehaviour keyBehaviour in Helpers.Entities.Keys)
{ {
bool flag = keyBehaviour == null; bool flag = keyBehaviour == null;
if (flag) if (flag)
@@ -251,7 +251,7 @@ namespace DevourClient.Hacks
public static void SetRank(int rank) public static void SetRank(int rank)
{ {
NolanRankController NolanRank = UnityEngine.Object.FindObjectOfType<NolanRankController>(); Il2Cpp.NolanRankController NolanRank = UnityEngine.Object.FindObjectOfType<Il2Cpp.NolanRankController>();
NolanRank.SetRank(rank); NolanRank.SetRank(rank);
} }
@@ -260,14 +260,14 @@ namespace DevourClient.Hacks
{ {
if (Helpers.Player.IsInGame()) if (Helpers.Player.IsInGame())
{ {
GameUI game_ui_class = UnityEngine.Object.FindObjectOfType<GameUI>(); Il2Cpp.GameUI game_ui_class = UnityEngine.Object.FindObjectOfType<Il2Cpp.GameUI>();
game_ui_class.textChatInput.text = message; game_ui_class.textChatInput.text = message;
game_ui_class.OnChatMessageSubmit(); game_ui_class.OnChatMessageSubmit();
} }
else else
{ {
Horror.Menu menu_class = UnityEngine.Object.FindObjectOfType<Horror.Menu>(); Il2CppHorror.Menu menu_class = UnityEngine.Object.FindObjectOfType<Il2CppHorror.Menu>();
menu_class.textChatInput.text = message; menu_class.textChatInput.text = message;
menu_class.OnChatMessageSubmit(); menu_class.OnChatMessageSubmit();
} }
@@ -275,7 +275,7 @@ namespace DevourClient.Hacks
public static void DespawnDemons() public static void DespawnDemons()
{ {
foreach (SurvivalDemonBehaviour demon in Helpers.Entities.Demons) foreach (Il2Cpp.SurvivalDemonBehaviour demon in Helpers.Entities.Demons)
{ {
if (demon != null) if (demon != null)
{ {
@@ -286,7 +286,7 @@ namespace DevourClient.Hacks
public static void DespawnSpiders() public static void DespawnSpiders()
{ {
foreach (SpiderBehaviour spider in Helpers.Entities.Spiders) foreach (Il2Cpp.SpiderBehaviour spider in Helpers.Entities.Spiders)
{ {
if (spider != null) if (spider != null)
{ {
@@ -297,7 +297,7 @@ namespace DevourClient.Hacks
public static void DespawnGhosts() public static void DespawnGhosts()
{ {
foreach (GhostBehaviour ghost in Helpers.Entities.Ghosts) foreach (Il2Cpp.GhostBehaviour ghost in Helpers.Entities.Ghosts)
{ {
if (ghost != null) if (ghost != null)
{ {
@@ -308,7 +308,7 @@ namespace DevourClient.Hacks
public static void ShowMessageBox(string message) public static void ShowMessageBox(string message)
{ {
Horror.Menu menu = UnityEngine.Object.FindObjectOfType<Horror.Menu>(); Il2CppHorror.Menu menu = UnityEngine.Object.FindObjectOfType<Il2CppHorror.Menu>();
menu.ShowMessageModal(message); menu.ShowMessageModal(message);
} }
public static void PlaySound() public static void PlaySound()
@@ -324,11 +324,11 @@ namespace DevourClient.Hacks
public PlayRandomAudioClip laughClips; public PlayRandomAudioClip laughClips;
*/ */
PlayRandomAudioClip playRandomAudioClip = UnityEngine.Object.FindObjectOfType<PlayRandomAudioClip>(); Il2Cpp.PlayRandomAudioClip playRandomAudioClip = UnityEngine.Object.FindObjectOfType<Il2Cpp.PlayRandomAudioClip>();
NolanVoiceOvers nolanVoiceOvers = UnityEngine.Object.FindObjectOfType<NolanVoiceOvers>(); Il2Cpp.NolanVoiceOvers nolanVoiceOvers = UnityEngine.Object.FindObjectOfType<Il2Cpp.NolanVoiceOvers>();
playRandomAudioClip.delay = 0f; playRandomAudioClip.delay = 0f;
int num = Random.RandomRangeInt(0, 10); int num = UnityEngine.Random.RandomRangeInt(0, 10);
switch (num) switch (num)
{ {
case 0: case 0:
@@ -367,7 +367,7 @@ namespace DevourClient.Hacks
} }
public static void InstantWin() public static void InstantWin()
{ {
Survival survival_class = UnityEngine.Object.FindObjectOfType<Survival>(); Il2Cpp.Survival survival_class = UnityEngine.Object.FindObjectOfType<Il2Cpp.Survival>();
try try
{ {

View File

@@ -4,7 +4,7 @@
{ {
public static void Achievements() public static void Achievements()
{ {
AchievementHelpers ah = UnityEngine.Object.FindObjectOfType<AchievementHelpers>(); Il2Cpp.AchievementHelpers ah = UnityEngine.Object.FindObjectOfType<Il2Cpp.AchievementHelpers>();
/* /*
string[] names = { "hasAchievedFusesUsed", "hasAchievedGasolineUsed", "hasAchievedNoKnockout", "hasCollectedAllPatches", "hasCollectedAllRoses", string[] names = { "hasAchievedFusesUsed", "hasAchievedGasolineUsed", "hasAchievedNoKnockout", "hasCollectedAllPatches", "hasCollectedAllRoses",
@@ -37,7 +37,7 @@
public static void Doors() public static void Doors()
{ {
//Pour chaques portes, on les ouvre //Pour chaques portes, on les ouvre
foreach (Horror.DoorBehaviour doorBehaviour in UnityEngine.Object.FindObjectsOfType<Horror.DoorBehaviour>()) foreach (Il2CppHorror.DoorBehaviour doorBehaviour in UnityEngine.Object.FindObjectsOfType<Il2CppHorror.DoorBehaviour>())
{ {
doorBehaviour.state.Locked = false; doorBehaviour.state.Locked = false;
if (doorBehaviour.IsOpen()) if (doorBehaviour.IsOpen())

View File

@@ -1,5 +1,5 @@
using UnityEngine; using UnityEngine;
using Opsive.UltimateCharacterController.Character; using Il2CppOpsive.UltimateCharacterController.Character;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections; using System.Collections;
@@ -9,7 +9,7 @@ namespace DevourClient.Helpers
{ {
public static bool IsInGame() public static bool IsInGame()
{ {
OptionsHelpers optionsHelpers = UnityEngine.Object.FindObjectOfType<OptionsHelpers>(); Il2Cpp.OptionsHelpers optionsHelpers = UnityEngine.Object.FindObjectOfType<Il2Cpp.OptionsHelpers>();
return optionsHelpers.inGame; return optionsHelpers.inGame;
} }
@@ -18,19 +18,19 @@ namespace DevourClient.Helpers
return GetPlayer() != null; return GetPlayer() != null;
} }
public static NolanBehaviour GetPlayer() public static Il2Cpp.NolanBehaviour GetPlayer()
{ {
if (Entities.LocalPlayer_ == null) if (Entities.LocalPlayer_ == null)
{ {
return null; return null;
} }
return Entities.LocalPlayer_.GetComponent<NolanBehaviour>(); return Entities.LocalPlayer_.GetComponent<Il2Cpp.NolanBehaviour>();
} }
public static bool IsPlayerCrawling() public static bool IsPlayerCrawling()
{ {
NolanBehaviour nb = Player.GetPlayer(); Il2Cpp.NolanBehaviour nb = Player.GetPlayer();
if (nb == null) if (nb == null)
{ {
@@ -51,13 +51,13 @@ namespace DevourClient.Helpers
{ {
public static GameObject LocalPlayer_; public static GameObject LocalPlayer_;
public static GameObject[] Players; public static GameObject[] Players;
public static GoatBehaviour[] GoatsAndRats; public static Il2Cpp.GoatBehaviour[] GoatsAndRats;
public static SurvivalInteractable[] SurvivalInteractables; public static Il2Cpp.SurvivalInteractable[] SurvivalInteractables;
public static KeyBehaviour[] Keys; public static Il2Cpp.KeyBehaviour[] Keys;
public static SurvivalDemonBehaviour[] Demons; public static Il2Cpp.SurvivalDemonBehaviour[] Demons;
public static SpiderBehaviour[] Spiders; public static Il2Cpp.SpiderBehaviour[] Spiders;
public static GhostBehaviour[] Ghosts; public static Il2Cpp.GhostBehaviour[] Ghosts;
public static SurvivalAzazelBehaviour[] Azazels; public static Il2Cpp.SurvivalAzazelBehaviour[] Azazels;
public static IEnumerator GetLocalPlayer() public static IEnumerator GetLocalPlayer()
{ {
@@ -67,7 +67,7 @@ namespace DevourClient.Helpers
for (int i = 0; i < currentPlayers.Length; i++) for (int i = 0; i < currentPlayers.Length; i++)
{ {
if (currentPlayers[i].GetComponent<NolanBehaviour>().entity.IsOwner) if (currentPlayers[i].GetComponent<Il2Cpp.NolanBehaviour>().entity.IsOwner)
{ {
LocalPlayer_ = currentPlayers[i]; LocalPlayer_ = currentPlayers[i];
break; break;
@@ -94,7 +94,7 @@ namespace DevourClient.Helpers
{ {
for (;;) for (;;)
{ {
GoatsAndRats = GoatBehaviour.FindObjectsOfType<GoatBehaviour>(); GoatsAndRats = Il2Cpp.GoatBehaviour.FindObjectsOfType<Il2Cpp.GoatBehaviour>();
// Wait 5 seconds before caching objects again. // Wait 5 seconds before caching objects again.
yield return new WaitForSeconds(5f); yield return new WaitForSeconds(5f);
@@ -105,7 +105,7 @@ namespace DevourClient.Helpers
{ {
for (;;) for (;;)
{ {
SurvivalInteractables = SurvivalInteractable.FindObjectsOfType<SurvivalInteractable>(); SurvivalInteractables = Il2Cpp.SurvivalInteractable.FindObjectsOfType<Il2Cpp.SurvivalInteractable>();
// Wait 5 seconds before caching objects again. // Wait 5 seconds before caching objects again.
yield return new WaitForSeconds(5f); yield return new WaitForSeconds(5f);
@@ -116,7 +116,7 @@ namespace DevourClient.Helpers
{ {
for (;;) for (;;)
{ {
Keys = KeyBehaviour.FindObjectsOfType<KeyBehaviour>(); Keys = Il2Cpp.KeyBehaviour.FindObjectsOfType<Il2Cpp.KeyBehaviour>();
// Wait 5 seconds before caching objects again. // Wait 5 seconds before caching objects again.
yield return new WaitForSeconds(5f); yield return new WaitForSeconds(5f);
@@ -127,7 +127,7 @@ namespace DevourClient.Helpers
{ {
for (;;) for (;;)
{ {
Demons = SurvivalDemonBehaviour.FindObjectsOfType<SurvivalDemonBehaviour>(); Demons = Il2Cpp.SurvivalDemonBehaviour.FindObjectsOfType<Il2Cpp.SurvivalDemonBehaviour>();
// Wait 5 seconds before caching objects again. // Wait 5 seconds before caching objects again.
yield return new WaitForSeconds(5f); yield return new WaitForSeconds(5f);
@@ -138,7 +138,7 @@ namespace DevourClient.Helpers
{ {
for (;;) for (;;)
{ {
Spiders = SpiderBehaviour.FindObjectsOfType<SpiderBehaviour>(); Spiders = Il2Cpp.SpiderBehaviour.FindObjectsOfType<Il2Cpp.SpiderBehaviour>();
// Wait 5 seconds before caching objects again. // Wait 5 seconds before caching objects again.
yield return new WaitForSeconds(5f); yield return new WaitForSeconds(5f);
@@ -149,7 +149,7 @@ namespace DevourClient.Helpers
{ {
for (;;) for (;;)
{ {
Ghosts = GhostBehaviour.FindObjectsOfType<GhostBehaviour>(); Ghosts = Il2Cpp.GhostBehaviour.FindObjectsOfType<Il2Cpp.GhostBehaviour>();
// Wait 5 seconds before caching objects again. // Wait 5 seconds before caching objects again.
yield return new WaitForSeconds(5f); yield return new WaitForSeconds(5f);
@@ -163,7 +163,7 @@ namespace DevourClient.Helpers
*/ */
for (;;) for (;;)
{ {
Azazels = SurvivalAzazelBehaviour.FindObjectsOfType<SurvivalAzazelBehaviour>(); Azazels = Il2Cpp.SurvivalAzazelBehaviour.FindObjectsOfType<Il2Cpp.SurvivalAzazelBehaviour>();
// Wait 5 seconds before caching objects again. // Wait 5 seconds before caching objects again.
yield return new WaitForSeconds(5f); yield return new WaitForSeconds(5f);

View File

@@ -5,11 +5,11 @@ namespace DevourClient.Hooks
{ {
public class Hooks public class Hooks
{ {
[HarmonyPatch(typeof(NolanBehaviour), "OnAttributeUpdateValue")] [HarmonyPatch(typeof(Il2Cpp.NolanBehaviour), "OnAttributeUpdateValue")]
static class NolanBehaviour_UV static class NolanBehaviour_UV
{ {
[HarmonyPrefix] [HarmonyPrefix]
static void Prefix(ref Opsive.UltimateCharacterController.Traits.Attribute attribute) static void Prefix(ref Il2CppOpsive.UltimateCharacterController.Traits.Attribute attribute)
{ {
if (Load.unlimitedUV && attribute.m_Name == "Battery") if (Load.unlimitedUV && attribute.m_Name == "Battery")
{ {
@@ -19,11 +19,11 @@ namespace DevourClient.Hooks
} }
} }
[HarmonyPatch(typeof(RankHelpers))] [HarmonyPatch(typeof(Il2Cpp.RankHelpers))]
[HarmonyPatch(nameof(RankHelpers.CalculateExpGain))] //annotation boiler plate to tell Harmony what to patch. Refer to docs. [HarmonyPatch(nameof(Il2Cpp.RankHelpers.CalculateExpGain))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.
static class RankHelpers_CalculateExpGain static class RankHelpers_CalculateExpGain
{ {
static void Postfix(ref RankHelpers.ExpGainInfo __result) static void Postfix(ref Il2Cpp.RankHelpers.ExpGainInfo __result)
{ {
if (Load.exp_modifier) if (Load.exp_modifier)
{ {
@@ -34,11 +34,11 @@ namespace DevourClient.Hooks
} }
[HarmonyPatch(typeof(Horror.Menu))] [HarmonyPatch(typeof(Il2CppHorror.Menu))]
[HarmonyPatch(nameof(Horror.Menu.SetupPerk))] //annotation boiler plate to tell Harmony what to patch. Refer to docs. [HarmonyPatch(nameof(Il2CppHorror.Menu.SetupPerk))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.
static class Horror_Menu_SetupPerk_Patch static class Horror_Menu_SetupPerk_Patch
{ {
static void Prefix(ref CharacterPerk perk) static void Prefix(ref Il2Cpp.CharacterPerk perk)
{ {
/* /*
public int cost { get; set; } public int cost { get; set; }
@@ -56,11 +56,11 @@ namespace DevourClient.Hooks
} }
} }
[HarmonyPatch(typeof(Horror.Menu))] [HarmonyPatch(typeof(Il2CppHorror.Menu))]
[HarmonyPatch(nameof(Horror.Menu.SetupOutfit))] //annotation boiler plate to tell Harmony what to patch. Refer to docs. [HarmonyPatch(nameof(Il2CppHorror.Menu.SetupOutfit))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.
static class Horror_Menu_SetupOutfit_Patch static class Horror_Menu_SetupOutfit_Patch
{ {
static void Prefix(ref CharacterOutfit outfit) static void Prefix(ref Il2Cpp.CharacterOutfit outfit)
{ {
/* /*
public ulong currentPrice; public ulong currentPrice;
@@ -81,8 +81,8 @@ namespace DevourClient.Hooks
} }
} }
[HarmonyPatch(typeof(OptionsHelpers))] [HarmonyPatch(typeof(Il2Cpp.OptionsHelpers))]
[HarmonyPatch(nameof(OptionsHelpers.IsRobeUnlocked))] //annotation boiler plate to tell Harmony what to patch. Refer to docs. [HarmonyPatch(nameof(Il2Cpp.OptionsHelpers.IsRobeUnlocked))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.
static class OptionsHelpers_IsRobeUnlocked_Patch static class OptionsHelpers_IsRobeUnlocked_Patch
{ {
static bool Prefix(ref string robe) static bool Prefix(ref string robe)
@@ -94,11 +94,11 @@ namespace DevourClient.Hooks
} }
} }
[HarmonyPatch(typeof(Horror.Menu))] [HarmonyPatch(typeof(Il2CppHorror.Menu))]
[HarmonyPatch(nameof(Horror.Menu.SetupFlashlight))] //annotation boiler plate to tell Harmony what to patch. Refer to docs. [HarmonyPatch(nameof(Il2CppHorror.Menu.SetupFlashlight))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.
static class Horror_Menu_SetLocked_Patch static class Horror_Menu_SetLocked_Patch
{ {
static void Prefix(CharacterFlashlight flashlight) static void Prefix(Il2Cpp.CharacterFlashlight flashlight)
{ {
/* /*
public bool isHidden { get; set; } public bool isHidden { get; set; }

View File

@@ -2,8 +2,12 @@
using MelonLoader; using MelonLoader;
using System.Threading; using System.Threading;
using DevourClient.Helpers; using DevourClient.Helpers;
using Photon.Bolt; using Il2CppPhoton.Bolt;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using Il2CppHorror;
[assembly: MelonInfo(typeof(DevourClient.Load), "DevourClient", "1", "ALittlePatate & Jadis")]
[assembly: MelonGame("Straight Back Games", "DEVOUR")]
namespace DevourClient namespace DevourClient
{ {
@@ -36,7 +40,7 @@ namespace DevourClient
bool demon_esp = false; bool demon_esp = false;
bool fullbright = false; bool fullbright = false;
public override void OnApplicationStart() public override void OnInitializeMelon()
{ {
MelonLogger.Msg("For the Queen !"); MelonLogger.Msg("For the Queen !");
MelonCoroutines.Start(Helpers.Entities.GetLocalPlayer()); MelonCoroutines.Start(Helpers.Entities.GetLocalPlayer());
@@ -57,7 +61,7 @@ namespace DevourClient
{ {
try try
{ {
GameUI gameUI = UnityEngine.Object.FindObjectOfType<GameUI>(); Il2Cpp.GameUI gameUI = UnityEngine.Object.FindObjectOfType<Il2Cpp.GameUI>();
if (Settings.Settings.menu_enable) if (Settings.Settings.menu_enable)
{ {
@@ -138,7 +142,7 @@ namespace DevourClient
{ {
try try
{ {
Helpers.Entities.LocalPlayer_.GetComponent<Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion>().TimeScale = this._PlayerSpeedMultiplier; Helpers.Entities.LocalPlayer_.GetComponent<Il2CppOpsive.UltimateCharacterController.Character.UltimateCharacterLocomotion>().TimeScale = this._PlayerSpeedMultiplier;
} }
catch { return; } catch { return; }
} }
@@ -173,7 +177,7 @@ namespace DevourClient
{ {
//string playername = player.field_Private_PhotonView_0.field_Private_ObjectPublicObInBoStBoHaStObInHaUnique_0.field_Private_String_0;//player.photonView._Controller_k__BackingField.NickName; //string playername = player.field_Private_PhotonView_0.field_Private_ObjectPublicObInBoStBoHaStObInHaUnique_0.field_Private_String_0;//player.photonView._Controller_k__BackingField.NickName;
if (player.GetComponent<NolanBehaviour>().entity.IsOwner) if (player.GetComponent<Il2Cpp.NolanBehaviour>().entity.IsOwner)
{ {
continue; continue;
} }
@@ -187,7 +191,7 @@ namespace DevourClient
if (this.goat_rat_esp) if (this.goat_rat_esp)
{ {
foreach (GoatBehaviour goat in Helpers.Entities.GoatsAndRats) foreach (Il2Cpp.GoatBehaviour goat in Helpers.Entities.GoatsAndRats)
{ {
if (goat != null) if (goat != null)
{ {
@@ -218,7 +222,7 @@ namespace DevourClient
if (this.item_esp) if (this.item_esp)
{ {
foreach (SurvivalInteractable obj in Helpers.Entities.SurvivalInteractables) foreach (Il2Cpp.SurvivalInteractable obj in Helpers.Entities.SurvivalInteractables)
{ {
if (obj != null) if (obj != null)
{ {
@@ -249,7 +253,7 @@ namespace DevourClient
} }
} }
foreach (KeyBehaviour key in Helpers.Entities.Keys) foreach (Il2Cpp.KeyBehaviour key in Helpers.Entities.Keys)
{ {
if (key != null) if (key != null)
{ {
@@ -281,7 +285,7 @@ namespace DevourClient
if (this.demon_esp) if (this.demon_esp)
{ {
foreach (SurvivalDemonBehaviour demon in Helpers.Entities.Demons) foreach (Il2Cpp.SurvivalDemonBehaviour demon in Helpers.Entities.Demons)
{ {
if (demon != null) if (demon != null)
{ {
@@ -310,7 +314,7 @@ namespace DevourClient
} }
} }
foreach (SpiderBehaviour spider in Helpers.Entities.Spiders) foreach (Il2Cpp.SpiderBehaviour spider in Helpers.Entities.Spiders)
{ {
if (spider != null) if (spider != null)
{ {
@@ -339,7 +343,7 @@ namespace DevourClient
} }
} }
foreach (GhostBehaviour ghost in Helpers.Entities.Ghosts) foreach (Il2Cpp.GhostBehaviour ghost in Helpers.Entities.Ghosts)
{ {
if (ghost != null) if (ghost != null)
{ {
@@ -371,7 +375,7 @@ namespace DevourClient
if (this.azazel_esp || this.azazel_snapline) if (this.azazel_esp || this.azazel_snapline)
{ {
foreach (SurvivalAzazelBehaviour survivalAzazel in Helpers.Entities.Azazels) foreach (Il2Cpp.SurvivalAzazelBehaviour survivalAzazel in Helpers.Entities.Azazels)
{ {
if (survivalAzazel != null) if (survivalAzazel != null)
{ {
@@ -633,7 +637,7 @@ namespace DevourClient
case "Menu": case "Menu":
if (GUI.Button(new Rect(Settings.Settings.x + 10, Settings.Settings.y + 430, 120, 20), "Force Start")) if (GUI.Button(new Rect(Settings.Settings.x + 10, Settings.Settings.y + 430, 120, 20), "Force Start"))
{ {
Horror.Menu menu = UnityEngine.Object.FindObjectOfType<Horror.Menu>(); Il2CppHorror.Menu menu = UnityEngine.Object.FindObjectOfType<Il2CppHorror.Menu>();
menu.OnLobbyStartButtonClick(); menu.OnLobbyStartButtonClick();
} }
return; return;
@@ -653,7 +657,7 @@ namespace DevourClient
{ {
try try
{ {
NolanBehaviour nb = Player.GetPlayer(); Il2Cpp.NolanBehaviour nb = Player.GetPlayer();
nb.TeleportTo(Helpers.Map.GetAzazel().transform.position, Quaternion.identity); nb.TeleportTo(Helpers.Map.GetAzazel().transform.position, Quaternion.identity);
} }
@@ -685,7 +689,7 @@ namespace DevourClient
{ {
try try
{ {
NolanBehaviour nb = Player.GetPlayer(); Il2Cpp.NolanBehaviour nb = Player.GetPlayer();
nb.TeleportTo(Helpers.Map.GetAzazel().transform.position, Quaternion.identity); nb.TeleportTo(Helpers.Map.GetAzazel().transform.position, Quaternion.identity);
} }
@@ -722,7 +726,7 @@ namespace DevourClient
{ {
try try
{ {
NolanBehaviour nb = Player.GetPlayer(); Il2Cpp.NolanBehaviour nb = Player.GetPlayer();
nb.TeleportTo(Helpers.Map.GetAzazel().transform.position, Quaternion.identity); nb.TeleportTo(Helpers.Map.GetAzazel().transform.position, Quaternion.identity);
} }
@@ -753,7 +757,7 @@ namespace DevourClient
{ {
try try
{ {
NolanBehaviour nb = Player.GetPlayer(); Il2Cpp.NolanBehaviour nb = Player.GetPlayer();
nb.TeleportTo(Helpers.Map.GetAzazel().transform.position, Quaternion.identity); nb.TeleportTo(Helpers.Map.GetAzazel().transform.position, Quaternion.identity);
} }

View File

@@ -1,17 +1,10 @@
using System; using System;
using System.Diagnostics;
using System.Reflection; using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using MelonLoader;
[assembly: MelonInfo(typeof(DevourClient.Load), "DevourClient", "1.0", "ALittlePatate")] [assembly: System.Reflection.AssemblyCompanyAttribute("DevourClient")]
[assembly: MelonGame(null, null)] [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: AssemblyVersion("1.0.0.0")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: AssemblyCompany("DevourClient")] [assembly: System.Reflection.AssemblyProductAttribute("DevourClient")]
[assembly: AssemblyConfiguration("Release")] [assembly: System.Reflection.AssemblyTitleAttribute("DevourClient")]
[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("DevourClient")]
[assembly: AssemblyTitle("DevourClient")]