Nuclide
Software Development Kit for id Tech
NSBot.h File Reference

Go to the source code of this file.

Classes

class  NSBot
 A virtual multiplayer opponent. More...
 

Macros

#define COST_INFINITE   99999
 
#define BOTROUTE_DESTINATION   -1
 The desired target destination has been reached. More...
 
#define BOTROUTE_END   -2
 Unloading of the route in progress. More...
 

Enumerations

enum  botpersonality_t { BOT_PERSONALITY_NORMAL , BOT_PERSONALITY_AGRESSIVE , BOT_PERSONALITY_DEFENSIVE }
 Bot Personality. More...
 
enum  botstate_t {
  BOT_STATE_IDLE , BOT_STATE_PATROLLING , BOT_STATE_DEFENDING , BOT_STATE_ATTACKING ,
  BOT_STATE_FLEEING
}
 Bot State. More...
 

Functions

entity Bot_AddQuick (void)
 Adds a bot to the game with some basic info. More...
 
void BotLib_Init (void)
 
void Bot_RandomColormap (NSBot target)
 Applies random custom colors to the given bot entity. More...
 

Macro Definition Documentation

◆ BOTROUTE_DESTINATION

#define BOTROUTE_DESTINATION   -1

The desired target destination has been reached.

◆ BOTROUTE_END

#define BOTROUTE_END   -2

Unloading of the route in progress.

◆ COST_INFINITE

#define COST_INFINITE   99999

Enumeration Type Documentation

◆ botpersonality_t

Bot Personality.

Enumerator
BOT_PERSONALITY_NORMAL 

this bot will be dynamic

BOT_PERSONALITY_AGRESSIVE 

this bot will always prefer to be attacking

BOT_PERSONALITY_DEFENSIVE 

this bot will always prefer to stay behind

◆ botstate_t

enum botstate_t

Bot State.

Enumerator
BOT_STATE_IDLE 

this should rarely happen

BOT_STATE_PATROLLING 

this is basically most deathmatch cases

BOT_STATE_DEFENDING 

this is for when bots stay put and stay around spawn, or their teams goalitem

BOT_STATE_ATTACKING 

this is for when bots go to the enemy spawn, or to the enemy team's goalitem

BOT_STATE_FLEEING 

this is for when the AI should just get as far away as possible

Function Documentation

◆ Bot_AddQuick()

entity Bot_AddQuick ( void  )

Adds a bot to the game with some basic info.

Returns the resulting entity. NULL if unavailable.

◆ Bot_RandomColormap()

void Bot_RandomColormap ( NSBot  target)

Applies random custom colors to the given bot entity.

◆ BotLib_Init()

void BotLib_Init ( void  )