You are viewing a potentially older version of this package. View all versions.
Skellk-FriendlyFireToggle-1.0.2 icon

FriendlyFireToggle

Gets rid of that annoying friendly fire.

By Skellk
Date uploaded 2 weeks ago
Version 1.0.2
Download link Skellk-FriendlyFireToggle-1.0.2.zip
Downloads 602
Dependency string Skellk-FriendlyFireToggle-1.0.2

This mod requires the following mods to function

BepInEx-BepInExPack_TABS-5.4.16 icon
BepInEx-BepInExPack_TABS

BepInEx pack for TABS. Preconfigured and ready to use.

Preferred version: 5.4.16
Grad-TGCore-2.0.5 icon
Grad-TGCore

A core mod that contains common code between all Team Grad mods.

Preferred version: 2.0.5

README

Friendly Fire Toggle v1.0.2

Compatibility update aimed at restoring the Hidden Units Bishop's radiant barrier/overheal. Earlier versions forced Explosion.ignoreTeamMates = true for every explosion; this filters allied targets before all effects run, so it can block support effects as well as damage. v1.0.2 removes that global explosion filter and instead blocks positive health damage when the attacking unit is identifiable and is on the victim's team.

Package before uploading

This template does not include the compiled plugin. Build the source project and copy FriendlyFireToggle.dll to BepInEx/plugins/FriendlyFireToggle/ within this package before making the upload ZIP.

Do not include BepInEx.dll or TGCore.dll; dependencies are declared in manifest.json.

Test the Hidden Units Bishop's overheal along with bullets, melee hits and explosions before publishing. If ownerless explosions still harm teammates, they need a separate damage-only filter; do not restore the global ignoreTeamMates patch, because that suppresses friendly support effects.

CHANGELOG

1.0.2

  • Removed the global Explosion.ignoreTeamMates override, which could suppress allied support effects such as the Hidden Units Bishop's radiant barrier/overheal.
  • Keep same-team positive damage blocking at HealthHandler.TakeDamage when the source Unit is known.

1.0.1

  • Allow non-positive TakeDamage calls through.