Yeah, I bumped Xalos's topic and sent Badspot a link as well.
Anyway, I feel like the way bots should work is that every bot hole has a client and then that client is used for any bots that spawn there.
Edit: This is how I'm doing the clients:
package Slayer_Modules_Bots
{
function fxDtsBrick::onBotSpawn(%this)
{
parent::onBotSpawn(%this);
%bot = %this.hBot;
if(!isObject(%bot.client))
{
if(!isObject(%this.aiClient))
{
%this.aiClient = new AiConnection()
{
bl_id = getBL_IDFromObject(%this);
class = "HoleBotClient";
};
}
%bot.client = %this.aiClient;
%this.aiClient.player = %bot;
%this.aiClient.bot = %bot;
}
}
function fxDtsBrick::onRemove(%this)
{
if(isObject(%this.aiClient))
%this.aiClient.delete();
parent::onRemove(%this);
}
};
activatePackage(Slayer_Modules_Bots);
This seems to cause death messages to display when you kill a bot. Any suggestions?