Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of BadCompanyIntro v1.0.0
BadCompanyIntro.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("BadCompanyIntro")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("BadCompanyIntro")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("ea8b0258-90c6-46d8-b73d-a1e551408823")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace BadCompanyIntro; [BepInPlugin("Aloha.BadCompanyIntro", "Bad Company Intro Speech", "1.0.0")] public class MainClass : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("Aloha.BadCompanyIntro"); internal static AudioClip[] NewMusic; private void Awake() { string pluginPath = Paths.PluginPath; string text = pluginPath + "\\Aloha-BadCompanyIntro\\badcomp"; AssetBundle val = AssetBundle.LoadFromFile(text); if ((Object)(object)val == (Object)null) { } NewMusic = val.LoadAssetWithSubAssets<AudioClip>("assets/sounds/badcompany.mp3"); harmony.PatchAll(); } } [HarmonyPatch(typeof(StartOfRound))] internal class Patches { [HarmonyPatch("Start")] [HarmonyPostfix] private static void OverrideAudio(StartOfRound __instance) { __instance.shipIntroSpeechSFX = MainClass.NewMusic[0]; } } public class PluginDetails { public const string modGUID = "Aloha.BadCompanyIntro"; public const string modName = "Bad Company Intro Speech"; public const string modVersion = "1.0.0"; }