Decompiled source of FastFeets v1.0.0

TurboFeets.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 TurboFeets.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("TurboFeets")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TurboFeets")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("31c22072-a437-4602-8b4b-e659cf28bdb5")]
[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 TurboFeets
{
	[BepInPlugin("LxsDev.TurboFeets", "Turbo Feets", "1.0.0")]
	public class TurboFeetsBase : BaseUnityPlugin
	{
		private const string modGUID = "LxsDev.TurboFeets";

		private const string modName = "Turbo Feets";

		private const string modVersion = "1.0.0";

		public readonly Harmony harmony = new Harmony("LxsDev.TurboFeets");

		private static TurboFeetsBase Instance;

		internal ManualLogSource Mlog;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			Mlog = Logger.CreateLogSource(" LxsDev.TurboFeets");
			Mlog.LogInfo((object)"Time to go fast...Katchow");
			harmony.PatchAll(typeof(TurboFeetsBase));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace TurboFeets.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void patchedUpdate(ref float ___sprintMeter, ref float ___movementSpeed, ref bool ___isSprinting)
		{
			___movementSpeed = 18f;
			___sprintMeter = 1f;
			___isSprinting = true;
		}
	}
}