Decompiled source of LeModDeBoiz v1.0.1

LeModDeBoiz.dll

Decompiled 4 days 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 LeModDeBoiz.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("LeModDeBoiz")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("HP")]
[assembly: AssemblyProduct("LeModDeBoiz")]
[assembly: AssemblyCopyright("Copyright © HP 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e717e17d-4280-441e-9759-9b6d2660bc43")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace LeModDeBoiz
{
	[BepInPlugin("wilburie.LeModDeBoiz", "Le Mod De Boiz", "1.0.0")]
	public class LeModBase : BaseUnityPlugin
	{
		private const string modGUID = "wilburie.LeModDeBoiz";

		private const string modName = "Le Mod De Boiz";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("wilburie.LeModDeBoiz");

		private static LeModBase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("wilburie.LeModDeBoiz");
			mls.LogInfo((object)"Le Mod De Boiz loaded sucsessfully!");
			harmony.PatchAll(typeof(LeModBase));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace LeModDeBoiz.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void UpdatePatch(ref float sprintMultiplier)
		{
			sprintMultiplier = 20f;
		}
	}
}