codemp/game/be_ai_move.h File Reference

Go to the source code of this file.

Data Structures

struct  bot_avoidspot_s
struct  bot_initmove_s
struct  bot_moveresult_s

Defines

#define MOVE_WALK   1
#define MOVE_CROUCH   2
#define MOVE_JUMP   4
#define MOVE_GRAPPLE   8
#define MOVE_ROCKETJUMP   16
#define MOVE_BFGJUMP   32
#define MFL_BARRIERJUMP   1
#define MFL_ONGROUND   2
#define MFL_SWIMMING   4
#define MFL_AGAINSTLADDER   8
#define MFL_WATERJUMP   16
#define MFL_TELEPORTED   32
#define MFL_GRAPPLEPULL   64
#define MFL_ACTIVEGRAPPLE   128
#define MFL_GRAPPLERESET   256
#define MFL_WALK   512
#define MOVERESULT_MOVEMENTVIEW   1
#define MOVERESULT_SWIMVIEW   2
#define MOVERESULT_WAITING   4
#define MOVERESULT_MOVEMENTVIEWSET   8
#define MOVERESULT_MOVEMENTWEAPON   16
#define MOVERESULT_ONTOPOFOBSTACLE   32
#define MOVERESULT_ONTOPOF_FUNCBOB   64
#define MOVERESULT_ONTOPOF_ELEVATOR   128
#define MOVERESULT_BLOCKEDBYAVOIDSPOT   256
#define MAX_AVOIDREACH   1
#define MAX_AVOIDSPOTS   32
#define AVOID_CLEAR   0
#define AVOID_ALWAYS   1
#define AVOID_DONTBLOCK   2
#define RESULTTYPE_ELEVATORUP   1
#define RESULTTYPE_WAITFORFUNCBOBBING   2
#define RESULTTYPE_BADGRAPPLEPATH   4
#define RESULTTYPE_INSOLIDAREA   8

Typedefs

typedef bot_initmove_s bot_initmove_t
typedef bot_moveresult_s bot_moveresult_t
typedef bot_avoidspot_s bot_avoidspot_t

Functions

void BotResetMoveState (int movestate)
void BotMoveToGoal (bot_moveresult_t *result, int movestate, bot_goal_t *goal, int travelflags)
int BotMoveInDirection (int movestate, vec3_t dir, float speed, int type)
void BotResetAvoidReach (int movestate)
void BotResetLastAvoidReach (int movestate)
int BotReachabilityArea (vec3_t origin, int client)
int BotMovementViewTarget (int movestate, bot_goal_t *goal, int travelflags, float lookahead, vec3_t target)
int BotPredictVisiblePosition (vec3_t origin, int areanum, bot_goal_t *goal, int travelflags, vec3_t target)
int BotAllocMoveState (void)
void BotFreeMoveState (int handle)
void BotInitMoveState (int handle, bot_initmove_t *initmove)
void BotAddAvoidSpot (int movestate, vec3_t origin, float radius, int type)
void BotSetBrushModelTypes (void)
int BotSetupMoveAI (void)
void BotShutdownMoveAI (void)


Define Documentation

#define AVOID_ALWAYS   1
 

Definition at line 50 of file be_ai_move.h.

#define AVOID_CLEAR   0
 

Definition at line 49 of file be_ai_move.h.

#define AVOID_DONTBLOCK   2
 

Definition at line 51 of file be_ai_move.h.

#define MAX_AVOIDREACH   1
 

Definition at line 46 of file be_ai_move.h.

#define MAX_AVOIDSPOTS   32
 

Definition at line 47 of file be_ai_move.h.

#define MFL_ACTIVEGRAPPLE   128
 

Definition at line 32 of file be_ai_move.h.

#define MFL_AGAINSTLADDER   8
 

Definition at line 28 of file be_ai_move.h.

#define MFL_BARRIERJUMP   1
 

Definition at line 25 of file be_ai_move.h.

#define MFL_GRAPPLEPULL   64
 

Definition at line 31 of file be_ai_move.h.

#define MFL_GRAPPLERESET   256
 

Definition at line 33 of file be_ai_move.h.

#define MFL_ONGROUND   2
 

Definition at line 26 of file be_ai_move.h.

#define MFL_SWIMMING   4
 

Definition at line 27 of file be_ai_move.h.

#define MFL_TELEPORTED   32
 

Definition at line 30 of file be_ai_move.h.

#define MFL_WALK   512
 

Definition at line 34 of file be_ai_move.h.

#define MFL_WATERJUMP   16
 

Definition at line 29 of file be_ai_move.h.

#define MOVE_BFGJUMP   32
 

Definition at line 23 of file be_ai_move.h.

#define MOVE_CROUCH   2
 

Definition at line 19 of file be_ai_move.h.

#define MOVE_GRAPPLE   8
 

Definition at line 21 of file be_ai_move.h.

#define MOVE_JUMP   4
 

Definition at line 20 of file be_ai_move.h.

#define MOVE_ROCKETJUMP   16
 

Definition at line 22 of file be_ai_move.h.

#define MOVE_WALK   1
 

Definition at line 18 of file be_ai_move.h.

#define MOVERESULT_BLOCKEDBYAVOIDSPOT   256
 

Definition at line 44 of file be_ai_move.h.

#define MOVERESULT_MOVEMENTVIEW   1
 

Definition at line 36 of file be_ai_move.h.

#define MOVERESULT_MOVEMENTVIEWSET   8
 

Definition at line 39 of file be_ai_move.h.

#define MOVERESULT_MOVEMENTWEAPON   16
 

Definition at line 40 of file be_ai_move.h.

#define MOVERESULT_ONTOPOF_ELEVATOR   128
 

Definition at line 43 of file be_ai_move.h.

#define MOVERESULT_ONTOPOF_FUNCBOB   64
 

Definition at line 42 of file be_ai_move.h.

#define MOVERESULT_ONTOPOFOBSTACLE   32
 

Definition at line 41 of file be_ai_move.h.

#define MOVERESULT_SWIMVIEW   2
 

Definition at line 37 of file be_ai_move.h.

#define MOVERESULT_WAITING   4
 

Definition at line 38 of file be_ai_move.h.

#define RESULTTYPE_BADGRAPPLEPATH   4
 

Definition at line 55 of file be_ai_move.h.

#define RESULTTYPE_ELEVATORUP   1
 

Definition at line 53 of file be_ai_move.h.

#define RESULTTYPE_INSOLIDAREA   8
 

Definition at line 56 of file be_ai_move.h.

#define RESULTTYPE_WAITFORFUNCBOBBING   2
 

Definition at line 54 of file be_ai_move.h.


Typedef Documentation

typedef struct bot_avoidspot_s bot_avoidspot_t
 

typedef struct bot_initmove_s bot_initmove_t
 

typedef struct bot_moveresult_s bot_moveresult_t
 


Function Documentation

void BotAddAvoidSpot int  movestate,
vec3_t  origin,
float  radius,
int  type
 

int BotAllocMoveState void   ) 
 

void BotFreeMoveState int  handle  ) 
 

void BotInitMoveState int  handle,
bot_initmove_t initmove
 

int BotMoveInDirection int  movestate,
vec3_t  dir,
float  speed,
int  type
 

int BotMovementViewTarget int  movestate,
bot_goal_t goal,
int  travelflags,
float  lookahead,
vec3_t  target
 

void BotMoveToGoal bot_moveresult_t result,
int  movestate,
bot_goal_t goal,
int  travelflags
 

int BotPredictVisiblePosition vec3_t  origin,
int  areanum,
bot_goal_t goal,
int  travelflags,
vec3_t  target
 

int BotReachabilityArea vec3_t  origin,
int  client
 

void BotResetAvoidReach int  movestate  ) 
 

void BotResetLastAvoidReach int  movestate  ) 
 

void BotResetMoveState int  movestate  ) 
 

void BotSetBrushModelTypes void   ) 
 

int BotSetupMoveAI void   ) 
 

void BotShutdownMoveAI void   )