AssistManager
Allows certain on-kill effects to trigger off of kill assists. Server-side and Vanilla-compatible.
About this mod Author’s original text
Allows certain on-kill effects to trigger off of kill assists. Everything can be toggled in the config.
Affected Things
- Bandit's Specials
- Topaz Brooch
- Chronic Expansion
- Berzerker's Pauldron
- Hunter's Harpoon
- Infusion
- Brainstalks
- Frost Relic
- Resonance Disk
- Soulbound Catalyst
- Wake of Vultures
For Devs
Changes from this mod can be toggled in-game by calling SetEnabled(false) on the change.
To add an assist, add to AssistManager.HandleAssistInventoryActions or AssistManager.HandleAssistActions depending on whether or not you need the inventory to run your code. Use AssistManager.HandleAssistInventoryCompatibleActions or AssistManager.HandleAssistCompatibleActions if you do not want to have the Assist class in your code (ex. code is using SearchableAttribute).
You will need to explicitly check to make sure killerBody is not the same as Assist.attackerBody. This is required since there are a few niche cases where you might not want to do this.
If you want an "on kill with slight grace period" effect, use AssistManager.instance.AddDirectAssist(), refer to Bandit's Specials to see how it's set up, and subscribe to the HandleDirectAssist delegates instead. This needs to be called BEFORE the damage is processed.
DirectAssists check for a perfect match on:
- DamageType
- ModdedDamageTypes
- DamageTypeCombo
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: