using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using UnityEngine;
using speedhack.Patches;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("speedhack")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("speedhack")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("c7405992-7860-4866-8872-fd38bd6bccab")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace speedhack
{
[BepInPlugin("SpeedHack", "SpeedHackTest", "1.0.1")]
public class SpeedHackBase : BaseUnityPlugin
{
private const string modGUID = "SpeedHack";
private const string modName = "SpeedHackTest";
private const string modVersion = "1.0.1";
private readonly Harmony harmony = new Harmony("SpeedHack");
private static SpeedHackBase Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("SpeedHack");
mls.LogInfo((object)"You become Usain Bolt.");
harmony.PatchAll(typeof(SpeedHackBase));
harmony.PatchAll(typeof(SpeedHackPatch));
}
}
}
namespace speedhack.Patches
{
[HarmonyPatch(typeof(PlayerController))]
internal class SpeedHackPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void SprintPatch(ref float ___SprintSpeed)
{
___SprintSpeed = 20f;
}
}
}