Decompiled source of KinkyDeathMagicSuitsFork v0.0.2
FatuiEnemies.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("FatuiEnemies")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("FatuiEnemies")] [assembly: AssemblyTitle("FatuiEnemies")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsFatuiEnemies", "Konk.FatuiEnemies", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsFatuiEnemies"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) //IL_0335: Unknown result type (might be due to invalid IL or missing references) //IL_0355: Unknown result type (might be due to invalid IL or missing references) //IL_03ba: Unknown result type (might be due to invalid IL or missing references) //IL_03da: Unknown result type (might be due to invalid IL or missing references) //IL_043f: Unknown result type (might be due to invalid IL or missing references) //IL_045f: Unknown result type (might be due to invalid IL or missing references) //IL_04c4: Unknown result type (might be due to invalid IL or missing references) //IL_04e4: Unknown result type (might be due to invalid IL or missing references) //IL_0549: Unknown result type (might be due to invalid IL or missing references) //IL_0569: Unknown result type (might be due to invalid IL or missing references) //IL_05ce: Unknown result type (might be due to invalid IL or missing references) //IL_05ee: Unknown result type (might be due to invalid IL or missing references) //IL_0653: Unknown result type (might be due to invalid IL or missing references) //IL_0673: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<BIGBOI2>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(1.08f, 1.08f, 1.08f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<BIGBOI>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(1.08f, 1.08f, 1.08f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<AGENT>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<MAIDEN>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<MAGE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.9f, 0.9f, 0.9f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<MAGE1>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.9f, 0.9f, 0.9f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<TWINK>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(0.95f, 0.95f, 0.95f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<TWINK2>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(0.95f, 0.95f, 0.95f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<STRONGBOI>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(1.15f, 1.15f, 1.15f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<STRONGBOI2>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(1.15f, 1.15f, 1.15f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<WINDAGENT>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<FROSTAGENT>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) //IL_01c4: Unknown result type (might be due to invalid IL or missing references) //IL_01d8: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_020d: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1f, 1f, 1f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.05f, -0.2f); } if (baseSize == new Vector3(0.95f, 0.95f, 0.95f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(0.9f, 0.9f, 0.9f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.2f, -0.1f); } if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(1.08f, 1.08f, 1.08f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.125f, -0.2f); } if (baseSize == new Vector3(1.15f, 1.15f, 1.15f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.25f, -0.2f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class BIGBOI : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "BigBoi"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class BIGBOI2 : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "BigBoi2"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class STRONGBOI : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "StrongBoi"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class STRONGBOI2 : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "StrongBoi2"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MAIDEN : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Maiden"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class TWINK : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Twink"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class TWINK2 : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Twink2"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class AGENT : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Agent"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MAGE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "ElectroMage"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MAGE1 : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "CryoMage"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class WINDAGENT : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "WindAgent"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class FROSTAGENT : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "FrostAgent"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("FatuiMobSuits.Konk", "FatuiMobSuits", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Cryogunner Legionnaire", typeof(BIGBOI)); ModelReplacementAPI.RegisterSuitModelReplacement("Hydrogunner Legionnaire", typeof(BIGBOI2)); ModelReplacementAPI.RegisterSuitModelReplacement("Electrohammer Vanguard", typeof(STRONGBOI)); ModelReplacementAPI.RegisterSuitModelReplacement("Anemoboxer Vanguard", typeof(STRONGBOI2)); ModelReplacementAPI.RegisterSuitModelReplacement("Mirror Maiden", typeof(MAIDEN)); ModelReplacementAPI.RegisterSuitModelReplacement("Pyroslinger Bracer", typeof(TWINK)); ModelReplacementAPI.RegisterSuitModelReplacement("Geochanter Bracer", typeof(TWINK2)); ModelReplacementAPI.RegisterSuitModelReplacement("Pyro Agent", typeof(AGENT)); ModelReplacementAPI.RegisterSuitModelReplacement("Electro Cicin Mage", typeof(MAGE)); ModelReplacementAPI.RegisterSuitModelReplacement("Cryo Cicin Mage", typeof(MAGE1)); ModelReplacementAPI.RegisterSuitModelReplacement("Wind Operative", typeof(WINDAGENT)); ModelReplacementAPI.RegisterSuitModelReplacement("Frost Operative", typeof(FROSTAGENT)); Harmony val = new Harmony("FatuiMobSuits.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin FatuiMobSuits.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "FatuiMobSuits"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
FH.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("FH")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("FH")] [assembly: AssemblyTitle("FH")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsFatuiHarbingerSuits", "Konk.FatuiHarbingerSuits", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsFatuiHarbingerSuits"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: 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_0154: Unknown result type (might be due to invalid IL or missing references) //IL_01b9: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Unknown result type (might be due to invalid IL or missing references) //IL_023e: Unknown result type (might be due to invalid IL or missing references) //IL_025e: Unknown result type (might be due to invalid IL or missing references) //IL_02c3: Unknown result type (might be due to invalid IL or missing references) //IL_02e3: Unknown result type (might be due to invalid IL or missing references) //IL_034b: Unknown result type (might be due to invalid IL or missing references) //IL_036b: Unknown result type (might be due to invalid IL or missing references) try { if ((Object)(object)player == (Object)null) { return; } GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<SCARAMOUCHE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<ARLECCHINO>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<LASIGNORA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.025f, 1.025f, 1.025f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<TARTAGLIA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<ILDOTTORE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<ILCAPITANO>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.075f, 1.075f, 1.075f); if (Plugin.capitanoCoat.Value) { ((Component)((BodyReplacementBase)gameObject.GetComponent<ILCAPITANO>()).replacementModel.transform.Find("Clothes")).gameObject.SetActive(true); ((Component)((BodyReplacementBase)gameObject.GetComponent<ILCAPITANO>()).replacementModelShadow.transform.Find("Clothes")).gameObject.SetActive(true); } if (!Plugin.capitanoCoat.Value) { ((Component)((BodyReplacementBase)gameObject.GetComponent<ILCAPITANO>()).replacementModel.transform.Find("Clothes")).gameObject.SetActive(false); ((Component)((BodyReplacementBase)gameObject.GetComponent<ILCAPITANO>()).replacementModelShadow.transform.Find("Clothes")).gameObject.SetActive(false); } } } else { mls.LogInfo((object)"Child GameObject not found."); } } catch (NullReferenceException) { } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1f, 1f, 1f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.05f, -0.2f); } if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(1.025f, 1.025f, 1.025f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.075f, -0.2f); } if (baseSize == new Vector3(1.075f, 1.075f, 1.075f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class TARTAGLIA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Tartaglia"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class LASIGNORA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "La Signora"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class ARLECCHINO : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Arlecchino"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class SCARAMOUCHE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Scaramouche"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class ILDOTTORE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Il Dottore"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class ILCAPITANO : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Il Capitano"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("FHSkins.Konk", "FatuiHarbingerSuits", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } public static ConfigEntry<bool> capitanoCoat { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); capitanoCoat = config.Bind<bool>("Il Capitano Coat", "Il Capitano Coat", true, "Disable to take off Capitano's coat"); } private void Awake() { //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Il Capitano-The Captain", typeof(ILCAPITANO)); ModelReplacementAPI.RegisterSuitModelReplacement("Il Dottore-The Doctor", typeof(ILDOTTORE)); ModelReplacementAPI.RegisterSuitModelReplacement("Arlecchino-The Knave", typeof(ARLECCHINO)); ModelReplacementAPI.RegisterSuitModelReplacement("Scaramouche-The Balladeer", typeof(SCARAMOUCHE)); ModelReplacementAPI.RegisterSuitModelReplacement("La Signora-The Fair Lady", typeof(LASIGNORA)); ModelReplacementAPI.RegisterSuitModelReplacement("Tartaglia-Childe", typeof(TARTAGLIA)); Harmony val = new Harmony("FHSkins.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin FHSkins.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "FatuiHarbingerSkins"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Fontaine1.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Fontaine1")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Fontaine1")] [assembly: AssemblyTitle("Fontaine1")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsFontaineSuits1", "Konk.FontaineSuitsVol1", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsFontaineSuits1"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<LYNEY>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<FREMINET>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<LYNETTE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class FREMINET : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Freminet"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class LYNEY : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Lyney"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class LYNETTE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Lynette"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("FontaineSuitsVol1.Konk", "FontaineSuitsVol1", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Freminet", typeof(FREMINET)); ModelReplacementAPI.RegisterSuitModelReplacement("Lyney", typeof(LYNEY)); ModelReplacementAPI.RegisterSuitModelReplacement("Lynette", typeof(LYNETTE)); Harmony val = new Harmony("FontaineSuitsVol1.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin FontaineSuitsVol1.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "FontaineSuitsVol1"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Fontaine2.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Fontaine2")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Fontaine2")] [assembly: AssemblyTitle("Fontaine2")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsFontaineSuits2", "Konk.FontaineSuitsVol2", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsFontaineSuits2"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<WRIOTHESLEY>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<NEUVILLETTE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<CHARLOTTE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<SIGEWINNE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(0.7f, 0.7f, 0.7f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } if (baseSize == new Vector3(0.7f, 0.7f, 0.7f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.85f, 0f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class WRIOTHESLEY : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Wriothesley"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class NEUVILLETTE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Neuvillette"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class CHARLOTTE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Charlotte"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class SIGEWINNE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Sigewinne"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("FontaineSuitsVol2.Konk", "FontaineSuitsVol2", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Wriothesley", typeof(WRIOTHESLEY)); ModelReplacementAPI.RegisterSuitModelReplacement("Neuvillette", typeof(NEUVILLETTE)); ModelReplacementAPI.RegisterSuitModelReplacement("Charlotte", typeof(CHARLOTTE)); ModelReplacementAPI.RegisterSuitModelReplacement("Sigewinne", typeof(SIGEWINNE)); Harmony val = new Harmony("FontaineSuitsVol2.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin FontaineSuitsVol2.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "FontaineSuitsVol2"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Fontaine3.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Fontaine3")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Fontaine3")] [assembly: AssemblyTitle("Fontaine3")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsFontaineSuits3", "Konk.FontaineSuitsVol3", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsFontaineSuits3"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<NAVIA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<CLORINDE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<CHEVREUSE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<EMILIE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1f, 1f, 1f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.05f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class NAVIA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Navia"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class CLORINDE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Clorinde"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class CHEVREUSE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Chevreuse"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class EMILIE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Emilie"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("FontaineSuitsVol3.Konk", "FontaineSuitsVol3", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Navia", typeof(NAVIA)); ModelReplacementAPI.RegisterSuitModelReplacement("Clorinde", typeof(CLORINDE)); ModelReplacementAPI.RegisterSuitModelReplacement("Chevreuse", typeof(CHEVREUSE)); ModelReplacementAPI.RegisterSuitModelReplacement("Emilie", typeof(EMILIE)); Harmony val = new Harmony("FontaineSuitsVol3.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin FontaineSuitsVol3.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "FontaineSuitsVol3"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
HarbingerBossForms.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: AssemblyCompany("HarbingerBossForms")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("HarbingerBossForms")] [assembly: AssemblyTitle("HarbingerBossForms")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsFatuiHarbingerBossSuits", "Konk.FatuiHarbingerBossSuits", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsFatuiHarbingerBossSuits"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<FOULLEGACY>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.1f, 1.1f, 1.1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<ROBOT>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.25f, 1.25f, 1.25f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<DELUSION>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<ROSALYNE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.1f, 1.1f, 1.1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<PERUERE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.025f, 1.025f, 1.025f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1.25f, 1.25f, 1.25f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.3f, -0.2f); } if (baseSize == new Vector3(1.1f, 1.1f, 1.1f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.125f, -0.2f); } if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(1.025f, 1.025f, 1.025f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.05f, -0.2f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class FOULLEGACY : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "FoulLegacy"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class ROBOT : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Robot"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class DELUSION : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Delusion"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class ROSALYNE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Rosalyne"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class PERUERE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Peruere"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("FatuiHarbingerBossFormSuits.Konk", "FatuiHarbingerBossFormSuits", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Tartaglia-Foul Legacy", typeof(FOULLEGACY)); ModelReplacementAPI.RegisterSuitModelReplacement("Shouki no Kami, the Prodigal", typeof(ROBOT)); ModelReplacementAPI.RegisterSuitModelReplacement("Tartaglia-Delusion Unleashed", typeof(DELUSION)); ModelReplacementAPI.RegisterSuitModelReplacement("Rosalyne-Kruzchka Lohefalter", typeof(ROSALYNE)); ModelReplacementAPI.RegisterSuitModelReplacement("Peruere", typeof(PERUERE)); Harmony val = new Harmony("FatuiHarbingerBossFormSuits.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin FatuiHarbingerBossFormSuits.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "FatuiHarbingerBossFormSuits"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Inazuma1.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Inazuma1")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Inazuma1")] [assembly: AssemblyTitle("Inazuma1")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsInazumaSuits1", "Konk.InazumaSuitsVol1", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsInazumaSuits1"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<ARATAKIITTO>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.065f, 1.065f, 1.065f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<KUKISHINOBU>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<CHIORI>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<KIRARA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<YOIMIYA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1.065f, 1.065f, 1.065f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class YOIMIYA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Yoimiya"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class CHIORI : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Chiori"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class KUKISHINOBU : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Kuki Shinobu"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class ARATAKIITTO : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Arataki Itto"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class KIRARA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Kirara"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("InazumaSuitsVol1.Konk", "InazumaSuitsVol1", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Yoimiya", typeof(YOIMIYA)); ModelReplacementAPI.RegisterSuitModelReplacement("Chiori", typeof(CHIORI)); ModelReplacementAPI.RegisterSuitModelReplacement("Kuki Shinobu", typeof(KUKISHINOBU)); ModelReplacementAPI.RegisterSuitModelReplacement("Arataki Itto", typeof(ARATAKIITTO)); ModelReplacementAPI.RegisterSuitModelReplacement("Kirara", typeof(KIRARA)); Harmony val = new Harmony("InazumaSuitsVol1.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin InazumaSuitsVol1.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "InazumaSuitsVol1"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Inazuma2.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Inazuma2")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Inazuma2")] [assembly: AssemblyTitle("Inazuma2")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsInazumaSuits2", "Konk.InazumaSuitsVol2", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsInazumaSuits2"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<KAEDEHARAKAZUHA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<KAMISATOAYATO>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<THOMA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<KAMISATOAYAKA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<SAYU>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(0.7f, 0.7f, 0.7f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } if (baseSize == new Vector3(0.7f, 0.7f, 0.7f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.85f, 0f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class KAMISATOAYAKA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Kamisato Ayaka"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class KAMISATOAYATO : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Kamisato Ayato"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class THOMA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Thoma"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class SAYU : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Sayu"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class KAEDEHARAKAZUHA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Kaedehara Kazuha"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("InazumaSuitsVol2.Konk", "InazumaSuitsVol2", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Kamisato Ayaka", typeof(KAMISATOAYAKA)); ModelReplacementAPI.RegisterSuitModelReplacement("Kamisato Ayato", typeof(KAMISATOAYATO)); ModelReplacementAPI.RegisterSuitModelReplacement("Thoma", typeof(THOMA)); ModelReplacementAPI.RegisterSuitModelReplacement("Sayu", typeof(SAYU)); ModelReplacementAPI.RegisterSuitModelReplacement("Kaedehara Kazuha", typeof(KAEDEHARAKAZUHA)); Harmony val = new Harmony("InazumaSuitsVol2.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin InazumaSuitsVol2.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "InazumaSuitsVol2"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Inazuma3.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Inazuma3")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Inazuma3")] [assembly: AssemblyTitle("Inazuma3")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsInazumaSuits3", "Konk.InazumaSuitsVol3", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsInazumaSuits3"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<GOROU>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<YAEMIKO>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<KUJOUSARA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.025f, 1.025f, 1.025f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<SANGONOMIYAKOKOMI>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<SHIKANOINHEIZOU>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1f, 1f, 1f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.05f, -0.2f); } if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(1.025f, 1.025f, 1.025f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.075f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class SHIKANOINHEIZOU : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Shikanoin Heizou"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class SANGONOMIYAKOKOMI : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Sangonomiya Kokomi"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class GOROU : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Gorou"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class YAEMIKO : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Yae Miko"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class KUJOUSARA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Kujou Sara"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("InazumaSuitsVol3.Konk", "InazumaSuitsVol3", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Shikanoin Heizou", typeof(SHIKANOINHEIZOU)); ModelReplacementAPI.RegisterSuitModelReplacement("Sangonomiya Kokomi", typeof(SANGONOMIYAKOKOMI)); ModelReplacementAPI.RegisterSuitModelReplacement("Gorou", typeof(GOROU)); ModelReplacementAPI.RegisterSuitModelReplacement("Yae Miko", typeof(YAEMIKO)); ModelReplacementAPI.RegisterSuitModelReplacement("Kujou Sara", typeof(KUJOUSARA)); Harmony val = new Harmony("InazumaSuitsVol3.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin InazumaSuitsVol3.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "InazumaSuitsVol3"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Liyue1.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: AssemblyCompany("Liyue1")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Liyue1")] [assembly: AssemblyTitle("Liyue1")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsLiyueSuits1", "Konk.LiyueSuitsVol1", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsLiyueSuits1"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<XIAO>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.915f, 0.915f, 0.915f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<BAIZHU>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<HUTAO>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<QIQI>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(0.7f, 0.7f, 0.7f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(0.915f, 0.915f, 0.915f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } if (baseSize == new Vector3(0.7f, 0.7f, 0.7f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.85f, 0f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class BAIZHU : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Baizhu"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class QIQI : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Qiqi"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class XIAO : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Xiao"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class HUTAO : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Hu Tao"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("LiyueSuitsVol1.Konk", "LiyueSuitsVol1", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Baizhu", typeof(BAIZHU)); ModelReplacementAPI.RegisterSuitModelReplacement("Qiqi", typeof(QIQI)); ModelReplacementAPI.RegisterSuitModelReplacement("Xiao", typeof(XIAO)); ModelReplacementAPI.RegisterSuitModelReplacement("Hu Tao", typeof(HUTAO)); Harmony val = new Harmony("LiyueSuitsVol1.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin LiyueSuitsVol1.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "LiyueSuitsVol1"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Liyue5.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: AssemblyCompany("Liyue5")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Liyue5")] [assembly: AssemblyTitle("Liyue5")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsLiyueSuits5", "Konk.LiyueSuitsVol5", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsLiyueSuits5"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00c0: Unknown result type (might be due to invalid IL or missing references) //IL_0282: Unknown result type (might be due to invalid IL or missing references) //IL_02a2: Unknown result type (might be due to invalid IL or missing references) //IL_0307: Unknown result type (might be due to invalid IL or missing references) //IL_0327: Unknown result type (might be due to invalid IL or missing references) try { GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<GAMING>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); if (Plugin.gamingLights.Value) { ((Component)((BodyReplacementBase)gameObject.GetComponent<GAMING>()).replacementModel.transform.Find("Lights")).gameObject.SetActive(true); ((Component)((BodyReplacementBase)gameObject.GetComponent<GAMING>()).replacementModelShadow.transform.Find("Lights")).gameObject.SetActive(true); ((Component)((BodyReplacementBase)gameObject.GetComponent<GAMING>()).replacementModel.transform.Find("Hood")).gameObject.SetActive(false); ((Component)((BodyReplacementBase)gameObject.GetComponent<GAMING>()).replacementModelShadow.transform.Find("Hood")).gameObject.SetActive(false); } if (!Plugin.gamingLights.Value) { ((Component)((BodyReplacementBase)gameObject.GetComponent<GAMING>()).replacementModel.transform.Find("Lights")).gameObject.SetActive(false); ((Component)((BodyReplacementBase)gameObject.GetComponent<GAMING>()).replacementModelShadow.transform.Find("Lights")).gameObject.SetActive(false); ((Component)((BodyReplacementBase)gameObject.GetComponent<GAMING>()).replacementModel.transform.Find("Hood")).gameObject.SetActive(true); ((Component)((BodyReplacementBase)gameObject.GetComponent<GAMING>()).replacementModelShadow.transform.Find("Hood")).gameObject.SetActive(true); } } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<XINYAN>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<YUNJIN>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } catch (NullReferenceException) { } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1f, 1f, 1f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.05f, -0.2f); } if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } if (baseSize == new Vector3(0.7f, 0.7f, 0.7f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.85f, 0f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class GAMING : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Gaming"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class XINYAN : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Xinyan"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class YUNJIN : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Yunjin"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("LiyueSuitsVol5.Konk", "LiyueSuitsVol5", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } public static ConfigEntry<bool> gamingLights { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); gamingLights = config.Bind<bool>("Gaming", "Gaming Burst Form", false, "Enable to turn on Gaming's burst form, lights included"); } private void Awake() { //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Gaming", typeof(GAMING)); ModelReplacementAPI.RegisterSuitModelReplacement("Xinyan", typeof(XINYAN)); ModelReplacementAPI.RegisterSuitModelReplacement("Yun Jin", typeof(YUNJIN)); Harmony val = new Harmony("LiyueSuitsVol5.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin LiyueSuitsVol5.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "LiyueSuitsVol5"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Mondstadt1.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Mondstadt1")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Mondstadt1")] [assembly: AssemblyTitle("Mondstadt1")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsMondstadtSuits1", "Konk.MondstadtSuitsVol1", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsMondstadtSuits1"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<ALBEDO>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<SUCROSE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<KAEYA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<NOELLE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<KLEE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(0.7f, 0.7f, 0.7f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } if (baseSize == new Vector3(0.7f, 0.7f, 0.7f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.85f, 0f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class ALBEDO : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Albedo"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class KLEE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Klee"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class KAEYA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Kaeya"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class NOELLE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Noelle"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class SUCROSE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Sucrose"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("MondstadtSuitsVol1.Konk", "MondstadtSuitsVol1", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Albedo", typeof(ALBEDO)); ModelReplacementAPI.RegisterSuitModelReplacement("Klee", typeof(KLEE)); ModelReplacementAPI.RegisterSuitModelReplacement("Kaeya", typeof(KAEYA)); ModelReplacementAPI.RegisterSuitModelReplacement("Noelle", typeof(NOELLE)); ModelReplacementAPI.RegisterSuitModelReplacement("Sucrose", typeof(SUCROSE)); Harmony val = new Harmony("MondstadtSuitsVol1.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin MondstadtSuitsVol1.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "MondstadtSuitsVol1"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Mondstadt2.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Mondstadt2")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Mondstadt2")] [assembly: AssemblyTitle("Mondstadt2")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsMondstadtSuits2", "Konk.MondstadtSuitsVol2", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsMondstadtSuits2"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<MIKA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<EULA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<LISA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<JEAN>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<AMBER>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1f, 1f, 1f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.05f, -0.2f); } if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class EULA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Eula"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class AMBER : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Amber"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class LISA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Lisa"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class JEAN : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Jean"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MIKA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Mika"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("MondstadtSuitsVol2.Konk", "MondstadtSuitsVol2", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Eula", typeof(EULA)); ModelReplacementAPI.RegisterSuitModelReplacement("Amber", typeof(AMBER)); ModelReplacementAPI.RegisterSuitModelReplacement("Lisa", typeof(LISA)); ModelReplacementAPI.RegisterSuitModelReplacement("Jean", typeof(JEAN)); ModelReplacementAPI.RegisterSuitModelReplacement("Mika", typeof(MIKA)); Harmony val = new Harmony("MondstadtSuitsVol2.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin MondstadtSuitsVol2.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "MondstadtSuitsVol2"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Mondstadt3.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Mondstadt3")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Mondstadt3")] [assembly: AssemblyTitle("Mondstadt3")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsMondstadtSuits3", "Konk.MondstadtSuitsVol3", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsMondstadtSuits3"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<ROSARIA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<DILUC>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<BARBARA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<DIONA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(0.7f, 0.7f, 0.7f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1f, 1f, 1f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.05f, -0.2f); } if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } if (baseSize == new Vector3(0.7f, 0.7f, 0.7f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.85f, 0f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class DILUC : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Diluc"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class BARBARA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Barbara"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class DIONA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Diona"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class ROSARIA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Rosaria"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("MondstadtSuitsVol3.Konk", "MondstadtSuitsVol3", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Diluc", typeof(DILUC)); ModelReplacementAPI.RegisterSuitModelReplacement("Barbara", typeof(BARBARA)); ModelReplacementAPI.RegisterSuitModelReplacement("Diona", typeof(DIONA)); ModelReplacementAPI.RegisterSuitModelReplacement("Rosaria", typeof(ROSARIA)); Harmony val = new Harmony("MondstadtSuitsVol3.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin MondstadtSuitsVol3.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "MondstadtSuitsVol3"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Mondstadt4.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Mondstadt4")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Mondstadt4")] [assembly: AssemblyTitle("Mondstadt4")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsMondstadtSuits4", "Konk.MondstadtSuitsVol4", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsMondstadtSuits4"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<BENNETT>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<RAZOR>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<MONA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<FISCHL>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class BENNETT : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Bennett"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class RAZOR : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Razor"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MONA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Mona"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class FISCHL : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Fischl"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("MondstadtSuitsVol4.Konk", "MondstadtSuitsVol4", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Bennett", typeof(BENNETT)); ModelReplacementAPI.RegisterSuitModelReplacement("Razor", typeof(RAZOR)); ModelReplacementAPI.RegisterSuitModelReplacement("Mona", typeof(MONA)); ModelReplacementAPI.RegisterSuitModelReplacement("Fischl", typeof(FISCHL)); Harmony val = new Harmony("MondstadtSuitsVol4.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin MondstadtSuitsVol4.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "MondstadtSuitsVol4"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Natlan3.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: AssemblyCompany("Natlan3")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Natlan3")] [assembly: AssemblyTitle("Natlan3")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsNatlanSuits3", "Konk.NatlanSuitsVol3", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsNatlanSuits3"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<KINICH>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<IANSAN>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(0.7f, 0.7f, 0.7f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(0.7f, 0.7f, 0.7f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.85f, 0f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class KINICH : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Kinich"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class IANSAN : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Iansan"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("NatlanSuitsVol3.Konk", "NatlanSuitsVol3", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Kinich", typeof(KINICH)); ModelReplacementAPI.RegisterSuitModelReplacement("Iansan", typeof(IANSAN)); Harmony val = new Harmony("NatlanSuitsVol3.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin NatlanSuitsVol3.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "NatlanSuitsVol3"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Sumeru1.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Sumeru1")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Sumeru1")] [assembly: AssemblyTitle("Sumeru1")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsSumeruSuits1", "konk.SumeruSuitsVol1", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsSumeruSuits1"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<SETHOS>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<DEHYA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<CANDACE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<NILOU>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1f, 1f, 1f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.05f, -0.2f); } if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class CANDACE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Candace"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class DEHYA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Dehya"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class NILOU : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Nilou"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class SETHOS : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Sethos"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("Sumeru1.Konk", "SumeruSuitsVol.1", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Candace", typeof(CANDACE)); ModelReplacementAPI.RegisterSuitModelReplacement("Dehya", typeof(DEHYA)); ModelReplacementAPI.RegisterSuitModelReplacement("Nilou", typeof(NILOU)); ModelReplacementAPI.RegisterSuitModelReplacement("Sethos", typeof(SETHOS)); Harmony val = new Harmony("Sumeru1.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin Sumeru1.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "SumeruSuitsVol.1"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Sumeru2.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Sumeru2")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Sumeru2")] [assembly: AssemblyTitle("Sumeru2")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsSumeruSuits2", "Konk.SumeruSuitsVol2", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsSumeruSuits2"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<CYNO>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<TIGHNARI>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<KAVEH>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<ALHAITHAM>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<COLLEI>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class TIGHNARI : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Tighnari"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class COLLEI : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Collei"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class CYNO : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Cyno"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class ALHAITHAM : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Alhaitham"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class KAVEH : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Kaveh"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("SumeruSuitsVol2.Konk", "SumeruSuitsVol2", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Tighnari", typeof(TIGHNARI)); ModelReplacementAPI.RegisterSuitModelReplacement("Collei", typeof(COLLEI)); ModelReplacementAPI.RegisterSuitModelReplacement("Cyno", typeof(CYNO)); ModelReplacementAPI.RegisterSuitModelReplacement("Alhaitham", typeof(ALHAITHAM)); ModelReplacementAPI.RegisterSuitModelReplacement("Kaveh", typeof(KAVEH)); Harmony val = new Harmony("SumeruSuitsVol2.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin SumeruSuitsVol2.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "SumeruSuitsVol2"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Sumeru3.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Sumeru3")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Sumeru3")] [assembly: AssemblyTitle("Sumeru3")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsSumeruSuits3", "Konk.SumeruSuitsVol3", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsSumeruSuits3"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<WANDERER>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<FARUZAN>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<LAYLA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<DORI>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(0.7f, 0.7f, 0.7f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } if (baseSize == new Vector3(0.7f, 0.7f, 0.7f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.85f, 0f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class FARUZAN : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Faruzan"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class LAYLA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Layla"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class WANDERER : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Wanderer"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class DORI : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Dori"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("SumeruSuitsVol3.Konk", "SumeruSuitsVol3", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Faruzan", typeof(FARUZAN)); ModelReplacementAPI.RegisterSuitModelReplacement("Layla", typeof(LAYLA)); ModelReplacementAPI.RegisterSuitModelReplacement("Wanderer", typeof(WANDERER)); ModelReplacementAPI.RegisterSuitModelReplacement("Dori", typeof(DORI)); Harmony val = new Harmony("SumeruSuitsVol3.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin SumeruSuitsVol3.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "SumeruSuitsVol3"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
Traveler.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: AssemblyCompany("Traveler")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Traveler")] [assembly: AssemblyTitle("Traveler")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsTravelerSuits", "Konk.TravelerSuits", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsTravelerSuits"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<AETHER>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<LUMINE>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class AETHER : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Aether"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class LUMINE : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Lumine"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("TravelerSuits.Konk", "TravelerSuits", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Aether", typeof(AETHER)); ModelReplacementAPI.RegisterSuitModelReplacement("Lumine", typeof(LUMINE)); Harmony val = new Harmony("TravelerSuits.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin TravelerSuits.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "TravelerSuits"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
AR.dll
Decompiled 4 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using ModelReplacement; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("AR")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("AR")] [assembly: AssemblyTitle("AR")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace AR { [BepInPlugin("ModelReplacementCameraVisualsArchonsSuits", "Konk.ArchonSuits", "1.0.0")] public class CameraVisuals : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("CameraVisualsArchonsSuits"); private static CameraVisuals Instance; public static Vector3 baseSize; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = ((BaseUnityPlugin)this).Logger; harmony.PatchAll(typeof(CameraVisuals)); mls.LogInfo((object)"CAMERA HEIGHTS LOADED"); } [HarmonyPatch(typeof(ModelReplacementAPI), "SetPlayerModelReplacement")] [HarmonyPostfix] public static void DetectCamera(PlayerControllerB player) { //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) //IL_0335: Unknown result type (might be due to invalid IL or missing references) //IL_0355: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; Transform val = gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer"); if ((Object)(object)val != (Object)null) { GameObject gameObject2 = ((Component)val).gameObject; if (Object.op_Implicit((Object)(object)gameObject.GetComponent<VENTI>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.058f, -0.063f); gameObject.transform.localScale = new Vector3(0.925f, 0.925f, 0.925f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<RAIDEN>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1f, 1f, 1f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<ZHONGLI>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1.05f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<FURINA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.068f, -0.063f); gameObject.transform.localScale = new Vector3(0.885f, 0.885f, 0.885f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<NAHIDA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(0.7f, 0.7f, 0.7f); } if (Object.op_Implicit((Object)(object)gameObject.GetComponent<MAVUIKA>())) { gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.075f, -0.093f); gameObject.transform.localScale = new Vector3(1.025f, 1.025f, 1.025f); } } else { mls.LogInfo((object)"Child GameObject not found."); } } [HarmonyPatch(typeof(ModelReplacementAPI), "RemovePlayerModelReplacement")] [HarmonyPostfix] public static void ResetCamera(PlayerControllerB player) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)player).gameObject; gameObject.transform.localScale = new Vector3(1f, 1f, 1f); gameObject.transform.Find("ScavengerModel").Find("metarig").Find("CameraContainer") .Find("MainCamera") .Find("HUDHelmetPosition") .localPosition = new Vector3(0.01f, -0.048f, -0.063f); } [HarmonyPatch(typeof(Terminal), "BeginUsingTerminal")] [HarmonyPostfix] public static void DetectCamera() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) //IL_01c4: Unknown result type (might be due to invalid IL or missing references) //IL_01d8: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_020d: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; baseSize = ((Component)localPlayerController).gameObject.transform.localScale; if (baseSize == new Vector3(1f, 1f, 1f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.05f, -0.2f); } if (baseSize == new Vector3(0.925f, 0.925f, 0.925f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.15f, -0.1f); } if (baseSize == new Vector3(1.05f, 1.05f, 1.05f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.1f, -0.2f); } if (baseSize == new Vector3(0.885f, 0.885f, 0.885f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.25f, -0.1f); } if (baseSize == new Vector3(0.7f, 0.7f, 0.7f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0.85f, 0f); } if (baseSize == new Vector3(1.025f, 1.025f, 1.025f)) { ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, -0.075f, -0.2f); } } [HarmonyPatch(typeof(Terminal), "QuitTerminal")] [HarmonyPostfix] public static void ResetCamera() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; ((Component)localPlayerController).gameObject.transform.Find("ScavengerModel/metarig/CameraContainer/MainCamera").localPosition = new Vector3(0f, 0f, 0f); } } } namespace ModelReplacement { public class NAHIDA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Nahida"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class RAIDEN : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Raiden Shogun"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class FURINA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Furina"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class VENTI : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Venti"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class ZHONGLI : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Zhongli"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MAVUIKA : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Mavuika"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("ArchonSuits.Konk", "ArchonSuits", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableModelForAllSuits { get; private set; } public static ConfigEntry<bool> enableModelAsDefault { get; private set; } public static ConfigEntry<string> suitNamesToEnableModel { get; private set; } private static void InitConfig() { enableModelForAllSuits = config.Bind<bool>("Suits to Replace Settings", "Enable Model for all Suits", false, "Enable to model replace every suit. Set to false to specify suits"); enableModelAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Model as default", false, "Enable to model replace every suit that hasn't been otherwise registered."); suitNamesToEnableModel = config.Bind<string>("Suits to Replace Settings", "Suits to enable Model for", "Default,Orange suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Nahida", typeof(NAHIDA)); ModelReplacementAPI.RegisterSuitModelReplacement("Raiden Shogun", typeof(RAIDEN)); ModelReplacementAPI.RegisterSuitModelReplacement("Furina", typeof(FURINA)); ModelReplacementAPI.RegisterSuitModelReplacement("Venti", typeof(VENTI)); ModelReplacementAPI.RegisterSuitModelReplacement("Zhongli", typeof(ZHONGLI)); ModelReplacementAPI.RegisterSuitModelReplacement("Mavuika", typeof(MAVUIKA)); Harmony val = new Harmony("ArchonSuits.Konk"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin ArchonSuits.Konk is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "ArchonSuits"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_"); } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName); using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }