Decompiled source of FuhUstalMod v1.0.0

FuhUstal.dll

Decompiled 3 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 FuhUstal.Patches;
using GameNetcodeStuff;
using HarmonyLib;
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("FuhUstal")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FuhUstal")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("5913c952-f127-4ac9-a88f-9fe7414d0428")]
[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 FuhUstal
{
	[BepInPlugin("com.fuhustal", "FuhUstal", "1.0.0")]
	public class FuhUstalMod : BaseUnityPlugin
	{
		private const string modGuid = "com.fuhustal";

		private const string modName = "FuhUstal";

		private const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("com.fuhustal");

		private static FuhUstalMod instance;

		internal ManualLogSource logSource;

		private void Awake()
		{
			if ((Object)(object)instance != (Object)null)
			{
				Object.Destroy((Object)(object)this);
				return;
			}
			logSource = Logger.CreateLogSource("com.fuhustal");
			logSource.LogInfo((object)"FuhUstalMod has been loaded!");
			harmony.PatchAll(typeof(FuhUstalMod));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace FuhUstal.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void UstalSound(ref float ___sprintMeter)
		{
			___sprintMeter = 1f;
		}
	}
}