Attack Cooldown Time

Nazdra

New Member
Reaction score
3
Well, this is it. Before I buyed The Frozen Throne, I used to seen rigged map on Reign of Chaos with unit that as 0.01 Attack Cooldown, wich was terribly fast. That's been a while, tough, i never needed such a thing in my maps... Until today. I need some crazy ass attack speed, but I cant just see how to get to it, for even when i set the cooldown down to 0.01, he still attack 2 or 3 time in a sec. I just realized that The Frozen Throne have probably set a maximum/minimun attack Cooldown. However, I can't find how to change it. I am pretty sure that cooldown controller can be changed, and if so, that it is placed in the gameplay constant... Still, I don't seem to find any thing to change it.
 
D

dunpealx4

Guest
yea, i have the same problem. it seems the fastest speed cannot go lower than .10 cooldown.
 

Joker(Div)

Always Here..
Reaction score
86
The animation backswing (not sure) and The attack delay/time/swing (I forget what it was called all adds to the attack speed.
 

Nazdra

New Member
Reaction score
3
God, that the word when i just saw you were dam right. I tryed and tryed to find a solution to this from a week, and you just came over and say some divine words blowing my problem away ! I think i will go to the church again, as i tough God and Jesus were just liars... ;) Thanks alot, you helped us both.
 
D

dunpealx4

Guest
i just tested and found out an unit will never attack faster than the Animation backswing point and the animation damage point.

for example, footman has both Animation backswing point and the animation damage point 0.500, which means he cannot attack faster than .5 even the attack cooldown is 0.01, so i changed Animation backswing point and the animation damage point to 0.01. he attacks crazy, i can barely see his sword swinging.
 

eliw00d

New Member
Reaction score
3
ah, perfect! this is exactly what i was searching for.

my follow-up question to this is:

if i wanted to modify the attack cooldown using an aura, how does the math work on that? is an attack speed increase of 10 the same as dividing the attack cooldown by 10? so if the attack cooldown is 1.00 it would come out to 0.10? also, is the attack cooldown in actual seconds? or how is it measured? thanks in advance.
 

eliw00d

New Member
Reaction score
3
I think it's
(Attack speed) - (Attack speed * bonus)
So 2.0 cooldown would become 1.8

that wouldn't make sense because the aura uses a percentage, and the values would differ.

example: 1.00 - (1.00 * 0.99) = 0.01
example: 2.00 - (2.00 * 0.99) = 0.02
etc.

i'm trying to make a unit with a 1.00 cooldown go down to 0.10 or lower by using an aura. the highest allowed value is 10.00 with endurance aura, and shift+clicked values don't seem to do anything different than 10.00. my desired effect would be to have a unit with a 1.00 cooldown (60 attacks per minute) change to a 0.10 cooldown (600 attacks per minute). for some reason, setting the aura to 10.00 does not equal 0.10 cooldown... :(
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
i'm trying to make a unit with a 1.00 cooldown go down to 0.10 or lower by using an aura. the highest allowed value is 10.00 with endurance aura, and shift+clicked values don't seem to do anything different than 10.00. my desired effect would be to have a unit with a 1.00 cooldown (60 attacks per minute) change to a 0.10 cooldown (600 attacks per minute). for some reason, setting the aura to 10.00 does not equal 0.10 cooldown... :(

You are right that the formula is incorrect, because attack speed bonuses work in percents, not strictly cooldown decreases by a specific number.

You can go above and below the max values in the object editor by holding shift, then double clicking the value and changing it. This also allows you to put in negative numbers.

I believe that the formula is:

New Cooldown Time = (Original Cooldown Time)/(1 + Percent Speed Increase)

Endurance Aura's bonuses are in percent, so 10.00 is actually 1000% faster, and 1.00 is 100% faster.
With a cooldown of 1.00, these are how the bonuses will affect the unit
1.00 bonus attack speed: 0.50 cooldown
2.00 " : 0.33 "
3.00 " : 0.25 "
etc

By plugging in the values into the formula:

0.10 = (1.00)/(1 + PSI)
10 = 1 + PSI
Percent Speed Increase = 9 (or 900%)

So put in 9 for the Endurance Aura Speed Bonus
 

eliw00d

New Member
Reaction score
3
okay, i now understand the formula and how to use it, but i'm running into another problem. does 1.00 for attack cooldown mean there is an attack every second? and 0.10 means there are ten attacks every second? i'm trying to figure out a way to make a unit attack 600 times in a minute, or 10 times a second. thank you for your help so far!

edit: does going negative mean instead of dividing it is multiplying?
edit2: i have both animation points set to 0.000 (and tried at 0.001), the cooldown to 1.00 and the bonus is set at 9.00. i've timed it, and it is definitely not 600 attacks a minute. it is exactly 300 attacks a minute. i tried adjusting the bonus to 19, but it still only amounts to EXACTLY 300 attacks a minute.
 

eliw00d

New Member
Reaction score
3
if you set it to a negative value, does it do this:

0.01 / (1 + (-0.4)) = 0.006

or this:

0.01 * (1+0.4) = 0.014

the only way i've been able to figure out how to have such high attack rates is to start the unit at 0.01 and modify using auras. doing so apparently allows the cooldown to go below 0.01, but now i'm having issues figuring out exact ways to get this to work. by my math, 0.006 should be 900 attacks a minute, but it doesn't seem to be working the way i thought.
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
okay, i now understand the formula and how to use it, but i'm running into another problem. does 1.00 for attack cooldown mean there is an attack every second? and 0.10 means there are ten attacks every second?
Yup.

edit: does going negative mean instead of dividing it is multiplying?
edit2: i have both animation points set to 0.000 (and tried at 0.001), the cooldown to 1.00 and the bonus is set at 9.00. i've timed it, and it is definitely not 600 attacks a minute. it is exactly 300 attacks a minute. i tried adjusting the bonus to 19, but it still only amounts to EXACTLY 300 attacks a minute.
1. It makes sense, I'm not positive about the formula, but it seems to fit for multiplying with negative numbers and dividing with positive.

2. I've never actually heard of anyone trying to set the cooldown so low, or even seeing if it's possible. Perhaps Blizzard put in a min/max amount that speed can be.
 

eliw00d

New Member
Reaction score
3
Yup.


1. It makes sense, I'm not positive about the formula, but it seems to fit for multiplying with negative numbers and dividing with positive.

2. I've never actually heard of anyone trying to set the cooldown so low, or even seeing if it's possible. Perhaps Blizzard put in a min/max amount that speed can be.

i messed around with some values and found this out:

positive values work like this: z = x / 1 + y
negative values work like this: z = x / 1 + (-y)

as far as i can tell, anyways. i've more or less achieved my goal for attack speeds, but i HAD to set the unit's cooldown to 0.01. the math is pretty infinite, but when dealing with negatives there is very little room to play with.

i wanted to achieve 0.67 attack speed, but the reals can only be set to 2 decimal points. therefore, i'm only able to set the bonus to -0.98 or -0.99, which come out to either 0.50 or 1.00 respectively. unless there is better math that i'm just not thinking of, the negative values are much harder to work with. i got my desired attack speed of 0.006 by doing 0.01 / 1 + 0.50, which is 900 attacks per minute. :)
 

Chocobo

White-Flower
Reaction score
409
>positive values work like this: z = x / 1 + y
>negative values work like this: z = x / 1 + (-y)
wrong because z=x/1+y <-> z=x+y with y>=0 and z=x/1+(-y) <-> z=x-y with y=<0 equal z=x+y

http://www.thehelper.net/forums/showthread.php?t=44516 said:
2.3 Calculative Effective Attack Speed

The formula used to calculate the Effective Attack Speed is :

a = b*(100/(100+c))

a = Effective Attack Speed
b = Base Attack Cooldown
c = Bonuses

Bonuses are all values mixed in a number, which is equal to the sum of attack speed bonuses.

To calculate the Effective Attack Speed of a hero, you should use this formula :

a = b*(100/(100+c+(d*(e*100))))

a = Effective Attack Speed
b = Base Attack Cooldown
c = Bonuses
d = Agility
e = Attack Speed Bonus per Agility Point

Bonuses get less valuable as you get more it. Because that, you may want to boost an another effective value.
 

eliw00d

New Member
Reaction score
3
>positive values work like this: z = x / 1 + y
>negative values work like this: z = x / 1 + (-y)
wrong because z=x/1+y <-> z=x+y with y>=0 and z=x/1+(-y) <-> z=x-y with y=<0 equal z=x+y

ah! excellent! thank you very much. :)

for:
a = b*(100/(100+c))
if i want c to be 50, is that 50.00 in the ability field? or 0.50?
 

eliw00d

New Member
Reaction score
3
T_T

something isn't working right. i think i'm not too clear on how the attack cooldown works. i *thought* 1.00 meant it was one attack per second, and 0.1 is ten per second, etc. if i set the unit's attack speed to 0.1, it is NOT ten per second.

this formula gave me the desired effects yesterday for 900 attacks per minute:

0.01/(1+0.50) == 0.006

i'm not sure if it really IS 0.006 in game, but somehow the game increases the speed to where i want it. i tried the other formula you gave me and cannot, at all, reach the same results:

0.01*(100/100+(66.66)) == 0.006 (mathematically this should be right)

so am i misunderstanding how fast the attack cooldown is at 1.00? or is the formula wrong? i'm so confused.
 

Chocobo

White-Flower
Reaction score
409
a = b*(100/(100+c))

b = Base Attack Cooldown : 0.1
c = Bonuses : 50

a = 0.1*(100/(100+50))
a = 0.1*(100/150)
a = 0.1*(2/3)
a = 0.2/3
a = 2/30
a ~ 0.06666666666666..



0.01*(100/100+(66.66)) = 0.006?

0.01*(100/100+66.66))
0.01*67.66 = 0.6766
you calculate wrong (if you meant 0.01*(100/(100+200/3)) then it works).
 

eliw00d

New Member
Reaction score
3
a = b*(100/(100+c))

b = Base Attack Cooldown : 0.1
c = Bonuses : 50

a = 0.1*(100/(100+50))
a = 0.1*(100/150)
a = 0.1*(2/3)
a = 0.2/3
a = 2/30
a ~ 0.06666666666666..



0.01*(100/100+(66.66)) = 0.006?

0.01*(100/100+66.66))
0.01*67.66 = 0.6766
you calculate wrong (if you meant 0.01*(100/(100+100/3)) then it works).

0.01*(100/(100+66.66))
0.01*(100/166.66)
0.01*0.60002400096..
= 0.00600024..

0.01*(100/(100+100/3))
0.01*(100/133.33)
0.01*0.75001..
= 0.0075001..

also, why is it that when i use 0.01 as the base attack speed and 0.50 as the bonus, it's faster than doing 0.01 and 66.66?
 

Hildagarn

Member
Reaction score
20
how do i make something do 1 damage......
i tried setting everything to 1 but it still comes out as 2-2
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top