Decompiled source of LethalBruh v1.1.2

LethalBruh/LethalBruh.dll

Decompiled a year 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 LethalBruh.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("LethalBruh")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LethalBruh")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("c2705749-2ab7-4371-a312-cd574983d7a0")]
[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 LethalBruh
{
	[BepInPlugin("CouncilOfBruh.LB", "Lethal Bruh LC Mod", "1.1.2")]
	public class LethalBruhModBase : BaseUnityPlugin
	{
		private const string modGUID = "CouncilOfBruh.LB";

		private const string modName = "Lethal Bruh LC Mod";

		private const string modVersion = "1.1.2";

		private readonly Harmony harmony = new Harmony("CouncilOfBruh.LB");

		private static LethalBruhModBase Instance;

		internal ManualLogSource MLS;

		internal static AudioClip[] popUpSFX;

		internal static AudioClip[] screamSFX;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			MLS = Logger.CreateLogSource("CouncilOfBruh.LB");
			MLS.LogInfo((object)"Loading Lethal Bruh Mod.");
			MLS.LogInfo((object)"\r\n.__          __  .__           .__    ___.               .__     \r\n|  |   _____/  |_|  |__ _____  |  |   \\_ |_________ __ __|  |__  \r\n|  | _/ __ \\   __\\  |  \\\\__  \\ |  |    | __ \\_  __ \\  |  \\  |  \\ \r\n|  |_\\  ___/|  | |   Y  \\/ __ \\|  |__  | \\_\\ \\  | \\/  |  /   Y  \\\r\n|____/\\___  >__| |___|  (____  /____/  |___  /__|  |____/|___|  /\r\n          \\/          \\/     \\/            \\/                 \\/ \r\n");
			harmony.PatchAll(typeof(PlayerControllerBPatch));
			MLS.LogInfo((object)"Lethal Bruh Mod loaded. Press ESC if the game is frozen occasionally.");
			MLS.LogInfo((object)"Beware of any Nevzat activities.");
			harmony.PatchAll(typeof(LethalBruhModBase));
		}
	}
}
namespace LethalBruh.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("LateUpdate")]
		[HarmonyPrefix]
		private static void LongerSprintPatch(ref float ___sprintTime)
		{
			___sprintTime = 20f;
		}
	}
}