aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs2
-rw-r--r--OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs9
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs31
3 files changed, 17 insertions, 25 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
index f9e81f0..0f7f2f2 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
@@ -176,7 +176,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Groups
176 ActiveGroupTitle = grp.ActiveGroupTitle; 176 ActiveGroupTitle = grp.ActiveGroupTitle;
177 } 177 }
178 178
179 //remoteClient.SendAgentDataUpdate(AgentID, ActiveGroupID, firstname, lastname, ActiveGroupPowers, ActiveGroupName, ActiveGroupTitle); 179 remoteClient.SendAgentDataUpdate(AgentID, ActiveGroupID, firstname, lastname, ActiveGroupPowers, ActiveGroupName, ActiveGroupTitle);
180 } 180 }
181 } 181 }
182 } 182 }
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
index e5d295b..3126f1c 100644
--- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
+++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
@@ -92,7 +92,16 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
92 { 92 {
93 93
94 } 94 }
95 public void SendSitResponse(LLUUID TargetID, LLVector3 OffsetPos, LLQuaternion SitOrientation, bool autopilot,
96 LLVector3 CameraAtOffset, LLVector3 CameraEyeOffset, bool ForceMouseLook)
97 {
98
99 }
95 100
101 public void SendAdminResponse(LLUUID Token, uint AdminLevel)
102 {
103
104 }
96 public LLUUID GetDefaultAnimation(string name) 105 public LLUUID GetDefaultAnimation(string name)
97 { 106 {
98 return LLUUID.Zero; 107 return LLUUID.Zero;
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 3189b10..6f0fbdf 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -942,10 +942,10 @@ namespace OpenSim.Region.Environment.Scenes
942 942
943 private void SendSitResponse(IClientAPI remoteClient, LLUUID targetID, LLVector3 offset) 943 private void SendSitResponse(IClientAPI remoteClient, LLUUID targetID, LLVector3 offset)
944 { 944 {
945 AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket(); 945
946
947 avatarSitResponse.SitObject.ID = targetID;
948 946
947
948
949 bool autopilot = true; 949 bool autopilot = true;
950 LLVector3 pos = new LLVector3(); 950 LLVector3 pos = new LLVector3();
951 LLQuaternion sitOrientation = new LLQuaternion(0, 0, 0, 1); 951 LLQuaternion sitOrientation = new LLQuaternion(0, 0, 0, 1);
@@ -1000,12 +1000,8 @@ namespace OpenSim.Region.Environment.Scenes
1000 } 1000 }
1001 } 1001 }
1002 1002
1003 avatarSitResponse.SitTransform.AutoPilot = autopilot; 1003 ControllingClient.SendSitResponse(targetID, offset, sitOrientation, autopilot, LLVector3.Zero, LLVector3.Zero, false);
1004 avatarSitResponse.SitTransform.SitPosition = offset; 1004
1005 avatarSitResponse.SitTransform.SitRotation = sitOrientation;
1006
1007 remoteClient.OutPacket(avatarSitResponse, ThrottleOutPacketType.Task);
1008
1009 // This calls HandleAgentSit twice, once from here, and the client calls 1005 // This calls HandleAgentSit twice, once from here, and the client calls
1010 // HandleAgentSit itself after it gets to the location 1006 // HandleAgentSit itself after it gets to the location
1011 // It doesn't get to the location until we've moved them there though 1007 // It doesn't get to the location until we've moved them there though
@@ -1710,29 +1706,16 @@ namespace OpenSim.Region.Environment.Scenes
1710 /// </summary> 1706 /// </summary>
1711 public void GrantGodlikePowers(LLUUID agentID, LLUUID sessionID, LLUUID token, bool godStatus) 1707 public void GrantGodlikePowers(LLUUID agentID, LLUUID sessionID, LLUUID token, bool godStatus)
1712 { 1708 {
1713 GrantGodlikePowersPacket respondPacket = new GrantGodlikePowersPacket();
1714 GrantGodlikePowersPacket.GrantDataBlock gdb = new GrantGodlikePowersPacket.GrantDataBlock();
1715 GrantGodlikePowersPacket.AgentDataBlock adb = new GrantGodlikePowersPacket.AgentDataBlock();
1716
1717 adb.AgentID = agentID;
1718 adb.SessionID = sessionID; // More security
1719
1720 if (godStatus) 1709 if (godStatus)
1721 { 1710 {
1722 gdb.GodLevel = (byte)250;
1723 m_godlevel = 250; 1711 m_godlevel = 250;
1724 } 1712 }
1725 else 1713 else
1726 { 1714 {
1727 gdb.GodLevel = (byte)0;
1728 m_godlevel = 0; 1715 m_godlevel = 0;
1729 } 1716 }
1730 1717
1731 gdb.Token = token; 1718 ControllingClient.SendAdminResponse(token, (uint)m_godlevel);
1732 //respondPacket.AgentData = (GrantGodlikePowersPacket.AgentDataBlock)ablock;
1733 respondPacket.GrantData = gdb;
1734 respondPacket.AgentData = adb;
1735 ControllingClient.OutPacket(respondPacket, ThrottleOutPacketType.Task);
1736 } 1719 }
1737 1720
1738 /// <summary> 1721 /// <summary>