I took a look at the code...
botman congrats! you succeeded in the theory i had in mind as well (as the little snippet in 'i don't like this'). Congrats!
Actually i was thinking that i had to do a lot more copying of code for WriteUserCmd and such, but it seemed it was not that much after all.
The bot will crash in HL2DM for now, but thats a fault at valve, but no worries, they have fixed it (got confirmation from alfred) and will be updated on a next steam update of HL2DM
I am gonna change this lovely code... perhaps i can even get it to work for my ITM project...
one question though:
i see you use the gameinfomanager to let a bot change team. I assume this is on purpose? Because a bot should *actually* try to join the game via usercommands? (or some sort of 'menuselect' thingy?).