Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Library "music" //The library name, this should be limited to eight characters
- #include "zcommon.acs"
- Script 1 OPEN
- {
- //FadeTo(0,0,0, 1.0, 0.0); // http://zdoom.org/wiki/FadeTo
- //SetHudSize(800, 600, 0); // http://zdoom.org/wiki/SetHudSize
- //SetFont("cred_br2");
- //HudMessageBold(s:"a"; HUDMSG_FADEINOUT, 999, 0, 400.0, 300.0, 999.0, 2.0, 2.0);
- ACS_Execute(222, 0, 1, 221); // Execute script that allows terminating the cutscene early
- // The 2 is THIS script's number
- // The 3 is the script to execute when this one is terminated early
- //SetMusic("",0,0);
- Thing_Activate(100);
- ChangeCamera(100, 0, 0); // was 28, 0, 0
- //SetHudSize(800, 600, 0);
- //ConsoleCommand("r_drawplayersprites 0");
- //ConsoleCommand("screenblocks 12");
- //ConsoleCommand("crosshair 0");
- //ConsoleCommand("show_messages 0");
- //SetPlayerProperty(1 , 1, PROP_FROZEN);
- SetPlayerProperty(1, 1, PROP_TOTALLYFROZEN); // http://remilia.zdoom.org/wiki/SetPlayerProperty
- Delay(35);
- SetFont("DBIGFONT");
- /*
- HudMessage(s:"When the Lamb broke the fourth seal, I heard the voice of the fourth living creature saying, Come.",
- s:"\n ",
- s:"\n I looked, and behold, an ashen horse; and he who sat on it had the name Death; and Hades was following with him.",
- s:"\n ",
- s:"\n Authority was given to them over a fourth of the earth, to kill with sword and with famine and with pestilence ",
- s:"\n ",
- s:"\n and by the wild beasts of the earth.",
- s:"\n ",
- s:"\n - Revelation 6:7-8"; // —
- */
- HudMessage(s:"Go to Mars they said, make easy money they said; so I went to Mars to guard some eggheads and earn some credits.",
- s:"\n ",
- s:"\n Then Hell ascended. Death got off his fat ass and came right for us. Who saw that coming; our own units coming back at us.",
- s:"\n ",
- s:"\n Far too many missions and lost comrades later; orders haven't been coming in for what, weeks...months?",
- s:"\n ",
- s:"\n Is there anyone else left alive? Its up to me search the UAC Labs for any survivors and supplies.",
- s:"\n ",
- s:"\n SAME SHIT, DIFFERENT DAY"; // SSDD // WWSD?
- HUDMSG_TYPEON, 35, CR_WHITE, 1.5, 0.5, 5.0, 0.05, 2.0);
- Delay(30*35);
- //ConsoleCommand("r_drawplayersprites 1");
- //ConsoleCommand("screenblocks 12");
- //ConsoleCommand("crosshair 1");
- //ConsoleCommand("show_messages 1");
- ChangeCamera(0, 0, 0);
- //SetPlayerProperty(1, 0, PROP_FROZEN);
- SetPlayerProperty(1, 0, PROP_TOTALLYFROZEN);
- ACS_Terminate(222, 0);
- }
- // HUD MESSAGES
- // http://zdoom.org/wiki/HudMessage
- Script 47 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"UAC Alumni"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- // HudMessagebold(s:"UAC Alumni"; HUDMSG_FADEINOUT, 2, CR_RED, 550.0, 500.0, 5.0, 3.0, 3.0); // Name
- // HudMessagebold(s:"UAC Alumni"; HUDMSG_FADEINOUT, 2, CR_BLACK, 550.0, 500.0, 5.0, 3.0, 3.0); // Name
- }
- Script 48 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Blood Fountain"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 49 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"House of Pain"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 50 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Losing Control"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 51 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Hellgate"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 52 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Lathe of Heaven"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 53 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"UAC Storage: Site A"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 54 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"UAC Storage: Site B"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 55 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"UAC Storage: Site C"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 56 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"UAC Storage: Site D"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 57 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"UAC Storage: Site E"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 58 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"The Head"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 59 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Demonic Outhouse"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 60 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Bilge Pump"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 61 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Nazis, I hate these guys"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- // HudMessagebold(s:"It's Quiet...Too Quiet..."; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 62 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Pentagrammon"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- // Visual Incantations
- SectorSound("Voices/SiVisMan1", 127); // SVPPBM1.ogg // Volume is 0 - 127
- // http://zdoom.org/wiki/SectorSound
- // AmbientSound("Voices/SiVisMan1", 127); // WORLD SOUND
- // http://zdoom.org/wiki/AmbientSound
- }
- Script 63 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Lord of Fire"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 64 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"My Struggle"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 65 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"You know you done fucked up, don't you?"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 66 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Throne of Satan"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 67 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Plains of Pain"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 68 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Video Games are inherently violent & females are there for no other purpose then..."; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- // Ashrieka Sarkreepian
- }
- Script 69 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Rise of the Feminazi"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 70 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Waste Management & Recycling Facility"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 71 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"Sector Thirteen"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0); // 13 looked too much like an uppercase "B"
- }
- Script 72 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"UAC Storage: Site F"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- Script 73 (VOID)
- {
- SetFont("DBIGFONT");
- HudMessagebold(s:"This goddamn place smells like a coffin!"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- }
- // Cleanup after a prematurely terminated script 2
- Script 221 (VOID)
- {
- //place everything that the cutscene at script 2 should be at the end of it
- //set any vars at the value they should all have
- //set any player property back to what they should be
- SetPlayerProperty(1,0,PROP_TOTALLYFROZEN); // http://remilia.zdoom.org/wiki/SetPlayerProperty
- //SetPlayerProperty (1, 0, 0); // the player can move
- //SetFont("bigfont");
- SetFont("DBIGFONT");
- SetHudSize(0, 0, 0); // http://zdoom.org/wiki/SetHudSize
- HudMessage(s:"Cutscene Skipped";
- HUDMSG_FADEINOUT,35,CR_WHITE,0.5,0.9,15.0,2.0,2.0);
- Autosave();
- ChangeCamera (0, 0, 0);
- }
- // This script sits in a loop waiting for +use to be pressed
- // If +use was held down, it will be ignored until it is released and repressed
- // It takes the cutscene's script number as a parameter, so you can reuse it for any number of cutscenes
- // It also takes as parameter a script to cleanup after an incomplete cutscene
- Script 222 (int ScriptNum, int SkipScript)
- {
- SetFont("DBIGFONT");
- //SetFont("SMALLFONT");
- HudMessage(s:"\cj Press the \cg use key \cj to skip this scene"; HUDMSG_PLAIN, 10, 1, 350.0, 400.0, 0);
- While (!(GetPlayerInput(0, INPUT_BUTTONS) & BT_USE) || (GetPlayerInput(0, INPUT_OLDBUTTONS) & BT_USE))
- {
- Delay(1);
- }
- ACS_Terminate(1,0);
- ACS_Execute(221,0);
- }
- // HUD LOG MESSAGE
- // http://zdoom.org/wiki/Log
- // http://zdoom.org/wiki/Classes:PowerDamage
- //Double Damage
- Script 665 (VOID)
- {
- LocalAmbientSound("pickups/quad", 127); //Plays a sound at full volume that is only heard by the activator
- Log(s:"You've been granted Double Damage!");
- Print(s:"You've been granted Double Damage!");
- SetFont("DBIGFONT");
- HudMessagebold(s:"You've been granted Double Damage!"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- GiveInventory("DoubleSphere", 1);
- //GiveInventory("PowerDoubleDamage", 1);
- Delay(20 * 35); // was Delay(25 * 35);
- //AmbientSound("items/quadwearingoff", 127);
- Log(s:"Double Damage is running out...");
- SetFont("DBIGFONT");
- HudMessagebold(s:"Double Damage is running out..."; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- Delay(5 * 35);
- //AmbientSound("items/quadgone", 127);
- TakeInventory("DoubleSphere", 1);
- //TakeInventory("PowerDoubleDamage", 1);
- }
- // Quad Damage
- Script 666 (VOID)
- {
- LocalAmbientSound("pickups/quad", 127); //Plays a sound at full volume that is only heard by the activator
- Log(s:"You've been granted Quad Damage!");
- Print(s:"You've been granted Quad Damage!");
- SetFont("DBIGFONT");
- HudMessagebold(s:"You've been granted Quad Damage!"; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- GiveInventory("QuadSphere", 1);
- //GiveInventory("PowerQuadDamage", 1);
- Delay(20 * 35); // was Delay(25 * 35);
- //AmbientSound("items/quadwearingoff", 127);
- Log(s:"Quad Damage is running out...");
- SetFont("DBIGFONT");
- HudMessagebold(s:"Quad Damage is running out..."; HUDMSG_PLAIN, 0, CR_DARKGREEN, 0.5, 0.8, 5.0);
- Delay(5 * 35);
- //AmbientSound("items/quadgone", 127);
- TakeInventory("QuadSphere", 1);
- //TakeInventory("PowerQuadDamage", 1);
- }
- // MUSIC CONTROL
- /*
- int MusicDoom[28] = {"MUSIC01","MUSIC02","MUSIC03","MUSIC04","MUSIC05","MUSIC06","MUSIC07","MUSIC08","MUSIC09","MUSIC10","MUSIC11","MUSIC12","MUSIC13","MUSIC14","MUSIC15","MUSIC16","MUSIC17","MUSIC18","MUSIC19","MUSIC20","MUSIC21","MUSIC22","MUSIC23","MUSIC24","MUSIC25","MUSIC26","MUSIC27","MUSIC28"};
- int tracksi = 0; // tracks index
- Script 702 ENTER //(void)
- {
- Print(s:"Music track index is " , d: tracksi);
- SetMusic(MusicDoom[tracksi]);
- //SetMusic(MusicDoom[random(0,27)]);
- Delay (3);
- tracksi += 1;
- if(tracksi >= 28) tracksi = 0;
- }
- */
- // OLD
- //int MusicDoom[28] = {"MUSIC01","MUSIC02","MUSIC03","MUSIC04","MUSIC05","MUSIC06","MUSIC07","MUSIC08","MUSIC09","MUSIC10","MUSIC11","MUSIC12","MUSIC13","MUSIC14","MUSIC15","MUSIC16","MUSIC17","MUSIC18","MUSIC19","MUSIC20","MUSIC21","MUSIC22","MUSIC23","MUSIC24","MUSIC25","MUSIC26","MUSIC27","MUSIC28"};
- //int MusicDoom[28] = {"D_E1M1","D_E1M2","D_E1M3","D_E1M4","D_E1M5","D_E1M6","D_E1M7","D_E1M8","D_E1M9","D_E2M1","D_E2M2","D_E2M3","D_E2M4","D_E2M5","D_E2M6","D_E2M7","D_E2M8","D_E2M9","D_E3M1","D_E3M2","D_E3M3","D_E3M4","D_E3M5","D_E3M6","D_E3M7","D_E3M8","D_E3M9","D_INTRO"};
- int MusicDoom[28] = {"D_RUNNIN","D_STALKS","D_COUNTD","D_BETWEE","D_DOOM","D_THE_DA","D_SHAWN","D_DDTBLU","D_IN_CIT","D_DEAD","D_STLKS2","D_THEDA2","D_DOOM2","D_DDTBL2","D_RUNNI2","D_DEAD2","D_STLKS3","D_ROMERO","D_SHAWN2","D_MESSAG","D_COUNT2","D_DDTBL3","D_AMPIE","D_THEDA3","D_ADRIAN","D_MESSG2","D_ROMER2","D_TENSE"};
- //Start music
- Script 998 ENTER
- {setMusic(MusicDoom[random(0,27)]);}
- // Randomly switch music
- Script 999 (VOID) NET
- {setMusic(MusicDoom[random(0,27)]);}
- // http://zdoom.org/wiki/A_quick_beginner%27s_guide_to_ACS
- // http://www.doomworld.com/vb/doom-editing/71011-udmf-acs-for-random-music-help/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement