aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorUbitUmarov2016-08-28 08:45:09 +0100
committerUbitUmarov2016-08-28 08:45:09 +0100
commitddc2f2ccd3566a9a4a3631c872979aa6830dbcfe (patch)
tree24c51a69f8b0e5d17f35501b37659843cf0a4bbe /OpenSim/Region/ScriptEngine
parentlet mouse steer work on crossings; some cleanup (diff)
downloadopensim-SC_OLD-ddc2f2ccd3566a9a4a3631c872979aa6830dbcfe.zip
opensim-SC_OLD-ddc2f2ccd3566a9a4a3631c872979aa6830dbcfe.tar.gz
opensim-SC_OLD-ddc2f2ccd3566a9a4a3631c872979aa6830dbcfe.tar.bz2
opensim-SC_OLD-ddc2f2ccd3566a9a4a3631c872979aa6830dbcfe.tar.xz
mantis: 8008 unscripted child prim collisions didn't trigger scripted root prim collision events; collision sounds had incorrect aggregateevents call and default sounds where muted. Future optimization needed and Testing
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs3
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs3
2 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index c046a0c..66cb30c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5109,6 +5109,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5109 m_host.CollisionSoundVolume = (float)impact_volume; 5109 m_host.CollisionSoundVolume = (float)impact_volume;
5110 m_host.CollisionSound = m_host.invalidCollisionSoundUUID; 5110 m_host.CollisionSound = m_host.invalidCollisionSoundUUID;
5111 m_host.CollisionSoundType = -1; // disable all sounds 5111 m_host.CollisionSoundType = -1; // disable all sounds
5112 m_host.aggregateScriptEvents();
5112 return; 5113 return;
5113 } 5114 }
5114 5115
@@ -5122,6 +5123,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5122 } 5123 }
5123 else 5124 else
5124 m_host.CollisionSoundType = -1; 5125 m_host.CollisionSoundType = -1;
5126
5127 m_host.aggregateScriptEvents();
5125 } 5128 }
5126 5129
5127 public LSL_String llGetAnimation(string id) 5130 public LSL_String llGetAnimation(string id)
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 6168fe0..4af4339 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -4266,6 +4266,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4266 m_host.CollisionSoundType = 0; // full return to default sounds 4266 m_host.CollisionSoundType = 0; // full return to default sounds
4267 else 4267 else
4268 m_host.CollisionSoundType = 2; // default sounds with volume 4268 m_host.CollisionSoundType = 2; // default sounds with volume
4269 m_host.aggregateScriptEvents();
4269 return; 4270 return;
4270 } 4271 }
4271 // TODO: Parameter check logic required. 4272 // TODO: Parameter check logic required.
@@ -4278,6 +4279,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4278 } 4279 }
4279 else 4280 else
4280 m_host.CollisionSoundType = -1; 4281 m_host.CollisionSoundType = -1;
4282
4283 m_host.aggregateScriptEvents();
4281 } 4284 }
4282 4285
4283 // still not very usefull, detector is lost on rez, restarts, etc 4286 // still not very usefull, detector is lost on rez, restarts, etc