From 513ae92bbb4a37c7e95dbd0c5c252862d7658b1c Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 7 Apr 2009 19:15:26 +0000 Subject: [PATCH] * Apply http://opensimulator.org/mantis/view.php?id=3406 * Makes Second Life environment sensor ranges and maximum response number configurable * Thanks Intimidated --- .../Shared/Api/Implementation/Plugins/SensorRepeat.cs | 2 ++ bin/OpenSim.ini.example | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs index f13251823e..cc4d88b312 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs @@ -43,6 +43,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins public SensorRepeat(AsyncCommandManager CmdManager) { m_CmdManager = CmdManager; + maximumRange = CmdManager.m_ScriptEngine.Config.GetDouble("SensorMaxRange", 96.0d); + maximumToReturn = CmdManager.m_ScriptEngine.Config.GetInt("SensorMaxResults", 16); } private Object SenseLock = new Object(); diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index d2e901a1a4..813b1f1f9a 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -1070,6 +1070,10 @@ ; up the system to malicious scripters ; NotecardLineReadCharsMax = 255 + ; Sensor settings + SensorMaxRange = 96.0 + SensorMaxResults = 16 + ; OS Functions enable/disable ; For each function, you can add one line, as shown ; The default for all functions allows them if below threat level