PDA

View Full Version : Combat Ability Code


Wolftousen
03-06-2009, 11:58 PM
I'm trying to locate the Combat Abilities code (disciplines), specifically for berserkers since they are not working properly and I have a lot of experience with the class.

I can't seem to find the code for them (specifically looking for Rage Volley atm). Anyone able to point me in the right direction for spell specific code for these or is it just a matter of editing the spell_en.txt?

KLS
03-07-2009, 12:37 AM
They're handled in the same place as spells. Disciplines are basically spells that use endurance instead of mana.

That said I'm pretty sure rage volley was implemented a while back but not entirely so shouldn't be too hard to find where it is.

Wolftousen
03-07-2009, 07:40 AM
Ok, I think I found one of the reasons Rage Volley isn't working right and I'm working on a fix. Another question I have is where is the Weapon Bonus Damage added in? I looked through the GetWeaponDamage Functions and couldn't locate a specific line that wasn't related to elemental or bane damage.

I know 2H bonus damage is fudged atm, but was hoping to reach a compromise (at least for berserkers) since they are limited to purely 2H and get screwed out of damage b/c the bonus isn't in atm. I would place a % increase to the weapon for 2H weapons (somewhere around 35%). What do others think of this, not just for zerkers but all around for those who can use 2H?

Wolftousen
03-07-2009, 07:48 AM
Ok, I'm kind of stuck with Rage Volley. I see that it goes through the Special Attacks and then does DoSpecialAttackDamage function. This forces the disc to completely subvert the Berserker AAs that effect it (all the throwing AAs they got aided in it).

Before fixing the amount of damage it does (the highest isn't to far off, but it shouldn't ever be hitting for lower than 38 non-crit at 65 with no AAs) I want to fix the fact that it is resisted/misses most of the time. This was an unresistable 100% chance to hit disc on live.

In the ChanceToHit function, is there a way to determine the spell that is being cast so that I can Identify if it is the Rage Volley Disc and apply the proper accuracy to it?

KLS
03-08-2009, 12:22 AM
There is no current way for the hit code to know that at the moment, no.