Decompiled source of E0518W Definitive Models Addon v2.1.0
plugins/AbraCadaver-AlbertWeskerREPack/Albert Wesker Pack.dll
Decompiled 3 weeks 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 HarmonyLib; using Microsoft.CodeAnalysis; 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("Albert Wesker Pack")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Albert Wesker Pack")] [assembly: AssemblyTitle("Albert Wesker Pack")] [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 ModelReplacement { public class MRWESKERRE4 : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Wesker RE4"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MRALBERTWESKERRE5COAT : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Albert Wesker RE5 Coat"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MRALBERTWESKERRE5NOCOAT : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Albert Wesker RE5 No Coat"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MRALBERTWESKERRE1 : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Albert Wesker RE1"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("com.abracadaver.AlbertWeskerPack", "AlbertWeskerREPack", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { private void Awake() { //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Expected O, but got Unknown Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Albert Wesker RE4", typeof(MRWESKERRE4)); ModelReplacementAPI.RegisterSuitModelReplacement("Albert Wesker RE1", typeof(MRALBERTWESKERRE1)); ModelReplacementAPI.RegisterSuitModelReplacement("Albert Wesker RE5 Coat", typeof(MRALBERTWESKERRE5COAT)); ModelReplacementAPI.RegisterSuitModelReplacement("Albert Wesker RE5 Midnight", typeof(MRALBERTWESKERRE5NOCOAT)); Harmony val = new Harmony("com.abracadaver.AlbertWeskerPack"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.abracadaver.AlbertWeskerPack is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "AlbertWeskerPack"; 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) { } } }
plugins/blubat-LethalPony/LethalPony.dll
Decompiled 3 weeks 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 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("LethalPony")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+e1385d7a00d82b5d975710dfef1d14b1ea462d0f")] [assembly: AssemblyProduct("LethalPony")] [assembly: AssemblyTitle("LethalPony")] [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 LethalPony { public class PonyRarityReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "rarityPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(29, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(44, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(49, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(58, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(60, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(83, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(84, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(25, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(45, 0f); if (emoteId == 1) { base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(83, 100f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(84, 100f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(25, 60f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(45, 100f); } if (emoteId == 2) { base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(29, 100f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(44, 100f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(49, 100f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(58, 100f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(60, 70f); } } protected override void OnEmoteEnd() { base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(83, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(84, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(25, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(45, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(29, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(44, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(49, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(58, 0f); base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>().SetBlendShapeWeight(60, 0f); } } public class PonyApplejackReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "applejackPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } public class PonyTwilightReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "twilightPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } public class PonyAnonfillyReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "anonfillyPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } public class PonyBraeburnReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "braeburnPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } public class PonyChangelingReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "changelingPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } public class PonyEchoReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "echoPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } public class PonyFluttershyReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "fluttershyPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } public class PonyLyraReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "lyraPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } public class PonyPinkieReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "pinkiePrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } public class PonyRainbowDashReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "rainbowdashPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } public class PonySpitfireReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "spitfirePrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } public class PonyTrixieReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "trixiePrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { throw new NotImplementedException(); } protected override void OnEmoteEnd() { throw new NotImplementedException(); } } [BepInPlugin("blud.PonyModelReplacement", "Pony Models", "1.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> enableApplejackAsDefault { get; private set; } public static ConfigEntry<float> UpdateRate { get; private set; } public static ConfigEntry<float> distanceDisablePhysics { get; private set; } public static ConfigEntry<bool> disablePhysicsAtRange { get; private set; } private static void InitConfig() { enableApplejackAsDefault = config.Bind<bool>("Suits to Replace Settings", "Enable Applejack as default", false, "Enable to replace every suit that hasn't been otherwise registered with Applejack."); UpdateRate = config.Bind<float>("Dynamic Bone Settings", "Update rate", 60f, "Refreshes dynamic bones more times per second the higher the number"); disablePhysicsAtRange = config.Bind<bool>("Dynamic Bone Settings", "Disable physics at range", false, "Enable to disable physics past the specified range"); distanceDisablePhysics = config.Bind<float>("Dynamic Bone Settings", "Distance to disable physics", 20f, "If Disable physics at range is enabled, this is the range after which physics is disabled."); } private void Awake() { //IL_014e: Unknown result type (might be due to invalid IL or missing references) //IL_0154: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Applejack", typeof(PonyApplejackReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Braeburn", typeof(PonyBraeburnReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Rarity", typeof(PonyRarityReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Changeling", typeof(PonyChangelingReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Echo", typeof(PonyEchoReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Fluttershy", typeof(PonyFluttershyReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Lyra", typeof(PonyLyraReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Pinkie", typeof(PonyPinkieReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Rainbow Dash", typeof(PonyRainbowDashReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Rarity Dash", typeof(PonyRarityReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Spitfire", typeof(PonySpitfireReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Trixie", typeof(PonyTrixieReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pony Twilight", typeof(PonyTwilightReplacement)); if (enableApplejackAsDefault.Value) { ModelReplacementAPI.RegisterModelReplacementDefault(typeof(PonyApplejackReplacement)); } Harmony val = new Harmony("blud.LethalPony"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin blud.LethalPony is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "ponyBundle"; public static AssetBundle MainAssetBundle = null; private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().GetName().Name; } 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) { } } }
plugins/BunyaPineTree-LethalFortress2/LethalFortress2.dll
Decompiled 3 weeks agousing System; using System.Collections.Generic; 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 HarmonyLib; using LethalFortress2.Replacements; 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("LethalFortress2")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("LethalFortress2")] [assembly: AssemblyTitle("LethalFortress2")] [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 LethalFortress2 { [BepInPlugin("meow.LethalFortress2", "Lethal Fortress 2", "0.1.1")] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> defaultScoutSkin { get; private set; } private static void InitConfig() { defaultScoutSkin = config.Bind<bool>("Suits to Replace Settings", "Enable Scout as default", false, "Enable to replace every non-TF2 suit with Scout."); } private void Awake() { //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_0100: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Engineer", typeof(EngineerReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Spy", typeof(SpyReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Sniper", typeof(SniperReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Pyro", typeof(PyroReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Demoman", typeof(DemoReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Scout", typeof(ScoutReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Soldier", typeof(SoldierReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Heavy", typeof(HeavyReplacement)); ModelReplacementAPI.RegisterSuitModelReplacement("Medic", typeof(MedicReplacement)); if (defaultScoutSkin.Value) { ModelReplacementAPI.RegisterModelReplacementDefault(typeof(ScoutReplacement)); } Harmony val = new Harmony("meow.LethalFortress2"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin meow.LethalFortress2 is loaded!"); } } public static class Assets { public class RandomAudioClip { private List<AudioClip> audioClipList = new List<AudioClip>(); public AudioClip GetRandomAudio(int seed) { Random random = new Random(); int num = random.Next(audioClipList.Count); Console.WriteLine($"Get audio N {audioClipList.Count} > {num}"); return audioClipList[num]; } public void AddAudio(string name) { AudioClip audioClipFromName = GetAudioClipFromName(name); if ((Object)(object)audioClipFromName != (Object)null) { audioClipList.Add(audioClipFromName); } else { Console.WriteLine("clip " + name + " null"); } } } public static string mainAssetBundleName = "tf2bundle"; public static AssetBundle MainAssetBundle = null; public static RandomAudioClip scoutE1 = new RandomAudioClip(); public static RandomAudioClip scoutE2 = new RandomAudioClip(); public static RandomAudioClip engineerE1 = new RandomAudioClip(); public static RandomAudioClip engineerE2 = new RandomAudioClip(); public static RandomAudioClip spyE1 = new RandomAudioClip(); public static RandomAudioClip spyE2 = new RandomAudioClip(); public static RandomAudioClip sniperE1 = new RandomAudioClip(); public static RandomAudioClip sniperE2 = new RandomAudioClip(); public static RandomAudioClip pyroE1 = new RandomAudioClip(); public static RandomAudioClip pyroE2 = new RandomAudioClip(); public static RandomAudioClip demoE1 = new RandomAudioClip(); public static RandomAudioClip demoE2 = new RandomAudioClip(); public static RandomAudioClip soldierE1 = new RandomAudioClip(); public static RandomAudioClip soldierE2 = new RandomAudioClip(); public static RandomAudioClip heavyE1 = new RandomAudioClip(); public static RandomAudioClip heavyE2 = new RandomAudioClip(); public static RandomAudioClip medicE1 = new RandomAudioClip(); public static RandomAudioClip medicE2 = new RandomAudioClip(); private static string GetAssemblyName() { return Assembly.GetExecutingAssembly().FullName.Split(',')[0]; } public static void PopulateAssets() { if ((Object)(object)MainAssetBundle == (Object)null) { using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName); MainAssetBundle = AssetBundle.LoadFromStream(stream); } scoutE1.AddAudio("Scout_cheers01"); scoutE1.AddAudio("Scout_battlecry01"); scoutE1.AddAudio("Scout_cheers05"); scoutE2.AddAudio("Scout_jeers02"); scoutE2.AddAudio("Scout_invinciblenotready02"); scoutE2.AddAudio("Scout_invinciblenotready02"); scoutE2.AddAudio("Scout_award09"); scoutE2.AddAudio("Scout_cloakedspy03"); engineerE1.AddAudio("Engineer_cheers02"); engineerE1.AddAudio("Engineer_battlecry07"); engineerE2.AddAudio("Engineer_dominationspy07"); engineerE2.AddAudio("Engineer_cloakedspy03"); spyE1.AddAudio("Spy_autocappedintelligence03"); spyE1.AddAudio("Spy_battlecry01"); spyE2.AddAudio("Spy_DominationScout01"); spyE2.AddAudio("Spy_taunts05"); sniperE1.AddAudio("Cm_sniper_matchwon_08"); sniperE1.AddAudio("Sniper_cheers04"); sniperE1.AddAudio("Sniper_cheers02"); sniperE1.AddAudio("Sniper_battlecry05"); sniperE2.AddAudio("Sniper_domination13"); sniperE2.AddAudio("Sniper_specialcompleted13"); sniperE2.AddAudio("Sniper_jeers03"); sniperE2.AddAudio("Sniper_cloakedspy02"); sniperE2.AddAudio("Sniper_go01"); pyroE1.AddAudio("Pyro_laughevil04"); pyroE1.AddAudio("Pyro_positivevocalization01"); pyroE1.AddAudio("Pyro_laughevil02"); pyroE2.AddAudio("Pyro_jeers02"); pyroE2.AddAudio("Pyro_battlecry02"); pyroE2.AddAudio("Pyro_cloakedspy01"); demoE1.AddAudio("Demoman_goodjob01"); demoE1.AddAudio("Demoman_cheers02"); demoE1.AddAudio("Demoman_battlecry06"); demoE1.AddAudio("Demoman_battlecry01"); demoE2.AddAudio("Demoman_jeers01"); demoE2.AddAudio("Demoman_cloakedspy01"); demoE2.AddAudio("Demoman_cloakedspy02"); demoE2.AddAudio("Demoman_go01"); soldierE1.AddAudio("Soldier_sf12_badmagic12"); soldierE1.AddAudio("Soldier_cheers01"); soldierE1.AddAudio("Soldier_cheers06"); soldierE1.AddAudio("Soldier_cheers03"); soldierE2.AddAudio("Cm_soldier_summary_callout_01"); soldierE2.AddAudio("Soldier_DominationSpy05"); soldierE2.AddAudio("Soldier_HatOverHeartTaunt02"); soldierE2.AddAudio("Soldier_HatOverHeartTaunt01"); soldierE2.AddAudio("Soldier_jeers01"); soldierE2.AddAudio("Soldier_cloakedspy02"); heavyE1.AddAudio("Cm_heavy_summary_callout_06"); heavyE1.AddAudio("Cm_heavy_matchwon_10"); heavyE1.AddAudio("Cm_heavy_pregamefirst_09"); heavyE1.AddAudio("Heavy_specialcompleted11"); heavyE1.AddAudio("Heavy_laughterbig01"); heavyE1.AddAudio("Heavy_positivevocalization02"); heavyE2.AddAudio("Heavy_jeers03"); heavyE2.AddAudio("Heavy_specialcompleted09"); heavyE2.AddAudio("Heavy_meleedare07"); heavyE2.AddAudio("Heavy_cloakedspy03"); heavyE2.AddAudio("Heavy_go03"); medicE1.AddAudio("Medic_positivevocalization02"); medicE1.AddAudio("Medic_cheers01"); medicE2.AddAudio("Medic_autocappedintelligence02"); medicE2.AddAudio("Medic_jeers05"); medicE2.AddAudio("Medic_cloakedspy02"); } public static AudioClip GetAudioClipFromName(string name) { Object obj = MainAssetBundle.LoadAsset(name); return (AudioClip)(object)((obj is AudioClip) ? obj : null); } } } namespace LethalFortress2.Replacements { public class EngineerReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "engineerPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { if (emoteId == 1) { AudioClip randomAudio = Assets.engineerE1.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f); } if (emoteId == 2) { AudioClip randomAudio2 = Assets.engineerE2.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f); } } } public class SpyReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "spyPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { if (emoteId == 1) { AudioClip randomAudio = Assets.spyE1.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f); } if (emoteId == 2) { AudioClip randomAudio2 = Assets.spyE2.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f); } } } public class SniperReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "sniperPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { if (emoteId == 1) { AudioClip randomAudio = Assets.sniperE1.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f); } if (emoteId == 2) { AudioClip randomAudio2 = Assets.sniperE2.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f); } } } public class PyroReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "pyroPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { if (emoteId == 1) { AudioClip randomAudio = Assets.pyroE1.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f); } if (emoteId == 2) { AudioClip randomAudio2 = Assets.pyroE2.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f); } } } public class DemoReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "demoPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { if (emoteId == 1) { AudioClip randomAudio = Assets.demoE1.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f); } if (emoteId == 2) { AudioClip randomAudio2 = Assets.demoE2.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f); } } } public class ScoutReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "scoutPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { if (emoteId == 1) { AudioClip randomAudio = Assets.scoutE1.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f); } if (emoteId == 2) { AudioClip randomAudio2 = Assets.scoutE2.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f); } } } public class SoldierReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "soldierPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { if (emoteId == 1) { AudioClip randomAudio = Assets.soldierE1.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f); } if (emoteId == 2) { AudioClip randomAudio2 = Assets.soldierE2.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f); } } } public class HeavyReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "heavyPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { if (emoteId == 1) { AudioClip randomAudio = Assets.heavyE1.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f); } if (emoteId == 2) { AudioClip randomAudio2 = Assets.heavyE2.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f); } } } public class MedicReplacement : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "medicPrefab"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } protected override void OnEmoteStart(int emoteId) { if (emoteId == 1) { AudioClip randomAudio = Assets.medicE1.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f); } if (emoteId == 2) { AudioClip randomAudio2 = Assets.medicE2.GetRandomAudio(StartOfRound.Instance.randomMapSeed); ((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }
plugins/KoolKids-Astolfo/Lethal Astolfo.dll
Decompiled 3 weeks 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 HarmonyLib; using Microsoft.CodeAnalysis; 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("Lethal Astolfo")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Lethal Astolfo")] [assembly: AssemblyTitle("Lethal Astolfo")] [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 ModelReplacement { public class MRASTOLFOSABER : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "AstolfoSaber"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MRASTOLFOSAILOR : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "AstolfoSailor"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MRASTOLFOKNIGHT : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "AstolfoKnight"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("com.KoolKids.Astolfo", "Astolfo", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { private void Awake() { //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Expected O, but got Unknown Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Astolfo Knight", typeof(MRASTOLFOKNIGHT)); ModelReplacementAPI.RegisterSuitModelReplacement("Astolfo Saber", typeof(MRASTOLFOSABER)); ModelReplacementAPI.RegisterSuitModelReplacement("Astolfo Sailor", typeof(MRASTOLFOSAILOR)); Harmony val = new Harmony("com.KoolKids.Astolfo"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.KoolKids.Astolfo is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "Astolfo"; 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) { } } }
plugins/Krimiss-Tenna_Deltarune_Model/3D_Models.dll
Decompiled 3 weeks 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 HarmonyLib; using Microsoft.CodeAnalysis; 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("3D Models")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("3D Models")] [assembly: AssemblyTitle("3D Models")] [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 ModelReplacement { public class MRTENNA4 : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "tenna (4)"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("com.krimiss.tennadeltarune", "Tenna Deltarune Model", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { private void Awake() { //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Expected O, but got Unknown Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Tenna3DIcon", typeof(MRTENNA4)); Harmony val = new Harmony("com.krimiss.tennadeltarune"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.krimiss.tennadeltarune is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "TennaDeltaruneModel"; 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) { } } }
plugins/LethalPeePee-CrashBandicoot/CrashLethal.dll
Decompiled 3 weeks 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 HarmonyLib; using Microsoft.CodeAnalysis; 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("CrashLethal")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("CrashLethal")] [assembly: AssemblyTitle("CrashLethal")] [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 ModelReplacement { public class MRV13 : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "V1.3"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("com.glitchin.Crash", "CrashBandicoot", "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", "Crash", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_00b7: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("V1.3", typeof(MRV13)); if (enableModelForAllSuits.Value) { ModelReplacementAPI.RegisterModelReplacementOverride(typeof(MRV13)); } if (enableModelAsDefault.Value) { ModelReplacementAPI.RegisterModelReplacementDefault(typeof(MRV13)); } string[] array = suitNamesToEnableModel.Value.Split(','); string[] array2 = array; foreach (string text in array2) { ModelReplacementAPI.RegisterSuitModelReplacement(text, typeof(MRV13)); } Harmony val = new Harmony("com.glitchin.Crash"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.glitchin.Crash is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "CrashBandicoot"; 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) { } } }
plugins/Pee_John_Labs-Lethal_Master_Chief/Lethal_Master_Chief_Mod.dll
Decompiled 3 weeks 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 HarmonyLib; using Microsoft.CodeAnalysis; 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("Lethal_Master_Chief_Mod")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Lethal_Master_Chief_Mod")] [assembly: AssemblyTitle("Lethal_Master_Chief_Mod")] [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 ModelReplacement { public class MRMASTERCHIEFFIXED : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "master chiefFIXED"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("com.PeeJohn.Lethal_Master_Chief", "Lethal_Master_Chief", "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", "Master_Chief", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); if (enableModelForAllSuits.Value) { ModelReplacementAPI.RegisterModelReplacementOverride(typeof(MRMASTERCHIEFFIXED)); } if (enableModelAsDefault.Value) { ModelReplacementAPI.RegisterModelReplacementDefault(typeof(MRMASTERCHIEFFIXED)); } string[] array = suitNamesToEnableModel.Value.Split(','); string[] array2 = array; foreach (string text in array2) { ModelReplacementAPI.RegisterSuitModelReplacement(text, typeof(MRMASTERCHIEFFIXED)); } Harmony val = new Harmony("com.PeeJohn.Lethal_Master_Chief"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.PeeJohn.Lethal_Master_Chief is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "AB_Lethal_Master_Chief"; 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) { } } }
plugins/pervyTHEshadow-RockVolnutt/LethalRockVolnutt.dll
Decompiled 3 weeks 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 HarmonyLib; using Microsoft.CodeAnalysis; 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("LethalRockVolnutt")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("LethalRockVolnutt")] [assembly: AssemblyTitle("LethalRockVolnutt")] [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 ModelReplacement { public class RockVolnuttHelmet : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "RockVolnuttHelmet"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class RockVolnutt : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "RockVolnutt"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class DarkRockVolnuttHelmet : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "DarkRockVolnuttHelmet"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class DarkRockVolnutt : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "DarkRockVolnutt"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("JosephChristpervyTHEshadowRockVolnutt", "RockVolnutt", "1.0.3")] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { public static ConfigFile config; public static ConfigEntry<bool> defaultRockVolnuttSkin { get; private set; } private static void InitConfig() { defaultRockVolnuttSkin = config.Bind<bool>("Suits to Replace Settings", "Enable Rock as default", false, "Enable to replace every suit with Rock."); } private void Awake() { //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("RockVolnutt", typeof(RockVolnutt)); ModelReplacementAPI.RegisterSuitModelReplacement("RockVolnuttHelmet", typeof(RockVolnuttHelmet)); ModelReplacementAPI.RegisterSuitModelReplacement("DarkRockVolnutt", typeof(DarkRockVolnutt)); ModelReplacementAPI.RegisterSuitModelReplacement("DarkRockVolnuttHelmet", typeof(DarkRockVolnuttHelmet)); if (defaultRockVolnuttSkin.Value) { ModelReplacementAPI.RegisterModelReplacementDefault(typeof(RockVolnutt)); } Harmony val = new Harmony("JosephChristpervyTHEshadowRockVolnutt"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin JosephChristpervyTHEshadowRockVolnutt is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "RockVolnuttBundle"; 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) { } } }
plugins/PrimevalWhirlMemorial-StrongBad/StrongBad.dll
Decompiled 3 weeks 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 HarmonyLib; using Microsoft.CodeAnalysis; 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("StrongBad")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("StrongBad")] [assembly: AssemblyTitle("StrongBad")] [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 ModelReplacement { public class MRSTRONGBAD3 : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "StrongBad3"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } public class MRSTRONGBAD3_ : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "StrongBad3"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("com.DCKS.strongbad", "StrongBad", "0.1.4")] [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,Strong Bad, Blue suit", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); if (enableModelForAllSuits.Value) { ModelReplacementAPI.RegisterModelReplacementOverride(typeof(MRSTRONGBAD3)); } if (enableModelAsDefault.Value) { ModelReplacementAPI.RegisterModelReplacementDefault(typeof(MRSTRONGBAD3)); } string[] array = suitNamesToEnableModel.Value.Split(','); string[] array2 = array; foreach (string text in array2) { ModelReplacementAPI.RegisterSuitModelReplacement(text, typeof(MRSTRONGBAD3)); } Harmony val = new Harmony("com.DCKS.strongbad"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.DCKS.strongbad is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "strongbad3"; 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) { } } }
plugins/Sticks-BubbleBassPlayerModel/BubbleBass.dll
Decompiled 3 weeks 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 HarmonyLib; using Microsoft.CodeAnalysis; 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("BubbleBass")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("BubbleBass")] [assembly: AssemblyTitle("BubbleBass")] [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 ModelReplacement { public class MRBUBBLEBASS1 : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "BubbleBass (1)"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("com.stickytweaker.BubbleBass", "BubbleBassPlayerModel", "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_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); if (enableModelForAllSuits.Value) { ModelReplacementAPI.RegisterModelReplacementOverride(typeof(MRBUBBLEBASS1)); } if (enableModelAsDefault.Value) { ModelReplacementAPI.RegisterModelReplacementDefault(typeof(MRBUBBLEBASS1)); } string[] array = suitNamesToEnableModel.Value.Split(','); string[] array2 = array; foreach (string text in array2) { ModelReplacementAPI.RegisterSuitModelReplacement("BubbleBass", typeof(MRBUBBLEBASS1)); } Harmony val = new Harmony("com.stickytweaker.BubbleBass"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.stickytweaker.BubbleBass is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "thebasslord"; 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) { } } }
plugins/syava-Papyrus_Undertale_Model/paps.dll
Decompiled 3 weeks 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 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("paps")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("paps")] [assembly: AssemblyTitle("paps")] [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 PAPS { public class MRPAPYRUS : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "Papyrus"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("412343124", "PAPYRUS", "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", "Papyrus", "Enter a comma separated list of suit names.(Additionally, [Green suit,Pajama suit,Hazard suit])"); } private void Awake() { //IL_00b7: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Expected O, but got Unknown config = ((BaseUnityPlugin)this).Config; InitConfig(); Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Papyrus", typeof(MRPAPYRUS)); if (enableModelForAllSuits.Value) { ModelReplacementAPI.RegisterModelReplacementOverride(typeof(MRPAPYRUS)); } if (enableModelAsDefault.Value) { ModelReplacementAPI.RegisterModelReplacementDefault(typeof(MRPAPYRUS)); } string[] array = suitNamesToEnableModel.Value.Split(','); string[] array2 = array; foreach (string text in array2) { ModelReplacementAPI.RegisterSuitModelReplacement(text, typeof(MRPAPYRUS)); } Harmony val = new Harmony("412343124"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin 412343124 is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "papyrus"; 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) { } } }
plugins/ZeroExe-BondrewdSuit/BondrewdSuit.dll
Decompiled 3 weeks 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 HarmonyLib; using Microsoft.CodeAnalysis; 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("BondrewdSuit")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("BondrewdSuit")] [assembly: AssemblyTitle("BondrewdSuit")] [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 ModelReplacement { public class BONDREWD : BodyReplacementBase { protected override GameObject LoadAssetsAndReturnModel() { string text = "bondrewd"; return Assets.MainAssetBundle.LoadAsset<GameObject>(text); } } [BepInPlugin("com.zeroexe.bondrewd", "BondrewdSuit", "0.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { private void Awake() { //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Expected O, but got Unknown Assets.PopulateAssets(); ModelReplacementAPI.RegisterSuitModelReplacement("Bondrewd", typeof(BONDREWD)); Harmony val = new Harmony("com.zeroexe.bondrewd"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.zeroexe.bondrewd is loaded!"); } } public static class Assets { public static string mainAssetBundleName = "bondrewdbundle"; 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) { } } }