Decompiled source of supersprint v1.0.0

BepInEx/plugins/mod.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 UnityEngine;
using mod.mdifi;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("mod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("mod")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("671a6fb5-01d0-412e-a915-6110734f0e3d")]
[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 mod
{
	[BepInPlugin("ProfileName.md", "SuperSprint", "1.0.0.0")]
	public class mod1 : BaseUnityPlugin
	{
		private const string modGUID = "ProfileName.md";

		private const string modName = "SuperSprint";

		private const string modVersion = "1.0.0.0";

		private readonly Harmony harmony = new Harmony("ProfileName.md");

		private static mod1 Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("ProfileName.md");
			mls.LogInfo((object)"the test mod has awakened");
			harmony.PatchAll(typeof(mod1));
			harmony.PatchAll(typeof(PlayerControllerBmidifi));
		}
	}
}
namespace mod.mdifi
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBmidifi
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void superSprintPatch(ref float ___sprintMeter)
		{
			___sprintMeter = 1f;
		}
	}
}