View Single Post
Beginner question: Getting bots to spawn
Old
  (#1)
two_masks
Guest
 
Status:
Posts: n/a
Default Beginner question: Getting bots to spawn - 24-03-2004

Hi everyone,

I'm attempting to write a metamod CounterStrike bot "from scratch" (but using HPB as a reference) for Steam CS 1.6, but I'm having some trouble getting it to actually appear in world. My bot connects to the server just fine (in an almost indentical manner to HPB), but I never actually see it. I'm assuming this is because the bot is stuck at a team/model/... selection menu (does this sound right?), but the code I wrote to handle those messages never seems to get called.

I'm overriding pfnMessageBegin and, since my menu selections didn't seem to be happening properly, just logged the message ids that were sent to my bot when it was created. I got the following IDs:

111
84
98
101

Interestingly, 84 seems to be sent more times for each additional bot I add to the world: the first bot gets it once, the second twice, etc.

I know that there were some weirdnesses introduced by the move to steam, but can someone clarify what might be going on here, and maybe offer some advice on how to get my bots to appear? Thanks a lot for the help!

-JB
  
Reply With Quote