• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Spell] Focused Fire Ability

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,287
There was a very old map that did this by adding and removing various gloves of speed ability to/from the unit. The name escapes me but it used this for one of its weapon.

The idea is that every time the unit attacks, you increase its attack speed up to a maximum and restart the slowdown timer. If the slowdown timer expires either reduce the attack speed (gradual slowdown) or reset it to default (instant slowdown). That is pretty much all there is to it.

Faster attack speed abilities allow one to raise unit attack speed between +400% and -80% of the unit type's base attack speed. Due to how many orders of magnitude this crosses it is plenty for a minigun ability. However using this approach could be considered obsolete now that one can set unit attack speed directly with trigger actions.

Using trigger actions to set attack speed has effectively no reasonable limits. Triggers setting attack speed is currently the only way to create a unit which attacks 50 times per second, the hard cap in WC3 on attacks per second. The only issue with this approach is that it might not factor in faster attack speed from other sources such as buffs or abilities properly so care must be taken to make sure units are left with their appropriate attack speeds. Be aware that attacking 50 times per second, especially with projectile attacks, is very resource intensive and so should be limited to very few units at any given time.

Due to limitations on the number of sound channels one can use at any given time one might require several firing sound samples representing different fire speeds. For example it starts off with an individual bullet firing sound corresponding to each shot and then when reaching higher speeds changes over to a looping continuous fire sound effect which is decoupled from the actual shots fired.
 
Status
Not open for further replies.
Top