BurstCancel-BurstCancel icon

BurstCancel

Burst Cancel feature for all guns. NOT created by me, full credit goes to SleepyHead in the modding Discord.

Last updated a month ago
Total downloads 217
Total rating 0 
Categories Client Mods
Dependency string BurstCancel-BurstCancel-1.0.2
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack_GTFO-3.2.1 icon
BepInEx-BepInExPack_GTFO

BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.

Preferred version: 3.2.1

README

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;
        }
    }
}