Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "zcommon.acs"
- bool mission1beat = false;
- bool mission2beat = false;
- bool mission3beat = false;
- bool mission4beat = false;
- script 1 open { //no start items for you!
- clearinventory();
- giveinventory("fist", 1);
- Thing_ChangeTID (0, 1337+PlayerNumber());
- SetActorProperty(1337, APROP_Speed, 0.25);
- }
- script 2 open { //setting up level cameras
- setcameratotexture(13,"CAMTEX01",90);
- setcameratotexture(14,"CAMTEX11",90);
- setcameratotexture(15,"CAMTEX02",90);
- setcameratotexture(16,"CAMTEX03",90);
- setcameratotexture(17,"CAMTEX04",90);
- setcameratotexture(18,"CAMTEX05",90);
- setcameratotexture(19,"CAMTEX06",90);
- setcameratotexture(20,"CAMTEX07",90);
- setcameratotexture(21,"CAMTEX08",90);
- setcameratotexture(22,"CAMTEX09",90);
- setcameratotexture(23,"CAMTEX10",90);
- setcameratotexture(24,"CAMTEX12",90);
- }
- script 3 open { //begin gamething
- sector_setcolor(26,255,255,153);
- line_setblocking(1,4,0);
- setplayerproperty(1,1,1);
- delay(100);
- door_open(3,40);
- thing_setgoal(1,2,1,1);
- }
- script 4 (void) { //hell breaks loose when you attack enemy
- mission1beat = true;
- setfont("BIGFONT");
- hudmessage(s:"GOAL 1 COMPLETE!";HUDMSG_TYPEON, 1, CR_YELLOW, 0.4, 0.5, 1.5, 0.025, 0.50);
- line_setblocking(1,0,4);
- setplayerproperty(1,0,1);
- sector_setcolor(12,255,0,0);
- sector_setcolor(28,255,0,0);
- }
- script 5 (void) { //turns off cameras, second mission
- setlinetexture(2,SIDE_FRONT,TEXTURE_MIDDLE,"TVSNOW");
- sector_setcolor(12,255,255,255);
- sector_setcolor(28,255,255,153);
- mission2beat = true;
- setfont("BIGFONT");
- hudmessage(s:"GOAL 2 COMPLETE!";HUDMSG_TYPEON, 1, CR_YELLOW, 0.4, 0.5, 1.5, 0.025, 0.50);
- }
- script 6 (void) { //woo you exited
- mission4beat = true;
- setfont("BIGFONT");
- hudmessage(s:"GOAL 4 COMPLETE!";HUDMSG_TYPEON, 1, CR_YELLOW, 0.4, 0.5, 1.5, 0.025, 0.50);
- }
- script 7 (void) { //checks if all is complete
- if(mission1beat == true && mission2beat == true && mission3beat == true && mission4beat == true)
- {
- delay(50);
- changecamera(24,1,0);
- delay(100);
- hudmessage(s:"YOU WIN!";HUDMSG_TYPEON, 1, CR_YELLOW, 0.4, 0.5, 1.5, 0.025, 0.50);
- delay(150);
- exit_normal(0);
- }
- else
- {
- setfont("BIGFONT");
- hudmessage(s:"You need to complete all of the goals before you can exit.";HUDMSG_TYPEON, 1, CR_YELLOW, 0.4, 0.5, 1.5, 0.025, 0.50);
- }
- }
- script 254 open { //checks guards thing for third mission
- while(thingcount(0,25) > 0)
- delay(1);
- mission3beat = true;
- setfont("BIGFONT");
- hudmessage(s:"GOAL 3 COMPLETE!";HUDMSG_TYPEON, 1, CR_YELLOW, 0.4, 0.5, 1.5, 0.025, 0.50);
- }
- script 255 open { //goal log thing
- setfont("BIGFONT");
- hudmessage(s:"Goals:"; HUDMSG_PLAIN, 2, CR_BRICK, 0.025, 0.875, 0);
- hudmessage(s:"Break out"; HUDMSG_PLAIN, 3, CR_BLUE, 0.025, 0.9, 0);
- hudmessage(s:"Deactivate cameras"; HUDMSG_PLAIN, 4, CR_BLUE, 0.025, 0.925, 0);
- hudmessage(s:"Eliminate all guards in area"; HUDMSG_PLAIN, 5, CR_BLUE, 0.025, 0.95, 0);
- hudmessage(s:"Escape"; HUDMSG_PLAIN, 6, CR_BLUE, 0.025, 0.975, 0);
- }
- script 256 open { //displays if things are done or not
- setfont("BIGFONT");
- if(mission1beat == true)
- hudmessage(s:"COMPLETE!"; HUDMSG_PLAIN, 7, CR_GREEN, 0.325, 0.9, 0);
- else
- hudmessage(s:"incomplete"; HUDMSG_PLAIN, 7, CR_RED, 0.325, 0.9, 0);
- if(mission2beat == true)
- hudmessage(s:"COMPLETE!"; HUDMSG_PLAIN, 8, CR_GREEN, 0.325, 0.925, 0);
- else
- hudmessage(s:"incomplete"; HUDMSG_PLAIN, 8, CR_RED, 0.325, 0.925, 0);
- if(mission3beat == true)
- hudmessage(s:"COMPLETE!"; HUDMSG_PLAIN, 9, CR_GREEN, 0.325, 0.95, 0);
- else
- hudmessage(s:"incomplete"; HUDMSG_PLAIN, 9, CR_RED, 0.325, 0.95, 0);
- if(mission4beat == true)
- hudmessage(s:"COMPLETE!"; HUDMSG_PLAIN, 10, CR_GREEN, 0.325, 0.975, 0);
- else
- hudmessage(s:"incomplete"; HUDMSG_PLAIN, 10, CR_RED, 0.325, 0.975, 0);
- delay(1);
- restart;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement