
GTFO
You are viewing a potentially older version of this package. View Latest Version

Created by SleepyHead in the modding discord.
Uploaded with their permission.
Source code for plugin:
using BepInEx;
using BepInEx.Unity.IL2CPP;
using HarmonyLib;
using Gear;
namespace BurstCancel
{
[BepInPlugin("BurstCancel", "BurstCancel", "1.0.1")]
internal class Loader : BasePlugin
{
private static Harmony? _harmony;
public override void Load()
{
_harmony = new Harmony("BurstCancel");
_harmony.PatchAll();
Log.LogInfo("Plugin is loaded! If you're reading this, why don't you tickle my balls?");
}
}
[HarmonyPatch(typeof(BulletWeapon), "get_WeaponSwitchAllowed")]
class BurstCancel
{
static bool Prefix(ref bool __result)
{
__result = true;
return false;
}
}
}