aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/CollisionSounds.cs
diff options
context:
space:
mode:
authorMelanie2012-06-07 23:41:10 +0200
committerMelanie2012-06-07 23:41:10 +0200
commitad1df330063ff2786b1ed8aae65f0198285ccd9c (patch)
treec29694b470d451c33332a9e88787949fa02b5c07 /OpenSim/Region/Framework/Scenes/CollisionSounds.cs
parentTypo fix (diff)
downloadopensim-SC_OLD-ad1df330063ff2786b1ed8aae65f0198285ccd9c.zip
opensim-SC_OLD-ad1df330063ff2786b1ed8aae65f0198285ccd9c.tar.gz
opensim-SC_OLD-ad1df330063ff2786b1ed8aae65f0198285ccd9c.tar.bz2
opensim-SC_OLD-ad1df330063ff2786b1ed8aae65f0198285ccd9c.tar.xz
Further limit the amount of avatar collisions that will actually trigger
sounds. They are distracting.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/CollisionSounds.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/CollisionSounds.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/CollisionSounds.cs b/OpenSim/Region/Framework/Scenes/CollisionSounds.cs
index a95e75a..3ec3cf7 100644
--- a/OpenSim/Region/Framework/Scenes/CollisionSounds.cs
+++ b/OpenSim/Region/Framework/Scenes/CollisionSounds.cs
@@ -266,9 +266,11 @@ namespace OpenSim.Region.Framework.Scenes
266 else 266 else
267 { 267 {
268 volume = Math.Abs(colInfo.relativeVel); 268 volume = Math.Abs(colInfo.relativeVel);
269 if (volume < 0.2f) 269 // Most noral collisions (running into walls, stairs)
270 // should never be heard.
271 if (volume < 2.0f)
270 continue; 272 continue;
271 m_log.DebugFormat("Collision speed was {0}", volume); 273// m_log.DebugFormat("Collision speed was {0}", volume);
272 274
273 // Cap to 0.2 times volume because climbing stairs should not be noisy 275 // Cap to 0.2 times volume because climbing stairs should not be noisy
274 // Also changed scaling 276 // Also changed scaling