Decompiled source of DjetkoTestMod v0.0.2

InitialTestMod.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 InitialTestMod.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("InitialTestMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("InitialTestMod")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("02b390ea-4fd3-4bdb-a1f2-7bb6ae5d4ec8")]
[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 InitialTestMod
{
	[BepInPlugin("DDzTestMod", "InitialTestMod", "0.0.1")]
	public class DDzModBase : BaseUnityPlugin
	{
		private const string modGUID = "DDzTestMod";

		private const string modName = "InitialTestMod";

		private const string modVersion = "0.0.1";

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

		private static DDzModBase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("DDzTestMod");
			mls.LogInfo((object)"The DDz Mod has Initialized");
			harmony.PatchAll(typeof(DDzModBase));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace InitialTestMod.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void updFlashSpeed(ref float ___sprintMeter)
		{
			___sprintMeter = 1f;
		}
	}
}