Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "zcommon.acs"
- #library "MISSILES"
- // THIS SCRIPT REQUIRES "MissileActivatesImpactLines" FLAG IN MAPINFO!!!!
- // Also this was tested in Zandronum 3.0. It requires a sourceport that allows named scripts.
- int mamount = 0; /* Missile Door*/
- script "MDoor" (int stag, int ltag)
- { // Missile Door (sector, line)
- if (!CheckActorClass(0,"PowerMissileCoop"))
- { // if not a powermissile
- SetActivatorToTarget(0); // so the activator isnt the missile, and hudmessage prints to the player
- HudMessage(s:"You need ", d:5-mamount, s:" missiles to open this door";
- HUDMSG_FADEOUT, 1, CR_BLACK, 0.9, -0.9, 1.0, 3.0);
- terminate;
- }
- mamount++; // if it's a missile, then + amount
- if (mamount == 5)
- {
- Door_Open(stag, 16, 0);
- SetLineSpecial(ltag,202,0,16,0,70,0);
- mamount = 0;
- }
- else if (mamount < 5)
- {
- SetActivatorToTarget(0);
- HudMessage(s:"You need ", d:5-mamount, s:" missiles to open this door";
- HUDMSG_FADEOUT, 1, CR_BLACK, 0.9, -0.9, 1.0, 3.0);
- }
- }
- int smamount = 0; /* Super Missile Door*/
- script "SMDoor" (int stag1, int ltag1)
- { // Super Missile Door (sector, line)
- if (!CheckActorClass(0,"SuperMissileCoop")) { // if not a super missile
- SetActivatorToTarget(0);
- HudMessage(s:"You need ", d:2-smamount, s:" super missiles to open this door";
- HUDMSG_FADEOUT, 2, CR_BLACK, 0.9, -0.9, 1.0, 3.0);
- terminate;
- }
- smamount++; // if it's a super missile, then increase amount
- if (smamount == 2)
- {
- Door_Open(stag1, 16, 0);
- SetLineSpecial(ltag1,202,0,16,0,70,0);
- smamount = 0;
- }
- else if (smamount < 2)
- {
- SetActivatorToTarget(0);
- HudMessage(s:"You need ", d:2-smamount, s:" super missiles to open this door";
- HUDMSG_FADEOUT, 2, CR_BLACK, 0.9, -0.9, 1.0, 3.0);
- }
- }
- int PBamount = 0; // Power Bomb Door ***NOTWORKINGYET***
- script "PBDoor" (int stag1, int ltag1)
- { // Power Bomb Door (sector, line)
- if (!CheckActorClass(0,"PowerBomb")) { //
- SetActivatorToTarget(0);
- HudMessage(s:"You need a power bomb to open this door";
- HUDMSG_FADEOUT, 2, CR_BLACK, 0.9, -0.9, 1.0, 3.0);*/
- terminate;
- }
- Door_Open(stag1, 16, 0);
- SetLineSpecial(ltag1,202,0,16,0,70,0);
- pbamount = 0;
- }
- /*
- DOWNLOAD LINK: https://www.dropbox.com/s/465kbr8g8r1xw6d/MTJresources.pk3?dl=0
- Load with metroiddreadnought and metroid dreadnought levels
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement