[v1.7.0+] Two-Handed Dual-Wielding Counts

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Zizzo
Sher'Tul Godslayer
Posts: 2521
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

[v1.7.0+] Two-Handed Dual-Wielding Counts

#1 Post by Zizzo »

Been playing around recently with a couple of Berserker evolutions that allow dual-wielding two-handed weapons, and I was excited about doing some massive Windblade damage — until I discovered that due to internal limitations, the game can't record your weapon damage as both two-handed and dual-wield, so you can't satisfy Windblade's requirements while wielding dual two-handers. :( Now, that may seem like a problem specific to those addons, but the problem also applies to Ogre-wielding via Grisly Constitution, which I imagine has left some disappointed Ogre Berserkers and Marauders out there. ("So just switch weapons and beat up on the training dummy for a while." Well, sure, unless you're playing in a campaign that AFAICT doesn't have one of those…)

Now, the actual weapon damage recording happens deep in the bowels of the default DamageType projector and mod.class.interface.Combat, so it looked like there was no easy way to change it via addon — until I thought of a way. :mrgreen: Hence my new Two-Handed Dual-Wielding Counts addon, which detects that you're dual-wielding with a two-hander in the mainhand and redirects recorded weapon damage to a special category, which then gets picked up and diverted back to the usual two-handed and dual-wield categories.

[Looking ahead, I have no idea whether anyone would consider this addon to be cheating, but for now I'm categorizing it as a bugfix addon, which means I'm reluctant to add it to ZOmnibus for fear of having to claw it back out if the bug is ever fixed.]

[Implementation notes:]

Code: Select all

Hooks:
  Combat:attackTargetWith:attackerBonuses [to detect that we're dual-wielding with a two-hander
Superload:
  mod.class.interface.Combat:
    attackTargetWith() [to redirect recorded damage to the proper categories]
"Blessed are the yeeks, for they shall inherit Arda..."

Post Reply