Wereform Attack Speed Formula
#4
Well, after much confusion of my own, I think I've figured out what Hammerman meant.

Hammerman:
Quote:Now, normally 'Animation speed' is 256. But for wereform attack speeds it uses a differently calculated number... here's how. We begin with:

Animation speed = a1_frames*256 / ((weapon ias+wsm+100)*anim speed/100)
But since he was using the 'delay' formula, he didn't change or explain any of the variable names. So for that we copy from the whirlwind thread:

Quote:a1_frames = frame length of normal attack (attack1)
anim speed = 256 for all attacks
weapon ias = sum of fast/faster/fastest attack speed mods on the weapon
wsm = negative 'speed' from weapons.txt
Ah, but what is the frame length of a normal attack for a shifted Druid? That is what Hammerman is explaining when he says:

Quote:It will, by the way, use the Druids human form values here.
So a1_frames equals whatever a unshifted Druid will get for 'Base + 1' with whatever type of weapon is being wielded (ie one-handed, two-hand sword, bow, or whatever).

Ok, now we have a value for animation speed, but that isn't the final value for animation speed.

Quote:We modify the current value:

Animation Speed = (prev frames * 256) / Animation speed
So that could be rewritten:

New Animation Speed = (prev frames * 256) / Old Animation speed

Where Old Animation speed is the value we just got from the 'delay' formula. And prev frames is:

Quote:prev frames = animation length of previous mode, wich is always neutral (use the shifted form values here):

bear = 9
wolf = 10
9 for the bear, and 10 for the wolf.

Now we can finally use that New Animation Speed and plug it into the standard weapon speed formula in place of the usual 256 that goes there.

Quote:Frames = {256*(Base + 1)/[(100 + Speed Increase)/100*Animation Speed]} - 1

Speed increase = (120 * item_ias) / (120 + item ias) + skill ias - wsm
Note that because Hammerman copied from two different places, this formula and the 'delay' formula differ in their definitions of 'wsm'. This formula uses the value in weapons.txt, rather than the negative of the value as in the other formula.

The only remaining thing to know is that 'Base' is always 11 for the Bear, 12 for the Wolf.

So here are the formulas again, in the order in which they should be applied, and hopefully clearer (and with the 'wsm' term self-consistant):

Anim speed0 = [a1_frames*256 / [(weapon ias+wsm+100)*256/100]]

a1_frames is the 'Base + 1' value for a Druid using that weapon type

Anim speed1 = [prev frames * 256 / Anim speed0]

prev frames = 9 or 10 (Bear or Wolf, respectively)

Speed increase = [120 * item_ias / (120 + item ias)] + skill ias + wsm

EDIT: Oh, and Speed Increase is capped at 75.

Frames = {256*(Base + 1)/[(100 + Speed Increase)/100*Anim Speed1]} - 1

'Base' = 11 or 12 (Bear or Wolf, respectively)

*[] denotes round down, {} denotes round up.

-------

Anyway, if I interpreted and applied all that correctly, than this formula does not quite fit the observed data. I compared to TheDragoon's Attack Speed Chart (Werebear) for a One-handed Axe with base speed 0. I didn't know what a1_frames would be for a one-handed axe, but given that the value on the chart with no ias of any kind was 22, the only value that would fit is 17. Using that, and 11 for 'Base' and 9 for 'prev frames' the formula was near the chart but differed at (among other places) 25, 35, and 95 wias (with no oias).

- Dagni
Reply


Messages In This Thread
Wereform Attack Speed Formula - by Tycho Maudd - 06-16-2003, 07:19 PM
Wereform Attack Speed Formula - by Hammerman - 06-17-2003, 12:17 AM
Wereform Attack Speed Formula - by Tycho Maudd - 06-17-2003, 01:22 AM
Wereform Attack Speed Formula - by Dagni - 06-17-2003, 04:15 AM
Wereform Attack Speed Formula - by Hammerman - 06-17-2003, 11:14 PM
Wereform Attack Speed Formula - by Dagni - 06-18-2003, 01:37 AM
Wereform Attack Speed Formula - by Ruvanal - 06-18-2003, 02:42 AM
Wereform Attack Speed Formula - by Dagni - 06-18-2003, 08:23 AM
Wereform Attack Speed Formula - by Dagni - 06-18-2003, 09:54 AM
Wereform Attack Speed Formula - by Ruvanal - 06-18-2003, 10:03 AM
Wereform Attack Speed Formula - by Dagni - 06-18-2003, 10:37 AM
Wereform Attack Speed Formula - by Hammerman - 06-18-2003, 09:55 PM
Wereform Attack Speed Formula - by Dagni - 06-18-2003, 11:11 PM
Wereform Attack Speed Formula - by Ruvanal - 06-19-2003, 02:22 AM
Wereform Attack Speed Formula - by Dagni - 06-19-2003, 03:33 AM
Wereform Attack Speed Formula - by Hammerman - 06-20-2003, 07:36 PM
Wereform Attack Speed Formula - by Dagni - 06-20-2003, 09:00 PM
Wereform Attack Speed Formula - by TheDragoon - 06-20-2003, 11:07 PM
Wereform Attack Speed Formula - by Hammerman - 06-23-2003, 12:29 AM
Wereform Attack Speed Formula - by Kar0n - 06-23-2003, 05:07 AM
Wereform Attack Speed Formula - by Dagni - 06-23-2003, 06:02 AM
Wereform Attack Speed Formula - by Dagni - 06-23-2003, 06:49 AM
Wereform Attack Speed Formula - by TheDragoon - 06-23-2003, 03:29 PM
Wereform Attack Speed Formula - by TheDragoon - 06-23-2003, 04:29 PM
Wereform Attack Speed Formula - by Dagni - 06-24-2003, 02:20 AM
Wereform Attack Speed Formula - by Ruvanal - 06-24-2003, 03:01 AM
Wereform Attack Speed Formula - by Ruvanal - 06-24-2003, 03:56 AM
Wereform Attack Speed Formula - by Dagni - 06-24-2003, 04:04 AM
Wereform Attack Speed Formula - by TheDragoon - 06-24-2003, 04:20 PM
Wereform Attack Speed Formula - by Hammerman - 06-24-2003, 07:34 PM
Wereform Attack Speed Formula - by TheDragoon - 06-24-2003, 08:47 PM
Wereform Attack Speed Formula - by Ruvanal - 06-25-2003, 02:07 AM
Wereform Attack Speed Formula - by Bolty - 06-25-2003, 02:47 AM
Wereform Attack Speed Formula - by TheDragoon - 06-25-2003, 05:14 AM
Wereform Attack Speed Formula - by Dagni - 06-25-2003, 06:44 AM
Wereform Attack Speed Formula - by Hammerman - 06-25-2003, 07:24 PM
Wereform Attack Speed Formula - by TheDragoon - 07-20-2003, 05:58 PM
Wereform Attack Speed Formula - by TheDragoon - 07-21-2003, 02:08 AM
Wereform Attack Speed Formula - by TheDragoon - 07-21-2003, 06:12 AM
Wereform Attack Speed Formula - by dta - 02-23-2005, 01:36 PM

Forum Jump:


Users browsing this thread: 18 Guest(s)