Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
1 Active | 49 Guests
Online:

LATEST FORUM THREADS

»
run artillery on maps
CoD+UO Map + Mod Releases
Call of DutyŽ: WWII
CoD WW2 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Triggers and there Functions
custard
General Member
Since: Jul 4, 2006
Posts: 252
Last: Sep 11, 2009
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Sunday, Feb. 11, 2007 10:26 am
Hey all i want to make a "keypad" basically i am not stealing anyones work or nothing simple remaking my own one while i am getting another one made by a bud here i go:


ok this is so far what i have and want to do i have 9 triggers

each have the name

classname
trigger_multiple

targetname
1

targetname
2

etc thru 9


http://img211.imageshack.us/img211/6379/48661536da3.jpg


http://img251.imageshack.us/img251/4122/94250922cw2.jpg

i really do not know how to make the doors move i do not know code nothing so some help would be great thx guys i would like to push say the code is 12345 then i want to shoot 1 which would set off 2 then 3 then 4 then 5 and if they codes is correct (and you hit the 5) it closes the doors and opens like in the picture

~Custard

edited on Feb. 11, 2007 12:28 pm by custard
Share |
custard
General Member
Since: Jul 4, 2006
Posts: 252
Last: Sep 11, 2009
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Sunday, Feb. 11, 2007 12:19 pm
um? help
Share |
codmp
General Member
Since: Feb 6, 2006
Posts: 905
Last: Jul 31, 2011
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Sunday, Feb. 11, 2007 12:41 pm
To learn how to script and make doors open and close i would suggest readin this tut......http://www.modsonline.com/Tutorials-read-121.html

You might need to make the trigger a classname trigger_damage or something like that for it to open the door when shot at

edited on Feb. 11, 2007 02:42 pm by codmp
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Sunday, Feb. 11, 2007 12:42 pm
uhm, relax?

this is very hard. RnR managed and are, obviously, rather protective of it. So give us a bit more time than just 2 hours.

Also... you'll have to do some of the coding yourself... if you haven't already... start with making a door move if you press the right trigger... there is a moving things tutorial in the CoD section
Share |
custard
General Member
Since: Jul 4, 2006
Posts: 252
Last: Sep 11, 2009
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Sunday, Feb. 11, 2007 12:53 pm
hehe np all i figured out the code :) i cracked it it was hard but i did it all i gotta do now it figure out how to do the door triggers
Share |
custard
General Member
Since: Jul 4, 2006
Posts: 252
Last: Sep 11, 2009
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Sunday, Feb. 11, 2007 01:08 pm
does that look Right? and where in there would i add my Triggers for my doors?

Code:
main ()
{
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOff();
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOn(); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOn(); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOff(); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOn(); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOff(); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOff(); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOn(); 
hurtzone1 = getent("door1trig","targetname");
hurtzone1 thread maps\mp\_utility::triggerOff(); 
hurtzone2 = getent("door2trig","targetname");
hurtzone2 thread maps\mp\_utility::triggerOn(); 


thread 2_spawn_1();
thread 2_delete_2();
thread 2_delete_3();   
thread 2_spawn_4();

thread 1_spawn_5();
thread 1_delete_1();
thread 1_delete_6();   
thread 1_spawn_3();

thread 5_spawn_7();
thread 5_delete_5();
thread 5_delete_4();  
thread 5_spawn_6();

thread 7_spawn_8();
thread 7_delete_7();
thread 7_delete_9();   
thread 7_spawn_4();

thread 8_spawn_2();
thread 8_delete_8();
thread 8_delete_4();   
thread 8_spawn_9();
thread 8_delete_door1trig();   
thread 8_spawn_door1trig();
thread 8_delete_door2trig();   
thread 8_spawn_door2trig();
thread door2_open();
thread door1_open();


thread 9_spawn_2();
thread 9_delete_4();
thread 9_delete_8();
thread 9_delete_1();   
thread 9_delete_5();
thread 9_delete_7();
thread 9_spawn_3();
thread 9_spawn_9();   
thread 9_spawn_6();

thread FailedD_spawn_2();
thread FailedD_delete_4();
thread FailedD_delete_8();
thread FailedD_delete_1();   
thread FailedD_delete_5();
thread FailedD_delete_7();
thread FailedD_spawn_3();
thread FailedD_spawn_9();   
thread FailedD_spawn_6();

thread 6_spawn_2();
thread 6_delete_4();
thread 6_delete_8();
thread 6_delete_1();   
thread 6_delete_5();
thread 6_delete_7();
thread 6_spawn_3();
thread 6_spawn_9();   
thread 6_spawn_6();

thread FailedS_spawn_2();
thread FailedS_delete_4();
thread FailedS_delete_8();
thread FailedS_delete_1();   
thread FailedS_delete_5();
thread FailedS_delete_7();
thread FailedS_spawn_3();
thread FailedS_spawn_9();   
thread FailedS_spawn_6();

thread FailedA_spawn_2();
thread FailedA_delete_4();
thread FailedA_delete_8();
thread FailedA_delete_1();   
thread FailedA_delete_5();
thread FailedA_delete_7();
thread FailedA_spawn_3();
thread FailedA_spawn_9();   
thread FailedA_spawn_6();

thread FailedB_spawn_2();
thread FailedB_delete_4();
thread FailedB_delete_8();
thread FailedB_delete_1();   
thread FailedB_delete_5();
thread FailedB_delete_7();
thread FailedB_spawn_3();
thread FailedB_spawn_9();   
thread FailedB_spawn_6();

thread FailedP_spawn_2();
thread FailedP_delete_4();
thread FailedP_delete_8();
thread FailedP_delete_1();   
thread FailedP_delete_5();
thread FailedP_delete_7();
thread FailedP_spawn_3();
thread FailedP_spawn_9();   
thread FailedP_spawn_6();

thread 3_spawn_2();
thread 3_delete_4();
thread 3_delete_8();
thread 3_delete_1();   
thread 3_delete_5();
thread 3_delete_7();
thread 3_spawn_3();
thread 3_spawn_9();   
thread 3_spawn_6();

thread 4_spawn_2();
thread 4_delete_4();
thread 4_delete_8();
thread 4_delete_1();   
thread 4_delete_5();
thread 4_delete_7();
thread 4_spawn_3();
thread 4_spawn_9();   
thread 4_spawn_6();  

thread doorsound1();






}
2_spawn_1()
{
getent("2","targetname") waittill ("trigger");
wait (0); 
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 2_spawn_1();
}
2_delete_2()
{
getent("2","targetname") waittill ("trigger");
wait (0); 
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 2_delete_2();
}
2_delete_3()
{
getent("2","targetname") waittill ("trigger");
wait (0); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 2_delete_3();
}
2_spawn_4()
{
getent("2","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 2_spawn_4();
}
1_spawn_5()
{
getent("1","targetname") waittill ("trigger");
wait (0); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 1_spawn_5();
}
1_delete_1()
{
getent("1","targetname") waittill ("trigger");
wait (0); 
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 1_delete_1();
}
1_delete_6()
{
getent("1","targetname") waittill ("trigger");
wait (0); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 1_delete_6();
}
1_spawn_3()
{
getent("1","targetname") waittill ("trigger");
wait (0); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 1_spawn_3();
}
5_spawn_7()
{
getent("5","targetname") waittill ("trigger");
wait (0); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 5_spawn_7();
}
5_delete_5()
{
getent("5","targetname") waittill ("trigger");
wait (0); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 5_delete_5();
}
5_delete_4()
{
getent("5","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 5_delete_4();
}
5_spawn_6()
{
getent("5","targetname") waittill ("trigger");
wait (0); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 5_spawn_6();
}
7_spawn_8()
{
getent("7","targetname") waittill ("trigger");
wait (0); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 7_spawn_8();
}
7_delete_7()
{
getent("7","targetname") waittill ("trigger");
wait (0); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 7_delete_7();
}
7_delete_9()
{
getent("7","targetname") waittill ("trigger");
wait (0); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 7_delete_9();
}
7_spawn_4()
{
getent("7","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 7_spawn_4();
}
8_spawn_2()
{
getent("8","targetname") waittill ("trigger");
wait (0); 
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 8_spawn_2();
}
8_delete_8()
{
getent("8","targetname") waittill ("trigger");
wait (0); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 8_delete_8();
}
8_delete_4()
{
getent("8","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 8_delete_4();
}
8_spawn_9()
{
getent("8","targetname") waittill ("trigger");
wait (0); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 8_spawn_9();
}
8_spawn_door1trig()
{
getent("8","targetname") waittill ("trigger");
wait (2); 
hurtzone1 = getent("door1trig","targetname");
hurtzone1 thread maps\mp\_utility::triggerOn(); 
wait (10);
thread 8_spawn_door1trig();
}
8_delete_door1trig()
{
getent("8","targetname") waittill ("trigger");
wait (8); 
hurtzone1 = getent("door1trig","targetname");
hurtzone1 thread maps\mp\_utility::triggerOff(); 
wait (4);
thread 8_delete_door1trig();
}
8_spawn_door2trig()
{
getent("8","targetname") waittill ("trigger");
wait (9); 
hurtzone2 = getent("door2trig","targetname");
hurtzone2 thread maps\mp\_utility::triggerOn(); 
wait (3);
thread 8_spawn_door2trig();
}
8_delete_door2trig()
{
getent("8","targetname") waittill ("trigger");
wait (2); 
hurtzone2 = getent("door2trig","targetname");
hurtzone2 thread maps\mp\_utility::triggerOff(); 
wait (10);
thread 8_delete_door2trig();
}
door2_open()
{
door = getent ("door2", "targetname");
trig = getent ("8", "targetname");
trig waittill ("trigger");
wait (2);
door movex (42,2);
wait (6);
door movex (-42,2);
wait (4);
thread door2_open();
}
door1_open()
{
door = getent ("door1", "targetname");
trig = getent ("8", "targetname");
trig waittill ("trigger");
door movex (-42,2);
wait (10);
door movex (42,2);
wait (2);
thread door1_open();
}






9_spawn_2()
{
getent("9","targetname") waittill ("trigger");
wait (0); 
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 9_spawn_2();
}
9_delete_4()
{
getent("9","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 9_delete_4();
}
9_delete_8()
{
getent("9","targetname") waittill ("trigger");
wait (0); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 9_delete_8();
}
9_delete_1()
{
getent("9","targetname") waittill ("trigger");
wait (0); 
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 9_delete_1();
}
9_delete_5()
{
getent("9","targetname") waittill ("trigger");
wait (0); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 9_delete_5();
}
9_delete_7()
{
getent("9","targetname") waittill ("trigger");
wait (0); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 9_delete_7();
}
9_spawn_3()
{
getent("9","targetname") waittill ("trigger");
wait (0); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 9_spawn_3();
}
9_spawn_9()
{
getent("9","targetname") waittill ("trigger");
wait (0); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 9_spawn_9();
}
9_spawn_6()
{
getent("9","targetname") waittill ("trigger");
wait (0); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 9_spawn_6();
}





FailedD_spawn_2()
{
getent("FailedD","targetname") waittill ("trigger");
wait (0); 
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedD_spawn_2();
}
FailedD_delete_4()
{
getent("FailedD","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedD_delete_4();
}
FailedD_delete_8()
{
getent("FailedD","targetname") waittill ("trigger");
wait (0); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedD_delete_8();
}
FailedD_delete_1()
{
getent("FailedD","targetname") waittill ("trigger");
wait (0); 
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedD_delete_1();
}
FailedD_delete_5()
{
getent("FailedD","targetname") waittill ("trigger");
wait (0); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedD_delete_5();
}
FailedD_delete_7()
{
getent("FailedD","targetname") waittill ("trigger");
wait (0); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedD_delete_7();
}
FailedD_spawn_3()
{
getent("FailedD","targetname") waittill ("trigger");
wait (0); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedD_spawn_3();
}
FailedD_spawn_9()
{
getent("FailedD","targetname") waittill ("trigger");
wait (0); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedD_spawn_9();
}
FailedD_spawn_6()
{
getent("FailedD","targetname") waittill ("trigger");
wait (0); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedD_spawn_6();
}





6_spawn_2()
{
getent("6","targetname") waittill ("trigger");
wait (0); 
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 6_spawn_2();
}
6_delete_4()
{
getent("6","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 6_delete_4();
}
6_delete_8()
{
getent("6","targetname") waittill ("trigger");
wait (0); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 6_delete_8();
}
6_delete_1()
{
getent("6","targetname") waittill ("trigger");
wait (0); 
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 6_delete_1();
}
6_delete_5()
{
getent("6","targetname") waittill ("trigger");
wait (0); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 6_delete_5();
}
6_delete_7()
{
getent("6","targetname") waittill ("trigger");
wait (0); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 6_delete_7();
}
6_spawn_3()
{
getent("6","targetname") waittill ("trigger");
wait (0); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 6_spawn_3();
}
6_spawn_9()
{
getent("6","targetname") waittill ("trigger");
wait (0); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 6_spawn_9();
}
6_spawn_6()
{
getent("6","targetname") waittill ("trigger");
wait (0); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 6_spawn_6();
}






FailedS_spawn_2()
{
getent("FailedS","targetname") waittill ("trigger");
wait (0); 
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedS_spawn_2();
}
FailedS_delete_4()
{
getent("FailedS","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedS_delete_4();
}
FailedS_delete_8()
{
getent("FailedS","targetname") waittill ("trigger");
wait (0); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedS_delete_8();
}
FailedS_delete_1()
{
getent("FailedS","targetname") waittill ("trigger");
wait (0); 
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedS_delete_1();
}
FailedS_delete_5()
{
getent("FailedS","targetname") waittill ("trigger");
wait (0); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedS_delete_5();
}
FailedS_delete_7()
{
getent("FailedS","targetname") waittill ("trigger");
wait (0); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedS_delete_7();
}
FailedS_spawn_3()
{
getent("FailedS","targetname") waittill ("trigger");
wait (0); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedS_spawn_3();
}
FailedS_spawn_9()
{
getent("FailedS","targetname") waittill ("trigger");
wait (0); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedS_spawn_9();
}
FailedS_spawn_6()
{
getent("FailedS","targetname") waittill ("trigger");
wait (0); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedS_spawn_6();
}





FailedA_spawn_2()
{
getent("FailedA","targetname") waittill ("trigger");
wait (0); 
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedA_spawn_2();
}
FailedA_delete_4()
{
getent("FailedA","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedA_delete_4();
}
FailedA_delete_8()
{
getent("FailedA","targetname") waittill ("trigger");
wait (0); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedA_delete_8();
}
FailedA_delete_1()
{
getent("FailedA","targetname") waittill ("trigger");
wait (0); 
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedA_delete_1();
}
FailedA_delete_5()
{
getent("FailedA","targetname") waittill ("trigger");
wait (0); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedA_delete_5();
}
FailedA_delete_7()
{
getent("FailedA","targetname") waittill ("trigger");
wait (0); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedA_delete_7();
}
FailedA_spawn_3()
{
getent("FailedA","targetname") waittill ("trigger");
wait (0); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedA_spawn_3();
}
FailedA_spawn_9()
{
getent("FailedA","targetname") waittill ("trigger");
wait (0); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedA_spawn_9();
}
FailedA_spawn_6()
{
getent("FailedA","targetname") waittill ("trigger");
wait (0); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedA_spawn_6();
}





FailedB_spawn_2()
{
getent("FailedB","targetname") waittill ("trigger");
wait (0); 
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedB_spawn_2();
}
FailedB_delete_4()
{
getent("FailedB","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedB_delete_4();
}
FailedB_delete_8()
{
getent("FailedB","targetname") waittill ("trigger");
wait (0); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedB_delete_8();
}
FailedB_delete_1()
{
getent("FailedB","targetname") waittill ("trigger");
wait (0); 
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedB_delete_1();
}
FailedB_delete_5()
{
getent("FailedB","targetname") waittill ("trigger");
wait (0); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedB_delete_5();
}
FailedB_delete_7()
{
getent("FailedB","targetname") waittill ("trigger");
wait (0); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedB_delete_7();
}
FailedB_spawn_3()
{
getent("FailedB","targetname") waittill ("trigger");
wait (0); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedB_spawn_3();
}
FailedB_spawn_9()
{
getent("FailedB","targetname") waittill ("trigger");
wait (0); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedB_spawn_9();
}
FailedB_spawn_6()
{
getent("FailedB","targetname") waittill ("trigger");
wait (0); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedB_spawn_6();
}





FailedP_spawn_2()
{
getent("FailedP","targetname") waittill ("trigger");
wait (0); 
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedP_spawn_2();
}
FailedP_delete_4()
{
getent("FailedP","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedP_delete_4();
}
FailedP_delete_8()
{
getent("FailedP","targetname") waittill ("trigger");
wait (0); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedP_delete_8();
}
FailedP_delete_1()
{
getent("FailedP","targetname") waittill ("trigger");
wait (0); 
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedP_delete_1();
}
FailedP_delete_5()
{
getent("FailedP","targetname") waittill ("trigger");
wait (0); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedP_delete_5();
}
FailedP_delete_7()
{
getent("FailedP","targetname") waittill ("trigger");
wait (0); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread FailedP_delete_7();
}
FailedP_spawn_3()
{
getent("FailedP","targetname") waittill ("trigger");
wait (0); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedP_spawn_3();
}
FailedP_spawn_9()
{
getent("FailedP","targetname") waittill ("trigger");
wait (0); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedP_spawn_9();
}
FailedP_spawn_6()
{
getent("FailedP","targetname") waittill ("trigger");
wait (0); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread FailedP_spawn_6();
}






3_spawn_2()
{
getent("3","targetname") waittill ("trigger");
wait (0); 
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 3_spawn_2();
}
3_delete_4()
{
getent("3","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 3_delete_4();
}
3_delete_8()
{
getent("3","targetname") waittill ("trigger");
wait (0); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 3_delete_8();
}
3_delete_1()
{
getent("3","targetname") waittill ("trigger");
wait (0); 
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 3_delete_1();
}
3_delete_5()
{
getent("3","targetname") waittill ("trigger");
wait (0); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 3_delete_5();
}
3_delete_7()
{
getent("3","targetname") waittill ("trigger");
wait (0); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 3_delete_7();
}
3_spawn_3()
{
getent("3","targetname") waittill ("trigger");
wait (0); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 3_spawn_3();
}
3_spawn_9()
{
getent("3","targetname") waittill ("trigger");
wait (0); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 3_spawn_9();
}
3_spawn_6()
{
getent("3","targetname") waittill ("trigger");
wait (0); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 3_spawn_6();
}





4_spawn_2()
{
getent("4","targetname") waittill ("trigger");
wait (0); 
Keys2 = getent("2","targetname");
Keys2 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 4_spawn_2();
}
4_delete_4()
{
getent("4","targetname") waittill ("trigger");
wait (0); 
Keys4 = getent("4","targetname");
Keys4 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 4_delete_4();
}
4_delete_8()
{
getent("4","targetname") waittill ("trigger");
wait (0); 
Keys8 = getent("8","targetname");
Keys8 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 4_delete_8();
}
4_delete_1()
{
getent("4","targetname") waittill ("trigger");
wait (0); 
Keys1 = getent("1","targetname");
Keys1 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 4_delete_1();
}
4_delete_5()
{
getent("4","targetname") waittill ("trigger");
wait (0); 
Keys5 = getent("5","targetname");
Keys5 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 4_delete_5();
}
4_delete_7()
{
getent("4","targetname") waittill ("trigger");
wait (0); 
Keys7 = getent("7","targetname");
Keys7 thread maps\mp\_utility::triggerOff(); 
wait (0);
thread 4_delete_7();
}
4_spawn_3()
{
getent("4","targetname") waittill ("trigger");
wait (0); 
Keys3 = getent("3","targetname");
Keys3 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 4_spawn_3();
}
4_spawn_9()
{
getent("4","targetname") waittill ("trigger");
wait (0); 
Keys9 = getent("9","targetname");
Keys9 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 4_spawn_9();
}
4_spawn_6()
{
getent("4","targetname") waittill ("trigger");
wait (0); 
Keys6 = getent("6","targetname");
Keys6 thread maps\mp\_utility::triggerOn(); 
wait (0);
thread 4_spawn_6();
}




doorsound1()
{
	alerts = getentarray ("doorsound", "targetname");
	while (1)
	{
                     trig = getent ("8", "targetname");
                     trig waittill ("trigger");
		
		
		}
	}






**foyleman: converted this code to a quote because it was too long for the code to be converted properly.

**foyleman: fixed the error with code posts being too long.

edited on Feb. 11, 2007 06:38 pm by foyleman
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Sunday, Feb. 11, 2007 02:28 pm
well... if it works it's ok :p

Looks rather.. extensive though.

As for your door opening thing.. you'll have to place it in the poart of the script which indicated the correct combo of triggers has been activated.
Share |
custard
General Member
Since: Jul 4, 2006
Posts: 252
Last: Sep 11, 2009
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Sunday, Feb. 11, 2007 03:40 pm
I really can not test that i 1st gotta get the basics down i have made a tiny map 1 dm spawn, globle transmission, skybox

i have made this:


http://img184.imageshack.us/img184/7382/untitledvf1.png

I have made a door which is in blue i have made an orig covering the door then i have made a trigger which covers the brick

i have named the blue door and orig

targetname
slide

i have named the trigger_use

targetname
slider_trigger

this is my mp_test.gsc

Code:
main()	{
	maps\mp\_load::main();
	maps\mp\test_keypad::main();

	game["allies"] = "american";
	game["axis"] = "german";
	game["attackers"] = "allies";
	game["defenders"] = "axis";
	game["american_soldiertype"] = "normandy";
	game["german_soldiertype"] = "normandy";
	
	setcvar("r_glowbloomintensity0","1");
	setcvar("r_glowbloomintensity1","1");
	setcvar("r_glowskybleedintensity0",".5");



 	if(getcvar("g_gametype") == "hq")
{
	level.radio = [];
	level.radio[0] = spawn("script_model", (-342, 1000, 534));
	level.radio[0].angles = (0,57,0);
	level.radio[1] = spawn("script_model", (-327, 1375, 859));
	level.radio[1].angles = (0,1,0);
	level.radio[2] = spawn("script_model", (1294, -1599, 534));
	level.radio[2].angles = (0,312,0);
	level.radio[3] = spawn("script_model", (1317, -1538, 49));
	level.radio[3].angles = (0,57,0);
	level.radio[4] = spawn("script_model", (-1559, -1741, 1240));
	level.radio[4].angles = (0,1,0);
	level.radio[5] = spawn("script_model", (-1190, 777, 63));
	level.radio[5].angles = (0,312,0);


}
	}


and this is my test_keypad.gsc

Code:
main()
{
thread door_slider ();
}

door_slider ()
{
door = getent ("slide ", "targetname");
trig = getent ("slider_trigger ", "targetname");
while (1)
{
trig waittill ("trigger");
door movez (80, 88, 0, 0.5);
door waittill ("movedone");
wait (4);
door movez (-80, 88, 0, 0.5);
door waittill ("movedone");
}
}


and this is the error that keeps on coming up whe i try and play the game

Code:
	Loading 'ui_mp/auto_update.menu'...
	Loading 'ui_mp/settings_dm.menu'...
Menu load error: ui_mp/settings_dm.menu, line 83: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 84: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 105: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 106: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_tdm.menu'...
Menu load error: ui_mp/settings_tdm.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_ctf.menu'...
Menu load error: ui_mp/settings_ctf.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_hq.menu'...
Menu load error: ui_mp/settings_hq.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_sd.menu'...
	Loading 'ui_mp/settings_sw.menu'...
	Loading 'ui_mp/background.menu'...
WARNING: Could not find 'maps/mp/mp_test.csv'.
	Loading 'ui_mp/ingame.menu'...
	Loading 'ui_mp/ingame_controls.menu'...
	Loading 'ui_mp/ingame_options.menu'...
	Loading 'ui_mp/ingame_system.menu'...
	Loading 'ui_mp/ingame_leave.menu'...
	Loading 'ui_mp/ingame_callvote.menu'...
	Loading 'ui_mp/wm_quickmessage.menu'...
	Loading 'ui_mp/rconmenu.menu'...
	Loading 'ui_mp/weaponsettings.menu'...
	Loading 'ui_mp/mapcontrol.menu'...
	Loading 'ui_mp/generalsettings.menu'...
	Loading 'ui_mp/clientsettings.menu'...
	Loading 'ui_mp/serversettings.menu'...
	Loading 'ui_mp/saysettings.menu'...
	Loading 'ui_mp/cfgexecsettings.menu'...
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: Oct  6 2005
----------------------
Game: G_SetupWeaponDef
----------------------
frag_grenade_american_mp: WEAPON_FRAGGRENADE
-----------------------------------

******* script runtime error *******
undefined is not an object: (file 'maps/mp/test_keypad.gsc', line 12)
trig waittill ("trigger");
*
called from:
(file 'maps/mp/test_keypad.gsc', line 3)
thread door_slider ();
       *
called from:
(file 'maps/mp/mp_test.gsc', line 3)
 maps\mp\test_keypad::main();
 *
started from:
(file 'maps/mp/mp_test.gsc', line 1)
main() {
*
************************************
writing to: C:\Program Files\Activision\Call of Duty 2\servercache.dat
Error during initialization:
script runtime error
(see console for details)
(file 'maps/mp/mp_test.gsc', line 1)


Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Monday, Feb. 12, 2007 09:15 am
check if you have not made any typos in your map.
It says "trig" is undefined... you've tried to define "trig" here

trig = getent ("slider_trigger ", "targetname");

now.. most likely, this means you've made a typo in the entity window for that trigger. Also... try using a trigger_use_touch instead.
Share |
custard
General Member
Since: Jul 4, 2006
Posts: 252
Last: Sep 11, 2009
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Monday, Feb. 12, 2007 02:01 pm
Hey The_Caretaker Thx alot bud i got that working just fine but now i would like to do it like this, I got the one trigger working if you push the button it opens the door but only once ok then i want to connect 8 other triggers to a floor under the place so if you hit the wrong one it opens the floor and bye bye :) how would i do this? once i got that then i would like to know how you make it where you shoot the the trigger and the correct one opens it up then lol one more thing i would like to make hurt zone so if the door closes while a player is inside it kills them? how do i do that?

here is my mp_test.gsc


main()
{
maps\mp\_load::main();

game["allies"] = "american";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["american_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";

setcvar("r_glowbloomintensity0","1");
setcvar("r_glowbloomintensity1","1");
setcvar("r_glowskybleedintensity0",".5");



if(getcvar("g_gametype") == "hq")
{
level.radio = [];
level.radio[0] = spawn("script_model", (-1008,1280,-200));
level.radio[0].angles = (0,57,0);
level.radio[1] = spawn("script_model", (-240,-8,200));
level.radio[1].angles = (0,1,0);
level.radio[2] = spawn("script_model", (312,-32,-56));
level.radio[2].angles = (0,312,0);
level.radio[3] = spawn("script_model", (760,328,-112));
level.radio[3].angles = (0,57,0);
level.radio[4] = spawn("script_model", (1376,-1432,-208));
level.radio[4].angles = (0,1,0);
level.radio[5] = spawn("script_model", (-944,-48,8));
level.radio[5].angles = (0,312,0);


}

thread moving_object();
thread moving_object2();


}

moving_object() {
moving_object = getent ("target1", "targetname");
button = getent ("button1", "targetname");
button waittill ("trigger");
moving_object movez(-150,3,1,1);
moving_object waittill ("movedone");
wait (4);
moving_object movez(150,3,1,1);
moving_object waittill ("movedone");
}

moving_object2() {
moving_object2 = getent ("target2", "targetname");
button2 = getent ("button2", "targetname");
button2 waittill ("trigger");
moving_object2 movey(-150,3,1,1);
moving_object2 waittill ("movedone");
wait (4);
moving_object2 movey(150,3,1,1);
moving_object2 waittill ("movedone");
}


thread moving_object(); is the correct one trigger that opens the door

thread moving_object2(); is the one that the other 8 connect to

help will be nice thx guys for listening


ps. o and it keeps on comming up with an error saying getent is been use or something like that

edited on Feb. 12, 2007 04:02 pm by custard
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»