Decompiled source of High quality gun v1.0.0

High_quality_gun.dll

Decompiled 4 hours ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("LethalPlugin")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LethalPlugin")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("0e442c44-8597-4d85-abe7-d8d3cc7d1e3f")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.6", FrameworkDisplayName = ".NET Framework 4.6")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace LethalPlugin;

[BepInPlugin("Vrtua.LethalPlugin.pluginX.GunMisfirePatch", "GunMisfirePatch", "1.0.0")]
public class GunMisfirePatch : BaseUnityPlugin
{
	private void Awake()
	{
		//IL_0015: Unknown result type (might be due to invalid IL or missing references)
		//IL_0020: Unknown result type (might be due to invalid IL or missing references)
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Successfully load Patch");
		new Harmony("Vrtua.LethalPlugin.plugin.GunMisfirePatch");
		new Harmony("Vrtua.LethalPlugin.pluginX.GunMisfirePatch").PatchAll();
	}
}
public class GlobalsVar
{
}
[HarmonyPatch(typeof(ShotgunItem))]
[HarmonyPatch("ShootGunAndSync", new Type[] { typeof(bool) })]
internal class ShotGunPatch_1
{
	public static bool Prefix(bool heldByPlayer)
	{
		if (!heldByPlayer)
		{
			return false;
		}
		return true;
	}
}
[HarmonyPatch(typeof(ShotgunItem))]
[HarmonyPatch("Update")]
internal class ShotGunPatch_2
{
	public static void Prefix(ShotgunItem __instance)
	{
		Traverse.Create((object)__instance).Field("misfireTimer").SetValue((object)30f);
	}
}
internal class utils
{
}