* Makes Second Life environment sensor ranges and maximum response number configurable
* Thanks Intimidated
0.6.5-rc1
Justin Clarke Casey 2009-04-07 19:15:26 +00:00
parent d0d481a0ab
commit 513ae92bbb
2 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
public SensorRepeat(AsyncCommandManager CmdManager) public SensorRepeat(AsyncCommandManager CmdManager)
{ {
m_CmdManager = 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(); private Object SenseLock = new Object();

View File

@ -1070,6 +1070,10 @@
; up the system to malicious scripters ; up the system to malicious scripters
; NotecardLineReadCharsMax = 255 ; NotecardLineReadCharsMax = 255
; Sensor settings
SensorMaxRange = 96.0
SensorMaxResults = 16
; OS Functions enable/disable ; OS Functions enable/disable
; For each function, you can add one line, as shown ; For each function, you can add one line, as shown
; The default for all functions allows them if below threat level ; The default for all functions allows them if below threat level