Decompiled source of TwoTimesSpeed v1.0.0

TwoTimesSpeed.dll

Decompiled 10 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 SuperJump.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("SuperJump")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SuperJump")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("c9c8d3c0-a806-428e-9a14-8ca36fcec959")]
[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 SuperJump
{
	[BepInPlugin("rlnoir.TwoTimesSpeed", "TwoTimesSpeed", "1.0.0")]
	public class SuperJump : BaseUnityPlugin
	{
		private const string modGUID = "rlnoir.TwoTimesSpeed";

		private const string modName = "TwoTimesSpeed";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("rlnoir.TwoTimesSpeed");

		private static SuperJump instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)instance == (Object)null)
			{
				instance = this;
			}
			mls = Logger.CreateLogSource("rlnoir.TwoTimesSpeed");
			mls.LogInfo((object)"TwoTimesSpeed is working");
			harmony.PatchAll(typeof(SuperJump));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace SuperJump.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void SuperJumpPatch(ref float ___movementSpeed)
		{
			___movementSpeed = 10f;
		}
	}
}