[quake3] quake 3 bots

uwe koch spirolat at gmx.net
Thu May 24 09:59:25 EDT 2007


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



More information about the quake3 mailing list