Decompiled source of FastMovement v0.0.1

FastMovement.dll

Decompiled a year 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;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("FastMovement")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FastMovement")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("f675223d-249b-4184-ab89-34b2bad28338")]
[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 FastMovement
{
	[BepInPlugin("Ccode.FastMovement", "FastMovement", "0.0.1")]
	public class Plugin : BaseUnityPlugin
	{
		private const string MyGuid = "Ccode.FastMovement";

		private const string PluginName = "FastMovement";

		private const string VersionString = "0.0.1";

		private static readonly Harmony Harmony = new Harmony("Ccode.FastMovement");

		public static ManualLogSource Log;

		private void Awake()
		{
			Harmony.PatchAll();
			((BaseUnityPlugin)this).Logger.LogInfo((object)"FastMovement 0.0.1 loaded.");
			Log = ((BaseUnityPlugin)this).Logger;
		}
	}
}
namespace FastMovement.Patches.Player
{
	[HarmonyPatch(typeof(PlayerControllerB), "Start")]
	internal class SpeedPatches
	{
		public static void Prefix(PlayerControllerB __instance)
		{
			__instance.movementSpeed = 20f;
		}
	}
}