
You are viewing a potentially older version of this package. View Latest Version
TauntAggroFix
Makes the Taunted debuff move BaseAI.currentEnemy, so taunted enemies attack the taunter instead of only walking toward them.TauntAggroFix
Makes taunt pull enemy attacks, not just enemy movement.
Why
Vanilla EntityStates.TauntState only sets BaseAI.customTarget.
BaseAI.EvaluateSingleSkillDriver uses customTarget for movement and aim while
the Taunted buff is on. It never changes currentEnemy.
currentEnemy is the real attack target. Vanilla decoy code writes it directly:
baseAI.currentEnemy.gameObject = owner;
What this patch does
Adds a Harmony postfix to BaseAI.ManagedFixedUpdate.
While an enemy has the Taunted buff, the patch:
- Reads
customTarget. - If the target is a projectile, resolves it to
ProjectileController.owner. - Checks the target is hostile.
- Writes
currentEnemy.gameObject. - Refreshes
enemyAttentionso the AI does not switch targets mid-taunt.
Server only.
Build
dotnet build -c Release
Install
Put TauntAggroFix.dll and manifest.json in BepInEx/plugins/TauntAggroFix/.