Decompiled source of InfSprint v1.0.0

InfSprint.dll

Decompiled a year ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using GameNetcodeStuff;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
[assembly: AssemblyCompany("InfSprint")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("InfSprint")]
[assembly: AssemblyTitle("InfSprint")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace InfSprint;

[BepInPlugin("void.infrun", "Infinite Run Mod", "1.0.0")]
public class HarmonyLibs1 : BaseUnityPlugin
{
	private const string guid = "void.infrun";

	private const string name = "Infinite Run Mod";

	private const string version = "1.0.0";

	private readonly Harmony harmony = new Harmony("void.infrun");

	private static HarmonyLibs1 instance;

	internal ManualLogSource mls;

	private void Awake()
	{
		if ((Object)(object)instance == (Object)null)
		{
			instance = this;
		}
		mls.LogInfo((object)"INFINITE MOD WORKING yay");
		harmony.PatchAll(typeof(HarmonyLibs1));
		harmony.PatchAll(typeof(PlayerControllerB));
	}
}
[HarmonyPatch(typeof(PlayerControllerB))]
internal class InfRun
{
	[HarmonyPatch("Update")]
	[HarmonyPostfix]
	private static void run(ref float __sprintmeter)
	{
		__sprintmeter = 1f;
	}
}