Decompiled source of ono Speed v0.0.1

Scrappy/LCtestScrapy.dll

Decompiled 4 hours ago
using System;
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 LCtestScrapy.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("LCtestScrapy")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("HP")]
[assembly: AssemblyProduct("LCtestScrapy")]
[assembly: AssemblyCopyright("Copyright © HP 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("b18506bb-10cd-4095-bc65-b280c54d1a90")]
[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 LCtestScrapy
{
	[BepInPlugin("ConstantCore.LCtestScrapy", "Testy Scrappy", "0.0.0.1")]
	public class MainScript : BaseUnityPlugin
	{
		private const string modGUID = "ConstantCore.LCtestScrapy";

		private const string modName = "Testy Scrappy";

		private const string modVersion = "0.0.0.1";

		private readonly Harmony harmony = new Harmony("ConstantCore.LCtestScrapy");

		private static MainScript Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("ConstantCore.LCtestScrapy");
			mls.LogInfo((object)"Mod has been booted...");
			harmony.PatchAll(typeof(MainScript));
			harmony.PatchAll(typeof(PlayerControllerSpeedBrr));
		}
	}
}
namespace LCtestScrapy.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerSpeedBrr
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void infiniteSpritePatch(ref float ___sprintMeter)
		{
			Random random = new Random();
			double num = random.NextDouble();
			float num2 = (float)num;
			___sprintMeter = num2;
		}
	}
}