You are viewing a potentially older version of this package.
View all versions.
BurstCancel
Burst Cancel feature for all guns. NOT created by me, full credit goes to SleepyHead in the modding Discord.
Date uploaded | 8 months ago |
Version | 1.0.2 |
Download link | BurstCancel-BurstCancel-1.0.2.zip |
Downloads | 674 |
Dependency string | BurstCancel-BurstCancel-1.0.2 |
This mod requires the following mods to function
BepInEx-BepInExPack_GTFO
BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.
Preferred version: 3.2.1README
Burst Cancel
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;
}
}
}