12-16-2013, 10:22 PM
Seems like you would need to override the Init() functions for whichever mode the bot is currently in to include your new tasks with appropriate priority levels. I would've probably tried to implement it much the same way as you and if it doesn't work I'd assume that it only works on a single task queue at one time, and since it'll always be in the task queue of the current mode, this would be my next thing to try.
I've been trying to understand the task system a little more myself and after about 5 or 6 hours digging around and connecting the dots this is the first assumption I would jump to. The part I find myself not being clear on is what happens if you attempt to throw 2 task processes at one time to the task_hub, like your example SpecificHunting task and also whichever task is currently running (like task_grind). Does it just take the first one and the second one never actually makes it? Can't tell.
I've been trying to understand the task system a little more myself and after about 5 or 6 hours digging around and connecting the dots this is the first assumption I would jump to. The part I find myself not being clear on is what happens if you attempt to throw 2 task processes at one time to the task_hub, like your example SpecificHunting task and also whichever task is currently running (like task_grind). Does it just take the first one and the second one never actually makes it? Can't tell.