Add pCampbot RequestObjectTextures ini setting to control whether textures are requested for received objects.

0.7.6-extended
Justin Clark-Casey (justincc) 2013-08-14 19:53:10 +01:00
parent fd519748e9
commit 225cf0d010
3 changed files with 17 additions and 2 deletions

View File

@ -67,6 +67,11 @@ namespace pCampBot
/// </summary>
public bool InitBotSendAgentUpdates { get; set; }
/// <summary>
/// Controls whether bots request textures for the object information they receive
/// </summary>
public bool InitBotRequestObjectTextures { get; set; }
/// <summary>
/// Created bots, whether active or inactive.
/// </summary>
@ -93,6 +98,7 @@ namespace pCampBot
public BotManager()
{
InitBotSendAgentUpdates = true;
InitBotRequestObjectTextures = true;
LoginDelay = DefaultLoginDelay;
@ -176,6 +182,7 @@ namespace pCampBot
MainConsole.Instance.OutputFormat("[BOT MANAGER]: Delay between logins is {0}ms", LoginDelay);
MainConsole.Instance.OutputFormat("[BOT MANAGER]: BotsSendAgentUpdates is {0}", InitBotSendAgentUpdates);
MainConsole.Instance.OutputFormat("[BOT MANAGER]: InitBotRequestObjectTextures is {0}", InitBotRequestObjectTextures);
for (int i = 0; i < botcount; i++)
{

View File

@ -88,6 +88,8 @@ namespace pCampBot
{
bm.InitBotSendAgentUpdates
= botConfig.GetBoolean("SendAgentUpdates", bm.InitBotSendAgentUpdates);
bm.InitBotRequestObjectTextures
= botConfig.GetBoolean("RequestObjectTextures", bm.InitBotRequestObjectTextures);
}
}

View File

@ -3,7 +3,13 @@
[Bot]
; Control whether bots should regularly send agent updates
; Not sending agent updates will reduce CPU requirements for pCampbot but greatly
; reduce the realism compared to viewers which are constantly sending AgentUpdates UDP packets
; Not doing this will reduce CPU requirements for pCampbot but greatly
; reduce the realism compared to viewers which are constantly sending AgentUpdates UDP packets.
; Defaults to true.
SendAgentUpdates = true
; Control whether bots will requests textures when receiving object information
; Not doing this will reduce CPU requirements for pCampbot but greatly
; reduce the realism compared to viewers which requests such texture data if not already cached.
; Defaults to true.
RequestObjectTextures = true