Why not hook the "bot_dontmove" cvar and save its value? Then you can return out of RunPlayerMove if it's enabled.
On Mon, Jun 15, 2009 at 15:46, Harry Jeffery <harry101jeff...@googlemail.com > wrote: > I was thinking of coding some tf2 bots as a server plugin but it would > take a long time and AI isn't my forte. > > 2009/6/15 Andreas Grimm <l...@gmx.net>: > > Hello, > > > > I need this for my bot plugin, too. > > Please add a command, that TF2 stops running RunPlayerMove in each game > > frame. > > > > And the IBotManager::CreateBot() function of the SDK is still broken. > > Still waiting for a fix ;D > > > > regards > > Andi aka Tauphi > > > > -----Original Message----- > > From: hlcoders-boun...@list.valvesoftware.com > > [mailto:hlcoders-boun...@list.valvesoftware.com] On Behalf Of PaulM > > Sent: Monday, June 15, 2009 9:23 PM > > To: Discussion of Half-Life Programming > > Subject: [hlcoders] custom TF2 bots and commands > > > > Hello, > > > > I've been messing around with my bot plugin recently, If you've noticed I > > got it to work again by controlling in-built TF2 bots (when using the bot > > command) this means I need to automatically call "bot" command in my > plugin > > > > I do this by using > > > > engine->ServerCommand("bot -name xyz"); > > > > and then catch the bot joining the server > > > > In a listen server this is fine, but in dedicated it doesn't work. It > just > > says "bot" is an unknown command, any ideas on that? > > > > Other things, And most important are the fact that the TF2 built in bots > > ALWAYS call RunPlayerMove, even when bot_dontmove is 1. The problem is I > > need to call this function, which means it is getting called TWICE every > > frame instead of ONCE, and this causes problems like the bots buttons > > getting messed up, bots speed is terribly out of control, > > > > Would Valve be interested in making bot_dontmove command NOT to call > > RunPlayerMove ?? Instead of just nullifing the "cmd".? > > > > This would be of great benefit, > > > > In any case what happened to the Omni-Bot/WIP Interface ? > > > > Bye, > > [RCBOT]Cheeseh > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders