From 6821ace3c6b6eb5a38e49f38ba3fd492eda15843 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 26 Oct 2015 21:56:02 +0000 Subject: add basic SendFindAgent() to lludp. Future use may require a list of pairs (X,Y). For now one pair is good enough. --- .../Region/ClientStack/Linden/UDP/LLClientView.cs | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 6667c35..51c59e9 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -2705,8 +2705,24 @@ namespace OpenSim.Region.ClientStack.LindenUDP OutPacket(offp, ThrottleOutPacketType.Task); } - public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, - Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) + public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY) + { + FindAgentPacket fap = new FindAgentPacket(); + fap.AgentBlock.Hunter = HunterID; + fap.AgentBlock.Prey = PreyID; + fap.AgentBlock.SpaceIP = 0; + + fap.LocationBlock = new FindAgentPacket.LocationBlockBlock[1]; + fap.LocationBlock[0] = new FindAgentPacket.LocationBlockBlock(); + fap.LocationBlock[0].GlobalX = GlobalX; + fap.LocationBlock[0].GlobalY = GlobalY; + + OutPacket(fap, ThrottleOutPacketType.Task); + } + + public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, + Quaternion SitOrientation, bool autopilot, + Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) { AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket(); avatarSitResponse.SitObject.ID = TargetID; -- cgit v1.1