HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[system] Smooth Movement System

03-11-2009, 03:38 AM#1
moyack
Ok guys, this is the last thing I'll release to the public from my project Power of Corruption. This script has been modified so it can work standalone.



SMOOTH MOVEMENT SYSTEM
By moyack. 2009.



What does it do??

This system (actually a script) allow to the user to move a unit from one point to another given an initial speed, a final speed and in a defined time. In order to use it, you must know what is a vector (not how to operate, just to know what's it).

Allows to define events: when the unit starts moving, when it moves and when it ends moving.


Requirements:

Is this a physic system?

NO!!! it's just for moving a unit very smoothly. But this could emulate realistic movements too.


Can I emulate the most desirable thing in WC3: Knockbacks???

Of course, in fact I have a module for knockbacks, with the possibility to make them fly too.


How can I set the parameters?

You'll need to define a unit to move, a vector which will store the initial position, other vector to define the final position, other vector which will define the starting speed, other vector to define the final speed, the time required to do this movement, a boolean to set if the vectors should be destroyed after the movement and a boolean to set if the unit will be paused during the movement.

Check the following picture:

.

Speed vectors can be defined in 2 ways: in cartesian or spherical coordinates.

Expand Main library:

Check the test map and review the sample spell for better understanding. Last update: 27/04/2009
Attached Images
File type: jpgClip_3.jpg (66.7 KB)
File type: jpgCopy of Clip_3.jpg (69.8 KB)
Attached Files
File type: w3xSmoothMov.w3x (47.9 KB)
03-24-2009, 02:33 AM#2
moyack
Expand Projectile Utilities + KnockBack implementation:
03-24-2009, 09:04 PM#3
The Grey Knight
awesome, been waiting awhile for this. anyways, one thing about the spell that i might recommend is that a minimum casting range be applied, since it's kinda weird when a person jumps at another person point blank.
03-24-2009, 10:29 PM#4
akolyt0r
you can add constant to many of your functions... for 1% speed bonus -.-
03-24-2009, 11:29 PM#5
moyack
Hmm yes... I'll take into account. Every penny is worthy :)
03-26-2009, 03:13 AM#6
The Grey Knight
huh, just curious but, in the spell, what is the berserk caster attachment for? i dont think i see it show up ingame.
03-26-2009, 10:42 AM#7
moyack
At the moment I can't answer you because I don't have WC3 at hand, I'll do it this night.
04-28-2009, 03:45 AM#8
moyack
Updated.
09-09-2009, 12:01 AM#9
The Grey Knight
bother, 1.23/1.24 seems to have broken some stuff here.
09-09-2009, 01:59 PM#10
moyack
I'll check it out this weekend if the time allows me.