diff options
Diffstat (limited to '')
6 files changed, 183 insertions, 183 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index f1d8cb4..8f0b866 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -181,14 +181,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
181 | 181 | ||
182 | public delegate void ScriptNotAtTargetEvent(uint localID); | 182 | public delegate void ScriptNotAtTargetEvent(uint localID); |
183 | 183 | ||
184 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; | 184 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; |
185 | 185 | ||
186 | public delegate void ScriptAtRotTargetEvent(uint localID, uint handle, Quaternion targetrot, Quaternion atrot); | 186 | public delegate void ScriptAtRotTargetEvent(uint localID, uint handle, Quaternion targetrot, Quaternion atrot); |
187 | 187 | ||
188 | public event ScriptAtRotTargetEvent OnScriptAtRotTargetEvent; | 188 | public event ScriptAtRotTargetEvent OnScriptAtRotTargetEvent; |
189 | 189 | ||
190 | public delegate void ScriptNotAtRotTargetEvent(uint localID); | 190 | public delegate void ScriptNotAtRotTargetEvent(uint localID); |
191 | 191 | ||
192 | public event ScriptNotAtRotTargetEvent OnScriptNotAtRotTargetEvent; | 192 | public event ScriptNotAtRotTargetEvent OnScriptNotAtRotTargetEvent; |
193 | 193 | ||
194 | public delegate void ScriptColliding(uint localID, ColliderArgs colliders); | 194 | public delegate void ScriptColliding(uint localID, ColliderArgs colliders); |
@@ -395,8 +395,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
395 | 395 | ||
396 | private ScriptChangedEvent handlerScriptChangedEvent = null; //OnScriptChangedEvent; | 396 | private ScriptChangedEvent handlerScriptChangedEvent = null; //OnScriptChangedEvent; |
397 | private ScriptAtTargetEvent handlerScriptAtTargetEvent = null; | 397 | private ScriptAtTargetEvent handlerScriptAtTargetEvent = null; |
398 | private ScriptNotAtTargetEvent handlerScriptNotAtTargetEvent = null; | 398 | private ScriptNotAtTargetEvent handlerScriptNotAtTargetEvent = null; |
399 | private ScriptAtRotTargetEvent handlerScriptAtRotTargetEvent = null; | 399 | private ScriptAtRotTargetEvent handlerScriptAtRotTargetEvent = null; |
400 | private ScriptNotAtRotTargetEvent handlerScriptNotAtRotTargetEvent = null; | 400 | private ScriptNotAtRotTargetEvent handlerScriptNotAtRotTargetEvent = null; |
401 | private ClientMovement handlerClientMovement = null; //OnClientMovement; | 401 | private ClientMovement handlerClientMovement = null; //OnClientMovement; |
402 | private OnPermissionErrorDelegate handlerPermissionError = null; //OnPermissionError; | 402 | private OnPermissionErrorDelegate handlerPermissionError = null; //OnPermissionError; |
@@ -883,24 +883,24 @@ namespace OpenSim.Region.Framework.Scenes | |||
883 | { | 883 | { |
884 | handlerScriptNotAtTargetEvent(localID); | 884 | handlerScriptNotAtTargetEvent(localID); |
885 | } | 885 | } |
886 | } | 886 | } |
887 | 887 | ||
888 | public void TriggerAtRotTargetEvent(uint localID, uint handle, Quaternion targetrot, Quaternion currentrot) | 888 | public void TriggerAtRotTargetEvent(uint localID, uint handle, Quaternion targetrot, Quaternion currentrot) |
889 | { | 889 | { |
890 | handlerScriptAtRotTargetEvent = OnScriptAtRotTargetEvent; | 890 | handlerScriptAtRotTargetEvent = OnScriptAtRotTargetEvent; |
891 | if (handlerScriptAtRotTargetEvent != null) | 891 | if (handlerScriptAtRotTargetEvent != null) |
892 | { | 892 | { |
893 | handlerScriptAtRotTargetEvent(localID, handle, targetrot, currentrot); | 893 | handlerScriptAtRotTargetEvent(localID, handle, targetrot, currentrot); |
894 | } | 894 | } |
895 | } | 895 | } |
896 | 896 | ||
897 | public void TriggerNotAtRotTargetEvent(uint localID) | 897 | public void TriggerNotAtRotTargetEvent(uint localID) |
898 | { | 898 | { |
899 | handlerScriptNotAtRotTargetEvent = OnScriptNotAtRotTargetEvent; | 899 | handlerScriptNotAtRotTargetEvent = OnScriptNotAtRotTargetEvent; |
900 | if (handlerScriptNotAtRotTargetEvent != null) | 900 | if (handlerScriptNotAtRotTargetEvent != null) |
901 | { | 901 | { |
902 | handlerScriptNotAtRotTargetEvent(localID); | 902 | handlerScriptNotAtRotTargetEvent(localID); |
903 | } | 903 | } |
904 | } | 904 | } |
905 | 905 | ||
906 | public void TriggerRequestChangeWaterHeight(float height) | 906 | public void TriggerRequestChangeWaterHeight(float height) |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index bc16a93..768ceb5 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -56,7 +56,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
56 | land_collision = 2048, | 56 | land_collision = 2048, |
57 | land_collision_end = 4096, | 57 | land_collision_end = 4096, |
58 | land_collision_start = 8192, | 58 | land_collision_start = 8192, |
59 | at_target = 16384, | 59 | at_target = 16384, |
60 | at_rot_target = 16777216, | 60 | at_rot_target = 16777216, |
61 | listen = 32768, | 61 | listen = 32768, |
62 | money = 65536, | 62 | money = 65536, |
@@ -80,13 +80,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
80 | public Vector3 targetPos; | 80 | public Vector3 targetPos; |
81 | public float tolerance; | 81 | public float tolerance; |
82 | public uint handle; | 82 | public uint handle; |
83 | } | 83 | } |
84 | 84 | ||
85 | struct scriptRotTarget | 85 | struct scriptRotTarget |
86 | { | 86 | { |
87 | public Quaternion targetRot; | 87 | public Quaternion targetRot; |
88 | public float tolerance; | 88 | public float tolerance; |
89 | public uint handle; | 89 | public uint handle; |
90 | } | 90 | } |
91 | 91 | ||
92 | public delegate void PrimCountTaintedDelegate(); | 92 | public delegate void PrimCountTaintedDelegate(); |
@@ -239,13 +239,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
239 | protected SceneObjectPart m_rootPart; | 239 | protected SceneObjectPart m_rootPart; |
240 | // private Dictionary<UUID, scriptEvents> m_scriptEvents = new Dictionary<UUID, scriptEvents>(); | 240 | // private Dictionary<UUID, scriptEvents> m_scriptEvents = new Dictionary<UUID, scriptEvents>(); |
241 | 241 | ||
242 | private Dictionary<uint, scriptPosTarget> m_targets = new Dictionary<uint, scriptPosTarget>(); | 242 | private Dictionary<uint, scriptPosTarget> m_targets = new Dictionary<uint, scriptPosTarget>(); |
243 | private Dictionary<uint, scriptRotTarget> m_rotTargets = new Dictionary<uint, scriptRotTarget>(); | 243 | private Dictionary<uint, scriptRotTarget> m_rotTargets = new Dictionary<uint, scriptRotTarget>(); |
244 | 244 | ||
245 | private bool m_scriptListens_atTarget = false; | 245 | private bool m_scriptListens_atTarget = false; |
246 | private bool m_scriptListens_notAtTarget = false; | 246 | private bool m_scriptListens_notAtTarget = false; |
247 | 247 | ||
248 | private bool m_scriptListens_atRotTarget = false; | 248 | private bool m_scriptListens_atRotTarget = false; |
249 | private bool m_scriptListens_notAtRotTarget = false; | 249 | private bool m_scriptListens_notAtRotTarget = false; |
250 | 250 | ||
251 | internal Dictionary<UUID, string> m_savedScriptState = null; | 251 | internal Dictionary<UUID, string> m_savedScriptState = null; |
@@ -1378,15 +1378,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
1378 | lock (m_targets) | 1378 | lock (m_targets) |
1379 | m_targets.Clear(); | 1379 | m_targets.Clear(); |
1380 | m_scene.RemoveGroupTarget(this); | 1380 | m_scene.RemoveGroupTarget(this); |
1381 | } | 1381 | } |
1382 | m_scriptListens_atRotTarget = ((aggregateScriptEvents & scriptEvents.at_rot_target) != 0); | 1382 | m_scriptListens_atRotTarget = ((aggregateScriptEvents & scriptEvents.at_rot_target) != 0); |
1383 | m_scriptListens_notAtRotTarget = ((aggregateScriptEvents & scriptEvents.not_at_rot_target) != 0); | 1383 | m_scriptListens_notAtRotTarget = ((aggregateScriptEvents & scriptEvents.not_at_rot_target) != 0); |
1384 | 1384 | ||
1385 | if (!m_scriptListens_atRotTarget && !m_scriptListens_notAtRotTarget) | 1385 | if (!m_scriptListens_atRotTarget && !m_scriptListens_notAtRotTarget) |
1386 | { | 1386 | { |
1387 | lock (m_rotTargets) | 1387 | lock (m_rotTargets) |
1388 | m_rotTargets.Clear(); | 1388 | m_rotTargets.Clear(); |
1389 | m_scene.RemoveGroupTarget(this); | 1389 | m_scene.RemoveGroupTarget(this); |
1390 | } | 1390 | } |
1391 | 1391 | ||
1392 | ScheduleGroupForFullUpdate(); | 1392 | ScheduleGroupForFullUpdate(); |
@@ -3334,30 +3334,30 @@ namespace OpenSim.Region.Framework.Scenes | |||
3334 | } | 3334 | } |
3335 | 3335 | ||
3336 | } | 3336 | } |
3337 | } | 3337 | } |
3338 | public int registerRotTargetWaypoint(Quaternion target, float tolerance) | 3338 | public int registerRotTargetWaypoint(Quaternion target, float tolerance) |
3339 | { | 3339 | { |
3340 | scriptRotTarget waypoint = new scriptRotTarget(); | 3340 | scriptRotTarget waypoint = new scriptRotTarget(); |
3341 | waypoint.targetRot = target; | 3341 | waypoint.targetRot = target; |
3342 | waypoint.tolerance = tolerance; | 3342 | waypoint.tolerance = tolerance; |
3343 | uint handle = m_scene.AllocateLocalId(); | 3343 | uint handle = m_scene.AllocateLocalId(); |
3344 | waypoint.handle = handle; | 3344 | waypoint.handle = handle; |
3345 | lock (m_rotTargets) | 3345 | lock (m_rotTargets) |
3346 | { | 3346 | { |
3347 | m_rotTargets.Add(handle, waypoint); | 3347 | m_rotTargets.Add(handle, waypoint); |
3348 | } | 3348 | } |
3349 | m_scene.AddGroupTarget(this); | 3349 | m_scene.AddGroupTarget(this); |
3350 | return (int)handle; | 3350 | return (int)handle; |
3351 | } | 3351 | } |
3352 | 3352 | ||
3353 | public void unregisterRotTargetWaypoint(int handle) | 3353 | public void unregisterRotTargetWaypoint(int handle) |
3354 | { | 3354 | { |
3355 | lock (m_targets) | 3355 | lock (m_targets) |
3356 | { | 3356 | { |
3357 | m_rotTargets.Remove((uint)handle); | 3357 | m_rotTargets.Remove((uint)handle); |
3358 | if (m_targets.Count == 0) | 3358 | if (m_targets.Count == 0) |
3359 | m_scene.RemoveGroupTarget(this); | 3359 | m_scene.RemoveGroupTarget(this); |
3360 | } | 3360 | } |
3361 | } | 3361 | } |
3362 | 3362 | ||
3363 | public int registerTargetWaypoint(Vector3 target, float tolerance) | 3363 | public int registerTargetWaypoint(Vector3 target, float tolerance) |
@@ -3466,85 +3466,85 @@ namespace OpenSim.Region.Framework.Scenes | |||
3466 | } | 3466 | } |
3467 | } | 3467 | } |
3468 | } | 3468 | } |
3469 | } | 3469 | } |
3470 | if (m_scriptListens_atRotTarget || m_scriptListens_notAtRotTarget) | 3470 | if (m_scriptListens_atRotTarget || m_scriptListens_notAtRotTarget) |
3471 | { | 3471 | { |
3472 | if (m_rotTargets.Count > 0) | 3472 | if (m_rotTargets.Count > 0) |
3473 | { | 3473 | { |
3474 | bool at_Rottarget = false; | 3474 | bool at_Rottarget = false; |
3475 | Dictionary<uint, scriptRotTarget> atRotTargets = new Dictionary<uint, scriptRotTarget>(); | 3475 | Dictionary<uint, scriptRotTarget> atRotTargets = new Dictionary<uint, scriptRotTarget>(); |
3476 | lock (m_rotTargets) | 3476 | lock (m_rotTargets) |
3477 | { | 3477 | { |
3478 | foreach (uint idx in m_rotTargets.Keys) | 3478 | foreach (uint idx in m_rotTargets.Keys) |
3479 | { | 3479 | { |
3480 | scriptRotTarget target = m_rotTargets[idx]; | 3480 | scriptRotTarget target = m_rotTargets[idx]; |
3481 | double angle = Math.Acos(target.targetRot.X * m_rootPart.RotationOffset.X + target.targetRot.Y * m_rootPart.RotationOffset.Y + target.targetRot.Z * m_rootPart.RotationOffset.Z + target.targetRot.W * m_rootPart.RotationOffset.W) * 2; | 3481 | double angle = Math.Acos(target.targetRot.X * m_rootPart.RotationOffset.X + target.targetRot.Y * m_rootPart.RotationOffset.Y + target.targetRot.Z * m_rootPart.RotationOffset.Z + target.targetRot.W * m_rootPart.RotationOffset.W) * 2; |
3482 | if (angle < 0) angle = -angle; | 3482 | if (angle < 0) angle = -angle; |
3483 | if (angle > Math.PI) angle = (Math.PI * 2 - angle); | 3483 | if (angle > Math.PI) angle = (Math.PI * 2 - angle); |
3484 | if (angle <= target.tolerance) | 3484 | if (angle <= target.tolerance) |
3485 | { | 3485 | { |
3486 | // trigger at_rot_target | 3486 | // trigger at_rot_target |
3487 | if (m_scriptListens_atRotTarget) | 3487 | if (m_scriptListens_atRotTarget) |
3488 | { | 3488 | { |
3489 | at_Rottarget = true; | 3489 | at_Rottarget = true; |
3490 | scriptRotTarget att = new scriptRotTarget(); | 3490 | scriptRotTarget att = new scriptRotTarget(); |
3491 | att.targetRot = target.targetRot; | 3491 | att.targetRot = target.targetRot; |
3492 | att.tolerance = target.tolerance; | 3492 | att.tolerance = target.tolerance; |
3493 | att.handle = target.handle; | 3493 | att.handle = target.handle; |
3494 | atRotTargets.Add(idx, att); | 3494 | atRotTargets.Add(idx, att); |
3495 | } | 3495 | } |
3496 | } | 3496 | } |
3497 | } | 3497 | } |
3498 | } | 3498 | } |
3499 | 3499 | ||
3500 | if (atRotTargets.Count > 0) | 3500 | if (atRotTargets.Count > 0) |
3501 | { | 3501 | { |
3502 | uint[] localids = new uint[0]; | 3502 | uint[] localids = new uint[0]; |
3503 | lock (m_parts) | 3503 | lock (m_parts) |
3504 | { | 3504 | { |
3505 | localids = new uint[m_parts.Count]; | 3505 | localids = new uint[m_parts.Count]; |
3506 | int cntr = 0; | 3506 | int cntr = 0; |
3507 | foreach (SceneObjectPart part in m_parts.Values) | 3507 | foreach (SceneObjectPart part in m_parts.Values) |
3508 | { | 3508 | { |
3509 | localids[cntr] = part.LocalId; | 3509 | localids[cntr] = part.LocalId; |
3510 | cntr++; | 3510 | cntr++; |
3511 | } | 3511 | } |
3512 | } | 3512 | } |
3513 | 3513 | ||
3514 | for (int ctr = 0; ctr < localids.Length; ctr++) | 3514 | for (int ctr = 0; ctr < localids.Length; ctr++) |
3515 | { | 3515 | { |
3516 | foreach (uint target in atRotTargets.Keys) | 3516 | foreach (uint target in atRotTargets.Keys) |
3517 | { | 3517 | { |
3518 | scriptRotTarget att = atRotTargets[target]; | 3518 | scriptRotTarget att = atRotTargets[target]; |
3519 | m_scene.EventManager.TriggerAtRotTargetEvent( | 3519 | m_scene.EventManager.TriggerAtRotTargetEvent( |
3520 | localids[ctr], att.handle, att.targetRot, m_rootPart.RotationOffset); | 3520 | localids[ctr], att.handle, att.targetRot, m_rootPart.RotationOffset); |
3521 | } | 3521 | } |
3522 | } | 3522 | } |
3523 | 3523 | ||
3524 | return; | 3524 | return; |
3525 | } | 3525 | } |
3526 | 3526 | ||
3527 | if (m_scriptListens_notAtRotTarget && !at_Rottarget) | 3527 | if (m_scriptListens_notAtRotTarget && !at_Rottarget) |
3528 | { | 3528 | { |
3529 | //trigger not_at_target | 3529 | //trigger not_at_target |
3530 | uint[] localids = new uint[0]; | 3530 | uint[] localids = new uint[0]; |
3531 | lock (m_parts) | 3531 | lock (m_parts) |
3532 | { | 3532 | { |
3533 | localids = new uint[m_parts.Count]; | 3533 | localids = new uint[m_parts.Count]; |
3534 | int cntr = 0; | 3534 | int cntr = 0; |
3535 | foreach (SceneObjectPart part in m_parts.Values) | 3535 | foreach (SceneObjectPart part in m_parts.Values) |
3536 | { | 3536 | { |
3537 | localids[cntr] = part.LocalId; | 3537 | localids[cntr] = part.LocalId; |
3538 | cntr++; | 3538 | cntr++; |
3539 | } | 3539 | } |
3540 | } | 3540 | } |
3541 | 3541 | ||
3542 | for (int ctr = 0; ctr < localids.Length; ctr++) | 3542 | for (int ctr = 0; ctr < localids.Length; ctr++) |
3543 | { | 3543 | { |
3544 | m_scene.EventManager.TriggerNotAtRotTargetEvent(localids[ctr]); | 3544 | m_scene.EventManager.TriggerNotAtRotTargetEvent(localids[ctr]); |
3545 | } | 3545 | } |
3546 | } | 3546 | } |
3547 | } | 3547 | } |
3548 | } | 3548 | } |
3549 | } | 3549 | } |
3550 | 3550 | ||
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 680a544..a7c14cf 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -4089,23 +4089,23 @@ namespace OpenSim.Region.Framework.Scenes | |||
4089 | { | 4089 | { |
4090 | m_parentGroup.unregisterTargetWaypoint(handle); | 4090 | m_parentGroup.unregisterTargetWaypoint(handle); |
4091 | } | 4091 | } |
4092 | } | 4092 | } |
4093 | 4093 | ||
4094 | public int registerRotTargetWaypoint(Quaternion target, float tolerance) | 4094 | public int registerRotTargetWaypoint(Quaternion target, float tolerance) |
4095 | { | 4095 | { |
4096 | if (m_parentGroup != null) | 4096 | if (m_parentGroup != null) |
4097 | { | 4097 | { |
4098 | return m_parentGroup.registerRotTargetWaypoint(target, tolerance); | 4098 | return m_parentGroup.registerRotTargetWaypoint(target, tolerance); |
4099 | } | 4099 | } |
4100 | return 0; | 4100 | return 0; |
4101 | } | 4101 | } |
4102 | 4102 | ||
4103 | public void unregisterRotTargetWaypoint(int handle) | 4103 | public void unregisterRotTargetWaypoint(int handle) |
4104 | { | 4104 | { |
4105 | if (m_parentGroup != null) | 4105 | if (m_parentGroup != null) |
4106 | { | 4106 | { |
4107 | m_parentGroup.unregisterRotTargetWaypoint(handle); | 4107 | m_parentGroup.unregisterRotTargetWaypoint(handle); |
4108 | } | 4108 | } |
4109 | } | 4109 | } |
4110 | 4110 | ||
4111 | public void SetCameraAtOffset(Vector3 v) | 4111 | public void SetCameraAtOffset(Vector3 v) |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 92e33b8..42c52dd 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -2214,13 +2214,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2214 | 2214 | ||
2215 | public LSL_Integer llRotTarget(LSL_Rotation rot, double error) | 2215 | public LSL_Integer llRotTarget(LSL_Rotation rot, double error) |
2216 | { | 2216 | { |
2217 | m_host.AddScriptLPS(1); | 2217 | m_host.AddScriptLPS(1); |
2218 | return m_host.registerRotTargetWaypoint(new Quaternion((float)rot.x, (float)rot.y, (float)rot.z, (float)rot.s), (float)error); | 2218 | return m_host.registerRotTargetWaypoint(new Quaternion((float)rot.x, (float)rot.y, (float)rot.z, (float)rot.s), (float)error); |
2219 | } | 2219 | } |
2220 | 2220 | ||
2221 | public void llRotTargetRemove(int number) | 2221 | public void llRotTargetRemove(int number) |
2222 | { | 2222 | { |
2223 | m_host.AddScriptLPS(1); | 2223 | m_host.AddScriptLPS(1); |
2224 | m_host.unregisterRotTargetWaypoint(number); | 2224 | m_host.unregisterRotTargetWaypoint(number); |
2225 | } | 2225 | } |
2226 | 2226 | ||
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs index 3456a3c..943d7a2 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs | |||
@@ -62,7 +62,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
62 | land_collision = 2048, | 62 | land_collision = 2048, |
63 | land_collision_end = 4096, | 63 | land_collision_end = 4096, |
64 | land_collision_start = 8192, | 64 | land_collision_start = 8192, |
65 | at_target = 16384, | 65 | at_target = 16384, |
66 | at_rot_target = 16777216, | 66 | at_rot_target = 16777216, |
67 | listen = 32768, | 67 | listen = 32768, |
68 | money = 65536, | 68 | money = 65536, |
@@ -205,7 +205,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
205 | return; | 205 | return; |
206 | } | 206 | } |
207 | 207 | ||
208 | m_eventFlagsMap.Add("attach", scriptEvents.attach); | 208 | m_eventFlagsMap.Add("attach", scriptEvents.attach); |
209 | m_eventFlagsMap.Add("at_rot_target", scriptEvents.at_rot_target); | 209 | m_eventFlagsMap.Add("at_rot_target", scriptEvents.at_rot_target); |
210 | m_eventFlagsMap.Add("at_target", scriptEvents.at_target); | 210 | m_eventFlagsMap.Add("at_target", scriptEvents.at_target); |
211 | // m_eventFlagsMap.Add("changed",(long)scriptEvents.changed); | 211 | // m_eventFlagsMap.Add("changed",(long)scriptEvents.changed); |
diff --git a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs index ce22ba5..16309ef 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | |||
@@ -58,9 +58,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
58 | myScriptEngine.World.EventManager.OnObjectDeGrab += touch_end; | 58 | myScriptEngine.World.EventManager.OnObjectDeGrab += touch_end; |
59 | myScriptEngine.World.EventManager.OnScriptChangedEvent += changed; | 59 | myScriptEngine.World.EventManager.OnScriptChangedEvent += changed; |
60 | myScriptEngine.World.EventManager.OnScriptAtTargetEvent += at_target; | 60 | myScriptEngine.World.EventManager.OnScriptAtTargetEvent += at_target; |
61 | myScriptEngine.World.EventManager.OnScriptNotAtTargetEvent += not_at_target; | 61 | myScriptEngine.World.EventManager.OnScriptNotAtTargetEvent += not_at_target; |
62 | myScriptEngine.World.EventManager.OnScriptAtRotTargetEvent += at_rot_target; | 62 | myScriptEngine.World.EventManager.OnScriptAtRotTargetEvent += at_rot_target; |
63 | myScriptEngine.World.EventManager.OnScriptNotAtRotTargetEvent += not_at_rot_target; | 63 | myScriptEngine.World.EventManager.OnScriptNotAtRotTargetEvent += not_at_rot_target; |
64 | myScriptEngine.World.EventManager.OnScriptControlEvent += control; | 64 | myScriptEngine.World.EventManager.OnScriptControlEvent += control; |
65 | myScriptEngine.World.EventManager.OnScriptColliderStart += collision_start; | 65 | myScriptEngine.World.EventManager.OnScriptColliderStart += collision_start; |
66 | myScriptEngine.World.EventManager.OnScriptColliding += collision; | 66 | myScriptEngine.World.EventManager.OnScriptColliding += collision; |
@@ -390,16 +390,16 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
390 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 390 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
391 | "not_at_target",new object[0], | 391 | "not_at_target",new object[0], |
392 | new DetectParams[0])); | 392 | new DetectParams[0])); |
393 | } | 393 | } |
394 | 394 | ||
395 | public void at_rot_target(uint localID, uint handle, Quaternion targetrot, | 395 | public void at_rot_target(uint localID, uint handle, Quaternion targetrot, |
396 | Quaternion atrot) | 396 | Quaternion atrot) |
397 | { | 397 | { |
398 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 398 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
399 | "at_rot_target", new object[] { | 399 | "at_rot_target", new object[] { |
400 | new LSL_Types.LSLInteger(handle), | 400 | new LSL_Types.LSLInteger(handle), |
401 | new LSL_Types.Quaternion(targetrot.X,targetrot.Y,targetrot.Z,targetrot.W), | 401 | new LSL_Types.Quaternion(targetrot.X,targetrot.Y,targetrot.Z,targetrot.W), |
402 | new LSL_Types.Quaternion(atrot.X,atrot.Y,atrot.Z,atrot.W) }, | 402 | new LSL_Types.Quaternion(atrot.X,atrot.Y,atrot.Z,atrot.W) }, |
403 | new DetectParams[0])); | 403 | new DetectParams[0])); |
404 | } | 404 | } |
405 | 405 | ||