home *** CD-ROM | disk | FTP | other *** search
- /*
- **
- ** _mapque.qc (MapQueue Code, 1.0)
- **
- ** Copyright (C) 1996 Johannes Plass
- **
- ** This program is free software; you can redistribute it and/or modify
- ** it under the terms of the GNU General Public License as published by
- ** the Free Software Foundation; either version 2 of the License, or
- ** (at your option) any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU General Public License for more details.
- **
- ** You should have received a copy of the GNU General Public License
- ** along with this program; if not, write to the Free Software
- ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- **
- ** Author: Johannes Plass (plass@dipmza.physik.uni-mainz.de)
- **
- */
-
-
- void(entity player) MapQueueInit =
- {
- // nothing to do
- };
-
- void(entity player) MapQueueInfo =
- {
- if (!USE_MODULE_MAPQUEUE) return;
-
- // 123456789#123456789#123456789#12345678
- sprint(player,"# MapQueue: Changes levels according\n");
- sprint(player," to a given queue of maps.\n");
- };
-
- void() MapQueueChooseMap =
- {
- local string map01, map02, map03, map04, map05, map06, map07, map08, map09, map10;
- local string m;
- local float x;
-
- if (!USE_MODULE_MAPQUEUE) return;
-
- map01 = "start";
- map02 = "e1m2";
- map03 = "e1m3";
- map04 = "e1m5";
- map05 = "e1m6";
- map06 = "e1m7";
- map07 = "e1m8";
- map08 = "";
- map09 = "";
- map10 = "";
-
-
- { x = 1; m = ""; }
- if (x) if (map01 == "") { x = 0; }
- if (x) if (map01 == mapname) { x = 0; m = map02; }
- if (x) if (map02 == "") { x = 0; }
- if (x) if (map02 == mapname) { x = 0; m = map03; }
- if (x) if (map03 == "") { x = 0; }
- if (x) if (map03 == mapname) { x = 0; m = map04; }
- if (x) if (map04 == "") { x = 0; }
- if (x) if (map04 == mapname) { x = 0; m = map05; }
- if (x) if (map05 == "") { x = 0; }
- if (x) if (map05 == mapname) { x = 0; m = map06; }
- if (x) if (map06 == "") { x = 0; }
- if (x) if (map06 == mapname) { x = 0; m = map07; }
- if (x) if (map07 == "") { x = 0; }
- if (x) if (map07 == mapname) { x = 0; m = map08; }
- if (x) if (map08 == "") { x = 0; }
- if (x) if (map08 == mapname) { x = 0; m = map09; }
- if (x) if (map09 == "") { x = 0; }
- if (x) if (map09 == mapname) { x = 0; m = map10; }
-
- if (m == "" && map01 != "") m = map01;
-
- if (m != "") nextmap = m;
-
- return;
- };
-
-
-
-