Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of WayTooFast v1.0.1
plugins/WayTooFast/WayTooFast.dll
Decompiled a year agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("WayTooFast mod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("WayTooFast mod")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("da4a99ee-43fc-4f5c-90e0-03075720c0ca")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace WayTooFastMod; [BepInPlugin("com.colevr.WayTooFast", "WayTooFast", "1.0.1")] public class WayTooFast_Plugin : BaseUnityPlugin { private const string modGUID = "com.colevr.WayTooFast"; private const string modName = "WayTooFast"; private const string modVersion = "1.0.1"; private readonly Harmony harmony = new Harmony("com.colevr.WayTooFast"); private void Awake() { harmony.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"WayTooFast mod loaded successfully!"); } } [HarmonyPatch(typeof(PlayerController))] [HarmonyPatch("FixedUpdate")] public static class PlayerControllerSpeedPatch { private static bool hasSetOriginal = false; private static float origMoveSpeed = 0f; private static float origSprintSpeed = 0f; private static float origCrouchSpeed = 0f; private static readonly float speedMultiplier = 10f; private static void Prefix(PlayerController __instance) { if (!hasSetOriginal) { origMoveSpeed = __instance.MoveSpeed; origSprintSpeed = __instance.SprintSpeed; origCrouchSpeed = __instance.CrouchSpeed; hasSetOriginal = true; } } private static void Postfix(PlayerController __instance) { __instance.MoveSpeed = origMoveSpeed * speedMultiplier; __instance.SprintSpeed = origSprintSpeed * speedMultiplier; __instance.CrouchSpeed = origCrouchSpeed * speedMultiplier; } }