diff options
author | UbitUmarov | 2015-10-26 21:56:02 +0000 |
---|---|---|
committer | UbitUmarov | 2015-10-26 21:56:02 +0000 |
commit | 6821ace3c6b6eb5a38e49f38ba3fd492eda15843 (patch) | |
tree | b3bdb49572f0687e2dd09b06651f346080c93ef1 /OpenSim/Region | |
parent | try fix IRC connector issue on mantis 7731 but with code a bit diferent from... (diff) | |
download | opensim-SC_OLD-6821ace3c6b6eb5a38e49f38ba3fd492eda15843.zip opensim-SC_OLD-6821ace3c6b6eb5a38e49f38ba3fd492eda15843.tar.gz opensim-SC_OLD-6821ace3c6b6eb5a38e49f38ba3fd492eda15843.tar.bz2 opensim-SC_OLD-6821ace3c6b6eb5a38e49f38ba3fd492eda15843.tar.xz |
add basic SendFindAgent() to lludp. Future use may require a list of pairs (X,Y). For now one pair is good enough.
Diffstat (limited to 'OpenSim/Region')
3 files changed, 31 insertions, 5 deletions
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 | |||
2705 | OutPacket(offp, ThrottleOutPacketType.Task); | 2705 | OutPacket(offp, ThrottleOutPacketType.Task); |
2706 | } | 2706 | } |
2707 | 2707 | ||
2708 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, | 2708 | public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY) |
2709 | Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) | 2709 | { |
2710 | FindAgentPacket fap = new FindAgentPacket(); | ||
2711 | fap.AgentBlock.Hunter = HunterID; | ||
2712 | fap.AgentBlock.Prey = PreyID; | ||
2713 | fap.AgentBlock.SpaceIP = 0; | ||
2714 | |||
2715 | fap.LocationBlock = new FindAgentPacket.LocationBlockBlock[1]; | ||
2716 | fap.LocationBlock[0] = new FindAgentPacket.LocationBlockBlock(); | ||
2717 | fap.LocationBlock[0].GlobalX = GlobalX; | ||
2718 | fap.LocationBlock[0].GlobalY = GlobalY; | ||
2719 | |||
2720 | OutPacket(fap, ThrottleOutPacketType.Task); | ||
2721 | } | ||
2722 | |||
2723 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, | ||
2724 | Quaternion SitOrientation, bool autopilot, | ||
2725 | Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) | ||
2710 | { | 2726 | { |
2711 | AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket(); | 2727 | AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket(); |
2712 | avatarSitResponse.SitObject.ID = TargetID; | 2728 | avatarSitResponse.SitObject.ID = TargetID; |
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs index 6a96d4d..6611744 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs | |||
@@ -1375,6 +1375,10 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1375 | 1375 | ||
1376 | } | 1376 | } |
1377 | 1377 | ||
1378 | public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY) | ||
1379 | { | ||
1380 | } | ||
1381 | |||
1378 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) | 1382 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) |
1379 | { | 1383 | { |
1380 | 1384 | ||
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 15e3884..7228348 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -191,9 +191,15 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
191 | { | 191 | { |
192 | 192 | ||
193 | } | 193 | } |
194 | 194 | ||
195 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, | 195 | public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY) |
196 | Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) | 196 | { |
197 | |||
198 | } | ||
199 | |||
200 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, | ||
201 | Quaternion SitOrientation, bool autopilot, | ||
202 | Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) | ||
197 | { | 203 | { |
198 | 204 | ||
199 | } | 205 | } |