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 RadioDistortionFix v1.0.0
RadioDistortionFix.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 BepInEx.Logging; using HarmonyLib; using RadioDistortionFix.patches; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("RadioDistortionFix")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("RadioDistortionFix")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("bbb1fb0c-7fca-48f9-8943-08b018ffde04")] [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 RadioDistortionFix { [BepInPlugin("catenjoyer.RadioDistortionFix", "RadioDistortionFix", "1.0.0")] public class ModBase : BaseUnityPlugin { private const string modGUID = "catenjoyer.RadioDistortionFix"; private const string modName = "RadioDistortionFix"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("catenjoyer.RadioDistortionFix"); private static ModBase instance; internal ManualLogSource mod_log; private void Awake() { if ((Object)null == (Object)(object)instance) { instance = this; } mod_log = Logger.CreateLogSource("catenjoyer.RadioDistortionFix"); mod_log.LogInfo((object)"RadioDistortionFix: Awake() called"); harmony.PatchAll(typeof(VehicleControllerPatch)); } } } namespace RadioDistortionFix.patches { [HarmonyPatch(typeof(VehicleController))] internal class VehicleControllerPatch { [HarmonyPatch("SetRadioValues")] [HarmonyPostfix] private static void SetRadioValuesPatch(ref bool ___radioOn, ref AudioSource ___radioAudio) { if (___radioOn) { ___radioAudio.dopplerLevel = 0f; } } } }