• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] More than 4 attacks per tick

Status
Not open for further replies.
Level 2
Joined
Jun 1, 2018
Messages
9
I'd like to know what the work around for getting a hero or unit to attack more than 4 times per tick was?
 
Level 21
Joined
Dec 4, 2007
Messages
1,477
There's a new native in 1.29.2 for that, lowest possible attack cooldown should be 0.1.
So 10 attacks per second, which is quite ridiculous!
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
Honestly I am unsure what is being asked here... As far as I am aware the maximum attack rate was something ludicrous such as 33 attacks per second, which would be 1 attack per internal frame or even 0.03 seconds. To achieve this the unit must have as good as 0 backswing.
I am with you on that... although, as when I tested (1.27.something) the max attack rate was 10/second.

Hmmm... is it possible that the attacks also have a limit like movement per player ? :|

regards
-Ned
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,191
I am with you on that... although, as when I tested (1.27.something) the max attack rate was 10/second.
The maximum base attack rate is 10 per second. However with +400% faster attack speed units can shoot up to ~45.5 (45.45?) attacks per second which is the absolute maximum standard attack speed.

This limit should be reached with just 354.55% faster attack speed, however it appears that the full 400% is needed otherwise it will shoot slightly slower at around 45 attacks per second. At such insane attack rates it seems the last ~50% of faster attack speed make extremely little difference, pointing towards there being attack speed break points. Also the fact it does not reach 50 attacks per second points towards 400% faster attack speed being too little to reach the required break point.

Using the new trigger actions to set unit attack speed the new absolute maximum possible attack speed is exactly 50 shots per second. Faster attack speed no longer makes a difference. This attack speed is not achieved at 0.02 interval like one would expect but rather at a significantly lower interval like 0.01 again hinting at there being attack speed break points involved.

50 shots per second is a strange number. It might be related to PAL frames, but could also be because a technical interval of 0.02 should achieve it, but does not due to rounding error.

Attack speed set by triggers will be effected by faster attack speed. Hence one could make a unit have 20 attacks per second at 0% faster attack speed and still shoot faster when gaining faster attack speed. The hard limit of 50 attacks per second will still apply and with rounding error even 400% faster attack speed might not suffice to reach the 50 attack per second break point.
Hmmm... is it possible that the attacks also have a limit like movement per player ? :|
There is no such limit as far as I am aware, I was easily able to get 22 units to perform ~1,000 attacks per second.
 
Last edited:
Status
Not open for further replies.
Top