diff options
author | Charles Krinke | 2008-07-14 17:47:12 +0000 |
---|---|---|
committer | Charles Krinke | 2008-07-14 17:47:12 +0000 |
commit | b100b841b39c51869af53ae5e012bc5065cd6748 (patch) | |
tree | c7502d206be891811a58bbad2b76dc8f5f0eac2f /OpenSim/Region/ScriptEngine/Shared/Api | |
parent | * On an archive load, make the master avatar the owner of all scene objects f... (diff) | |
download | opensim-SC_OLD-b100b841b39c51869af53ae5e012bc5065cd6748.zip opensim-SC_OLD-b100b841b39c51869af53ae5e012bc5065cd6748.tar.gz opensim-SC_OLD-b100b841b39c51869af53ae5e012bc5065cd6748.tar.bz2 opensim-SC_OLD-b100b841b39c51869af53ae5e012bc5065cd6748.tar.xz |
Mantis#1739. Thank you kindly, Grumly57 for an additional patch that:
Changed code to include Melanie's advice about X-SecondLife-Region,
then put the exact same content format as a llHTTPRequest issued by
other grids.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 507a132..bb292f1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6649,19 +6649,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6649 | param.Add(o.ToString()); | 6649 | param.Add(o.ToString()); |
6650 | } | 6650 | } |
6651 | 6651 | ||
6652 | LLVector3 position = m_host.AbsolutePosition; | ||
6653 | LLVector3 velocity = m_host.Velocity; | ||
6654 | LLQuaternion rotation = m_host.RotationOffset; | ||
6655 | ScenePresence scenePresence = World.GetScenePresence(m_host.ObjectOwner); | ||
6656 | RegionInfo regionInfo = World.RegionInfo; | ||
6657 | |||
6652 | Dictionary<string, string> httpHeaders = new Dictionary<string, string>(); | 6658 | Dictionary<string, string> httpHeaders = new Dictionary<string, string>(); |
6653 | 6659 | ||
6654 | httpHeaders["X-SecondLife-Shard"] = "OpenSim"; | 6660 | httpHeaders["X-SecondLife-Shard"] = "OpenSim"; |
6655 | httpHeaders["X-SecondLife-Object-Name"] = m_host.Name; | 6661 | httpHeaders["X-SecondLife-Object-Name"] = m_host.Name; |
6656 | httpHeaders["X-SecondLife-Object-Key"] = m_itemID.ToString(); | 6662 | httpHeaders["X-SecondLife-Object-Key"] = m_itemID.ToString(); |
6657 | httpHeaders["X-SecondLife-Region"] = World.RegionInfo.RegionName; | 6663 | httpHeaders["X-SecondLife-Region"] = string.Format("{0} ({1}, {2})", regionInfo.RegionName, regionInfo.RegionLocX, regionInfo.RegionLocY); |
6658 | httpHeaders["X-SecondLife-Local-Position"] = m_host.AbsolutePosition.ToString(); | 6664 | httpHeaders["X-SecondLife-Local-Position"] = string.Format("({0:0.000000}, {1:0.000000}, {2:0.000000})", position.X, position.Y, position.Z); |
6659 | httpHeaders["X-SecondLife-Local-Velocity"] = m_host.Velocity.ToString(); | 6665 | httpHeaders["X-SecondLife-Local-Velocity"] = string.Format("({0:0.000000}, {1:0.000000}, {2:0.000000})", velocity.X, velocity.Y, velocity.Z); |
6660 | httpHeaders["X-SecondLife-Local-Rotation"] = m_host.RotationOffset.ToString(); | 6666 | httpHeaders["X-SecondLife-Local-Rotation"] = string.Format("({0:0.000000}, {1:0.000000}, {2:0.000000}, {3:0.000000})", rotation.X, rotation.Y, rotation.Z, rotation.W); |
6661 | 6667 | httpHeaders["X-SecondLife-Owner-Name"] = scenePresence == null ? string.Empty : scenePresence.ControllingClient.Name; | |
6662 | ScenePresence scenePresence = World.GetScenePresence(m_host.ObjectOwner); | ||
6663 | httpHeaders["X-SecondLife-Owner-Name"] = scenePresence == null ? string.Empty : scenePresence.Name; | ||
6664 | |||
6665 | httpHeaders["X-SecondLife-Owner-Key"] = m_host.ObjectOwner.ToString(); | 6668 | httpHeaders["X-SecondLife-Owner-Key"] = m_host.ObjectOwner.ToString(); |
6666 | 6669 | ||
6667 | LLUUID reqID = httpScriptMod. | 6670 | LLUUID reqID = httpScriptMod. |