Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

g_syscalls.c File Reference

#include "g_local.h"

Include dependency graph for g_syscalls.c:

Include dependency graph

Go to the source code of this file.

Functions

void dllEntry (int(QDECL *syscallptr)(int arg,...))
 int (QDECL *syscall)(int arg
int PASSFLOAT (float x)
int trap_AAS_AlternativeRouteGoals (vec3_t start, int startareanum, vec3_t goal, int goalareanum, int travelflags, void *altroutegoals, int maxaltroutegoals, int type)
int trap_AAS_AreaInfo (int areanum, void *info)
int trap_AAS_AreaReachability (int areanum)
int trap_AAS_AreaTravelTimeToGoalArea (int areanum, vec3_t origin, int goalareanum, int travelflags)
int trap_AAS_BBoxAreas (vec3_t absmins, vec3_t absmaxs, int *areas, int maxareas)
int trap_AAS_EnableRoutingArea (int areanum, int enable)
void trap_AAS_EntityInfo (int entnum, void *info)
int trap_AAS_FloatForBSPEpairKey (int ent, char *key, float *value)
int trap_AAS_Initialized (void)
int trap_AAS_IntForBSPEpairKey (int ent, char *key, int *value)
int trap_AAS_NextBSPEntity (int ent)
int trap_AAS_PointAreaNum (vec3_t point)
int trap_AAS_PointContents (vec3_t point)
int trap_AAS_PointReachabilityAreaIndex (vec3_t point)
int trap_AAS_PredictClientMovement (void *move, int entnum, vec3_t origin, int presencetype, int onground, vec3_t velocity, vec3_t cmdmove, int cmdframes, int maxframes, float frametime, int stopevent, int stopareanum, int visualize)
int trap_AAS_PredictRoute (void *route, int areanum, vec3_t origin, int goalareanum, int travelflags, int maxareas, int maxtime, int stopevent, int stopcontents, int stoptfl, int stopareanum)
void trap_AAS_PresenceTypeBoundingBox (int presencetype, vec3_t mins, vec3_t maxs)
int trap_AAS_Swimming (vec3_t origin)
float trap_AAS_Time (void)
int trap_AAS_TraceAreas (vec3_t start, vec3_t end, int *areas, vec3_t *points, int maxareas)
int trap_AAS_ValueForBSPEpairKey (int ent, char *key, char *value, int size)
int trap_AAS_VectorForBSPEpairKey (int ent, char *key, vec3_t v)
void trap_AdjustAreaPortalState (gentity_t *ent, qboolean open)
qboolean trap_AreasConnected (int area1, int area2)
int trap_Argc (void)
void trap_Argv (int n, char *buffer, int bufferLength)
void trap_BotAddAvoidSpot (int movestate, vec3_t origin, float radius, int type)
int trap_BotAllocateClient (void)
int trap_BotAllocChatState (void)
int trap_BotAllocGoalState (int state)
int trap_BotAllocMoveState (void)
int trap_BotAllocWeaponState (void)
float trap_BotAvoidGoalTime (int goalstate, int number)
int trap_BotChatLength (int chatstate)
int trap_BotChooseBestFightWeapon (int weaponstate, int *inventory)
int trap_BotChooseLTGItem (int goalstate, vec3_t origin, int *inventory, int travelflags)
int trap_BotChooseNBGItem (int goalstate, vec3_t origin, int *inventory, int travelflags, void *ltg, float maxtime)
void trap_BotDumpAvoidGoals (int goalstate)
void trap_BotDumpGoalStack (int goalstate)
void trap_BotEmptyGoalStack (int goalstate)
void trap_BotEnterChat (int chatstate, int client, int sendto)
int trap_BotFindMatch (char *str, void *match, unsigned long int context)
void trap_BotFreeCharacter (int character)
void trap_BotFreeChatState (int handle)
void trap_BotFreeClient (int clientNum)
void trap_BotFreeGoalState (int handle)
void trap_BotFreeItemWeights (int goalstate)
void trap_BotFreeMoveState (int handle)
void trap_BotFreeWeaponState (int weaponstate)
void trap_BotGetChatMessage (int chatstate, char *buf, int size)
int trap_BotGetLevelItemGoal (int index, char *classname, void *goal)
int trap_BotGetMapLocationGoal (char *name, void *goal)
int trap_BotGetNextCampSpotGoal (int num, void *goal)
int trap_BotGetSecondGoal (int goalstate, void *goal)
int trap_BotGetServerCommand (int clientNum, char *message, int size)
int trap_BotGetSnapshotEntity (int clientNum, int sequence)
int trap_BotGetTopGoal (int goalstate, void *goal)
void trap_BotGetWeaponInfo (int weaponstate, int weapon, void *weaponinfo)
void trap_BotGoalName (int number, char *name, int size)
void trap_BotInitialChat (int chatstate, char *type, int mcontext, char *var0, char *var1, char *var2, char *var3, char *var4, char *var5, char *var6, char *var7)
void trap_BotInitLevelItems (void)
void trap_BotInitMoveState (int handle, void *initmove)
void trap_BotInterbreedGoalFuzzyLogic (int parent1, int parent2, int child)
int trap_BotItemGoalInVisButNotVisible (int viewer, vec3_t eye, vec3_t viewangles, void *goal)
int trap_BotLibDefine (char *string)
int trap_BotLibLoadMap (const char *mapname)
int trap_BotLibSetup (void)
int trap_BotLibShutdown (void)
int trap_BotLibStartFrame (float time)
int trap_BotLibTest (int parm0, char *parm1, vec3_t parm2, vec3_t parm3)
int trap_BotLibUpdateEntity (int ent, void *bue)
int trap_BotLibVarGet (char *var_name, char *value, int size)
int trap_BotLibVarSet (char *var_name, char *value)
int trap_BotLoadCharacter (char *charfile, float skill)
int trap_BotLoadChatFile (int chatstate, char *chatfile, char *chatname)
int trap_BotLoadItemWeights (int goalstate, char *filename)
int trap_BotLoadWeaponWeights (int weaponstate, char *filename)
void trap_BotMatchVariable (void *match, int variable, char *buf, int size)
int trap_BotMoveInDirection (int movestate, vec3_t dir, float speed, int type)
int trap_BotMovementViewTarget (int movestate, void *goal, int travelflags, float lookahead, vec3_t target)
void trap_BotMoveToGoal (void *result, int movestate, void *goal, int travelflags)
void trap_BotMutateGoalFuzzyLogic (int goalstate, float range)
int trap_BotNextConsoleMessage (int chatstate, void *cm)
int trap_BotNumConsoleMessages (int chatstate)
int trap_BotNumInitialChats (int chatstate, char *type)
void trap_BotPopGoal (int goalstate)
int trap_BotPredictVisiblePosition (vec3_t origin, int areanum, void *goal, int travelflags, vec3_t target)
void trap_BotPushGoal (int goalstate, void *goal)
void trap_BotQueueConsoleMessage (int chatstate, int type, char *message)
int trap_BotReachabilityArea (vec3_t origin, int testground)
void trap_BotRemoveConsoleMessage (int chatstate, int handle)
void trap_BotRemoveFromAvoidGoals (int goalstate, int number)
void trap_BotReplaceSynonyms (char *string, unsigned long int context)
int trap_BotReplyChat (int chatstate, char *message, int mcontext, int vcontext, char *var0, char *var1, char *var2, char *var3, char *var4, char *var5, char *var6, char *var7)
void trap_BotResetAvoidGoals (int goalstate)
void trap_BotResetAvoidReach (int movestate)
void trap_BotResetGoalState (int goalstate)
void trap_BotResetLastAvoidReach (int movestate)
void trap_BotResetMoveState (int movestate)
void trap_BotResetWeaponState (int weaponstate)
void trap_BotSaveGoalFuzzyLogic (int goalstate, char *filename)
void trap_BotSetAvoidGoalTime (int goalstate, int number, float avoidtime)
void trap_BotSetChatGender (int chatstate, int gender)
void trap_BotSetChatName (int chatstate, char *name, int client)
int trap_BotTouchingGoal (vec3_t origin, void *goal)
void trap_BotUpdateEntityItems (void)
void trap_BotUserCommand (int clientNum, usercmd_t *ucmd)
float trap_Characteristic_BFloat (int character, int index, float min, float max)
int trap_Characteristic_BInteger (int character, int index, int min, int max)
float trap_Characteristic_Float (int character, int index)
int trap_Characteristic_Integer (int character, int index)
void trap_Characteristic_String (int character, int index, char *buf, int size)
void trap_Cvar_Register (vmCvar_t *cvar, const char *var_name, const char *value, int flags)
void trap_Cvar_Set (const char *var_name, const char *value)
void trap_Cvar_Update (vmCvar_t *cvar)
int trap_Cvar_VariableIntegerValue (const char *var_name)
void trap_Cvar_VariableStringBuffer (const char *var_name, char *buffer, int bufsize)
int trap_DebugPolygonCreate (int color, int numPoints, vec3_t *points)
void trap_DebugPolygonDelete (int id)
void trap_DropClient (int clientNum, const char *reason)
void trap_EA_Action (int client, int action)
void trap_EA_Attack (int client)
void trap_EA_Command (int client, char *command)
void trap_EA_Crouch (int client)
void trap_EA_DelayedJump (int client)
void trap_EA_EndRegular (int client, float thinktime)
void trap_EA_Gesture (int client)
void trap_EA_GetInput (int client, float thinktime, void *input)
void trap_EA_Jump (int client)
void trap_EA_Move (int client, vec3_t dir, float speed)
void trap_EA_MoveBack (int client)
void trap_EA_MoveDown (int client)
void trap_EA_MoveForward (int client)
void trap_EA_MoveLeft (int client)
void trap_EA_MoveRight (int client)
void trap_EA_MoveUp (int client)
void trap_EA_ResetInput (int client)
void trap_EA_Respawn (int client)
void trap_EA_Say (int client, char *str)
void trap_EA_SayTeam (int client, char *str)
void trap_EA_SelectWeapon (int client, int weapon)
void trap_EA_Talk (int client)
void trap_EA_Use (int client)
void trap_EA_View (int client, vec3_t viewangles)
int trap_EntitiesInBox (const vec3_t mins, const vec3_t maxs, int *list, int maxcount)
qboolean trap_EntityContact (const vec3_t mins, const vec3_t maxs, const gentity_t *ent)
qboolean trap_EntityContactCapsule (const vec3_t mins, const vec3_t maxs, const gentity_t *ent)
void trap_Error (const char *fmt)
void trap_FS_FCloseFile (fileHandle_t f)
int trap_FS_FOpenFile (const char *qpath, fileHandle_t *f, fsMode_t mode)
int trap_FS_GetFileList (const char *path, const char *extension, char *listbuf, int bufsize)
void trap_FS_Read (void *buffer, int len, fileHandle_t f)
int trap_FS_Seek (fileHandle_t f, long offset, int origin)
void trap_FS_Write (const void *buffer, int len, fileHandle_t f)
int trap_GeneticParentsAndChildSelection (int numranks, float *ranks, int *parent1, int *parent2, int *child)
void trap_GetConfigstring (int num, char *buffer, int bufferSize)
qboolean trap_GetEntityToken (char *buffer, int bufferSize)
void trap_GetServerinfo (char *buffer, int bufferSize)
void trap_GetUsercmd (int clientNum, usercmd_t *cmd)
void trap_GetUserinfo (int num, char *buffer, int bufferSize)
qboolean trap_InPVS (const vec3_t p1, const vec3_t p2)
qboolean trap_InPVSIgnorePortals (const vec3_t p1, const vec3_t p2)
void trap_LinkEntity (gentity_t *ent)
void trap_LocateGameData (gentity_t *gEnts, int numGEntities, int sizeofGEntity_t, playerState_t *clients, int sizeofGClient)
int trap_Milliseconds (void)
int trap_PC_FreeSource (int handle)
int trap_PC_LoadSource (const char *filename)
int trap_PC_ReadToken (int handle, pc_token_t *pc_token)
int trap_PC_SourceFileAndLine (int handle, char *filename, int *line)
int trap_PointContents (const vec3_t point, int passEntityNum)
void trap_Printf (const char *fmt)
int trap_RealTime (qtime_t *qtime)
void trap_SendConsoleCommand (int exec_when, const char *text)
void trap_SendServerCommand (int clientNum, const char *text)
void trap_SetBrushModel (gentity_t *ent, const char *name)
void trap_SetConfigstring (int num, const char *string)
void trap_SetUserinfo (int num, const char *buffer)
void trap_SnapVector (float *v)
int trap_StringContains (char *str1, char *str2, int casesensitive)
void trap_Trace (trace_t *results, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, int passEntityNum, int contentmask)
void trap_TraceCapsule (trace_t *results, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, int passEntityNum, int contentmask)
void trap_UnifyWhiteSpaces (char *string)
void trap_UnlinkEntity (gentity_t *ent)


Function Documentation

void dllEntry int(QDECL *syscallptr)(int arg,...)   ) 
 

Definition at line 34 of file g_syscalls.c.

00034                                                         {
00035     syscall = syscallptr;
00036 }

int QDECL *  syscall  )  [static]
 

int PASSFLOAT float  x  ) 
 

Definition at line 38 of file g_syscalls.c.

00038                          {
00039     float   floatTemp;
00040     floatTemp = x;
00041     return *(int *)&floatTemp;
00042 }

int trap_AAS_AlternativeRouteGoals vec3_t  start,
int  startareanum,
vec3_t  goal,
int  goalareanum,
int  travelflags,
void *  altroutegoals,
int  maxaltroutegoals,
int  type
 

Definition at line 360 of file g_syscalls.c.

References BOTLIB_AAS_ALTERNATIVE_ROUTE_GOAL, and type.

Referenced by BotSetupAlternativeRouteGoals().

00362                                                   {
00363     return syscall( BOTLIB_AAS_ALTERNATIVE_ROUTE_GOAL, start, startareanum, goal, goalareanum, travelflags, altroutegoals, maxaltroutegoals, type );
00364 }

int trap_AAS_AreaInfo int  areanum,
void *  info
 

Definition at line 314 of file g_syscalls.c.

References BOTLIB_AAS_AREA_INFO.

Referenced by BotGetActivateGoal(), and BotTestAAS().

00314                                                                              {
00315     return syscall( BOTLIB_AAS_AREA_INFO, areanum, info );
00316 }

int trap_AAS_AreaReachability int  areanum  ) 
 

Definition at line 342 of file g_syscalls.c.

References BOTLIB_AAS_AREA_REACHABILITY.

Referenced by AINode_Battle_Fight(), AINode_Battle_NBG(), AINode_Battle_Retreat(), BotAIBlocked(), BotFuncButtonActivateGoal(), BotGetActivateGoal(), BotGetLongTermGoal(), BotLongTermGoal(), and BotTriggerMultipleActivateGoal().

00342                                            {
00343     return syscall( BOTLIB_AAS_AREA_REACHABILITY, areanum );
00344 }

int trap_AAS_AreaTravelTimeToGoalArea int  areanum,
vec3_t  origin,
int  goalareanum,
int  travelflags
 

Definition at line 346 of file g_syscalls.c.

References BOTLIB_AAS_AREA_TRAVEL_TIME_TO_GOAL_AREA.

Referenced by BotAlternateRoute(), BotClientTravelTimeToGoal(), BotGetActivateGoal(), BotGetLongTermGoal(), BotMatch_WhereAreYou(), BotNearbyGoal(), BotSetLastOrderedTask(), and BotWantsToCamp().

00346                                                                                                     {
00347     return syscall( BOTLIB_AAS_AREA_TRAVEL_TIME_TO_GOAL_AREA, areanum, origin, goalareanum, travelflags );
00348 }

int trap_AAS_BBoxAreas vec3_t  absmins,
vec3_t  absmaxs,
int *  areas,
int  maxareas
 

Definition at line 310 of file g_syscalls.c.

References BOTLIB_AAS_BBOX_AREAS.

Referenced by BotGetActivateGoal().

00310                                                                                  {
00311     return syscall( BOTLIB_AAS_BBOX_AREAS, absmins, absmaxs, areas, maxareas );
00312 }

int trap_AAS_EnableRoutingArea int  areanum,
int  enable
 

Definition at line 350 of file g_syscalls.c.

References BOTLIB_AAS_ENABLE_ROUTING_AREA.

Referenced by BotEnableActivateGoalAreas().

00350                                                           {
00351     return syscall( BOTLIB_AAS_ENABLE_ROUTING_AREA, areanum, enable );
00352 }

void trap_AAS_EntityInfo int  entnum,
void *  info
 

Definition at line 280 of file g_syscalls.c.

References BOTLIB_AAS_ENTITY_INFO.

Referenced by BotEntityInfo().

00280                                                                                {
00281     syscall( BOTLIB_AAS_ENTITY_INFO, entnum, info );
00282 }

int trap_AAS_FloatForBSPEpairKey int  ent,
char *  key,
float *  value
 

Definition at line 334 of file g_syscalls.c.

References BOTLIB_AAS_FLOAT_FOR_BSP_EPAIR_KEY, and value.

Referenced by BotFuncButtonActivateGoal(), and BotGetActivateGoal().

00334                                                                    {
00335     return syscall( BOTLIB_AAS_FLOAT_FOR_BSP_EPAIR_KEY, ent, key, value );
00336 }

int trap_AAS_Initialized void   ) 
 

Definition at line 284 of file g_syscalls.c.

References BOTLIB_AAS_INITIALIZED.

Referenced by BotAISetupClient(), BotAIStartFrame(), and BotTestAAS().

00284                                {
00285     return syscall( BOTLIB_AAS_INITIALIZED );
00286 }

int trap_AAS_IntForBSPEpairKey int  ent,
char *  key,
int *  value
 

Definition at line 338 of file g_syscalls.c.

References BOTLIB_AAS_INT_FOR_BSP_EPAIR_KEY, and value.

Referenced by BotGetActivateGoal().

00338                                                                {
00339     return syscall( BOTLIB_AAS_INT_FOR_BSP_EPAIR_KEY, ent, key, value );
00340 }

int trap_AAS_NextBSPEntity int  ent  ) 
 

Definition at line 322 of file g_syscalls.c.

References BOTLIB_AAS_NEXT_BSP_ENTITY.

Referenced by BotGetActivateGoal(), BotGoalForBSPEntity(), and BotSetupDeathmatchAI().

00322                                     {
00323     return syscall( BOTLIB_AAS_NEXT_BSP_ENTITY, ent );
00324 }

int trap_AAS_PointAreaNum vec3_t  point  ) 
 

Definition at line 298 of file g_syscalls.c.

References BOTLIB_AAS_POINT_AREA_NUM, and point.

Referenced by BotPointAreaNum().

00298                                         {
00299     return syscall( BOTLIB_AAS_POINT_AREA_NUM, point );
00300 }

int trap_AAS_PointContents vec3_t  point  ) 
 

Definition at line 318 of file g_syscalls.c.

References BOTLIB_AAS_POINT_CONTENTS, and point.

Referenced by BotCheckAir(), BotEntityVisible(), BotGoForAir(), and BotInLavaOrSlime().

00318                                          {
00319     return syscall( BOTLIB_AAS_POINT_CONTENTS, point );
00320 }

int trap_AAS_PointReachabilityAreaIndex vec3_t  point  ) 
 

Definition at line 302 of file g_syscalls.c.

References BOTLIB_AAS_POINT_REACHABILITY_AREA_INDEX, and point.

00302                                                       {
00303     return syscall( BOTLIB_AAS_POINT_REACHABILITY_AREA_INDEX, point );
00304 }

int trap_AAS_PredictClientMovement void *  move,
int  entnum,
vec3_t  origin,
int  presencetype,
int  onground,
vec3_t  velocity,
vec3_t  cmdmove,
int  cmdframes,
int  maxframes,
float  frametime,
int  stopevent,
int  stopareanum,
int  visualize
 

Definition at line 370 of file g_syscalls.c.

References BOTLIB_AAS_PREDICT_CLIENT_MOVEMENT, move(), and PASSFLOAT().

Referenced by BotAimAtEnemy().

00370                                                                                                                                                                                                                                                                        {
00371     return syscall( BOTLIB_AAS_PREDICT_CLIENT_MOVEMENT, move, entnum, origin, presencetype, onground, velocity, cmdmove, cmdframes, maxframes, PASSFLOAT(frametime), stopevent, stopareanum, visualize );
00372 }

Here is the call graph for this function:

int trap_AAS_PredictRoute void *  route,
int  areanum,
vec3_t  origin,
int  goalareanum,
int  travelflags,
int  maxareas,
int  maxtime,
int  stopevent,
int  stopcontents,
int  stoptfl,
int  stopareanum
 

Definition at line 354 of file g_syscalls.c.

References BOTLIB_AAS_PREDICT_ROUTE.

Referenced by BotAIPredictObstacles().

00356                                                                                            {
00357     return syscall( BOTLIB_AAS_PREDICT_ROUTE, route, areanum, origin, goalareanum, travelflags, maxareas, maxtime, stopevent, stopcontents, stoptfl, stopareanum );
00358 }

void trap_AAS_PresenceTypeBoundingBox int  presencetype,
vec3_t  mins,
vec3_t  maxs
 

Definition at line 288 of file g_syscalls.c.

References BOTLIB_AAS_PRESENCE_TYPE_BOUNDING_BOX.

Referenced by BotFuncButtonActivateGoal(), and BotValidChatPosition().

00288                                                                                   {
00289     syscall( BOTLIB_AAS_PRESENCE_TYPE_BOUNDING_BOX, presencetype, mins, maxs );
00290 }

int trap_AAS_Swimming vec3_t  origin  ) 
 

Definition at line 366 of file g_syscalls.c.

References BOTLIB_AAS_SWIMMING.

Referenced by BotGetLongTermGoal(), and BotReachedGoal().

00366                                      {
00367     return syscall( BOTLIB_AAS_SWIMMING, origin );
00368 }

float trap_AAS_Time void   ) 
 

Definition at line 292 of file g_syscalls.c.

References BOTLIB_AAS_TIME.

Referenced by BotAIStartFrame().

00292                           {
00293     int temp;
00294     temp = syscall( BOTLIB_AAS_TIME );
00295     return (*(float*)&temp);
00296 }

int trap_AAS_TraceAreas vec3_t  start,
vec3_t  end,
int *  areas,
vec3_t points,
int  maxareas
 

Definition at line 306 of file g_syscalls.c.

References BOTLIB_AAS_TRACE_AREAS, and points.

Referenced by BotFuncButtonActivateGoal(), BotGoalForBSPEntity(), BotPointAreaNum(), and BotTriggerMultipleActivateGoal().

00306                                                                                             {
00307     return syscall( BOTLIB_AAS_TRACE_AREAS, start, end, areas, points, maxareas );
00308 }

int trap_AAS_ValueForBSPEpairKey int  ent,
char *  key,
char *  value,
int  size
 

Definition at line 326 of file g_syscalls.c.

References BOTLIB_AAS_VALUE_FOR_BSP_EPAIR_KEY, and value.

Referenced by BotFuncButtonActivateGoal(), BotFuncDoorActivateGoal(), BotGetActivateGoal(), BotGoalForBSPEntity(), BotPrintActivateGoalInfo(), BotSetupDeathmatchAI(), and BotTriggerMultipleActivateGoal().

00326                                                                             {
00327     return syscall( BOTLIB_AAS_VALUE_FOR_BSP_EPAIR_KEY, ent, key, value, size );
00328 }

int trap_AAS_VectorForBSPEpairKey int  ent,
char *  key,
vec3_t  v
 

Definition at line 330 of file g_syscalls.c.

References BOTLIB_AAS_VECTOR_FOR_BSP_EPAIR_KEY, and v.

Referenced by BotGetActivateGoal(), and BotGoalForBSPEntity().

00330                                                                 {
00331     return syscall( BOTLIB_AAS_VECTOR_FOR_BSP_EPAIR_KEY, ent, key, v );
00332 }

void trap_AdjustAreaPortalState gentity_t ent,
qboolean  open
 

Definition at line 170 of file g_syscalls.c.

References G_ADJUST_AREA_PORTAL_STATE, gentity_t, and open().

Referenced by Reached_BinaryMover(), and Use_BinaryMover().

00170                                                                  {
00171     syscall( G_ADJUST_AREA_PORTAL_STATE, ent, open );
00172 }

Here is the call graph for this function:

qboolean trap_AreasConnected int  area1,
int  area2
 

Definition at line 174 of file g_syscalls.c.

References G_AREAS_CONNECTED, and qboolean.

00174                                                      {
00175     return syscall( G_AREAS_CONNECTED, area1, area2 );
00176 }

int trap_Argc void   ) 
 

Definition at line 55 of file g_syscalls.c.

References G_ARGC.

00055                           {
00056     return syscall( G_ARGC );
00057 }

void trap_Argv int  n,
char *  buffer,
int  bufferLength
 

Definition at line 59 of file g_syscalls.c.

References buffer, G_ARGV, and n.

00059                                                            {
00060     syscall( G_ARGV, n, buffer, bufferLength );
00061 }

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

Definition at line 704 of file g_syscalls.c.

References BOTLIB_AI_ADD_AVOID_SPOT, PASSFLOAT(), and type.

Referenced by BotCheckForGrenades(), and BotCheckSnapshot().

00704                                                                                 {
00705     syscall( BOTLIB_AI_ADD_AVOID_SPOT, movestate, origin, PASSFLOAT(radius), type);
00706 }

Here is the call graph for this function:

int trap_BotAllocateClient void   ) 
 

Definition at line 198 of file g_syscalls.c.

References G_BOT_ALLOCATE_CLIENT.

Referenced by G_AddBot().

00198                                    {
00199     return syscall( G_BOT_ALLOCATE_CLIENT );
00200 }

int trap_BotAllocChatState void   ) 
 

Definition at line 502 of file g_syscalls.c.

References BOTLIB_AI_ALLOC_CHAT_STATE.

Referenced by BotAISetupClient().

00502                                  {
00503     return syscall( BOTLIB_AI_ALLOC_CHAT_STATE );
00504 }

int trap_BotAllocGoalState int  state  ) 
 

Definition at line 692 of file g_syscalls.c.

References BOTLIB_AI_ALLOC_GOAL_STATE, and state.

Referenced by BotAISetupClient().

00692                                       {
00693     return syscall( BOTLIB_AI_ALLOC_GOAL_STATE, state );
00694 }

int trap_BotAllocMoveState void   ) 
 

Definition at line 736 of file g_syscalls.c.

References BOTLIB_AI_ALLOC_MOVE_STATE.

Referenced by BotAISetupClient().

00736                                  {
00737     return syscall( BOTLIB_AI_ALLOC_MOVE_STATE );
00738 }

int trap_BotAllocWeaponState void   ) 
 

Definition at line 760 of file g_syscalls.c.

References BOTLIB_AI_ALLOC_WEAPON_STATE.

Referenced by BotAISetupClient().

00760                                    {
00761     return syscall( BOTLIB_AI_ALLOC_WEAPON_STATE );
00762 }

float trap_BotAvoidGoalTime int  goalstate,
int  number
 

Definition at line 654 of file g_syscalls.c.

References BOTLIB_AI_AVOID_GOAL_TIME, and number.

00654                                                        {
00655     int temp;
00656     temp = syscall( BOTLIB_AI_AVOID_GOAL_TIME, goalstate, number );
00657     return (*(float*)&temp);
00658 }

int trap_BotChatLength int  chatstate  ) 
 

Definition at line 538 of file g_syscalls.c.

References BOTLIB_AI_CHAT_LENGTH.

00538                                       {
00539     return syscall( BOTLIB_AI_CHAT_LENGTH, chatstate );
00540 }

int trap_BotChooseBestFightWeapon int  weaponstate,
int *  inventory
 

Definition at line 748 of file g_syscalls.c.

References BOTLIB_AI_CHOOSE_BEST_FIGHT_WEAPON.

Referenced by BotChooseWeapon().

00748                                                                    {
00749     return syscall( BOTLIB_AI_CHOOSE_BEST_FIGHT_WEAPON, weaponstate, inventory );
00750 }

int trap_BotChooseLTGItem int  goalstate,
vec3_t  origin,
int *  inventory,
int  travelflags
 

Definition at line 626 of file g_syscalls.c.

References BOTLIB_AI_CHOOSE_LTG_ITEM.

Referenced by BotGetItemLongTermGoal().

00626                                                                                          {
00627     return syscall( BOTLIB_AI_CHOOSE_LTG_ITEM, goalstate, origin, inventory, travelflags );
00628 }

int trap_BotChooseNBGItem int  goalstate,
vec3_t  origin,
int *  inventory,
int  travelflags,
void *  ltg,
float  maxtime
 

Definition at line 630 of file g_syscalls.c.

References BOTLIB_AI_CHOOSE_NBG_ITEM, and PASSFLOAT().

Referenced by BotGoForAir(), and BotNearbyGoal().

00630                                                                                                                                            {
00631     return syscall( BOTLIB_AI_CHOOSE_NBG_ITEM, goalstate, origin, inventory, travelflags, ltg, PASSFLOAT(maxtime) );
00632 }