codemp/cgame/cg_public.h File Reference

Go to the source code of this file.

Data Structures

struct  autoMapInput_t
struct  ragCallbackBoneImpact_t
struct  ragCallbackBoneInSolid_t
struct  ragCallbackBoneSnap_t
struct  ragCallbackDebugBox_t
struct  ragCallbackDebugLine_t
struct  ragCallbackTraceLine_t
struct  snapshot_t
struct  TCGCameraShake
struct  TCGG2Mark
struct  TCGGetBoltData
struct  TCGImpactMark
struct  TCGIncomingConsoleCommand
struct  TCGMiscEnt
struct  TCGPointContents
struct  TCGPositionOnBolt
struct  TCGTrace
struct  TCGVectorData

Defines

#define CMD_BACKUP   64
#define CMD_MASK   (CMD_BACKUP - 1)
#define MAX_ENTITIES_IN_SNAPSHOT   256
#define CGAME_IMPORT_API_VERSION   5
#define RAG_CALLBACK_NONE   0
#define RAG_CALLBACK_DEBUGBOX   1
#define RAG_CALLBACK_DEBUGLINE   2
#define RAG_CALLBACK_BONESNAP   3
#define RAG_CALLBACK_BONEIMPACT   4
#define RAG_CALLBACK_BONEINSOLID   5
#define RAG_CALLBACK_TRACELINE   6
#define MAX_CG_SHARED_BUFFER_SIZE   2048

Enumerations

enum  { CGAME_EVENT_NONE, CGAME_EVENT_TEAMMENU, CGAME_EVENT_SCOREBOARD, CGAME_EVENT_EDITHUD }
enum  cgameImport_t {
  CG_PRINT = 0, CG_ERROR, CG_MILLISECONDS, CG_PRECISIONTIMER_START,
  CG_PRECISIONTIMER_END, CG_CVAR_REGISTER, CG_CVAR_UPDATE, CG_CVAR_SET,
  CG_CVAR_VARIABLESTRINGBUFFER, CG_CVAR_GETHIDDENVALUE, CG_ARGC, CG_ARGV,
  CG_ARGS, CG_FS_FOPENFILE, CG_FS_READ, CG_FS_WRITE,
  CG_FS_FCLOSEFILE, CG_FS_GETFILELIST, CG_SENDCONSOLECOMMAND, CG_ADDCOMMAND,
  CG_REMOVECOMMAND, CG_SENDCLIENTCOMMAND, CG_UPDATESCREEN, CG_CM_LOADMAP,
  CG_CM_NUMINLINEMODELS, CG_CM_INLINEMODEL, CG_CM_TEMPBOXMODEL, CG_CM_TEMPCAPSULEMODEL,
  CG_CM_POINTCONTENTS, CG_CM_TRANSFORMEDPOINTCONTENTS, CG_CM_BOXTRACE, CG_CM_CAPSULETRACE,
  CG_CM_TRANSFORMEDBOXTRACE, CG_CM_TRANSFORMEDCAPSULETRACE, CG_CM_MARKFRAGMENTS, CG_S_GETVOICEVOLUME,
  CG_S_MUTESOUND, CG_S_STARTSOUND, CG_S_STARTLOCALSOUND, CG_S_CLEARLOOPINGSOUNDS,
  CG_S_ADDLOOPINGSOUND, CG_S_UPDATEENTITYPOSITION, CG_S_ADDREALLOOPINGSOUND, CG_S_STOPLOOPINGSOUND,
  CG_S_RESPATIALIZE, CG_S_SHUTUP, CG_S_REGISTERSOUND, CG_S_STARTBACKGROUNDTRACK,
  CG_S_UPDATEAMBIENTSET, CG_AS_PARSESETS, CG_AS_ADDPRECACHEENTRY, CG_S_ADDLOCALSET,
  CG_AS_GETBMODELSOUND, CG_R_LOADWORLDMAP, CG_R_REGISTERMODEL, CG_R_REGISTERSKIN,
  CG_R_REGISTERSHADER, CG_R_REGISTERSHADERNOMIP, CG_R_REGISTERFONT, CG_R_FONT_STRLENPIXELS,
  CG_R_FONT_STRLENCHARS, CG_R_FONT_STRHEIGHTPIXELS, CG_R_FONT_DRAWSTRING, CG_LANGUAGE_ISASIAN,
  CG_LANGUAGE_USESSPACES, CG_ANYLANGUAGE_READCHARFROMSTRING, CGAME_MEMSET = 100, CGAME_MEMCPY,
  CGAME_STRNCPY, CGAME_SIN, CGAME_COS, CGAME_ATAN2,
  CGAME_SQRT, CGAME_MATRIXMULTIPLY, CGAME_ANGLEVECTORS, CGAME_PERPENDICULARVECTOR,
  CGAME_FLOOR, CGAME_CEIL, CGAME_TESTPRINTINT, CGAME_TESTPRINTFLOAT,
  CGAME_ACOS, CGAME_ASIN, CG_R_CLEARSCENE = 200, CG_R_CLEARDECALS,
  CG_R_ADDREFENTITYTOSCENE, CG_R_ADDPOLYTOSCENE, CG_R_ADDPOLYSTOSCENE, CG_R_ADDDECALTOSCENE,
  CG_R_LIGHTFORPOINT, CG_R_ADDLIGHTTOSCENE, CG_R_ADDADDITIVELIGHTTOSCENE, CG_R_RENDERSCENE,
  CG_R_SETCOLOR, CG_R_DRAWSTRETCHPIC, CG_R_MODELBOUNDS, CG_R_LERPTAG,
  CG_R_DRAWROTATEPIC, CG_R_DRAWROTATEPIC2, CG_R_SETRANGEFOG, CG_R_SETREFRACTIONPROP,
  CG_R_REMAP_SHADER, CG_R_GET_LIGHT_STYLE, CG_R_SET_LIGHT_STYLE, CG_R_GET_BMODEL_VERTS,
  CG_R_GETDISTANCECULL, CG_R_GETREALRES, CG_R_AUTOMAPELEVADJ, CG_R_INITWIREFRAMEAUTO,
  CG_FX_ADDLINE, CG_GETGLCONFIG, CG_GETGAMESTATE, CG_GETCURRENTSNAPSHOTNUMBER,
  CG_GETSNAPSHOT, CG_GETDEFAULTSTATE, CG_GETSERVERCOMMAND, CG_GETCURRENTCMDNUMBER,
  CG_GETUSERCMD, CG_SETUSERCMDVALUE, CG_SETCLIENTFORCEANGLE, CG_SETCLIENTTURNEXTENT,
  CG_OPENUIMENU, CG_TESTPRINTINT, CG_TESTPRINTFLOAT, CG_MEMORY_REMAINING,
  CG_KEY_ISDOWN, CG_KEY_GETCATCHER, CG_KEY_SETCATCHER, CG_KEY_GETKEY,
  CG_PC_ADD_GLOBAL_DEFINE, CG_PC_LOAD_SOURCE, CG_PC_FREE_SOURCE, CG_PC_READ_TOKEN,
  CG_PC_SOURCE_FILE_AND_LINE, CG_PC_LOAD_GLOBAL_DEFINES, CG_PC_REMOVE_ALL_GLOBAL_DEFINES, CG_S_STOPBACKGROUNDTRACK,
  CG_REAL_TIME, CG_SNAPVECTOR, CG_CIN_PLAYCINEMATIC, CG_CIN_STOPCINEMATIC,
  CG_CIN_RUNCINEMATIC, CG_CIN_DRAWCINEMATIC, CG_CIN_SETEXTENTS, CG_GET_ENTITY_TOKEN,
  CG_R_INPVS, CG_FX_REGISTER_EFFECT, CG_FX_PLAY_EFFECT, CG_FX_PLAY_ENTITY_EFFECT,
  CG_FX_PLAY_EFFECT_ID, CG_FX_PLAY_PORTAL_EFFECT_ID, CG_FX_PLAY_ENTITY_EFFECT_ID, CG_FX_PLAY_BOLTED_EFFECT_ID,
  CG_FX_ADD_SCHEDULED_EFFECTS, CG_FX_INIT_SYSTEM, CG_FX_SET_REFDEF, CG_FX_FREE_SYSTEM,
  CG_FX_ADJUST_TIME, CG_FX_DRAW_2D_EFFECTS, CG_FX_RESET, CG_FX_ADDPOLY,
  CG_FX_ADDBEZIER, CG_FX_ADDPRIMITIVE, CG_FX_ADDSPRITE, CG_FX_ADDELECTRICITY,
  CG_SP_GETSTRINGTEXTSTRING, CG_ROFF_CLEAN, CG_ROFF_UPDATE_ENTITIES, CG_ROFF_CACHE,
  CG_ROFF_PLAY, CG_ROFF_PURGE_ENT, CG_TRUEMALLOC, CG_TRUEFREE,
  CG_G2_LISTSURFACES, CG_G2_LISTBONES, CG_G2_SETMODELS, CG_G2_HAVEWEGHOULMODELS,
  CG_G2_GETBOLT, CG_G2_GETBOLT_NOREC, CG_G2_GETBOLT_NOREC_NOROT, CG_G2_INITGHOUL2MODEL,
  CG_G2_SETSKIN, CG_G2_COLLISIONDETECT, CG_G2_COLLISIONDETECTCACHE, CG_G2_CLEANMODELS,
  CG_G2_ANGLEOVERRIDE, CG_G2_PLAYANIM, CG_G2_GETBONEANIM, CG_G2_GETBONEFRAME,
  CG_G2_GETGLANAME, CG_G2_COPYGHOUL2INSTANCE, CG_G2_COPYSPECIFICGHOUL2MODEL, CG_G2_DUPLICATEGHOUL2INSTANCE,
  CG_G2_HASGHOUL2MODELONINDEX, CG_G2_REMOVEGHOUL2MODEL, CG_G2_SKINLESSMODEL, CG_G2_GETNUMGOREMARKS,
  CG_G2_ADDSKINGORE, CG_G2_CLEARSKINGORE, CG_G2_SIZE, CG_G2_ADDBOLT,
  CG_G2_ATTACHENT, CG_G2_SETBOLTON, CG_G2_SETROOTSURFACE, CG_G2_SETSURFACEONOFF,
  CG_G2_SETNEWORIGIN, CG_G2_DOESBONEEXIST, CG_G2_GETSURFACERENDERSTATUS, CG_G2_GETTIME,
  CG_G2_SETTIME, CG_G2_ABSURDSMOOTHING, CG_G2_SETRAGDOLL, CG_G2_ANIMATEG2MODELS,
  CG_G2_RAGPCJCONSTRAINT, CG_G2_RAGPCJGRADIENTSPEED, CG_G2_RAGEFFECTORGOAL, CG_G2_GETRAGBONEPOS,
  CG_G2_RAGEFFECTORKICK, CG_G2_RAGFORCESOLVE, CG_G2_SETBONEIKSTATE, CG_G2_IKMOVE,
  CG_G2_REMOVEBONE, CG_G2_ATTACHINSTANCETOENTNUM, CG_G2_CLEARATTACHEDINSTANCE, CG_G2_CLEANENTATTACHMENTS,
  CG_G2_OVERRIDESERVER, CG_G2_GETSURFACENAME, CG_SET_SHARED_BUFFER, CG_CM_REGISTER_TERRAIN,
  CG_RMG_INIT, CG_RE_INIT_RENDERER_TERRAIN, CG_R_WEATHER_CONTENTS_OVERRIDE, CG_R_WORLDEFFECTCOMMAND,
  CG_WE_ADDWEATHERZONE
}
enum  cgameExport_t {
  CG_INIT, CG_SHUTDOWN, CG_CONSOLE_COMMAND, CG_DRAW_ACTIVE_FRAME,
  CG_CROSSHAIR_PLAYER, CG_LAST_ATTACKER, CG_KEY_EVENT, CG_MOUSE_EVENT,
  CG_EVENT_HANDLING, CG_POINT_CONTENTS, CG_GET_LERP_ORIGIN, CG_GET_LERP_DATA,
  CG_GET_GHOUL2, CG_GET_MODEL_LIST, CG_CALC_LERP_POSITIONS, CG_TRACE,
  CG_G2TRACE, CG_G2MARK, CG_RAG_CALLBACK, CG_INCOMING_CONSOLE_COMMAND,
  CG_GET_USEABLE_FORCE, CG_GET_ORIGIN, CG_GET_ANGLES, CG_GET_ORIGIN_TRAJECTORY,
  CG_GET_ANGLE_TRAJECTORY, CG_ROFF_NOTETRACK_CALLBACK, CG_IMPACT_MARK, CG_MAP_CHANGE,
  CG_AUTOMAP_INPUT, CG_MISC_ENT, CG_GET_SORTED_FORCE_POWER, CG_FX_CAMERASHAKE
}


Define Documentation

#define CGAME_IMPORT_API_VERSION   5
 

Definition at line 54 of file cg_public.h.

#define CMD_BACKUP   64
 

Definition at line 6 of file cg_public.h.

Referenced by CG_PredictPlayerState().

#define CMD_MASK   (CMD_BACKUP - 1)
 

Definition at line 7 of file cg_public.h.

#define MAX_CG_SHARED_BUFFER_SIZE   2048
 

Definition at line 593 of file cg_public.h.

#define MAX_ENTITIES_IN_SNAPSHOT   256
 

Definition at line 13 of file cg_public.h.

Referenced by CG_BuildSolidList().

#define RAG_CALLBACK_BONEIMPACT   4
 

Definition at line 566 of file cg_public.h.

#define RAG_CALLBACK_BONEINSOLID   5
 

Definition at line 573 of file cg_public.h.

#define RAG_CALLBACK_BONESNAP   3
 

Definition at line 559 of file cg_public.h.

#define RAG_CALLBACK_DEBUGBOX   1
 

Definition at line 541 of file cg_public.h.

#define RAG_CALLBACK_DEBUGLINE   2
 

Definition at line 549 of file cg_public.h.

#define RAG_CALLBACK_NONE   0
 

Definition at line 540 of file cg_public.h.

#define RAG_CALLBACK_TRACELINE   6
 

Definition at line 581 of file cg_public.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
CGAME_EVENT_NONE 
CGAME_EVENT_TEAMMENU 
CGAME_EVENT_SCOREBOARD 
CGAME_EVENT_EDITHUD 

Definition at line 38 of file cg_public.h.

enum cgameExport_t
 

Enumeration values:
CG_INIT 
CG_SHUTDOWN 
CG_CONSOLE_COMMAND 
CG_DRAW_ACTIVE_FRAME 
CG_CROSSHAIR_PLAYER 
CG_LAST_ATTACKER 
CG_KEY_EVENT 
CG_MOUSE_EVENT 
CG_EVENT_HANDLING 
CG_POINT_CONTENTS 
CG_GET_LERP_ORIGIN 
CG_GET_LERP_DATA 
CG_GET_GHOUL2 
CG_GET_MODEL_LIST 
CG_CALC_LERP_POSITIONS 
CG_TRACE 
CG_G2TRACE 
CG_G2MARK 
CG_RAG_CALLBACK 
CG_INCOMING_CONSOLE_COMMAND 
CG_GET_USEABLE_FORCE 
CG_GET_ORIGIN 
CG_GET_ANGLES 
CG_GET_ORIGIN_TRAJECTORY 
CG_GET_ANGLE_TRAJECTORY 
CG_ROFF_NOTETRACK_CALLBACK 
CG_IMPACT_MARK 
CG_MAP_CHANGE 
CG_AUTOMAP_INPUT 
CG_MISC_ENT 
CG_GET_SORTED_FORCE_POWER 
CG_FX_CAMERASHAKE 

Definition at line 352 of file cg_public.h.

00352              {
00353         CG_INIT,
00354 //      void CG_Init( int serverMessageNum, int serverCommandSequence, int clientNum )
00355         // called when the level loads or when the renderer is restarted
00356         // all media should be registered at this time
00357         // cgame will display loading status by calling SCR_Update, which
00358         // will call CG_DrawInformation during the loading process
00359         // reliableCommandSequence will be 0 on fresh loads, but higher for
00360         // demos, tourney restarts, or vid_restarts
00361 
00362         CG_SHUTDOWN,
00363 //      void (*CG_Shutdown)( void );
00364         // oportunity to flush and close any open files
00365 
00366         CG_CONSOLE_COMMAND,
00367 //      qboolean (*CG_ConsoleCommand)( void );
00368         // a console command has been issued locally that is not recognized by the
00369         // main game system.
00370         // use Cmd_Argc() / Cmd_Argv() to read the command, return qfalse if the
00371         // command is not known to the game
00372 
00373         CG_DRAW_ACTIVE_FRAME,
00374 //      void (*CG_DrawActiveFrame)( int serverTime, stereoFrame_t stereoView, qboolean demoPlayback );
00375         // Generates and draws a game scene and status information at the given time.
00376         // If demoPlayback is set, local movement prediction will not be enabled
00377 
00378         CG_CROSSHAIR_PLAYER,
00379 //      int (*CG_CrosshairPlayer)( void );
00380 
00381         CG_LAST_ATTACKER,
00382 //      int (*CG_LastAttacker)( void );
00383 
00384         CG_KEY_EVENT, 
00385 //      void    (*CG_KeyEvent)( int key, qboolean down );
00386 
00387         CG_MOUSE_EVENT,
00388 //      void    (*CG_MouseEvent)( int dx, int dy );
00389         CG_EVENT_HANDLING,
00390 //      void (*CG_EventHandling)(int type);
00391 
00392         CG_POINT_CONTENTS,
00393 //      int     CG_PointContents( const vec3_t point, int passEntityNum );
00394 
00395         CG_GET_LERP_ORIGIN,
00396 //      void CG_LerpOrigin(int num, vec3_t result);
00397 
00398         CG_GET_LERP_DATA,
00399         CG_GET_GHOUL2,
00400         CG_GET_MODEL_LIST,
00401 
00402         CG_CALC_LERP_POSITIONS,
00403 //      void CG_CalcEntityLerpPositions(int num);
00404 
00405         CG_TRACE,
00406         CG_G2TRACE,
00407 //void CG_Trace( trace_t *result, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, 
00408 //                                       int skipNumber, int mask );
00409 
00410         CG_G2MARK,
00411 
00412         CG_RAG_CALLBACK,
00413 
00414         CG_INCOMING_CONSOLE_COMMAND,
00415 
00416         CG_GET_USEABLE_FORCE,
00417 
00418         CG_GET_ORIGIN,          // int entnum, vec3_t origin
00419         CG_GET_ANGLES,          // int entnum, vec3_t angle
00420 
00421         CG_GET_ORIGIN_TRAJECTORY,               // int entnum
00422         CG_GET_ANGLE_TRAJECTORY,                // int entnum
00423 
00424         CG_ROFF_NOTETRACK_CALLBACK,             // int entnum, char *notetrack
00425 
00426         CG_IMPACT_MARK,
00427 //void CG_ImpactMark( qhandle_t markShader, const vec3_t origin, const vec3_t dir, 
00428 //                                 float orientation, float red, float green, float blue, float alpha,
00429 //                                 qboolean alphaFade, float radius, qboolean temporary )
00430 
00431         CG_MAP_CHANGE,
00432 
00433         CG_AUTOMAP_INPUT,
00434 
00435         CG_MISC_ENT, //rwwRMG - added
00436 
00437         CG_GET_SORTED_FORCE_POWER,
00438 
00439         CG_FX_CAMERASHAKE,//mcg post-gold added
00440 } cgameExport_t;

enum cgameImport_t
 

Enumeration values:
CG_PRINT 
CG_ERROR 
CG_MILLISECONDS 
CG_PRECISIONTIMER_START 
CG_PRECISIONTIMER_END 
CG_CVAR_REGISTER 
CG_CVAR_UPDATE 
CG_CVAR_SET 
CG_CVAR_VARIABLESTRINGBUFFER 
CG_CVAR_GETHIDDENVALUE 
CG_ARGC 
CG_ARGV 
CG_ARGS 
CG_FS_FOPENFILE 
CG_FS_READ 
CG_FS_WRITE 
CG_FS_FCLOSEFILE 
CG_FS_GETFILELIST 
CG_SENDCONSOLECOMMAND 
CG_ADDCOMMAND 
CG_REMOVECOMMAND 
CG_SENDCLIENTCOMMAND 
CG_UPDATESCREEN 
CG_CM_LOADMAP 
CG_CM_NUMINLINEMODELS 
CG_CM_INLINEMODEL 
CG_CM_TEMPBOXMODEL 
CG_CM_TEMPCAPSULEMODEL 
CG_CM_POINTCONTENTS 
CG_CM_TRANSFORMEDPOINTCONTENTS 
CG_CM_BOXTRACE 
CG_CM_CAPSULETRACE 
CG_CM_TRANSFORMEDBOXTRACE 
CG_CM_TRANSFORMEDCAPSULETRACE 
CG_CM_MARKFRAGMENTS 
CG_S_GETVOICEVOLUME 
CG_S_MUTESOUND 
CG_S_STARTSOUND 
CG_S_STARTLOCALSOUND 
CG_S_CLEARLOOPINGSOUNDS 
CG_S_ADDLOOPINGSOUND 
CG_S_UPDATEENTITYPOSITION 
CG_S_ADDREALLOOPINGSOUND 
CG_S_STOPLOOPINGSOUND 
CG_S_RESPATIALIZE 
CG_S_SHUTUP 
CG_S_REGISTERSOUND 
CG_S_STARTBACKGROUNDTRACK 
CG_S_UPDATEAMBIENTSET 
CG_AS_PARSESETS 
CG_AS_ADDPRECACHEENTRY 
CG_S_ADDLOCALSET 
CG_AS_GETBMODELSOUND 
CG_R_LOADWORLDMAP 
CG_R_REGISTERMODEL 
CG_R_REGISTERSKIN 
CG_R_REGISTERSHADER 
CG_R_REGISTERSHADERNOMIP 
CG_R_REGISTERFONT 
CG_R_FONT_STRLENPIXELS 
CG_R_FONT_STRLENCHARS 
CG_R_FONT_STRHEIGHTPIXELS 
CG_R_FONT_DRAWSTRING 
CG_LANGUAGE_ISASIAN 
CG_LANGUAGE_USESSPACES 
CG_ANYLANGUAGE_READCHARFROMSTRING 
CGAME_MEMSET 
CGAME_MEMCPY 
CGAME_STRNCPY 
CGAME_SIN 
CGAME_COS 
CGAME_ATAN2 
CGAME_SQRT 
CGAME_MATRIXMULTIPLY 
CGAME_ANGLEVECTORS 
CGAME_PERPENDICULARVECTOR 
CGAME_FLOOR 
CGAME_CEIL 
CGAME_TESTPRINTINT 
CGAME_TESTPRINTFLOAT 
CGAME_ACOS 
CGAME_ASIN 
CG_R_CLEARSCENE 
CG_R_CLEARDECALS 
CG_R_ADDREFENTITYTOSCENE 
CG_R_ADDPOLYTOSCENE 
CG_R_ADDPOLYSTOSCENE 
CG_R_ADDDECALTOSCENE 
CG_R_LIGHTFORPOINT 
CG_R_ADDLIGHTTOSCENE 
CG_R_ADDADDITIVELIGHTTOSCENE 
CG_R_RENDERSCENE 
CG_R_SETCOLOR 
CG_R_DRAWSTRETCHPIC 
CG_R_MODELBOUNDS 
CG_R_LERPTAG 
CG_R_DRAWROTATEPIC 
CG_R_DRAWROTATEPIC2 
CG_R_SETRANGEFOG 
CG_R_SETREFRACTIONPROP 
CG_R_REMAP_SHADER 
CG_R_GET_LIGHT_STYLE 
CG_R_SET_LIGHT_STYLE 
CG_R_GET_BMODEL_VERTS 
CG_R_GETDISTANCECULL 
CG_R_GETREALRES 
CG_R_AUTOMAPELEVADJ 
CG_R_INITWIREFRAMEAUTO 
CG_FX_ADDLINE 
CG_GETGLCONFIG 
CG_GETGAMESTATE 
CG_GETCURRENTSNAPSHOTNUMBER 
CG_GETSNAPSHOT 
CG_GETDEFAULTSTATE 
CG_GETSERVERCOMMAND 
CG_GETCURRENTCMDNUMBER 
CG_GETUSERCMD 
CG_SETUSERCMDVALUE 
CG_SETCLIENTFORCEANGLE 
CG_SETCLIENTTURNEXTENT 
CG_OPENUIMENU 
CG_TESTPRINTINT 
CG_TESTPRINTFLOAT 
CG_MEMORY_REMAINING 
CG_KEY_ISDOWN 
CG_KEY_GETCATCHER 
CG_KEY_SETCATCHER 
CG_KEY_GETKEY 
CG_PC_ADD_GLOBAL_DEFINE 
CG_PC_LOAD_SOURCE 
CG_PC_FREE_SOURCE 
CG_PC_READ_TOKEN 
CG_PC_SOURCE_FILE_AND_LINE 
CG_PC_LOAD_GLOBAL_DEFINES 
CG_PC_REMOVE_ALL_GLOBAL_DEFINES 
CG_S_STOPBACKGROUNDTRACK 
CG_REAL_TIME 
CG_SNAPVECTOR 
CG_CIN_PLAYCINEMATIC 
CG_CIN_STOPCINEMATIC 
CG_CIN_RUNCINEMATIC 
CG_CIN_DRAWCINEMATIC 
CG_CIN_SETEXTENTS 
CG_GET_ENTITY_TOKEN 
CG_R_INPVS 
CG_FX_REGISTER_EFFECT 
CG_FX_PLAY_EFFECT 
CG_FX_PLAY_ENTITY_EFFECT 
CG_FX_PLAY_EFFECT_ID 
CG_FX_PLAY_PORTAL_EFFECT_ID 
CG_FX_PLAY_ENTITY_EFFECT_ID 
CG_FX_PLAY_BOLTED_EFFECT_ID 
CG_FX_ADD_SCHEDULED_EFFECTS 
CG_FX_INIT_SYSTEM 
CG_FX_SET_REFDEF 
CG_FX_FREE_SYSTEM 
CG_FX_ADJUST_TIME 
CG_FX_DRAW_2D_EFFECTS 
CG_FX_RESET 
CG_FX_ADDPOLY 
CG_FX_ADDBEZIER 
CG_FX_ADDPRIMITIVE 
CG_FX_ADDSPRITE 
CG_FX_ADDELECTRICITY 
CG_SP_GETSTRINGTEXTSTRING 
CG_ROFF_CLEAN 
CG_ROFF_UPDATE_ENTITIES 
CG_ROFF_CACHE 
CG_ROFF_PLAY 
CG_ROFF_PURGE_ENT 
CG_TRUEMALLOC 
CG_TRUEFREE 
CG_G2_LISTSURFACES 
CG_G2_LISTBONES 
CG_G2_SETMODELS 
CG_G2_HAVEWEGHOULMODELS 
CG_G2_GETBOLT 
CG_G2_GETBOLT_NOREC 
CG_G2_GETBOLT_NOREC_NOROT 
CG_G2_INITGHOUL2MODEL 
CG_G2_SETSKIN 
CG_G2_COLLISIONDETECT 
CG_G2_COLLISIONDETECTCACHE 
CG_G2_CLEANMODELS 
CG_G2_ANGLEOVERRIDE 
CG_G2_PLAYANIM 
CG_G2_GETBONEANIM 
CG_G2_GETBONEFRAME 
CG_G2_GETGLANAME 
CG_G2_COPYGHOUL2INSTANCE 
CG_G2_COPYSPECIFICGHOUL2MODEL 
CG_G2_DUPLICATEGHOUL2INSTANCE 
CG_G2_HASGHOUL2MODELONINDEX 
CG_G2_REMOVEGHOUL2MODEL 
CG_G2_SKINLESSMODEL 
CG_G2_GETNUMGOREMARKS 
CG_G2_ADDSKINGORE 
CG_G2_CLEARSKINGORE 
CG_G2_SIZE 
CG_G2_ADDBOLT 
CG_G2_ATTACHENT 
CG_G2_SETBOLTON 
CG_G2_SETROOTSURFACE 
CG_G2_SETSURFACEONOFF 
CG_G2_SETNEWORIGIN 
CG_G2_DOESBONEEXIST 
CG_G2_GETSURFACERENDERSTATUS 
CG_G2_GETTIME 
CG_G2_SETTIME 
CG_G2_ABSURDSMOOTHING 
CG_G2_SETRAGDOLL 
CG_G2_ANIMATEG2MODELS 
CG_G2_RAGPCJCONSTRAINT 
CG_G2_RAGPCJGRADIENTSPEED 
CG_G2_RAGEFFECTORGOAL 
CG_G2_GETRAGBONEPOS 
CG_G2_RAGEFFECTORKICK 
CG_G2_RAGFORCESOLVE 
CG_G2_SETBONEIKSTATE 
CG_G2_IKMOVE 
CG_G2_REMOVEBONE 
CG_G2_ATTACHINSTANCETOENTNUM 
CG_G2_CLEARATTACHEDINSTANCE 
CG_G2_CLEANENTATTACHMENTS 
CG_G2_OVERRIDESERVER 
CG_G2_GETSURFACENAME 
CG_SET_SHARED_BUFFER 
CG_CM_REGISTER_TERRAIN 
CG_RMG_INIT 
CG_RE_INIT_RENDERER_TERRAIN 
CG_R_WEATHER_CONTENTS_OVERRIDE 
CG_R_WORLDEFFECTCOMMAND 
CG_WE_ADDWEATHERZONE 

Definition at line 56 of file cg_public.h.

00056              {
00057         CG_PRINT = 0,
00058         CG_ERROR,
00059         CG_MILLISECONDS,
00060 
00061         //Also for profiling.. do not use for game related tasks.
00062         CG_PRECISIONTIMER_START,
00063         CG_PRECISIONTIMER_END,
00064 
00065         CG_CVAR_REGISTER,
00066         CG_CVAR_UPDATE,
00067         CG_CVAR_SET,
00068         CG_CVAR_VARIABLESTRINGBUFFER,
00069         CG_CVAR_GETHIDDENVALUE,
00070         CG_ARGC,
00071         CG_ARGV,
00072         CG_ARGS,
00073         CG_FS_FOPENFILE,
00074         CG_FS_READ,
00075         CG_FS_WRITE,
00076         CG_FS_FCLOSEFILE,
00077         CG_FS_GETFILELIST,
00078         CG_SENDCONSOLECOMMAND,
00079         CG_ADDCOMMAND,
00080         CG_REMOVECOMMAND,
00081         CG_SENDCLIENTCOMMAND,
00082         CG_UPDATESCREEN,
00083         CG_CM_LOADMAP,
00084         CG_CM_NUMINLINEMODELS,
00085         CG_CM_INLINEMODEL,
00086         CG_CM_TEMPBOXMODEL,
00087         CG_CM_TEMPCAPSULEMODEL,
00088         CG_CM_POINTCONTENTS,
00089         CG_CM_TRANSFORMEDPOINTCONTENTS,
00090         CG_CM_BOXTRACE,
00091         CG_CM_CAPSULETRACE,
00092         CG_CM_TRANSFORMEDBOXTRACE,
00093         CG_CM_TRANSFORMEDCAPSULETRACE,
00094         CG_CM_MARKFRAGMENTS,
00095         CG_S_GETVOICEVOLUME,
00096         CG_S_MUTESOUND,
00097         CG_S_STARTSOUND,
00098         CG_S_STARTLOCALSOUND,
00099         CG_S_CLEARLOOPINGSOUNDS,
00100         CG_S_ADDLOOPINGSOUND,
00101         CG_S_UPDATEENTITYPOSITION,
00102         CG_S_ADDREALLOOPINGSOUND,
00103         CG_S_STOPLOOPINGSOUND,
00104         CG_S_RESPATIALIZE,
00105         CG_S_SHUTUP,
00106         CG_S_REGISTERSOUND,
00107         CG_S_STARTBACKGROUNDTRACK,
00108 
00109         //rww - AS trap implem
00110         CG_S_UPDATEAMBIENTSET,
00111         CG_AS_PARSESETS,
00112         CG_AS_ADDPRECACHEENTRY,
00113         CG_S_ADDLOCALSET,
00114         CG_AS_GETBMODELSOUND,
00115 
00116         CG_R_LOADWORLDMAP,
00117         CG_R_REGISTERMODEL,
00118         CG_R_REGISTERSKIN,
00119         CG_R_REGISTERSHADER,
00120         CG_R_REGISTERSHADERNOMIP,
00121         CG_R_REGISTERFONT,
00122         CG_R_FONT_STRLENPIXELS,
00123         CG_R_FONT_STRLENCHARS,
00124         CG_R_FONT_STRHEIGHTPIXELS,
00125         CG_R_FONT_DRAWSTRING,
00126         CG_LANGUAGE_ISASIAN,
00127         CG_LANGUAGE_USESSPACES,
00128         CG_ANYLANGUAGE_READCHARFROMSTRING,
00129 
00130         CGAME_MEMSET = 100,
00131         CGAME_MEMCPY,
00132         CGAME_STRNCPY,
00133         CGAME_SIN,
00134         CGAME_COS,
00135         CGAME_ATAN2,
00136         CGAME_SQRT,
00137         CGAME_MATRIXMULTIPLY,
00138         CGAME_ANGLEVECTORS,
00139         CGAME_PERPENDICULARVECTOR,
00140         CGAME_FLOOR,
00141         CGAME_CEIL,
00142 
00143         CGAME_TESTPRINTINT,
00144         CGAME_TESTPRINTFLOAT,
00145 
00146         CGAME_ACOS,
00147         CGAME_ASIN,
00148 
00149         CG_R_CLEARSCENE = 200,
00150         CG_R_CLEARDECALS,
00151         CG_R_ADDREFENTITYTOSCENE,
00152         CG_R_ADDPOLYTOSCENE,
00153         CG_R_ADDPOLYSTOSCENE,
00154         CG_R_ADDDECALTOSCENE,
00155         CG_R_LIGHTFORPOINT,
00156         CG_R_ADDLIGHTTOSCENE,
00157         CG_R_ADDADDITIVELIGHTTOSCENE,
00158         CG_R_RENDERSCENE,
00159         CG_R_SETCOLOR,
00160         CG_R_DRAWSTRETCHPIC,
00161         CG_R_MODELBOUNDS,
00162         CG_R_LERPTAG,
00163         CG_R_DRAWROTATEPIC,
00164         CG_R_DRAWROTATEPIC2,
00165         CG_R_SETRANGEFOG, //linear fogging, with settable range -rww
00166         CG_R_SETREFRACTIONPROP, //set some properties for the draw layer for my refractive effect (here primarily for mod authors) -rww
00167         CG_R_REMAP_SHADER,
00168         CG_R_GET_LIGHT_STYLE,
00169         CG_R_SET_LIGHT_STYLE,
00170         CG_R_GET_BMODEL_VERTS,
00171         CG_R_GETDISTANCECULL,
00172 
00173         CG_R_GETREALRES,
00174         CG_R_AUTOMAPELEVADJ,
00175         CG_R_INITWIREFRAMEAUTO,
00176 
00177         CG_FX_ADDLINE,
00178 
00179         CG_GETGLCONFIG,
00180         CG_GETGAMESTATE,
00181         CG_GETCURRENTSNAPSHOTNUMBER,
00182         CG_GETSNAPSHOT,
00183         CG_GETDEFAULTSTATE,
00184         CG_GETSERVERCOMMAND,
00185         CG_GETCURRENTCMDNUMBER,
00186         CG_GETUSERCMD,
00187         CG_SETUSERCMDVALUE,
00188         CG_SETCLIENTFORCEANGLE,
00189         CG_SETCLIENTTURNEXTENT,
00190         CG_OPENUIMENU,
00191         CG_TESTPRINTINT,
00192         CG_TESTPRINTFLOAT,
00193         CG_MEMORY_REMAINING,
00194         CG_KEY_ISDOWN,
00195         CG_KEY_GETCATCHER,
00196         CG_KEY_SETCATCHER,
00197         CG_KEY_GETKEY,
00198 
00199         CG_PC_ADD_GLOBAL_DEFINE,
00200         CG_PC_LOAD_SOURCE,
00201         CG_PC_FREE_SOURCE,
00202         CG_PC_READ_TOKEN,
00203         CG_PC_SOURCE_FILE_AND_LINE,
00204         CG_PC_LOAD_GLOBAL_DEFINES,
00205         CG_PC_REMOVE_ALL_GLOBAL_DEFINES,
00206 
00207         CG_S_STOPBACKGROUNDTRACK,
00208         CG_REAL_TIME,
00209         CG_SNAPVECTOR,
00210         CG_CIN_PLAYCINEMATIC,
00211         CG_CIN_STOPCINEMATIC,
00212         CG_CIN_RUNCINEMATIC,
00213         CG_CIN_DRAWCINEMATIC,
00214         CG_CIN_SETEXTENTS,
00215 
00216         CG_GET_ENTITY_TOKEN,
00217         CG_R_INPVS,
00218 
00219         CG_FX_REGISTER_EFFECT,
00220         CG_FX_PLAY_EFFECT,
00221         CG_FX_PLAY_ENTITY_EFFECT,
00222         CG_FX_PLAY_EFFECT_ID,
00223         CG_FX_PLAY_PORTAL_EFFECT_ID,
00224         CG_FX_PLAY_ENTITY_EFFECT_ID,
00225         CG_FX_PLAY_BOLTED_EFFECT_ID,
00226         CG_FX_ADD_SCHEDULED_EFFECTS,
00227         CG_FX_INIT_SYSTEM,
00228         CG_FX_SET_REFDEF,
00229         CG_FX_FREE_SYSTEM,
00230         CG_FX_ADJUST_TIME,
00231         CG_FX_DRAW_2D_EFFECTS,
00232         CG_FX_RESET,
00233         CG_FX_ADDPOLY,
00234         CG_FX_ADDBEZIER,
00235         CG_FX_ADDPRIMITIVE,
00236         CG_FX_ADDSPRITE,
00237         CG_FX_ADDELECTRICITY,
00238 
00239 //      CG_SP_PRINT,
00240         CG_SP_GETSTRINGTEXTSTRING,
00241 
00242         CG_ROFF_CLEAN,
00243         CG_ROFF_UPDATE_ENTITIES,
00244         CG_ROFF_CACHE,
00245         CG_ROFF_PLAY,
00246         CG_ROFF_PURGE_ENT,
00247 
00248 
00249         //rww - dynamic vm memory allocation!
00250         CG_TRUEMALLOC,
00251         CG_TRUEFREE,
00252 
00253 /*
00254 Ghoul2 Insert Start
00255 */
00256         CG_G2_LISTSURFACES,
00257         CG_G2_LISTBONES,
00258         CG_G2_SETMODELS,
00259         CG_G2_HAVEWEGHOULMODELS,
00260         CG_G2_GETBOLT,
00261         CG_G2_GETBOLT_NOREC,
00262         CG_G2_GETBOLT_NOREC_NOROT,
00263         CG_G2_INITGHOUL2MODEL,
00264         CG_G2_SETSKIN,
00265         CG_G2_COLLISIONDETECT,
00266         CG_G2_COLLISIONDETECTCACHE,
00267         CG_G2_CLEANMODELS,
00268         CG_G2_ANGLEOVERRIDE,
00269         CG_G2_PLAYANIM,
00270         CG_G2_GETBONEANIM,
00271         CG_G2_GETBONEFRAME, //trimmed down version of GBA, so I don't have to pass all those unused args across the VM-exe border
00272         CG_G2_GETGLANAME,
00273         CG_G2_COPYGHOUL2INSTANCE,
00274         CG_G2_COPYSPECIFICGHOUL2MODEL,
00275         CG_G2_DUPLICATEGHOUL2INSTANCE,
00276         CG_G2_HASGHOUL2MODELONINDEX,
00277         CG_G2_REMOVEGHOUL2MODEL,
00278         CG_G2_SKINLESSMODEL,
00279         CG_G2_GETNUMGOREMARKS,
00280         CG_G2_ADDSKINGORE,
00281         CG_G2_CLEARSKINGORE,
00282         CG_G2_SIZE,
00283         CG_G2_ADDBOLT,
00284         CG_G2_ATTACHENT,
00285         CG_G2_SETBOLTON,
00286         CG_G2_SETROOTSURFACE,
00287         CG_G2_SETSURFACEONOFF,
00288         CG_G2_SETNEWORIGIN,
00289         CG_G2_DOESBONEEXIST,
00290         CG_G2_GETSURFACERENDERSTATUS,
00291 
00292         CG_G2_GETTIME,
00293         CG_G2_SETTIME,
00294 
00295         CG_G2_ABSURDSMOOTHING,
00296 
00297 /*
00298         //rww - RAGDOLL_BEGIN
00299 */
00300         CG_G2_SETRAGDOLL,
00301         CG_G2_ANIMATEG2MODELS,
00302 /*
00303         //rww - RAGDOLL_END
00304 */
00305 
00306         //additional ragdoll options -rww
00307         CG_G2_RAGPCJCONSTRAINT,
00308         CG_G2_RAGPCJGRADIENTSPEED,
00309         CG_G2_RAGEFFECTORGOAL,
00310         CG_G2_GETRAGBONEPOS,
00311         CG_G2_RAGEFFECTORKICK,
00312         CG_G2_RAGFORCESOLVE,
00313 
00314         //rww - ik move method, allows you to specify a bone and move it to a world point (within joint constraints)
00315         //by using the majority of gil's existing bone angling stuff from the ragdoll code.
00316         CG_G2_SETBONEIKSTATE,
00317         CG_G2_IKMOVE,
00318 
00319         CG_G2_REMOVEBONE,
00320 
00321         CG_G2_ATTACHINSTANCETOENTNUM,
00322         CG_G2_CLEARATTACHEDINSTANCE,
00323         CG_G2_CLEANENTATTACHMENTS,
00324         CG_G2_OVERRIDESERVER,
00325 
00326         CG_G2_GETSURFACENAME,
00327 
00328         CG_SET_SHARED_BUFFER,
00329 
00330         CG_CM_REGISTER_TERRAIN,
00331         CG_RMG_INIT,
00332         CG_RE_INIT_RENDERER_TERRAIN,
00333         CG_R_WEATHER_CONTENTS_OVERRIDE,
00334         CG_R_WORLDEFFECTCOMMAND,
00335         //Adding trap to get weather working
00336         CG_WE_ADDWEATHERZONE
00337 
00338 /*
00339 Ghoul2 Insert End
00340 */
00341 } cgameImport_t;