diff options
author | Justin Clarke Casey | 2009-04-07 19:15:26 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-04-07 19:15:26 +0000 |
commit | 513ae92bbb4a37c7e95dbd0c5c252862d7658b1c (patch) | |
tree | 3a781ac5d0ac779b4d0ddf92e66f6937f65570ef | |
parent | * Apply http://opensimulator.org/mantis/view.php?id=3418 (diff) | |
download | opensim-SC_OLD-513ae92bbb4a37c7e95dbd0c5c252862d7658b1c.zip opensim-SC_OLD-513ae92bbb4a37c7e95dbd0c5c252862d7658b1c.tar.gz opensim-SC_OLD-513ae92bbb4a37c7e95dbd0c5c252862d7658b1c.tar.bz2 opensim-SC_OLD-513ae92bbb4a37c7e95dbd0c5c252862d7658b1c.tar.xz |
* Apply http://opensimulator.org/mantis/view.php?id=3406
* Makes Second Life environment sensor ranges and maximum response number configurable
* Thanks Intimidated
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | 2 | ||||
-rw-r--r-- | bin/OpenSim.ini.example | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs index f132518..cc4d88b 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 | |||
43 | public SensorRepeat(AsyncCommandManager CmdManager) | 43 | public SensorRepeat(AsyncCommandManager CmdManager) |
44 | { | 44 | { |
45 | m_CmdManager = CmdManager; | 45 | m_CmdManager = CmdManager; |
46 | maximumRange = CmdManager.m_ScriptEngine.Config.GetDouble("SensorMaxRange", 96.0d); | ||
47 | maximumToReturn = CmdManager.m_ScriptEngine.Config.GetInt("SensorMaxResults", 16); | ||
46 | } | 48 | } |
47 | 49 | ||
48 | private Object SenseLock = new Object(); | 50 | private Object SenseLock = new Object(); |
diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index d2e901a..813b1f1 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example | |||
@@ -1070,6 +1070,10 @@ | |||
1070 | ; up the system to malicious scripters | 1070 | ; up the system to malicious scripters |
1071 | ; NotecardLineReadCharsMax = 255 | 1071 | ; NotecardLineReadCharsMax = 255 |
1072 | 1072 | ||
1073 | ; Sensor settings | ||
1074 | SensorMaxRange = 96.0 | ||
1075 | SensorMaxResults = 16 | ||
1076 | |||
1073 | ; OS Functions enable/disable | 1077 | ; OS Functions enable/disable |
1074 | ; For each function, you can add one line, as shown | 1078 | ; For each function, you can add one line, as shown |
1075 | ; The default for all functions allows them if below threat level | 1079 | ; The default for all functions allows them if below threat level |