Page 2 of 2
Posted: January 4th, 2007, 2:00 am
by Drofder2004
All-Killer wrote:where can i see that escalator ? want to see it working

Luke has it as part of jm_mall
Posted: January 4th, 2007, 3:03 am
by Drofder2004
Here you go...
A working conveyor belt... (map file and gsc)
To modify it is a lot of trial and error.
http://www.filefactory.com/file/a5cccf/
Posted: January 4th, 2007, 3:21 am
by Soviet
you continue to amaze me drofder, could you give a simple explanation of how the script works?
Posted: January 4th, 2007, 3:26 am
by Drofder2004
Soviet wrote:you continue to amaze me drofder, could you give a simple explanation of how the script works?
First, the script gets an array of brushes (the belt)...
Then the script sets all of those brushes to the start position (v. important they all start at same place).
Then the script starts moving the brushes 1-by-1 (there is a wait statement after each of the "brush move()" to stagger the process).
The move thread is pretty simple, again as I put in page 1, it uses a simple bit of Maths (loci)...
-Brush moves 120 units to the right...
-Brush rotates 180 degrees at the point of origin (define by the origin brush in each script_brushmodel)...
-Brush moves 120 units to the left...
-Brush rotates 180 (not -180) to return to its start position...
-Cycle continues.
Posted: January 4th, 2007, 5:30 pm
by [SoE]_Zaitsev
Can't wait to see that work in the map itself.
I've always questioned the possibility of this but I find it too hard to explain in English.