Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of KysMod v1.1.0
KYSMod.dll
Decompiled 2 years agousing 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 KYSMod.Patches; using UnityEngine; using UnityEngine.InputSystem; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("KYSMod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("KYSMod")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("ab5f4fe1-475a-4092-9f59-1ec3f6072a27")] [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 KYSMod { [BepInPlugin("Zoubi.KysMod", "KYSMod", "1.0.0.0")] public class KysModBase : BaseUnityPlugin { private const string modGUID = "Zoubi.KysMod"; private const string modName = "KYSMod"; private const string modVersion = "1.0.0.0"; private readonly Harmony harmony = new Harmony("Zoubi.KysMod"); private static KysModBase Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("Zoubi.KysMod"); mls.LogInfo((object)"Monke mod is live and well"); harmony.PatchAll(typeof(KysModBase)); harmony.PatchAll(typeof(PlayerControllerBPatch)); } } } namespace KYSMod.Patches { [HarmonyPatch(typeof(PlayerControllerB))] internal class PlayerControllerBPatch { [HarmonyPatch("Update")] [HarmonyPostfix] public static void KysPatch() { //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) Vector3 val = default(Vector3); CauseOfDeath val2 = (CauseOfDeath)0; int num = 0; if (InputControlExtensions.IsPressed((InputControl)(object)Keyboard.current.kKey, 0f) && InputControlExtensions.IsPressed((InputControl)(object)Keyboard.current.altKey, 0f)) { GameNetworkManager.Instance.localPlayerController.KillPlayer(val, true, val2, num); GameNetworkManager.Instance.localPlayerController.isPlayerDead = true; } } } }