Decompiled source of InfSprinty v7.6.0

LethalTest.dll

Decompiled 2 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 LethalTest.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("LethalTest")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LethalTest")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("7f9260f4-781b-402e-8179-827b4dd2f983")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace LethalTest
{
	[BepInPlugin("Poseidon.InfSprint", "Infinite Sprint", "7.6.0")]
	public class Infinite_Sprint : BaseUnityPlugin
	{
		private const string modGUID = "Poseidon.InfSprint";

		private const string modName = "Infinite Sprint";

		private const string modVersion = "7.6.0";

		private readonly Harmony harmony = new Harmony("Poseidon.InfSprint");

		private static Infinite_Sprint Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("Poseidon.InfSprint");
			mls.LogInfo((object)"Made by ._Husker._/Ryze!!!! FIRST MOD WHEN I MADE THIS I CRIED OF HAPPINMESS RAHH :)");
			harmony.PatchAll(typeof(Infinite_Sprint));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace LethalTest.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void infiniteSprintPatch(ref float ___sprintMeter)
		{
			___sprintMeter = 1f;
		}
	}
}