• 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.

Randomized Targeting for Ranged Attackers

Status
Not open for further replies.
Since nobody has done this yet I decided to attempt it. Haven't you got tired of trying to make fun/epic/big/gigantic maps but the ranged units suck because they decide to all target the same unit unless you use multishot or some poison/DoT ability or stun? Well let's see if we can fix that.


Here's a demo of what I got so far, it's half-working at least... :thumbs_up:

Any idea's would be greatly appreciated.

Will post the code when it's more finished.
 

Attachments

  • Fixing wc3 ranged unit targeter.w3x
    19.6 KB · Views: 70
Level 17
Joined
Jul 17, 2011
Messages
1,863
ive never had a problem with all of my units targeting the same unit, the problem has been that units which are capable of killing a unit with a single attack would all target that unit (like siege acting as artilery all focusing one unit when only one of them can kill him) so to fix that you would need to calculate how much damage a unit is capable of outputting and then calculate how many of your units should hit a target unit in order to kill him while giving the rest another target but im not sure in what situation i would need this, i guess maybe tower defense where some unit is running ahead
 
ive never had a problem with all of my units targeting the same unit, the problem has been that units which are capable of killing a unit with a single attack would all target that unit (like siege acting as artilery all focusing one unit when only one of them can kill him) so to fix that you would need to calculate how much damage a unit is capable of outputting and then calculate how many of your units should hit a target unit in order to kill him while giving the rest another target but im not sure in what situation i would need this, i guess maybe tower defense where some unit is running ahead

Pretty much every situation with normal ranged units. . .

Will update as soon as possible.
 
Status
Not open for further replies.
Top