mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Add a SendAgentUpdates setting to a new pCampbot.ini.example file which can control whether bots send agent updates
pCampbot.ini.example is used by copying to pCampbot.ini, like other ini files
This commit is contained in:
@@ -63,11 +63,6 @@ namespace pCampBot
|
||||
/// </summary>
|
||||
public BotManager Manager { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Bot config, passed from BotManager.
|
||||
/// </summary>
|
||||
private IConfig startupConfig;
|
||||
|
||||
/// <summary>
|
||||
/// Behaviours implemented by this bot.
|
||||
/// </summary>
|
||||
@@ -153,9 +148,6 @@ namespace pCampBot
|
||||
LoginUri = loginUri;
|
||||
|
||||
Manager = bm;
|
||||
startupConfig = bm.Config;
|
||||
readconfig();
|
||||
|
||||
Behaviours = behaviours;
|
||||
}
|
||||
|
||||
@@ -176,14 +168,6 @@ namespace pCampBot
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Read the Nini config and initialize
|
||||
/// </summary>
|
||||
public void readconfig()
|
||||
{
|
||||
wear = startupConfig.GetString("wear", "no");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tells LibSecondLife to logout and disconnect. Raises the disconnect events once it finishes.
|
||||
/// </summary>
|
||||
@@ -207,6 +191,7 @@ namespace pCampBot
|
||||
Client.Settings.AVATAR_TRACKING = false;
|
||||
Client.Settings.OBJECT_TRACKING = false;
|
||||
Client.Settings.SEND_AGENT_THROTTLE = true;
|
||||
Client.Settings.SEND_AGENT_UPDATES = false;
|
||||
Client.Settings.SEND_PINGS = true;
|
||||
Client.Settings.STORE_LAND_PATCHES = false;
|
||||
Client.Settings.USE_ASSET_CACHE = false;
|
||||
@@ -481,9 +466,6 @@ namespace pCampBot
|
||||
|
||||
public void Objects_NewPrim(object sender, PrimEventArgs args)
|
||||
{
|
||||
// if (Name.EndsWith("4"))
|
||||
// throw new Exception("Aaargh");
|
||||
|
||||
Primitive prim = args.Prim;
|
||||
|
||||
if (prim != null)
|
||||
|
||||
Reference in New Issue
Block a user