Conveyer Belt

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » January 4th, 2007, 2:00 am

All-Killer wrote:where can i see that escalator ? want to see it working :D
Luke has it as part of jm_mall
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » January 4th, 2007, 3:03 am

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/
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Soviet
Core Staff
Core Staff
Posts: 7762
Joined: April 23rd, 2005, 9:12 pm

Post by Soviet » January 4th, 2007, 3:21 am

you continue to amaze me drofder, could you give a simple explanation of how the script works?

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » January 4th, 2007, 3:26 am

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.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
[SoE]_Zaitsev
Core Staff
Core Staff
Posts: 14220
Joined: October 21st, 2004, 7:17 pm
Location: Holland
Contact:

Post by [SoE]_Zaitsev » January 4th, 2007, 5:30 pm

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.
matt101harris wrote:big cock was the first thing that came to my head lol

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 5 guests