Put config to enable disable [NPC] module.
Default is disabled. You will need to explicitly enable to toy with this.bulletsim
parent
6e4ec29722
commit
797def8aa4
|
@ -44,15 +44,18 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
|||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
// private const bool m_enabled = false;
|
||||
|
||||
private Dictionary<UUID, NPCAvatar> m_avatars = new Dictionary<UUID, NPCAvatar>();
|
||||
private Dictionary<UUID, AvatarAppearance> m_appearanceCache = new Dictionary<UUID, AvatarAppearance>();
|
||||
|
||||
public void Initialise(Scene scene, IConfigSource source)
|
||||
{
|
||||
scene.RegisterModuleInterface<INPCModule>(this);
|
||||
scene.EventManager.OnSignificantClientMovement += HandleOnSignificantClientMovement;
|
||||
IConfig config = source.Configs["NPC"];
|
||||
|
||||
if (config != null && config.GetBoolean("Enabled", false))
|
||||
{
|
||||
scene.RegisterModuleInterface<INPCModule>(this);
|
||||
scene.EventManager.OnSignificantClientMovement += HandleOnSignificantClientMovement;
|
||||
}
|
||||
}
|
||||
|
||||
public void HandleOnSignificantClientMovement(ScenePresence presence)
|
||||
|
|
|
@ -716,6 +716,12 @@
|
|||
; Enabled = true;
|
||||
|
||||
|
||||
[NPC]
|
||||
;# {Enabled} {} {Enable Non Player Character (NPC) facilities} {true false} false
|
||||
;; Enable media on a prim facilities
|
||||
; Enabled = false
|
||||
|
||||
|
||||
[PrimLimitsModule]
|
||||
;# {EnforcePrimLimits} {} {Enforce parcel prim limits} {true false} false
|
||||
;; Enable parcel prim limits. Off by default to emulate pre-existing behavior.
|
||||
|
|
|
@ -1366,6 +1366,10 @@
|
|||
; Enable media on a prim facilities
|
||||
Enabled = true;
|
||||
|
||||
[NPC]
|
||||
;; Enable media on a prim facilities
|
||||
Enabled = false
|
||||
|
||||
;;
|
||||
;; If you are using a simian grid frontend you can enable
|
||||
;; this module to upload tile images for the mapping fn
|
||||
|
|
Loading…
Reference in New Issue