123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- minplayers = 2;
- maxplayers = 4;
- gamesworld = world.get("games");
- lobbyspawnloc = loc.new(gamesworld, -1000, 95, 1000);
- gamesignsmap = getScriptVar("gamesigns");
- gamesignloc = map.get(gamesignsmap, "maednsign1");
- würfelloc = loc.new(gamesworld, -1000, 101, 1000);
- mapname = "Map1";
- colortext = list.new();
- list.add(colortext, "blue");
- list.add(colortext, "yellow");
- list.add(colortext, "green");
- list.add(colortext, "red");
- route = list.new();
- list.add(route, loc.new(gamesworld, -1001, 101, 1005));
- list.add(route, loc.new(gamesworld, -1001, 101, 1004));
- list.add(route, loc.new(gamesworld, -1001, 101, 1003));
- list.add(route, loc.new(gamesworld, -1001, 101, 1002));
- list.add(route, loc.new(gamesworld, -1001, 101, 1001));
- list.add(route, loc.new(gamesworld, -1002, 101, 1001));
- list.add(route, loc.new(gamesworld, -1003, 101, 1001));
- list.add(route, loc.new(gamesworld, -1004, 101, 1001));
- list.add(route, loc.new(gamesworld, -1005, 101, 1001));
- list.add(route, loc.new(gamesworld, -1005, 101, 1000));
- list.add(route, loc.new(gamesworld, -1005, 101, 999));
- list.add(route, loc.new(gamesworld, -1004, 101, 999));
- list.add(route, loc.new(gamesworld, -1003, 101, 999));
- list.add(route, loc.new(gamesworld, -1002, 101, 999));
- list.add(route, loc.new(gamesworld, -1001, 101, 999));
- list.add(route, loc.new(gamesworld, -1001, 101, 998));
- list.add(route, loc.new(gamesworld, -1001, 101, 997));
- list.add(route, loc.new(gamesworld, -1001, 101, 996));
- list.add(route, loc.new(gamesworld, -1001, 101, 995));
- list.add(route, loc.new(gamesworld, -1000, 101, 995));
- list.add(route, loc.new(gamesworld, -999, 101, 995));
- list.add(route, loc.new(gamesworld, -999, 101, 996));
- list.add(route, loc.new(gamesworld, -999, 101, 997));
- list.add(route, loc.new(gamesworld, -999, 101, 998));
- list.add(route, loc.new(gamesworld, -999, 101, 999));
- list.add(route, loc.new(gamesworld, -998, 101, 999));
- list.add(route, loc.new(gamesworld, -997, 101, 999));
- list.add(route, loc.new(gamesworld, -996, 101, 999));
- list.add(route, loc.new(gamesworld, -995, 101, 999));
- list.add(route, loc.new(gamesworld, -995, 101, 1000));
- list.add(route, loc.new(gamesworld, -995, 101, 1001));
- list.add(route, loc.new(gamesworld, -996, 101, 1001));
- list.add(route, loc.new(gamesworld, -997, 101, 1001));
- list.add(route, loc.new(gamesworld, -998, 101, 1001));
- list.add(route, loc.new(gamesworld, -999, 101, 1001));
- list.add(route, loc.new(gamesworld, -999, 101, 1002));
- list.add(route, loc.new(gamesworld, -999, 101, 1003));
- list.add(route, loc.new(gamesworld, -999, 101, 1004));
- list.add(route, loc.new(gamesworld, -999, 101, 1005));
- list.add(route, loc.new(gamesworld, -1000, 101, 1005));
- startindex = map.new();
- map.add(startindex, "blue", 0);
- map.add(startindex, "green", 10);
- map.add(startindex, "yellow", 20);
- map.add(startindex, "red", 30);
- homeindexes = map.new();
- map.add(homeindexes, "blue", 39);
- map.add(homeindexes, "green", 9);
- map.add(homeindexes, "yellow", 19);
- map.add(homeindexes, "red", 29);
- tploc = map.new();
- map.add(tploc, "blue", loc.new(gamesworld, -1001.5, 101, 1005.5,-180,0));
- map.add(tploc, "green", loc.new(gamesworld, -1004.5, 101, 998.5,-90,0));
- map.add(tploc, "yellow", loc.new(gamesworld, -997.5, 101, 995.5,0.0001,0));
- map.add(tploc, "red", loc.new(gamesworld, -994.5, 101, 1002.5,90,0));
- stable = map.new();
- aim = map.new();
- for(i = 0; i < list.getSize(colortext); i++) {
- color = list.getIndex(colortext, i);
- map.add(stable, color, list.new());
- map.add(aim, color, list.new());
- list = map.get(stable, color);
- list2 = map.get(aim, color);
- if(i == 0) {
- list.add(list, loc.new(gamesworld, -1004, 101, 1005));
- list.add(list, loc.new(gamesworld, -1004, 101, 1004));
- list.add(list, loc.new(gamesworld, -1005, 101, 1005));
- list.add(list, loc.new(gamesworld, -1005, 101, 1004));
- list.add(list2, loc.new(gamesworld, -1000, 101, 1004));
- list.add(list2, loc.new(gamesworld, -1000, 101, 1003));
- list.add(list2, loc.new(gamesworld, -1000, 101, 1002));
- list.add(list2, loc.new(gamesworld, -1000, 101, 1001));
- } elseif(i == 1) {
- list.add(list, loc.new(gamesworld, -1005, 101, 996));
- list.add(list, loc.new(gamesworld, -1004, 101, 996));
- list.add(list, loc.new(gamesworld, -1005, 101, 995));
- list.add(list, loc.new(gamesworld, -1004, 101, 995));
- list.add(list2, loc.new(gamesworld, -1004, 101, 1000));
- list.add(list2, loc.new(gamesworld, -1003, 101, 1000));
- list.add(list2, loc.new(gamesworld, -1002, 101, 1000));
- list.add(list2, loc.new(gamesworld, -1001, 101, 1000));
- } elseif(i == 2) {
- list.add(list, loc.new(gamesworld, -996, 101, 995));
- list.add(list, loc.new(gamesworld, -996, 101, 996));
- list.add(list, loc.new(gamesworld, -995, 101, 995));
- list.add(list, loc.new(gamesworld, -995, 101, 996));
- list.add(list2, loc.new(gamesworld, -1000, 101, 996));
- list.add(list2, loc.new(gamesworld, -1000, 101, 997));
- list.add(list2, loc.new(gamesworld, -1000, 101, 998));
- list.add(list2, loc.new(gamesworld, -1000, 101, 999));
- } elseif(i == 3) {
- list.add(list, loc.new(gamesworld, -995, 101, 1004));
- list.add(list, loc.new(gamesworld, -996, 101, 1004));
- list.add(list, loc.new(gamesworld, -995, 101, 1005));
- list.add(list, loc.new(gamesworld, -996, 101, 1005));
- list.add(list2, loc.new(gamesworld, -996, 101, 1000));
- list.add(list2, loc.new(gamesworld, -997, 101, 1000));
- list.add(list2, loc.new(gamesworld, -998, 101, 1000));
- list.add(list2, loc.new(gamesworld, -999, 101, 1000));
- }
- }
|