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 RemoveCameraBob v0.0.1
plugins/RemoveCameraBob.dll
Decompiled a year agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("RemoveCameraBob")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("0.0.1.0")] [assembly: AssemblyInformationalVersion("0.0.1")] [assembly: AssemblyProduct("Remove Camera Bob")] [assembly: AssemblyTitle("RemoveCameraBob")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.0.1.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace RemoveCameraBob { [HarmonyPatch(typeof(CameraBob))] internal class CameraBobPatches { [HarmonyPrefix] [HarmonyPatch("Update")] private static bool Update(CameraBob __instance) { if (Plugin.DisableCameraBob.Value) { __instance.bobUpLerpStrength = 0f; __instance.bobSideLerpStrength = 0f; } return true; } } [HarmonyPatch(typeof(CameraTilt))] internal class CameraTiltPatches { [HarmonyPrefix] [HarmonyPatch("Update")] private static bool Update(CameraTilt __instance) { if (Plugin.DisableCameraTilt.Value) { __instance.tiltX = 0f; __instance.tiltZ = 0f; __instance.tiltXMax = 0f; __instance.tiltZMax = 0f; } return true; } } [HarmonyPatch(typeof(CameraNoise))] internal class CameraNoisePatches { [HarmonyPrefix] [HarmonyPatch("Update")] private static bool Update(CameraNoise __instance) { if (Plugin.DisableCameraNoise.Value) { __instance.StrengthDefault = 0f; } return true; } } [HarmonyPatch(typeof(FlashlightBob))] internal class FlashlightPatches { [HarmonyPrefix] [HarmonyPatch("Update")] private static bool Update(FlashlightBob __instance) { if (Plugin.DisableFlashlightTilt.Value) { return false; } return true; } } [HarmonyPatch(typeof(FlashlightTilt))] internal class FlashlightTiltPatches { [HarmonyPrefix] [HarmonyPatch("Update")] private static bool Update(FlashlightTilt __instance) { if (Plugin.DisableFlashlightTilt.Value) { return false; } return true; } } [BepInPlugin("RemoveCameraBob", "Remove Camera Bob", "0.0.1")] public class Plugin : BaseUnityPlugin { public static Plugin Instance; internal static ManualLogSource Log; public static ConfigEntry<bool> DisableCameraBob; public static ConfigEntry<bool> DisableCameraTilt; public static ConfigEntry<bool> DisableFlashlightTilt; public static ConfigEntry<bool> DisableCameraNoise; private void Awake() { Instance = this; Log = ((BaseUnityPlugin)this).Logger; DisableCameraBob = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "DisableCameraBob", true, "Disable camera bobbing."); DisableCameraTilt = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "DisableCameraTilt", true, "Disable camera tilting."); DisableFlashlightTilt = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "DisableFlashlightTilt", true, "Disable flashlight tilting."); DisableCameraNoise = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "DisableCameraNoise", true, "Disable camera noise."); Log.LogInfo((object)"Plugin RemoveCameraBob is loaded!"); Harmony.CreateAndPatchAll(typeof(Plugin), (string)null); Harmony.CreateAndPatchAll(typeof(CameraBobPatches), (string)null); Harmony.CreateAndPatchAll(typeof(CameraTiltPatches), (string)null); Harmony.CreateAndPatchAll(typeof(CameraNoisePatches), (string)null); Harmony.CreateAndPatchAll(typeof(FlashlightPatches), (string)null); Harmony.CreateAndPatchAll(typeof(FlashlightTiltPatches), (string)null); } } public static class MyPluginInfo { public const string PLUGIN_GUID = "RemoveCameraBob"; public const string PLUGIN_NAME = "Remove Camera Bob"; public const string PLUGIN_VERSION = "0.0.1"; } }