home *** CD-ROM | disk | FTP | other *** search
/ Superpower (Alt) / SUPERPOWER.iso / q / patch / mbq624 / _mapque.qc < prev    next >
Encoding:
Text File  |  1996-08-19  |  2.6 KB  |  89 lines

  1. /*
  2. **
  3. ** _mapque.qc (MapQueue Code, 1.0)
  4. **
  5. ** Copyright (C) 1996 Johannes Plass
  6. ** 
  7. ** This program is free software; you can redistribute it and/or modify
  8. ** it under the terms of the GNU General Public License as published by
  9. ** the Free Software Foundation; either version 2 of the License, or
  10. ** (at your option) any later version.
  11. ** 
  12. ** This program is distributed in the hope that it will be useful,
  13. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. ** GNU General Public License for more details.
  16. **
  17. ** You should have received a copy of the GNU General Public License
  18. ** along with this program; if not, write to the Free Software
  19. ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. ** 
  21. ** Author:   Johannes Plass (plass@dipmza.physik.uni-mainz.de)
  22. **
  23. */
  24.  
  25.  
  26. void(entity player) MapQueueInit =
  27. {
  28.    // nothing to do
  29. };
  30.  
  31. void(entity player) MapQueueInfo =
  32. {
  33.    if (!USE_MODULE_MAPQUEUE) return;
  34.  
  35. //                123456789#123456789#123456789#12345678
  36.    sprint(player,"# MapQueue: Changes levels according\n");
  37.    sprint(player,"  to a given queue of maps.\n");
  38. };
  39.  
  40. void() MapQueueChooseMap =
  41. {
  42.    local string map01, map02, map03, map04, map05, map06, map07, map08, map09, map10;
  43.    local string m;
  44.    local float  x;
  45.  
  46.    if (!USE_MODULE_MAPQUEUE) return;
  47.  
  48.    map01 = "start";
  49.    map02 = "e1m2";
  50.    map03 = "e1m3";
  51.    map04 = "e1m5";
  52.    map05 = "e1m6";
  53.    map06 = "e1m7";
  54.    map07 = "e1m8";
  55.    map08 = "";
  56.    map09 = "";
  57.    map10 = "";
  58.  
  59.  
  60.                                 { x = 1; m = "";    }
  61.    if (x) if (map01 == "")      { x = 0;            }
  62.    if (x) if (map01 == mapname) { x = 0; m = map02; }
  63.    if (x) if (map02 == "")      { x = 0;            }
  64.    if (x) if (map02 == mapname) { x = 0; m = map03; }
  65.    if (x) if (map03 == "")      { x = 0;            }
  66.    if (x) if (map03 == mapname) { x = 0; m = map04; }
  67.    if (x) if (map04 == "")      { x = 0;            }
  68.    if (x) if (map04 == mapname) { x = 0; m = map05; }
  69.    if (x) if (map05 == "")      { x = 0;            }
  70.    if (x) if (map05 == mapname) { x = 0; m = map06; }
  71.    if (x) if (map06 == "")      { x = 0;            }
  72.    if (x) if (map06 == mapname) { x = 0; m = map07; }
  73.    if (x) if (map07 == "")      { x = 0;            }
  74.    if (x) if (map07 == mapname) { x = 0; m = map08; }
  75.    if (x) if (map08 == "")      { x = 0;            }
  76.    if (x) if (map08 == mapname) { x = 0; m = map09; }
  77.    if (x) if (map09 == "")      { x = 0;            }
  78.    if (x) if (map09 == mapname) { x = 0; m = map10; }
  79.  
  80.    if (m == "" && map01 != "") m = map01;
  81.  
  82.    if (m != "") nextmap = m;
  83.  
  84.    return;
  85. };
  86.  
  87.  
  88.  
  89.