map specific mods / scripts.

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

Moderator: Core Staff

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

Post by Drofder2004 » April 22nd, 2006, 3:39 pm

Removed.

Script failed after additional etst :(
Last edited by Drofder2004 on April 22nd, 2006, 4:24 pm, edited 1 time in total.
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 » April 22nd, 2006, 4:25 pm

Dont bother. The script only runs once.:(
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 » April 22nd, 2006, 4:58 pm

Ok got it working. Will give you map file and details...

http://www.spread-it.com/dl.php?id=a979 ... 15fad54ddf
^Map download

Explanation...

Basically, there are 2 triggers.
I have made the map with the spawn inside a tunnel. You can do this however you like but I would recommend that however you make it, dont allow the player to get back to the triggers.

My map consists of the tunnel which has 2 "one-way" exits made from curve-patches.
The first trigger will just get the player and call him "user". The gsc then uses this to run another thread.
The thread will wait until the second trigger is triggered. Once the user touches that trigger, he loses all weapons and is replaced with an empty kar98k.

Ok, I hope you get the point :P
Heres the GSC.

Code: Select all

main()
{
maps\mp\_load::main();
	
while(1)
{
trigger = getent("trigger","targetname");
trigger waittill ("trigger",user);
user start();
}
}

start()
{
remove = getent("remove","targetname");
remove waittill ("trigger");
	self remove_weapons();
}

remove_weapons()
{
self takeallweapons();
self giveweapon("kar98k_mp");
self setweaponslotammo("primary", 0);
self setweaponslotclipammo("primary", 0);
self switchtoweapon("kar98k_mp");
}
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 » April 22nd, 2006, 8:26 pm

I'll look into it.
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 » April 22nd, 2006, 8:29 pm

KillerSam wrote:you just dont realise how much that means to me lol..been here refreshing the page lol :)
realy greatful :)
Don't count on anything today. I have had no sleep in 30hours, and my brain is not functioning and wont be restored until 2moro :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

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

Post by Drofder2004 » April 23rd, 2006, 4:00 pm

KillerSam wrote:woo 30 hours....get some sleep dude.
And that I have. 12 hours worth :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 1 guest