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

Max Move Speed - Max Attack Range

Status
Not open for further replies.
Move speed is capped, yes.

Max range, however, can be 99999, so basicly across the whole map. There's no limit to this.

There was a system that allowed higher movement speeds. It achieved that by moving the unit periodically a step forward to the current moving direction. I don't know if it's still around, though. You might search for it.
 
practical cap: around 1000, system cap: full float range.
Remember that each tile of terrain is 128 across, with 256 tiles thats a range of 32,768 from one side to the other, however the corner to corner distance is 46,341.
Anything beyond that is rare, and usually useless. The only exception to that is when you have map sizes beyond 256 in either direction.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
I ment since isn't terrain 'indexed' on a 16bit integer?
Both X and Y width of the map are stored as 32 bit little endian unsigned. So I am guessing they use something similar in the game itself to compute the index of the terrain node.


Blizzard did the limitations because the unit might move outside the map if the speed value is so high.
I am guessing the limit is because of how the pathing system works. It calculates unit pathing in increments (1 unit of each player per game frame?). Each micro move order that is issued probably only covers a maximum of 522 distance. Setting speed to something stupid like 50000 would mean a single unit would overload the pathing system for that player.
 
Both X and Y width of the map are stored as 32 bit little endian unsigned. So I am guessing they use something similar in the game itself to compute the index of the terrain node.



I am guessing the limit is because of how the pathing system works. It calculates unit pathing in increments (1 unit of each player per game frame?). Each micro move order that is issued probably only covers a maximum of 522 distance. Setting speed to something stupid like 50000 would mean a single unit would overload the pathing system for that player.

Oh ok.
I was actually imagining the movement is actually a polar projection movement.
 
Status
Not open for further replies.
Top