Nuclide
Software Development Kit for id Tech
defs.h File Reference
#include "cvars.h"

Go to the source code of this file.

Classes

struct  botScript_t
 

Macros

#define BotLog(...)   if (autocvar_bot_developer) _BotLog(__FUNC__, sprintf(__VA_ARGS__))
 Logs an bot system specific log message. More...
 
#define BotEntLog(...)   if (autocvar_bot_developer) _BotEntLog(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))
 Logs an bot specific entity class log message. More...
 
#define BOTSCRIPT_MAX   32
 

Functions

vector Route_SelectDestination (NSBot target)
 
void _BotLog (string functionName, string msg)
 
void _BotEntLog (string className, string functionName, float edictNum, string warnMessage)
 

Variables

var int autocvar_nav_linksize = 256
 
var int autocvar_nav_radius = 8
 
var string autocvar_bot_prefix = ""
 
botScript_t g_bots [32]
 
var int g_botScriptCount
 

Macro Definition Documentation

◆ BotEntLog

#define BotEntLog (   ...)    if (autocvar_bot_developer) _BotEntLog(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))

Logs an bot specific entity class log message.

The console variable bot_developer has to be 1 for them to be visible.

Parameters
description(...)contains a formatted string containing a description.

◆ BotLog

#define BotLog (   ...)    if (autocvar_bot_developer) _BotLog(__FUNC__, sprintf(__VA_ARGS__))

Logs an bot system specific log message.

The console variable bot_developer has to be 1 for them to be visible.

Parameters
description(...)contains a formatted string containing a description.

◆ BOTSCRIPT_MAX

#define BOTSCRIPT_MAX   32

Function Documentation

◆ _BotEntLog()

void _BotEntLog ( string  className,
string  functionName,
float  edictNum,
string  warnMessage 
)

◆ _BotLog()

void _BotLog ( string  functionName,
string  msg 
)

◆ Route_SelectDestination()

vector Route_SelectDestination ( NSBot  target)

Variable Documentation

◆ autocvar_bot_prefix

var string autocvar_bot_prefix = ""

◆ autocvar_nav_linksize

var int autocvar_nav_linksize = 256

◆ autocvar_nav_radius

var int autocvar_nav_radius = 8

◆ g_bots

botScript_t g_bots[32]

◆ g_botScriptCount

var int g_botScriptCount