diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 6eb8749..a03d8a6 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -6869,19 +6869,22 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
6869 | param.Add(o.ToString()); | 6869 | param.Add(o.ToString()); |
6870 | } | 6870 | } |
6871 | 6871 | ||
6872 | LLVector3 position = m_host.AbsolutePosition; | ||
6873 | LLVector3 velocity = m_host.Velocity; | ||
6874 | LLQuaternion rotation = m_host.RotationOffset; | ||
6875 | ScenePresence scenePresence = World.GetScenePresence(m_host.ObjectOwner); | ||
6876 | RegionInfo regionInfo = World.RegionInfo; | ||
6877 | |||
6872 | Dictionary<string, string> httpHeaders = new Dictionary<string, string>(); | 6878 | Dictionary<string, string> httpHeaders = new Dictionary<string, string>(); |
6873 | 6879 | ||
6874 | httpHeaders["X-SecondLife-Shard"] = "OpenSim"; | 6880 | httpHeaders["X-SecondLife-Shard"] = "OpenSim"; |
6875 | httpHeaders["X-SecondLife-Object-Name"] = m_host.Name; | 6881 | httpHeaders["X-SecondLife-Object-Name"] = m_host.Name; |
6876 | httpHeaders["X-SecondLife-Object-Key"] = m_itemID.ToString(); | 6882 | httpHeaders["X-SecondLife-Object-Key"] = m_itemID.ToString(); |
6877 | httpHeaders["X-SecondLife-Region"] = World.RegionInfo.RegionName; | 6883 | httpHeaders["X-SecondLife-Region"] = string.Format("{0} ({1}, {2})", regionInfo.RegionName, regionInfo.RegionLocX, regionInfo.RegionLocY); |
6878 | httpHeaders["X-SecondLife-Local-Position"] = m_host.AbsolutePosition.ToString(); | 6884 | httpHeaders["X-SecondLife-Local-Position"] = string.Format("({0:0.000000}, {1:0.000000}, {2:0.000000})", position.X, position.Y, position.Z); |
6879 | httpHeaders["X-SecondLife-Local-Velocity"] = m_host.Velocity.ToString(); | 6885 | httpHeaders["X-SecondLife-Local-Velocity"] = string.Format("({0:0.000000}, {1:0.000000}, {2:0.000000})", velocity.X, velocity.Y, velocity.Z); |
6880 | httpHeaders["X-SecondLife-Local-Rotation"] = m_host.RotationOffset.ToString(); | 6886 | 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); |
6881 | 6887 | httpHeaders["X-SecondLife-Owner-Name"] = scenePresence == null ? string.Empty : scenePresence.ControllingClient.Name; | |
6882 | ScenePresence scenePresence = World.GetScenePresence(m_host.ObjectOwner); | ||
6883 | httpHeaders["X-SecondLife-Owner-Name"] = scenePresence == null ? string.Empty : scenePresence.Name; | ||
6884 | |||
6885 | httpHeaders["X-SecondLife-Owner-Key"] = m_host.ObjectOwner.ToString(); | 6888 | httpHeaders["X-SecondLife-Owner-Key"] = m_host.ObjectOwner.ToString(); |
6886 | 6889 | ||
6887 | LLUUID reqID = httpScriptMod. | 6890 | LLUUID reqID = httpScriptMod. |