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 SoundChanges v1.0.5
Mods/LCmod.dll
Decompiled 10 months agousing System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using LCmod.Patches; 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("LCmod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("LCmod")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("28470167-5e36-40f3-8140-be8082aacc2b")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace LCmod { [BepInPlugin("Zeus.LCMod", "Moaning cordpull", "1.0.0.0")] public class Modbase : BaseUnityPlugin { private const string modGUID = "Zeus.LCMod"; private const string modName = "Moaning cordpull"; private const string modVersion = "1.0.0.0"; private readonly Harmony harmony = new Harmony("Zeus.LCMod"); internal static Modbase Instance; internal static List<AudioClip> SoundFX; internal static List<AudioClip> SoundFX_1; internal static List<AudioClip> SoundFX_2; internal static List<AudioClip> SoundFX_3; internal static List<AudioClip> SoundFX_4; internal static List<AudioClip> SoundFX_5; internal static List<AudioClip> SoundFX_6; internal static List<AudioClip> SoundFX_7; internal static List<AudioClip> SoundFX_8; internal static List<AudioClip> SoundFX_9; internal static List<AudioClip> SoundFX_10; internal static List<AudioClip> SoundFX_11; internal static List<AudioClip> SoundFX_12; internal static List<AudioClip> SoundFX_13; internal static List<AudioClip> SoundFX_14; internal static AssetBundle Bundle; internal static AssetBundle Bundle_1; internal static AssetBundle Bundle_2; internal static AssetBundle Bundle_3; internal static AssetBundle Bundle_4; internal static AssetBundle Bundle_5; internal static AssetBundle Bundle_6; internal static AssetBundle Bundle_7; internal static AssetBundle Bundle_8; internal static AssetBundle Bundle_9; internal static AssetBundle Bundle_10; internal static AssetBundle Bundle_11; internal static AssetBundle Bundle_12; internal static AssetBundle Bundle_13; internal static AssetBundle Bundle_14; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("Zeus.LCMod"); mls.LogInfo((object)"The mod has finally awaken"); harmony.PatchAll(typeof(ShipAlarmCordPatch)); harmony.PatchAll(typeof(SandEmergePatch)); harmony.PatchAll(typeof(SuitSoundPatch)); harmony.PatchAll(typeof(MouthDogPatch)); harmony.PatchAll(typeof(ShipSpeechPatch)); harmony.PatchAll(typeof(LandminePatch)); mls = ((BaseUnityPlugin)this).Logger; string location = ((BaseUnityPlugin)Instance).Info.Location; location = location.TrimEnd("LCmod.dll".ToCharArray()); Bundle = AssetBundle.LoadFromFile(location + "Moan"); Bundle_1 = AssetBundle.LoadFromFile(location + "ahh"); Bundle_2 = AssetBundle.LoadFromFile(location + "wdrop"); Bundle_3 = AssetBundle.LoadFromFile(location + "wow"); Bundle_4 = AssetBundle.LoadFromFile(location + "jump"); Bundle_5 = AssetBundle.LoadFromFile(location + "radofoos"); Bundle_6 = AssetBundle.LoadFromFile(location + "dogbreathing"); Bundle_7 = AssetBundle.LoadFromFile(location + "dogkill"); Bundle_8 = AssetBundle.LoadFromFile(location + "dogscream"); Bundle_9 = AssetBundle.LoadFromFile(location + "shipspeaker"); Bundle_11 = AssetBundle.LoadFromFile(location + "hellnahhshort"); Bundle_12 = AssetBundle.LoadFromFile(location + "allahu akbar"); Bundle_13 = AssetBundle.LoadFromFile(location + "allahu akbarfar"); Bundle_14 = AssetBundle.LoadFromFile(location + "alert"); if ((Object)(object)Bundle != (Object)null) { mls.LogInfo((object)"Succesfully loaded Asset bundle"); SoundFX = Bundle.LoadAllAssets<AudioClip>().ToList(); SoundFX_1 = Bundle_1.LoadAllAssets<AudioClip>().ToList(); SoundFX_2 = Bundle_2.LoadAllAssets<AudioClip>().ToList(); SoundFX_3 = Bundle_3.LoadAllAssets<AudioClip>().ToList(); SoundFX_4 = Bundle_4.LoadAllAssets<AudioClip>().ToList(); SoundFX_5 = Bundle_5.LoadAllAssets<AudioClip>().ToList(); SoundFX_6 = Bundle_6.LoadAllAssets<AudioClip>().ToList(); SoundFX_7 = Bundle_7.LoadAllAssets<AudioClip>().ToList(); SoundFX_8 = Bundle_8.LoadAllAssets<AudioClip>().ToList(); SoundFX_9 = Bundle_9.LoadAllAssets<AudioClip>().ToList(); SoundFX_11 = Bundle_11.LoadAllAssets<AudioClip>().ToList(); SoundFX_12 = Bundle_12.LoadAllAssets<AudioClip>().ToList(); SoundFX_13 = Bundle_13.LoadAllAssets<AudioClip>().ToList(); SoundFX_14 = Bundle_14.LoadAllAssets<AudioClip>().ToList(); } else { mls.LogError((object)"Failed to load Asset bundle"); } } } } namespace LCmod.Patches { [HarmonyPatch(typeof(Landmine))] internal class LandminePatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void OverrideAudio(Landmine __instance) { __instance.mineDeactivate = Modbase.SoundFX_11[0]; __instance.mineDetonate = Modbase.SoundFX_12[0]; __instance.mineDetonateFar = Modbase.SoundFX_13[0]; __instance.minePress = Modbase.SoundFX_14[0]; } } [HarmonyPatch(typeof(MouthDogAI))] internal class MouthDogPatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void OverrideAudio(MouthDogAI __instance) { __instance.breathingSFX = Modbase.SoundFX_6[0]; __instance.killPlayerSFX = Modbase.SoundFX_7[0]; __instance.screamSFX = Modbase.SoundFX_8[0]; } } [HarmonyPatch(typeof(SandWormAI))] internal class SandEmergePatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void OverrideAudio(SandWormAI __instance) { __instance.emergeFromGroundSFX = Modbase.SoundFX_1[0]; __instance.hitGroundSFX = Modbase.SoundFX_2[0]; } } [HarmonyPatch(typeof(ShipAlarmCord))] internal class ShipAlarmCordPatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void OverrideAudio(ShipAlarmCord __instance) { __instance.cordPullSFX = Modbase.SoundFX[0]; } } [HarmonyPatch(typeof(StartOfRound))] internal class ShipSpeechPatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void OverrideAudio(StartOfRound __instance) { __instance.shipIntroSpeechSFX = Modbase.SoundFX_9[0]; } } [HarmonyPatch(typeof(StartOfRound))] internal class SuitSoundPatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void OverrideAudio(StartOfRound __instance) { __instance.changeSuitSFX = Modbase.SoundFX_3[0]; __instance.playerJumpSFX = Modbase.SoundFX_4[0]; } } }