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;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("UnlimitedSprint")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("UnlimitedSprint")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("f8d817ab-0f18-459c-a3f6-c790999bac39")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace UnlimitedSprintBase;
[BepInPlugin("c0mmander.UnlimitedSprint", "UnlimitedSprint", "1.0.0.0")]
public class UnlimitedSprint : BaseUnityPlugin
{
public const string modGUID = "c0mmander.UnlimitedSprint";
public const string modName = "UnlimitedSprint";
public const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("c0mmander.UnlimitedSprint");
private void Awake()
{
Logger.CreateLogSource("c0mmander.UnlimitedSprint").LogMessage((object)"c0mmander.UnlimitedSprint has loaded succesfully.");
harmony.PatchAll(typeof(Sprinter));
}
}
[HarmonyPatch(typeof(PlayerControllerB))]
[HarmonyPatch("Update")]
internal class Sprinter
{
[HarmonyPostfix]
private static void Postfix(ref float ___sprintMeter)
{
___sprintMeter = 1f;
}
}