Decompiled source of No Recoil v1.0.0

NoRecoilStickFight.dll

Decompiled a day ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using BepInEx;
using HarmonyLib;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("StickFightTheGameMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("StickFightTheGameMod")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("07ad7751-658e-41ea-b1ee-8a7e59ffbe73")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace NoRecoil;

[BepInPlugin("bayturtleking.stickfight.norecoil", "No Recoil", "1.0.0")]
public class NoRecoilMod : BaseUnityPlugin
{
	private Harmony harmony;

	private void Awake()
	{
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_0010: Expected O, but got Unknown
		harmony = new Harmony("bayturtleking.stickfight.norecoil");
		harmony.PatchAll();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"bayturtle's no recoil loadedededed");
	}

	private void OnDestroy()
	{
		Harmony obj = harmony;
		if (obj != null)
		{
			obj.UnpatchSelf();
		}
	}
}
[HarmonyPatch(typeof(Weapon), "Awake")]
public static class dontlaunchfromasingleshotgunshot
{
	private static void Postfix(Weapon __instance)
	{
		__instance.recoil = 0f;
		__instance.torsoRecoil = 0f;
	}
}