Decompiled source of ConsistentSensitivity v1.0.0

BepInEx/plugins/ConsistentSensitivity/ConsistentSensitivity.dll

Decompiled 18 hours ago
using 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.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("ConsistentSensitivity")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+99373e7f5d0ab121eefa2dbfabfa63ce6608634e")]
[assembly: AssemblyProduct("ConsistentSensitivity")]
[assembly: AssemblyTitle("ConsistentSensitivity")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[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 ConsistentSensitivity
{
	public static class Pluginfo
	{
		public const string guid = "win.deathis.ConsistentSensitivity";

		public const string name = "Consistent Sensitivity";

		public const string version = "1.0.0";
	}
	[BepInPlugin("win.deathis.ConsistentSensitivity", "Consistent Sensitivity", "1.0.0")]
	public class Plugin : BaseUnityPlugin
	{
		[HarmonyPatch(typeof(ENT_Player), "GrabPropUpdate")]
		public static class Patch_GrabPropUpdate
		{
			public static void Postfix(ref float ___camSpeed)
			{
				___camSpeed = 1f;
			}
		}

		private static ManualLogSource _logger;

		private static Harmony _harmony;

		private void Awake()
		{
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Expected O, but got Unknown
			_logger = ((BaseUnityPlugin)this).Logger;
			_harmony = new Harmony("win.deathis.ConsistentSensitivity");
			_harmony.PatchAll();
			_logger.LogInfo((object)"Plugin win.deathis.ConsistentSensitivity has loaded");
		}

		private void OnDestroy()
		{
			Harmony harmony = _harmony;
			if (harmony != null)
			{
				harmony.UnpatchSelf();
			}
			_logger.LogInfo((object)"Plugin win.deathis.ConsistentSensitivity has unloaded");
		}
	}
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "ConsistentSensitivity";

		public const string PLUGIN_NAME = "ConsistentSensitivity";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}