Zip Line?

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

Moderator: Core Staff

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

Zip Line?

Post by Soviet » October 4th, 2006, 6:40 am

would it be possible to make a zip line where if you walk up and press use you slide on a rope down to some other place?

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » October 4th, 2006, 11:30 am

Yes, i've got one in one of the maps i'm working on. So to answer your question, yes it is possible.

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

Post by Drofder2004 » October 4th, 2006, 2:30 pm

And also fairly easy.

If Luke has it in his map, I will leave it up to luke to either give away his code or wait until the release of his map...
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

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » October 4th, 2006, 3:35 pm

The way i did it is pretty easy, and the code is already on the forum, just not for this purpose. This is the code i used, which is basically just using moveto and linkto:

Code: Select all

zipwire()
{
zipwire = getent ("zipwire","targetname"); //zipwire is the handle, this will be moving along the wire
ziptrig = getent ("ziptrig","targetname");  
org_start = (1304,2673,1186);
while (1)
{
ziptrig waittill ("trigger",user);
user.origin = zipwire.origin - (0,0,120);
user linkto(zipwire);
zipwire moveto((1304, 1878, 1567), 6, 4, 2);
zipwire waittill ("movedone");
wait 0.5;
user unlink();
zipwire moveto((org_start), 6, 4, 2);
zipwire waittill ("movedone");
wait 1;
}
}
Simple but works fairly well, i'm sure you can change the values for it to work in your map soviet, but if you need help just ask. Drofder might have a better method though :P

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

Post by Soviet » October 4th, 2006, 5:21 pm

awesome, ty luke

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

Post by Drofder2004 » October 4th, 2006, 7:44 pm

Luke wrote:The way i did it is pretty easy, and the code is already on the forum, just not for this purpose. This is the code i used, which is basically just using moveto and linkto:

Code: Select all

zipwire()
{
zipwire = getent ("zipwire","targetname"); //zipwire is the handle, this will be moving along the wire
ziptrig = getent ("ziptrig","targetname");  
org_start = (1304,2673,1186);
while (1)
{
ziptrig waittill ("trigger",user);
user.origin = zipwire.origin - (0,0,120);
user linkto(zipwire);
zipwire moveto((1304, 1878, 1567), 6, 4, 2);
zipwire waittill ("movedone");
wait 0.5;
user unlink();
zipwire moveto((org_start), 6, 4, 2);
zipwire waittill ("movedone");
wait 1;
}
}
Simple but works fairly well, i'm sure you can change the values for it to work in your map soviet, but if you need help just ask. Drofder might have a better method though :P
Thats the basic single zipwire and if you only want to use one zipwire, this is the simplest method.
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

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests