aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index e1e8854..b8f055e 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -5739,6 +5739,39 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5739 offp.AgentBlock = offpb; 5739 offp.AgentBlock = offpb;
5740 OutPacket(offp, ThrottleOutPacketType.Task); 5740 OutPacket(offp, ThrottleOutPacketType.Task);
5741 } 5741 }
5742
5743 public void SendSitResponse(LLUUID TargetID, LLVector3 OffsetPos, LLQuaternion SitOrientation, bool autopilot,
5744 LLVector3 CameraAtOffset, LLVector3 CameraEyeOffset, bool ForceMouseLook)
5745 {
5746 AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket();
5747 avatarSitResponse.SitObject.ID = TargetID;
5748 if (CameraAtOffset != LLVector3.Zero)
5749 {
5750 avatarSitResponse.SitTransform.CameraAtOffset = CameraAtOffset;
5751 avatarSitResponse.SitTransform.CameraEyeOffset = CameraEyeOffset;
5752 }
5753 avatarSitResponse.SitTransform.ForceMouselook = ForceMouseLook;
5754 avatarSitResponse.SitTransform.AutoPilot = autopilot;
5755 avatarSitResponse.SitTransform.SitPosition = OffsetPos;
5756 avatarSitResponse.SitTransform.SitRotation = SitOrientation;
5757
5758 OutPacket(avatarSitResponse, ThrottleOutPacketType.Task);
5759 }
5760 public void SendAdminResponse(LLUUID Token, uint AdminLevel)
5761 {
5762 GrantGodlikePowersPacket respondPacket = new GrantGodlikePowersPacket();
5763 GrantGodlikePowersPacket.GrantDataBlock gdb = new GrantGodlikePowersPacket.GrantDataBlock();
5764 GrantGodlikePowersPacket.AgentDataBlock adb = new GrantGodlikePowersPacket.AgentDataBlock();
5765
5766 adb.AgentID = AgentId;
5767 adb.SessionID = SessionId; // More security
5768 gdb.GodLevel = (byte)AdminLevel;
5769 gdb.Token = Token;
5770 //respondPacket.AgentData = (GrantGodlikePowersPacket.AgentDataBlock)ablock;
5771 respondPacket.GrantData = gdb;
5772 respondPacket.AgentData = adb;
5773 OutPacket(respondPacket, ThrottleOutPacketType.Task);
5774 }
5742 public ClientInfo GetClientInfo() 5775 public ClientInfo GetClientInfo()
5743 { 5776 {
5744 //MainLog.Instance.Verbose("CLIENT", "GetClientInfo BGN"); 5777 //MainLog.Instance.Verbose("CLIENT", "GetClientInfo BGN");