mh66
Community Developer
- Joined
- Jun 21, 2016
- Messages
- 1,050
Hello everyone,
I've scripted a routine that might help some of you making edgy profiles more human-like or even flying routines.
HOW IT WORKS
Smoothify will replace hotspots with waypaths being way more smooth and curved.
HOW TO USE
copy/paste hotspots, set your parameters and click on "Smoothify".
PARAMETERS
MaxDistance: maximum distance between replaced hotspot and new waypath
Step: minimum distance between added waypoints
NextCTM: Corresponds to PathPrecision (distance between char and current Click-To-Move-Event when next CTM is triggered)
Cycle: check if transition between first and last waypoint is desired
Invert: check if you want to change direction of path
Notes:
EXAMPLE
Furthermore, I've attached 2 profiles for "Vale Of Eternal Blossoms":
View attachment [Smoothify] Edgy.xml
contains the original edgy flying path
View attachment [Smoothify] Smoothified (10, 4, Cycle).xml
contains the smoothified flying path with parameters MaxDistance=10, Step=2, Cycle
Having uploaded the script on JSFiddle, it's quite easy modifying and adapting the function to your needs. If anyone is interested in the math behind it for improvements and adjustments, let me know and I will provide some notes.
http://jsfiddle.net/58zt099v/37/embedded/result/
Sorry for doubleposting. Didn't know where this topic fits more.
I've scripted a routine that might help some of you making edgy profiles more human-like or even flying routines.
HOW IT WORKS
![01_howitworks.png](http://pichoster.net/images/2016/08/10/01_howitworks.png)
Smoothify will replace hotspots with waypaths being way more smooth and curved.
HOW TO USE
![02_howtouse.png](http://pichoster.net/images/2016/08/18/02_howtouse.png)
copy/paste hotspots, set your parameters and click on "Smoothify".
PARAMETERS
![03_parameter.png](http://pichoster.net/images/2016/08/10/03_parameter.png)
MaxDistance: maximum distance between replaced hotspot and new waypath
Step: minimum distance between added waypoints
NextCTM: Corresponds to PathPrecision (distance between char and current Click-To-Move-Event when next CTM is triggered)
Cycle: check if transition between first and last waypoint is desired
Invert: check if you want to change direction of path
Notes:
- Smoothify will autocorrect values for specific waypoints that may cause bottish behaviour
- If you set MaxDistance to a very hight value (eg "9999"), Smoothify will create a waypath being as curved as possible.
- If you record your path with ZapRecorder you might want to use a distance of 30
EXAMPLE
Furthermore, I've attached 2 profiles for "Vale Of Eternal Blossoms":
View attachment [Smoothify] Edgy.xml
contains the original edgy flying path
View attachment [Smoothify] Smoothified (10, 4, Cycle).xml
contains the smoothified flying path with parameters MaxDistance=10, Step=2, Cycle
Having uploaded the script on JSFiddle, it's quite easy modifying and adapting the function to your needs. If anyone is interested in the math behind it for improvements and adjustments, let me know and I will provide some notes.
http://jsfiddle.net/58zt099v/37/embedded/result/
Sorry for doubleposting. Didn't know where this topic fits more.
Last edited: