Drofder's kryptonite

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 » August 27th, 2006, 2:14 am

Just remove the "unlink"...
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 » August 27th, 2006, 4:47 am

Yep, had to remove the end_count too. Well its working as far as making the player stick to the cars non stop, but i'm not sure how to incorporate a trigger into the code to make the player unlink :(

does it need to be added to this part?:

Code: Select all

run()
{
	
self.finish = false;
self.oldorigin = self.origin;
car = getentarray("car","targetname");

for(i=0;i<car.size;i++)
{
	bar[i] = getent(car[i].target,"targetname");
}


for(;;)
{
if(self.finish == true)
	break;
self.origin = bar[0].origin - (0,0,100);
self linkto(bar[0]);
wait 0.1;
}
self.origin = self.oldorigin;
}
I want to use an array of triggers, 1 on each car, so the player can unlink them self.

Pedsdude
Site Admin
Site Admin
Posts: 15914
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » August 27th, 2006, 2:19 pm

What's the map going to be called? (sorry if you posted it already and I forgot)
Image
Image

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » August 27th, 2006, 2:23 pm

funfair and a night version: funfair_night
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

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

Post by Drofder2004 » August 27th, 2006, 2:23 pm

Yep, that is the part.

if(self.finish == true)
break;

That is currently what ends the infinite loop.
You may simply want to do...

if(self useButtonPressed())
{
self unlink();
break;
}
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 » August 27th, 2006, 3:06 pm

Drofder2004 wrote:Yep, that is the part.

if(self.finish == true)
break;

That is currently what ends the infinite loop.
You may simply want to do...

if(self useButtonPressed())
{
self unlink();
break;
}
works perfectly thanks :D

User avatar
Moriar
CJ Newbie
CJ Newbie
Posts: 88
Joined: March 12th, 2006, 8:15 pm
Location: The Netherlands

Post by Moriar » August 27th, 2006, 9:03 pm

Well, its now almost end of the weekend :(
And Nightmares map still isn't released :( or it is, and not on the codjumper website :(
If so, can you tell me the link?
If its not released yet, please tell me when it will be released, or send some screenshots 8)

I really like your maps, Nightmare 8) ....
So im waiting.... 8)

8) 8) 8) 8) 8)

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » August 27th, 2006, 10:00 pm

yeh, we are almost done, luke is putting some "finishing touches" on the map so it should be ready soon.
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

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

Post by Luke » August 27th, 2006, 10:02 pm

I could spend all day doing that, but you want it done quick :P

User avatar
Moriar
CJ Newbie
CJ Newbie
Posts: 88
Joined: March 12th, 2006, 8:15 pm
Location: The Netherlands

Post by Moriar » August 28th, 2006, 4:10 pm

OK....And Luke?


MAKE SURE YOU DONT FORGET some Finishing Touches :wink:

Im really looking forward to it :D

teebag
CJ Spammer!
CJ Spammer!
Posts: 548
Joined: August 7th, 2006, 7:11 pm

Post by teebag » August 28th, 2006, 4:40 pm

Pls add a river with fishes in it!! (L) fishing (L)
That's why my brother's computer doesn't need anti-virus software; 450MHz P3 doesn't meet virus's system requirements.

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » August 28th, 2006, 8:40 pm

Lol, luke is not answering me. I can't put my finishing touches to it.
Luke, give me the .maps :P
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

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

Post by Luke » August 28th, 2006, 9:56 pm

Sorry, had stuff to attend to.

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

Post by Luke » August 28th, 2006, 11:10 pm

Don't edit my posts every again! or u will find out what owned means :P

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

Post by Drofder2004 » August 28th, 2006, 11:58 pm

Luke wrote:Don't edit my posts every again! or u will find out what owned means :P
who and lol :P
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