Decompiled source of MiroCompanySounds v1.1.2

Superman With a Shotgun Mod.dll

Decompiled 3 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 UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("Superman With a Shotgun Mod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("HP")]
[assembly: AssemblyProduct("Superman With a Shotgun Mod")]
[assembly: AssemblyCopyright("Copyright © HP 2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("ae8b9e45-8153-4a6b-9c52-126b24ac908c")]
[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 LethalCompanyInfiniteSprint;

[BepInPlugin("Moo.playerChanges", "Lethal Company Player Stat Change Mod", "1.0.0.0")]
public class InfiniteSprintMod : BaseUnityPlugin
{
	public const string modGUID = "Moo.playerChanges";

	public const string modName = "Lethal Company Player Stat Change Mod";

	public const string modVersion = "1.0.0.0";

	private readonly Harmony harmony = new Harmony("Moo.playerChanges");

	private void Awake()
	{
		ManualLogSource val = Logger.CreateLogSource("Moo.playerChanges");
		val.LogMessage((object)"Moo.playerChanges has loaded succesfully.");
		harmony.PatchAll(typeof(moojieWoo));
	}
}
[HarmonyPatch(typeof(PlayerControllerB))]
[HarmonyPatch("Update")]
internal class moojieWoo
{
	[HarmonyPostfix]
	private static void PostFix(ref PlayerControllerB __instance)
	{
		//IL_001b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0025: Unknown result type (might be due to invalid IL or missing references)
		//IL_002b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0042: Unknown result type (might be due to invalid IL or missing references)
		//IL_004c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0052: Unknown result type (might be due to invalid IL or missing references)
		//IL_0070: Unknown result type (might be due to invalid IL or missing references)
		//IL_007b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0081: Unknown result type (might be due to invalid IL or missing references)
		//IL_009a: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ab: Unknown result type (might be due to invalid IL or missing references)
		__instance.jumpForce = 40f;
		if (__instance.isExhausted)
		{
			__instance.KillPlayer(Vector3.zero, true, (CauseOfDeath)0, 0, default(Vector3), false);
		}
		if (__instance.isClimbingLadder)
		{
			__instance.KillPlayer(Vector3.zero, true, (CauseOfDeath)0, 0, default(Vector3), false);
		}
		if (__instance.carryWeight > 2f)
		{
			__instance.KillPlayer(Vector3.zero, true, (CauseOfDeath)13, 0, default(Vector3), false);
		}
		if (__instance.jetpackControls)
		{
			__instance.KillPlayer(Vector3.zero, true, (CauseOfDeath)12, 0, default(Vector3), false);
		}
	}
}