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 InfiniteSprint.Patches;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("InfiniteSprint")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("InfiniteSprint")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("2170b4ed-28c2-4a63-abf4-c06af3a0cdd7")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace InfiniteSprint
{
[BepInPlugin("SteveModders.InfiniteSprintMod", "InfiniteSprint", "1.0.0.0")]
public class InfiniteSprintMod : BaseUnityPlugin
{
private const string modGUID = "SteveModders.InfiniteSprintMod";
private const string modName = "InfiniteSprint";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("SteveModders.InfiniteSprintMod");
private static InfiniteSprintMod instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)instance == (Object)null)
{
instance = this;
}
mls = Logger.CreateLogSource("SteveModders.InfiniteSprintMod");
mls.LogInfo((object)"Awake() for InfiniteSprint called!");
harmony.PatchAll(typeof(InfiniteSprintMod));
harmony.PatchAll(typeof(PlayerControllerBPatch));
}
}
}
namespace InfiniteSprint.Patches
{
[HarmonyPatch(typeof(PlayerControllerB))]
internal class PlayerControllerBPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void inifiniteSprintPatch(ref float ___sprintMeter)
{
___sprintMeter = 1f;
}
}
}