Decompiled source of QuinnsRun v1.0.0

InfRunFlaccidV2.dll

Decompiled 6 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 InfRunFlaccidV2.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("InfRunFlaccidV2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("InfRunFlaccidV2")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("6d3cab2c-54c4-48dc-9aea-9fd27a145cdf")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace InfRunFlaccidV2
{
	[BepInPlugin("FlaccidMan.InfinityRun", "InfinityMod", "5.4.22.0")]
	public class InfinityRun : BaseUnityPlugin
	{
		private const string modGUID = "FlaccidMan.InfinityRun";

		private const string modName = "InfinityMod";

		private const string modVersion = "5.4.22.0";

		private readonly Harmony harmony = new Harmony("FlaccidMan.InfinityRun");

		private static InfinityRun instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)instance == (Object)null)
			{
				instance = this;
			}
			mls = Logger.CreateLogSource("FlaccidMan.InfinityRun");
			mls.LogInfo((object)"This shit is on bitch");
			harmony.PatchAll(typeof(InfinityRun));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace InfRunFlaccidV2.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void InfiniteRunPatch(ref float ___sprintMeter)
		{
			___sprintMeter = 1f;
		}
	}
}