예제 #1
0
 static void CreateZonesForArenas(Vector3 location)
 {
     //  Puts("");
     //Puts(" >>>>>createArenaZones");s
     IemUtils.CreateZone("team_1", new Vector3(-255, 2, -1), 5);
     IemUtils.CreateZone("team_2", new Vector3(-214, 2, 38), 5);
     IemUtils.CreateZone("team_4", new Vector3(-262, 2, 26), 5);
     IemUtils.CreateZone("team_5", new Vector3(-215, 2, -2), 5);
     IemUtils.CreateZone("team_6", new Vector3(-228, 2, -10), 5);
 }
예제 #2
0
            public TeamSelectLobby(string copypastefile, IemGameBase.IemTeamGame newTeamGame)
            {
                teamGame = newTeamGame;

                location = me.IemUtils.NextFreeLocation();

                me.Puts("yield new vector " + location);

                //location = new Vector3(x, y, z);
                Vector3 centre_location = new Vector3(location.x - 7, location.y, location.z - 2);


                partition = new IemObjectPlacement.CopyPastePlacement(
                    copypastefile, location);
                CreateZoneForLobby();

                int i = 0;

                foreach (var team in teamGame.Teams)
                {
                    //  me.Puts("centre loc is " + centre_location);
                    // me.Puts("loc is " + locs[i]);
                    spheres.Add(IemUtils.CreateZone("team_" + team.Value.GetGuid(),
                                                    locs[i] + centre_location, 6));

                    zonelist.Add("zone_team_" + team.Value.GetGuid());
                    me.zonelist.Add("zone_team_" + team.Value.GetGuid());

                    i++;
                }
                PlayerEnteredZone += PlayerEnteredTeamZone;
            }