Decompiled source of BorgezTestMod v1.1.0

TestMod.dll

Decompiled 6 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 TestMod.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("TestMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TestMod")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("f7b46e09-0705-4c31-91b3-1d7792d8c42e")]
[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 TestMod
{
	[BepInPlugin("TesteBorgez", "Teste Borgez Mod", "1.0.0.0")]
	public class TestModBase : BaseUnityPlugin
	{
		private const string modGUID = "TesteBorgez";

		private const string modName = "Teste Borgez Mod";

		private const string modVersion = "1.0.0.0";

		private readonly Harmony harmony = new Harmony("TesteBorgez");

		private static TestModBase modInstance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)modInstance == (Object)null)
			{
				modInstance = this;
			}
			mls = Logger.CreateLogSource("TesteBorgez");
			mls.LogInfo((object)"Test mod has awaken");
			harmony.PatchAll(typeof(TestModBase));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace TestMod.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void infiniteSprintPatch(ref float ___sprintMeter, ref float ___jumpForce)
		{
			___sprintMeter = 1f;
			___jumpForce = 20f;
		}
	}
}