HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

faster then 522

07-12-2007, 04:22 PM#1
fps-doug
So ive been reading in alot of threads I searched for about movement speed. I already knew that the speed is hardcoded at 522, but is there ANY way to make it faster? Im asking because Im unsure whether its actually possible. I read some people say its not possible at all, some said it was done with a ton of different speed auras..

I read a quote from vexorian somewhere..

Quote:
I hate SetUnitMoveSpeed because it is totally buff-incompatible.

I prefer to add speed bonus abilities.

Also, you can make units move faster using timers and SetUnitAnimationById, however you can't do it considering pathing, at least you can't do that easily.

That's the reason the engine won't allow more than 522, because of pathing, in fact once you get more than 400 there are already pathing issues.

But it is remarkably trivial to make an spell that makes a unit charge to a point, in an straight line.

for my map I have keyboard movement, and for the most part I believe all the movement should be in a straight line, so I hope its possible to make the unit move faster since he moves in a straight line and he shouldnt have any chance of missing waypoints from point A to point B...

basically in my map my units move too slow. they move on a grid and I even scaled the entire area down as small as I could make it but the units move too slow for the scale. if it can only be done with jass (which im guessing is true) then please feel free to post that as well, I'll just have to learn how to use it.
07-12-2007, 04:33 PM#2
The)TideHunter(
Sure you can move more than 522.
Just not with Wc3's movement system.

You would have to create a system to move the units yourself.
For example, playing a units run animation and sliding it accross the floor with a high update interval should do the trick.
07-12-2007, 04:40 PM#4
TheSecretArts
uhhh... try:
Trigger:
Animation - Play <unit>'s Walk animation
07-12-2007, 05:03 PM#5
fps-doug
okay thanks I will get to work on a different system. Hopefully I can reach a solution for my map !!
07-20-2007, 12:34 AM#6
Oblivion9
The 522 is imposed because of the limits on gameplay constants... but what if you could change that value to 600 or whatever... would it work then?
07-20-2007, 12:43 AM#7
fps-doug
you can change it but nothign happens. Its like super hard coded built into the core of the game that you cant make them move faster then 522.

I think this is how the movement works in the game:

when you order a unit to move somewhere, the game maps out waypoints that guide the unit to go from point a to b. (because usually they dont go in a straight line, so the waypoints tell them how to navigate around stuff)

So the unit moves toward the 1st waypoint, then when he reaches it he starts turning to go to the next waypoint. Imagine the unit as a ship... if he's going too fast, he'll miss a coordinate because he couldn't turn fast enough to hit the point either...

so if the units move too fast, they can miss their waypoints, and end up running in a circle trying to hit their waypoint that they missed. And if they are moving too fast and turn too slow, they'll be running an endless circle around a point (think of a dog chasing its tail, but in this case the tail is a point in the center of the circle).

so yea... I hope I got that right and I believe thats the reason why units arent allowed to move so fast.

And well btw if anyone was wondering I gave up on the project, once I had enough content to finally test it online (instead of running around by myself) the game crashed after 5 seconds... so I marked it total failure and I burned the map (not really but I'm never opening it again ).

Im attempting to make a small single player campaign however and soon Ill put it on the map testing section to see if you guys think its any good or not.
07-20-2007, 12:44 AM#8
Anitarf
Quote:
Originally Posted by meowmix
you can't play unit's run animation
Wrong.
Quote:
Originally Posted by TheSecretarts
uhhh... try:
Trigger:
Animation - Play <unit>'s Walk animation
Ironicaly, this is wrong too. You can't play a unit's walk animation like that. You can, however, play it with the native SetUnitAnimationByIndex().
Quote:
Originally Posted by Oblivion9
The 522 is imposed because of the limits on gameplay constants... but what if you could change that value to 600 or whatever... would it work then?
No, the 522 is hardcoded no matter what you set in gameplay constants (unless you set something lower, of course).
Quote:
Originally Posted by fps-doug
so yea... I hope I got that right and I believe thats the reason why units arent allowed to move so fast.
No, if that were the case you could simply increase the turn speed to compensate. The problem is in detecting unit collision.
07-20-2007, 03:36 AM#9
Strilanc
If you were to somehow manage to get units to move a lot faster than 522 (without doing the pathing yourself), you would be very disappointed to see they started walking over each other randomly. That is why the maximum is 522: whatever blizzard is doing for pathing requires that maximum to ensure correctness.

If you want to move very quickly in a straight line, you need to use the unit - move instantly command over small distances very rapidly.
07-20-2007, 10:45 AM#10
Toink
If you already knew it could'nt be done, why ask it?

Quote:
I already knew that the speed is hardcoded at 522, but is there ANY way to make it faster?
07-20-2007, 11:12 AM#11
Bloodlust
Quote:
Originally Posted by Toink
If you already knew it could'nt be done, why ask it?

Because it can be done, read posting above yours. I did it exactly like that. Also some maps have it already in, I think the dota spiritbreaker can be faster than 522 using one of his abilities.
07-20-2007, 11:20 AM#12
Toink
I can prove that you can't make a unit move faster than 522 by means of the normal pathing system.

Those said above weren't even the normal movement the wc3 engine uses, they just move the unit instantly by small distances and make them play their walk anim.

And erhm... that white cow can only move for up to 522. Also check the spider that goes wind walky and damages units by 90 when they are near. Use that skill then type -ms before trying to kick my ass. :)

EDIT: How ironic

Quote:
Originally Posted by Bloodlust
Because it can be done, read posting above yours.
Quote:
Originally Posted by fps-doug
I already knew that the speed is hardcoded at 522
Quote:
Originally Posted by The)Tidehunter(
Sure you can move more than 522.
Just not with Wc3's movement system.
Quote:
Originally Posted by fps-doug
you can change it but nothign happens. Its like super hard coded built into the core of the game that you cant make them move faster then 522.
07-20-2007, 11:57 AM#13
Toadcop
Quote:
Ironicaly, this is wrong too. You can't play a unit's walk animation like that. You can, however, play it with the native SetUnitAnimationByIndex().
i have researched this odd feature... and know why =)

remove out of walk anim parametr "MoveSpeed 250,"(for example) and this animation will be played ! usinf SetUnitAnimation(). but ! it was 2 years ago ^^ so maybe i have simple renamed this animation.... a no ! anyway i does not work if it got "MoveSpeed xxx," after i removed it it works ^^

to topic... it's impossible. maybe it's possible to hack ^^ in game. use japi write native to patch this feature. i mean max movement speed ^^ i guess it's a constant. search in war3 memory value 522 =).
07-20-2007, 06:46 PM#14
fps-doug
yea toink I already knew that you cant make units move faster then 522 with wc3's pathing system, so I was asking how would I go about doing it a new way... and the new way is to move a unit instantly at very fast intervals using your own system... so yea I have it all understood now.
07-20-2007, 07:34 PM#15
Bloodlust
Quote:
Originally Posted by Toink
EDIT: How ironic

I hope you realize that the posting above yours says that you can simulate the effect by moving the unit instantly over small distances and thats what I did to have units moving faster.

Also about the dota stuff, I am pretty sure that charge ability (and yes, I didnt play spiritbreaker in ages as I dont like him) goes above 522 if the distance is long enough. Maybe, maybe not. Isnt really important. If the unit is faster due to some trick, it will not display a number above 522 with -ms due to common sense.