Page 1 of 1

Posted: April 22nd, 2006, 3:39 pm
by Drofder2004
Removed.

Script failed after additional etst :(

Posted: April 22nd, 2006, 4:25 pm
by Drofder2004
Dont bother. The script only runs once.:(

Posted: April 22nd, 2006, 4:58 pm
by Drofder2004
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");
}

Posted: April 22nd, 2006, 8:26 pm
by Drofder2004
I'll look into it.

Posted: April 22nd, 2006, 8:29 pm
by Drofder2004
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

Posted: April 23rd, 2006, 4:00 pm
by Drofder2004
KillerSam wrote:woo 30 hours....get some sleep dude.
And that I have. 12 hours worth :P