From ad1df330063ff2786b1ed8aae65f0198285ccd9c Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 7 Jun 2012 23:41:10 +0200 Subject: Further limit the amount of avatar collisions that will actually trigger sounds. They are distracting. --- OpenSim/Region/Framework/Scenes/CollisionSounds.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Framework') 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 else { volume = Math.Abs(colInfo.relativeVel); - if (volume < 0.2f) + // Most noral collisions (running into walls, stairs) + // should never be heard. + if (volume < 2.0f) continue; - m_log.DebugFormat("Collision speed was {0}", volume); +// m_log.DebugFormat("Collision speed was {0}", volume); // Cap to 0.2 times volume because climbing stairs should not be noisy // Also changed scaling -- cgit v1.1