Ejemplo n.º 1
0
        public static void AddTeleporters(ShameWall wall)
        {
            Map map = wall.Map;

            if (map == null || map == Map.Internal)
            {
                return;
            }

            foreach (var component in wall.Components)
            {
                foreach (Point3D[] pnts in _TeleportLocs)
                {
                    if (component.Location == pnts[0])
                    {
                        var teleporter = new ConditionTeleporter();
                        //teleporter.DeadOnly = true;
                        teleporter.ClilocNumber   = 1072790; // The wall becomes transparent, and you push your way through it.
                        teleporter.MapDest        = map;
                        teleporter.PointDest      = pnts[2];
                        teleporter.DisableMessage = false;
                        teleporter.MoveToWorld(pnts[1], map);
                        WeakEntityCollection.Add("newshame", teleporter);
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public static void AddTeleporters(ShameWall wall)
        {
            Map map = wall.Map;

            if (map == null || map == Map.Internal)
            {
                return;
            }

            foreach (var component in wall.Components)
            {
                foreach (Point3D[] pnts in _TeleportLocs)
                {
                    if (component.Location == pnts[0])
                    {
                        var teleporter = new ConditionTeleporter();
                        teleporter.DeadOnly       = true;
                        teleporter.MapDest        = map;
                        teleporter.PointDest      = pnts[2];
                        teleporter.DisableMessage = true;
                        teleporter.MoveToWorld(pnts[1], map);
                        WeakEntityCollection.Add("newshame", teleporter);
                    }
                }
            }
        }