Very Preliminary teleporting between regions added.

Sugilite
MW 2007-06-21 14:34:45 +00:00
parent e647d9ec51
commit d42483af3d
1 changed files with 14 additions and 1 deletions

View File

@ -807,7 +807,20 @@ namespace OpenSim.Region.Scenes
}
else
{
remoteClient.SendTeleportCancel();
RegionInfo reg = this.RequestNeighbouringRegionInfo(regionHandle);
if (reg != null)
{
remoteClient.SendTeleportLocationStart();
AgentCircuitData agent = remoteClient.RequestClientInfo();
agent.BaseFolder = LLUUID.Zero;
agent.InventoryFolder = LLUUID.Zero;
agent.startpos = new LLVector3(128, 128, 70);
agent.child = true;
this.commsManager.InterRegion.InformNeighbourOfChildAgent(regionHandle, agent);
this.commsManager.InterRegion.ExpectAvatarCrossing(regionHandle, remoteClient.AgentId, position);
remoteClient.SendRegionTeleport(regionHandle, 13, reg.IPListenAddr, (ushort)reg.IPListenPort, 4, (1 << 4));
}
//remoteClient.SendTeleportCancel();
}
}