• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Anyone know the formula for attack speed?

Status
Not open for further replies.
Level 2
Joined
Aug 10, 2005
Messages
29
Alright, so, we have your base attack delay as such:

unit cooldown + unit backswing animation

Now, we have agility, which normally gives a 2% attack speed increase (hereto refered as 'asi') per point of agility, and spells that can give +% asi.

Now, how does the asi come into play in the overall formula?

I am assuming the formula would look something like this:
(Cooldown + Backswing) - (Cooldown + Backswing) X Sum of ASI = ## seconds


For example:
Say a unit has 3 sec cooldown and 1 sec backswing animation.


At lvl 1 with 0 agility, we would have...
(3+1) - (3+1) x 0% = 4 seconds.

Now, with 10 agil, thats a 20% asi, so..

(3+1) - (3+1) x 20% = 4 - .8 = 3.2 seconds...

But, that can't be the formula, because then we would be swinging instantly at 50 agility.

So, the formula might be compounding for each 1% asi.

Anyone have any thoughts? or has this been worked out already?

Thanks for any help.
 
Level 5
Joined
Nov 21, 2005
Messages
100
Backswing has no effect, from what I've tried using mortar teams.
Agility would simply multiply the time by 0.98.
Therefore the formula is:

agility
(cooldown) X (0.98)


Yeah, that's 0.98 to the power agility.
 
Level 2
Joined
Aug 10, 2005
Messages
29
I'm pretty sure backswing is part of the delay...

Oh well, i'll test that out.

So.. a revised formula would be...

(Cooldown + Backswing) x [(1.00 - agil asi)^agility] x [1.00 - magical ais 1] x [1.00 - magical ais 2] x [1.00 - magical ais 3] x etc.

anyone else have anything to add?

Again, thanks for any and all help.
 
Status
Not open for further replies.
Top