Decompiled source of increasedspeed v1.0.0

BepInEx/plugins/increasedspeed/fastsprint.dll

Decompiled 9 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 fastsprint.patches;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("fastsprint")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("fastsprint")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("7ecbb037-f964-4144-bcf1-24526248d5c5")]
[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 sprintmod
{
	[BepInPlugin("poseidon.fastsprint", "Fast Sprint", "1.0.0")]
	public class FastSprintBase : BaseUnityPlugin
	{
		private const string modGUID = "poseidon.fastsprint";

		private const string modName = "Fast Sprint";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("poseidon.fastsprint");

		private static FastSprintBase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("poseidon.fastsprint");
			mls.LogInfo((object)"HAIIIII :D");
			harmony.PatchAll(typeof(FastSprintBase));
			harmony.PatchAll(typeof(sprintpatch));
		}
	}
}
namespace fastsprint.patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class sprintpatch
	{
		private const double V = 1.5;

		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void SprintPatch(ref float ___sprintMultiplier)
		{
			___sprintMultiplier = 1.5f;
		}
	}
}

fastsprint.dll

Decompiled 9 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 fastsprint.patches;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("fastsprint")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("fastsprint")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("7ecbb037-f964-4144-bcf1-24526248d5c5")]
[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 sprintmod
{
	[BepInPlugin("poseidon.fastsprint", "Fast Sprint", "1.0.0")]
	public class FastSprintBase : BaseUnityPlugin
	{
		private const string modGUID = "poseidon.fastsprint";

		private const string modName = "Fast Sprint";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("poseidon.fastsprint");

		private static FastSprintBase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("poseidon.fastsprint");
			mls.LogInfo((object)"HAIIIII :D");
			harmony.PatchAll(typeof(FastSprintBase));
			harmony.PatchAll(typeof(sprintpatch));
		}
	}
}
namespace fastsprint.patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class sprintpatch
	{
		private const double V = 1.5;

		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void SprintPatch(ref float ___sprintMultiplier)
		{
			___sprintMultiplier = 1.5f;
		}
	}
}