[quake3] quake 3 bots

Sander Smid s.smid at chello.nl
Fri May 25 12:16:07 EDT 2007


uwe koch wrote:
> Sander Smid wrote:
>> if (BotTeam(bs) == TEAM_BLUE){
>>    BotAI_BotInitialChat(bs, "kill_praise", name, NULL);
>>    bs->lastchat_time = FloatTime();
>>    bs->chatto = CHAT_ALL;
>>      BotAI_Print(PRT_MESSAGE, "There should be some chatting 
>> here...\n");
>> }
>
> BotAI_BotInitialChat() does not send the message but constructs it 
> from the strings in botfiles/teamplay.h (in pak0.pk3) and stores it 
> engineside (bot_chatstate_t::chatmessage). to actually send it, call 
> trap_BotEnterChat(). for implementation details see 
> botlib/be_ai_chat.c: BotInitialChat() and BotEnterChat().
>
> the easy way for sending arbitray text is using trap_EA_Say() and 
> trap_EA_SayTeam().
>
> btw: a better place for modding questions would be forums like:
> http://www.quake3world.com/forum/viewforum.php?f=16
> http://www.quakesrc.org/forums/viewforum.php?f=20
>
> hope that helps
>

Thanks a lot for your reply.. this and some help on the IRC channel have 
been a huge help!

Cheers,
Sander



More information about the quake3 mailing list