Nuclide
Software Development Kit for id Tech
Profiles

Different userinfo profiles for bot characters. More...

Classes

struct  botScript_t
 Data holding Bot Profile entries. More...
 

Macros

#define BOTSCRIPT_MAX   32
 

Variables

botScript_t g_bots [32]
 
var int g_botScriptCount
 

Detailed Description

Different userinfo profiles for bot characters.

BotScript

script/bots.txt

Nuclide has support for bot profiles, like in Quake III Arena. They work differently although they appear compatible by design. You can define them in a script that looks something like this and is located at <gamedir>/scripts/bots.txt:

{
name Albert
model zombie01
topcolor 0xeff
bottomcolor 0xff0020
}
{
name Susie
model police02
topcolor 0xff6b00
bottomcolor 0xff0b00
}
{
name Dog
funname ^4D^2o^1g
model dog01
topcolor 0x9200ff
bottomcolor 0xc800ff
}
noref string model
Definition: ui_3dview.qc:21

Only the name key is required. The only other special key is funname which sets the nickname to be different from the internal name. The other keys are set as user info (setinfo) keys on the bot client.

This will allow games to add whatever extra keys they wish that they can then recognize anywhere in the client/server codebase. No additional networking or APIs necessary. Simply query bot properties via their userinfo.

Macro Definition Documentation

◆ BOTSCRIPT_MAX

#define BOTSCRIPT_MAX   32

Variable Documentation

◆ g_bots

botScript_t g_bots[32]

◆ g_botScriptCount

var int g_botScriptCount