Decompiled source of InfiniteReach v1.0.0

plugins/InfReach.dll

Decompiled 7 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using GameNetcodeStuff;
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("ScannablePlayersModv1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ScannablePlayersModv1")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("6965a26d-1c21-438e-936b-c7d11bb0522f")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace ScannablePlayersMod
{
	[BepInPlugin("Obsidian.Lithium.InfReach", "InfReach", "1.0.0")]
	public class ModBase : BaseUnityPlugin
	{
		private const string modGUID = "Obsidian.Lithium.InfReach";

		private const string modName = "InfReach";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("Obsidian.Lithium.InfReach");

		private static ModBase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			harmony.PatchAll(Assembly.GetExecutingAssembly());
		}
	}
}
namespace LethalCompanyMods.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch(typeof(PlayerControllerB))]
		internal class PlayerControllerPatch
		{
			[HarmonyPatch("Update")]
			[HarmonyPostfix]
			private static void ReachPatch(ref float ___grabDistance)
			{
				___grabDistance = 9999f;
			}
		}
	}
}