Decompiled source of GodMod v1.0.1

GodMod.dll

Decompiled 11 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using GameNetcodeStuff;
using GodMod.Patches;
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("GodMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GodMod")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("93320969-20fd-4a2c-b9bb-a93176b83e23")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace GodMod
{
	[BepInPlugin("GodMod", "GodMod", "1.0.0")]
	public class GodModBase : BaseUnityPlugin
	{
		private const string modGUID = "GodMod";

		private const string modName = "GodMod";

		private const string modVersion = "1.0.0";

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

		private static GodModBase instance;

		private void Awake()
		{
			if ((Object)(object)instance == (Object)null)
			{
				instance = this;
			}
			harmony.PatchAll(typeof(GodModBase));
			harmony.PatchAll(typeof(PlayerControllerBPatch));
		}
	}
}
namespace GodMod.Patches
{
	[HarmonyPatch(typeof(PlayerControllerB))]
	internal class PlayerControllerBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void godMod(ref float ___sprintMeter, ref float ___movementSpeed, ref float ___sprintMultiplier, ref float ___jumpForce, ref float ___health)
		{
			___movementSpeed = 10f;
			___sprintMeter = 1f;
			___sprintMultiplier = 3f;
			___jumpForce = 25f;
			___health = 9000f;
		}
	}
}