codemp/cgame/cg_syscalls.c File Reference

#include "cg_local.h"
#include "../namespace_begin.h"
#include "../namespace_end.h"

Go to the source code of this file.

Functions

void dllEntry (int(QDECL *syscallptr)(int arg,...))
int PASSFLOAT (float x)
void trap_Print (const char *fmt)
void trap_Error (const char *fmt)
int trap_Milliseconds (void)
void trap_PrecisionTimer_Start (void **theNewTimer)
int trap_PrecisionTimer_End (void *theTimer)
void trap_Cvar_Register (vmCvar_t *vmCvar, const char *varName, const char *defaultValue, int flags)
void trap_Cvar_Update (vmCvar_t *vmCvar)
void trap_Cvar_Set (const char *var_name, const char *value)
void trap_Cvar_VariableStringBuffer (const char *var_name, char *buffer, int bufsize)
int trap_Cvar_GetHiddenVarValue (const char *name)
int trap_Argc (void)
void trap_Argv (int n, char *buffer, int bufferLength)
void trap_Args (char *buffer, int bufferLength)
int trap_FS_FOpenFile (const char *qpath, fileHandle_t *f, fsMode_t mode)
void trap_FS_Read (void *buffer, int len, fileHandle_t f)
void trap_FS_Write (const void *buffer, int len, fileHandle_t f)
void trap_FS_FCloseFile (fileHandle_t f)
int trap_FS_GetFileList (const char *path, const char *extension, char *listbuf, int bufsize)
void trap_SendConsoleCommand (const char *text)
void trap_AddCommand (const char *cmdName)
void trap_RemoveCommand (const char *cmdName)
void trap_SendClientCommand (const char *s)
void trap_UpdateScreen (void)
void trap_CM_LoadMap (const char *mapname, qboolean SubBSP)
int trap_CM_NumInlineModels (void)
clipHandle_t trap_CM_InlineModel (int index)
clipHandle_t trap_CM_TempBoxModel (const vec3_t mins, const vec3_t maxs)
clipHandle_t trap_CM_TempCapsuleModel (const vec3_t mins, const vec3_t maxs)
int trap_CM_PointContents (const vec3_t p, clipHandle_t model)
int trap_CM_TransformedPointContents (const vec3_t p, clipHandle_t model, const vec3_t origin, const vec3_t angles)
void trap_CM_BoxTrace (trace_t *results, const vec3_t start, const vec3_t end, const vec3_t mins, const vec3_t maxs, clipHandle_t model, int brushmask)
void trap_CM_CapsuleTrace (trace_t *results, const vec3_t start, const vec3_t end, const vec3_t mins, const vec3_t maxs, clipHandle_t model, int brushmask)
void trap_CM_TransformedBoxTrace (trace_t *results, const vec3_t start, const vec3_t end, const vec3_t mins, const vec3_t maxs, clipHandle_t model, int brushmask, const vec3_t origin, const vec3_t angles)
void trap_CM_TransformedCapsuleTrace (trace_t *results, const vec3_t start, const vec3_t end, const vec3_t mins, const vec3_t maxs, clipHandle_t model, int brushmask, const vec3_t origin, const vec3_t angles)
int trap_CM_MarkFragments (int numPoints, const vec3_t *points, const vec3_t projection, int maxPoints, vec3_t pointBuffer, int maxFragments, markFragment_t *fragmentBuffer)
int trap_S_GetVoiceVolume (int entityNum)
void trap_S_MuteSound (int entityNum, int entchannel)
void trap_S_StartSound (vec3_t origin, int entityNum, int entchannel, sfxHandle_t sfx)
void trap_S_StartLocalSound (sfxHandle_t sfx, int channelNum)
void trap_S_ClearLoopingSounds (void)
void trap_S_AddLoopingSound (int entityNum, const vec3_t origin, const vec3_t velocity, sfxHandle_t sfx)
void trap_S_UpdateEntityPosition (int entityNum, const vec3_t origin)
void trap_S_AddRealLoopingSound (int entityNum, const vec3_t origin, const vec3_t velocity, sfxHandle_t sfx)
void trap_S_StopLoopingSound (int entityNum)
void trap_S_Respatialize (int entityNum, const vec3_t origin, vec3_t axis[3], int inwater)
void trap_S_ShutUp (qboolean shutUpFactor)
sfxHandle_t trap_S_RegisterSound (const char *sample)
void trap_S_StartBackgroundTrack (const char *intro, const char *loop, qboolean bReturnWithoutStarting)
void trap_S_UpdateAmbientSet (const char *name, vec3_t origin)
void trap_AS_ParseSets (void)
void trap_AS_AddPrecacheEntry (const char *name)
int trap_S_AddLocalSet (const char *name, vec3_t listener_origin, vec3_t origin, int entID, int time)
sfxHandle_t trap_AS_GetBModelSound (const char *name, int stage)
void trap_R_LoadWorldMap (const char *mapname)
qhandle_t trap_R_RegisterModel (const char *name)
qhandle_t trap_R_RegisterSkin (const char *name)
qhandle_t trap_R_RegisterShader (const char *name)
qhandle_t trap_R_RegisterShaderNoMip (const char *name)
qhandle_t trap_R_RegisterFont (const char *fontName)
int trap_R_Font_StrLenPixels (const char *text, const int iFontIndex, const float scale)
int trap_R_Font_StrLenChars (const char *text)
int trap_R_Font_HeightPixels (const int iFontIndex, const float scale)
void trap_R_Font_DrawString (int ox, int oy, const char *text, const float *rgba, const int setIndex, int iCharLimit, const float scale)
qboolean trap_Language_IsAsian (void)
qboolean trap_Language_UsesSpaces (void)
unsigned int trap_AnyLanguage_ReadCharFromString (const char *psText, int *piAdvanceCount, qboolean *pbIsTrailingPunctuation)
void trap_R_ClearScene (void)
void trap_R_ClearDecals (void)
void trap_R_AddRefEntityToScene (const refEntity_t *re)
void trap_R_AddPolyToScene (qhandle_t hShader, int numVerts, const polyVert_t *verts)
void trap_R_AddPolysToScene (qhandle_t hShader, int numVerts, const polyVert_t *verts, int num)
void trap_R_AddDecalToScene (qhandle_t shader, const vec3_t origin, const vec3_t dir, float orientation, float r, float g, float b, float a, qboolean alphaFade, float radius, qboolean temporary)
int trap_R_LightForPoint (vec3_t point, vec3_t ambientLight, vec3_t directedLight, vec3_t lightDir)
void trap_R_AddLightToScene (const vec3_t org, float intensity, float r, float g, float b)
void trap_R_AddAdditiveLightToScene (const vec3_t org, float intensity, float r, float g, float b)
void trap_R_RenderScene (const refdef_t *fd)
void trap_R_SetColor (const float *rgba)
void trap_R_DrawStretchPic (float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader)
void trap_R_ModelBounds (clipHandle_t model, vec3_t mins, vec3_t maxs)
int trap_R_LerpTag (orientation_t *tag, clipHandle_t mod, int startFrame, int endFrame, float frac, const char *tagName)
void trap_R_DrawRotatePic (float x, float y, float w, float h, float s1, float t1, float s2, float t2, float a, qhandle_t hShader)
void trap_R_DrawRotatePic2 (float x, float y, float w, float h, float s1, float t1, float s2, float t2, float a, qhandle_t hShader)
void trap_R_SetRangeFog (float range)
void trap_R_SetRefractProp (float alpha, float stretch, qboolean prepost, qboolean negate)
void trap_R_RemapShader (const char *oldShader, const char *newShader, const char *timeOffset)
void trap_R_GetLightStyle (int style, color4ub_t color)
void trap_R_SetLightStyle (int style, int color)
void trap_R_GetBModelVerts (int bmodelIndex, vec3_t *verts, vec3_t normal)
void trap_R_GetDistanceCull (float *f)
void trap_R_GetRealRes (int *w, int *h)
void trap_R_AutomapElevAdj (float newHeight)
qboolean trap_R_InitWireframeAutomap (void)
void trap_FX_AddLine (const vec3_t start, const vec3_t end, float size1, float size2, float sizeParm, float alpha1, float alpha2, float alphaParm, const vec3_t sRGB, const vec3_t eRGB, float rgbParm, int killTime, qhandle_t shader, int flags)
void trap_GetGlconfig (glconfig_t *glconfig)
void trap_GetGameState (gameState_t *gamestate)
void trap_GetCurrentSnapshotNumber (int *snapshotNumber, int *serverTime)
qboolean trap_GetSnapshot (int snapshotNumber, snapshot_t *snapshot)
qboolean trap_GetDefaultState (int entityIndex, entityState_t *state)
qboolean trap_GetServerCommand (int serverCommandNumber)
int trap_GetCurrentCmdNumber (void)
qboolean trap_GetUserCmd (int cmdNumber, usercmd_t *ucmd)
void trap_SetUserCmdValue (int stateValue, float sensitivityScale, float mPitchOverride, float mYawOverride, float mSensitivityOverride, int fpSel, int invenSel, qboolean fighterControls)
void trap_SetClientForceAngle (int time, vec3_t angle)
void trap_SetClientTurnExtent (float turnAdd, float turnSub, int turnTime)
void trap_OpenUIMenu (int menuID)
void testPrintInt (char *string, int i)
void testPrintFloat (char *string, float f)
int trap_MemoryRemaining (void)
qboolean trap_Key_IsDown (int keynum)
int trap_Key_GetCatcher (void)
void trap_Key_SetCatcher (int catcher)
int trap_Key_GetKey (const char *binding)
int trap_PC_AddGlobalDefine (char *define)
int trap_PC_LoadSource (const char *filename)
int trap_PC_FreeSource (int handle)
int trap_PC_ReadToken (int handle, pc_token_t *pc_token)
int trap_PC_SourceFileAndLine (int handle, char *filename, int *line)
int trap_PC_LoadGlobalDefines (const char *filename)
void trap_PC_RemoveAllGlobalDefines (void)
void trap_S_StopBackgroundTrack (void)
int trap_RealTime (qtime_t *qtime)
void trap_SnapVector (float *v)
int trap_CIN_PlayCinematic (const char *arg0, int xpos, int ypos, int width, int height, int bits)
e_status trap_CIN_StopCinematic (int handle)
e_status trap_CIN_RunCinematic (int handle)
void trap_CIN_DrawCinematic (int handle)
void trap_CIN_SetExtents (int handle, int x, int y, int w, int h)
qboolean trap_GetEntityToken (char *buffer, int bufferSize)
qboolean trap_R_inPVS (const vec3_t p1, const vec3_t p2, byte *mask)
int trap_FX_RegisterEffect (const char *file)
void trap_FX_PlayEffect (const char *file, vec3_t org, vec3_t fwd, int vol, int rad)
void trap_FX_PlayEntityEffect (const char *file, vec3_t org, vec3_t axis[3], const int boltInfo, const int entNum, int vol, int rad)
void trap_FX_PlayEffectID (int id, vec3_t org, vec3_t fwd, int vol, int rad)
void trap_FX_PlayPortalEffectID (int id, vec3_t org, vec3_t fwd, int vol, int rad)
void trap_FX_PlayEntityEffectID (int id, vec3_t org, vec3_t axis[3], const int boltInfo, const int entNum, int vol, int rad)
void trap_FX_PlayBoltedEffectID (int id, vec3_t org, void *ghoul2, const int boltNum, const int entNum, const int modelNum, int iLooptime, qboolean isRelative)
void trap_FX_AddScheduledEffects (qboolean skyPortal)
void trap_FX_Draw2DEffects (float screenXScale, float screenYScale)
int trap_FX_InitSystem (refdef_t *refdef)
void trap_FX_SetRefDef (refdef_t *refdef)
qboolean trap_FX_FreeSystem (void)
void trap_FX_Reset (void)
void trap_FX_AdjustTime (int time)
void trap_FX_AddPoly (addpolyArgStruct_t *p)
void trap_FX_AddBezier (addbezierArgStruct_t *p)
void trap_FX_AddPrimitive (effectTrailArgStruct_t *p)
void trap_FX_AddSprite (addspriteArgStruct_t *p)
void trap_FX_AddElectricity (addElectricityArgStruct_t *p)
int trap_SP_GetStringTextString (const char *text, char *buffer, int bufferLength)
qboolean trap_ROFF_Clean (void)
void trap_ROFF_UpdateEntities (void)
int trap_ROFF_Cache (char *file)
qboolean trap_ROFF_Play (int entID, int roffID, qboolean doTranslation)
qboolean trap_ROFF_Purge_Ent (int entID)
void trap_TrueMalloc (void **ptr, int size)
void trap_TrueFree (void **ptr)
void trap_G2_ListModelSurfaces (void *ghlInfo)
void trap_G2_ListModelBones (void *ghlInfo, int frame)
void trap_G2_SetGhoul2ModelIndexes (void *ghoul2, qhandle_t *modelList, qhandle_t *skinList)
qboolean trap_G2_HaveWeGhoul2Models (void *ghoul2)
qboolean trap_G2API_GetBoltMatrix (void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix, const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale)
qboolean trap_G2API_GetBoltMatrix_NoReconstruct (void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix, const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale)
qboolean trap_G2API_GetBoltMatrix_NoRecNoRot (void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix, const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale)
int trap_G2API_InitGhoul2Model (void **ghoul2Ptr, const char *fileName, int modelIndex, qhandle_t customSkin, qhandle_t customShader, int modelFlags, int lodBias)
qboolean trap_G2API_SetSkin (void *ghoul2, int modelIndex, qhandle_t customSkin, qhandle_t renderSkin)
void trap_G2API_CollisionDetect (CollisionRecord_t *collRecMap, void *ghoul2, const vec3_t angles, const vec3_t position, int frameNumber, int entNum, const vec3_t rayStart, const vec3_t rayEnd, const vec3_t scale, int traceFlags, int useLod, float fRadius)
void trap_G2API_CollisionDetectCache (CollisionRecord_t *collRecMap, void *ghoul2, const vec3_t angles, const vec3_t position, int frameNumber, int entNum, const vec3_t rayStart, const vec3_t rayEnd, const vec3_t scale, int traceFlags, int useLod, float fRadius)
void trap_G2API_CleanGhoul2Models (void **ghoul2Ptr)
qboolean trap_G2API_SetBoneAngles (void *ghoul2, int modelIndex, const char *boneName, const vec3_t angles, const int flags, const int up, const int right, const int forward, qhandle_t *modelList, int blendTime, int currentTime)
qboolean trap_G2API_SetBoneAnim (void *ghoul2, const int modelIndex, const char *boneName, const int startFrame, const int endFrame, const int flags, const float animSpeed, const int currentTime, const float setFrame, const int blendTime)
qboolean trap_G2API_GetBoneAnim (void *ghoul2, const char *boneName, const int currentTime, float *currentFrame, int *startFrame, int *endFrame, int *flags, float *animSpeed, int *modelList, const int modelIndex)
qboolean trap_G2API_GetBoneFrame (void *ghoul2, const char *boneName, const int currentTime, float *currentFrame, int *modelList, const int modelIndex)
void trap_G2API_GetGLAName (void *ghoul2, int modelIndex, char *fillBuf)
int trap_G2API_CopyGhoul2Instance (void *g2From, void *g2To, int modelIndex)
void trap_G2API_CopySpecificGhoul2Model (void *g2From, int modelFrom, void *g2To, int modelTo)
void trap_G2API_DuplicateGhoul2Instance (void *g2From, void **g2To)
qboolean trap_G2API_HasGhoul2ModelOnIndex (void *ghlInfo, int modelIndex)
qboolean trap_G2API_RemoveGhoul2Model (void *ghlInfo, int modelIndex)
qboolean trap_G2API_SkinlessModel (void *ghlInfo, int modelIndex)
int trap_G2API_GetNumGoreMarks (void *ghlInfo, int modelIndex)
void trap_G2API_AddSkinGore (void *ghlInfo, SSkinGoreData *gore)
void trap_G2API_ClearSkinGore (void *ghlInfo)
int trap_G2API_Ghoul2Size (void *ghlInfo)
int trap_G2API_AddBolt (void *ghoul2, int modelIndex, const char *boneName)
qboolean trap_G2API_AttachEnt (int *boltInfo, void *ghlInfoTo, int toBoltIndex, int entNum, int toModelNum)
void trap_G2API_SetBoltInfo (void *ghoul2, int modelIndex, int boltInfo)
qboolean trap_G2API_SetRootSurface (void *ghoul2, const int modelIndex, const char *surfaceName)
qboolean trap_G2API_SetSurfaceOnOff (void *ghoul2, const char *surfaceName, const int flags)
qboolean trap_G2API_SetNewOrigin (void *ghoul2, const int boltIndex)
qboolean trap_G2API_DoesBoneExist (void *ghoul2, int modelIndex, const char *boneName)
int trap_G2API_GetSurfaceRenderStatus (void *ghoul2, const int modelIndex, const char *surfaceName)
int trap_G2API_GetTime (void)
void trap_G2API_SetTime (int time, int clock)
void trap_G2API_AbsurdSmoothing (void *ghoul2, qboolean status)
void trap_G2API_SetRagDoll (void *ghoul2, sharedRagDollParams_t *params)
void trap_G2API_AnimateG2Models (void *ghoul2, int time, sharedRagDollUpdateParams_t *params)
qboolean trap_G2API_RagPCJConstraint (void *ghoul2, const char *boneName, vec3_t min, vec3_t max)
qboolean trap_G2API_RagPCJGradientSpeed (void *ghoul2, const char *boneName, const float speed)
qboolean trap_G2API_RagEffectorGoal (void *ghoul2, const char *boneName, vec3_t pos)
qboolean trap_G2API_GetRagBonePos (void *ghoul2, const char *boneName, vec3_t pos, vec3_t entAngles, vec3_t entPos, vec3_t entScale)
qboolean trap_G2API_RagEffectorKick (void *ghoul2, const char *boneName, vec3_t velocity)
qboolean trap_G2API_RagForceSolve (void *ghoul2, qboolean force)
qboolean trap_G2API_SetBoneIKState (void *ghoul2, int time, const char *boneName, int ikState, sharedSetBoneIKStateParams_t *params)
qboolean trap_G2API_IKMove (void *ghoul2, int time, sharedIKMoveParams_t *params)
qboolean trap_G2API_RemoveBone (void *ghoul2, const char *boneName, int modelIndex)
void trap_G2API_AttachInstanceToEntNum (void *ghoul2, int entityNum, qboolean server)
void trap_G2API_ClearAttachedInstance (int entityNum)
void trap_G2API_CleanEntAttachments (void)
qboolean trap_G2API_OverrideServer (void *serverInstance)
void trap_G2API_GetSurfaceName (void *ghoul2, int surfNumber, int modelIndex, char *fillBuf)
void trap_CG_RegisterSharedMemory (char *memory)
int trap_CM_RegisterTerrain (const char *config)
void trap_RMG_Init (int terrainID, const char *terrainInfo)
void trap_RE_InitRendererTerrain (const char *info)
void trap_R_WeatherContentsOverride (int contents)
void trap_R_WorldEffectCommand (const char *cmd)
void trap_WE_AddWeatherZone (const vec3_t mins, const vec3_t maxs)


Function Documentation

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

Definition at line 10 of file cg_syscalls.c.

00010                                                          {
00011         syscall = syscallptr;
00012 }

int PASSFLOAT float  x  ) 
 

Definition at line 15 of file cg_syscalls.c.

00015                          {
00016         float   floatTemp;
00017         floatTemp = x;
00018         return *(int *)&floatTemp;
00019 }

void testPrintFloat char *  string,
float  f
 

Definition at line 517 of file cg_syscalls.c.

References CG_TESTPRINTFLOAT, and PASSFLOAT().

00517                                                         {
00518         syscall( CG_TESTPRINTFLOAT, string, PASSFLOAT(f) );
00519 }

void testPrintInt char *  string,
int  i
 

Definition at line 513 of file cg_syscalls.c.

References CG_TESTPRINTINT.

00513                                                     {
00514         syscall( CG_TESTPRINTINT, string, i );
00515 }

void trap_AddCommand const char *  cmdName  ) 
 

Definition at line 107 of file cg_syscalls.c.

References CG_ADDCOMMAND.

Referenced by CG_InitConsoleCommands().

00107                                                {
00108         syscall( CG_ADDCOMMAND, cmdName );
00109 }

unsigned int trap_AnyLanguage_ReadCharFromString const char *  psText,
int *  piAdvanceCount,
qboolean pbIsTrailingPunctuation
 

Definition at line 317 of file cg_syscalls.c.

00318 {
00319         return syscall( CG_ANYLANGUAGE_READCHARFROMSTRING, psText, piAdvanceCount, pbIsTrailingPunctuation);
00320 }

int trap_Argc void   ) 
 

Definition at line 71 of file cg_syscalls.c.

00071                                   {
00072         return syscall( CG_ARGC );
00073 }

void trap_Args char *  buffer,
int  bufferLength
 

Definition at line 79 of file cg_syscalls.c.

References CG_ARGS.

00079                                                     {
00080         syscall( CG_ARGS, buffer, bufferLength );
00081 }

void trap_Argv int  n,
char *  buffer,
int  bufferLength
 

Definition at line 75 of file cg_syscalls.c.

00075                                                            {
00076         syscall( CG_ARGV, n, buffer, bufferLength );
00077 }

void trap_AS_AddPrecacheEntry const char *  name  ) 
 

Definition at line 247 of file cg_syscalls.c.

References CG_AS_ADDPRECACHEENTRY, and name.

00248 {
00249         syscall(CG_AS_ADDPRECACHEENTRY, name);
00250 }

sfxHandle_t trap_AS_GetBModelSound const char *  name,
int  stage
 

Definition at line 257 of file cg_syscalls.c.

References CG_AS_GETBMODELSOUND, name, and sfxHandle_t.

Referenced by CG_EntityEvent(), CG_PlayDoorLoopSound(), and CG_PlayDoorSound().

00258 {
00259         return syscall(CG_AS_GETBMODELSOUND, name, stage);
00260 }

void trap_AS_ParseSets void   ) 
 

Definition at line 242 of file cg_syscalls.c.

References CG_AS_PARSESETS.

00243 {
00244         syscall(CG_AS_PARSESETS);
00245 }

void trap_CG_RegisterSharedMemory char *  memory  ) 
 

Definition at line 1085 of file cg_syscalls.c.

References CG_SET_SHARED_BUFFER.

Referenced by CG_Init().

01086 {
01087         syscall(CG_SET_SHARED_BUFFER, memory);
01088 }

void trap_CIN_DrawCinematic int  handle  ) 
 

Definition at line 602 of file cg_syscalls.c.

00602                                          {
00603   syscall(CG_CIN_DRAWCINEMATIC, handle);
00604 }

int trap_CIN_PlayCinematic const char *  arg0,
int  xpos,
int  ypos,
int  width,
int  height,
int  bits
 

Definition at line 584 of file cg_syscalls.c.

00584                                                                                                    {
00585   return syscall(CG_CIN_PLAYCINEMATIC, arg0, xpos, ypos, width, height, bits);
00586 }

e_status trap_CIN_RunCinematic int  handle  ) 
 

Definition at line 596 of file cg_syscalls.c.

00596                                             {
00597   return syscall(CG_CIN_RUNCINEMATIC, handle);
00598 }

void trap_CIN_SetExtents int  handle,
int  x,
int  y,
int  w,
int  h
 

Definition at line 608 of file cg_syscalls.c.

00608                                                                   {
00609   syscall(CG_CIN_SETEXTENTS, handle, x, y, w, h);
00610 }

e_status trap_CIN_StopCinematic int  handle  ) 
 

Definition at line 590 of file cg_syscalls.c.

00590                                             {
00591   return syscall(CG_CIN_STOPCINEMATIC, handle);
00592 }

void trap_CM_BoxTrace trace_t results,
const vec3_t  start,
const vec3_t  end,
const vec3_t  mins,
const vec3_t  maxs,
clipHandle_t  model,
int  brushmask
 

Definition at line 151 of file cg_syscalls.c.

References CG_CM_BOXTRACE, clipHandle_t, and vec3_t.

Referenced by CG_G2Trace(), CG_Rag_Trace(), and CG_Trace().

00153                                                                                       {
00154         syscall( CG_CM_BOXTRACE, results, start, end, mins, maxs, model, brushmask );
00155 }

void trap_CM_CapsuleTrace trace_t results,
const vec3_t  start,
const vec3_t  end,
const vec3_t  mins,
const vec3_t  maxs,
clipHandle_t  model,
int  brushmask
 

Definition at line 157 of file cg_syscalls.c.

References CG_CM_CAPSULETRACE, clipHandle_t, and vec3_t.

00159                                                                                       {
00160         syscall( CG_CM_CAPSULETRACE, results, start, end, mins, maxs, model, brushmask );
00161 }

clipHandle_t trap_CM_InlineModel int  index  ) 
 

Definition at line 131 of file cg_syscalls.c.

References CG_CM_INLINEMODEL, and clipHandle_t.

Referenced by CG_PointContents().

00131                                               {
00132         return syscall( CG_CM_INLINEMODEL, index );
00133 }

void trap_CM_LoadMap const char *  mapname,
qboolean  SubBSP
 

Definition at line 123 of file cg_syscalls.c.

References CG_CM_LOADMAP.

Referenced by CG_Init().

00123                                                                 {
00124         syscall( CG_CM_LOADMAP, mapname, SubBSP );
00125 }

int trap_CM_MarkFragments int  numPoints,
const vec3_t points,
const vec3_t  projection,
int  maxPoints,
vec3_t  pointBuffer,
int  maxFragments,
markFragment_t fragmentBuffer
 

Definition at line 177 of file cg_syscalls.c.

References CG_CM_MARKFRAGMENTS, and vec3_t.

Referenced by CG_CreateSaberMarks(), and CG_ImpactMark().

00180                                                                                    {
00181         return syscall( CG_CM_MARKFRAGMENTS, numPoints, points, projection, maxPoints, pointBuffer, maxFragments, fragmentBuffer );
00182 }

int trap_CM_NumInlineModels void   ) 
 

Definition at line 127 of file cg_syscalls.c.

References CG_CM_NUMINLINEMODELS.

00127                                                 {
00128         return syscall( CG_CM_NUMINLINEMODELS );
00129 }

int trap_CM_PointContents const vec3_t  p,
clipHandle_t  model
 

Definition at line 143 of file cg_syscalls.c.

References CG_CM_POINTCONTENTS, clipHandle_t, and vec3_t.

Referenced by CG_AddFragment(), and CG_PointContents().

00143                                                                             {
00144         return syscall( CG_CM_POINTCONTENTS, p, model );
00145 }

int trap_CM_RegisterTerrain const char *  config  ) 
 

Definition at line 1090 of file cg_syscalls.c.

01091 { //rwwRMG - added [NEWTRAP]
01092         return syscall(CG_CM_REGISTER_TERRAIN, config);
01093 }

clipHandle_t trap_CM_TempBoxModel const vec3_t  mins,
const vec3_t  maxs
 

Definition at line 135 of file cg_syscalls.c.

References CG_CM_TEMPBOXMODEL, clipHandle_t, and vec3_t.

00135                                                                           {
00136         return syscall( CG_CM_TEMPBOXMODEL, mins, maxs );
00137 }

clipHandle_t trap_CM_TempCapsuleModel const vec3_t  mins,
const vec3_t  maxs
 

Definition at line 139 of file cg_syscalls.c.

References CG_CM_TEMPCAPSULEMODEL, clipHandle_t, and vec3_t.

00139                                                                               {
00140         return syscall( CG_CM_TEMPCAPSULEMODEL, mins, maxs );
00141 }

void trap_CM_TransformedBoxTrace trace_t results,
const vec3_t  start,
const vec3_t  end,
const vec3_t  mins,
const vec3_t  maxs,
clipHandle_t  model,
int  brushmask,
const vec3_t  origin,
const vec3_t  angles
 

Definition at line 163 of file cg_syscalls.c.

References CG_CM_TRANSFORMEDBOXTRACE, clipHandle_t, and vec3_t.

00166                                                                                              {
00167         syscall( CG_CM_TRANSFORMEDBOXTRACE, results, start, end, mins, maxs, model, brushmask, origin, angles );
00168 }

void trap_CM_TransformedCapsuleTrace trace_t results,
const vec3_t  start,
const vec3_t  end,
const vec3_t  mins,
const vec3_t  maxs,
clipHandle_t  model,
int  brushmask,
const vec3_t  origin,
const vec3_t  angles
 

Definition at line 170 of file cg_syscalls.c.

References CG_CM_TRANSFORMEDCAPSULETRACE, clipHandle_t, and vec3_t.

00173                                                                                              {
00174         syscall( CG_CM_TRANSFORMEDCAPSULETRACE, results, start, end, mins, maxs, model, brushmask, origin, angles );
00175 }

int trap_CM_TransformedPointContents const vec3_t  p,
clipHandle_t  model,
const vec3_t  origin,
const vec3_t  angles
 

Definition at line 147 of file cg_syscalls.c.

References CG_CM_TRANSFORMEDPOINTCONTENTS, clipHandle_t, and vec3_t.

Referenced by CG_PointContents().

00147                                                                                                                                  {
00148         return syscall( CG_CM_TRANSFORMEDPOINTCONTENTS, p, model, origin, angles );
00149 }

int trap_Cvar_GetHiddenVarValue const char *  name  ) 
 

Definition at line 66 of file cg_syscalls.c.

References CG_CVAR_GETHIDDENVALUE, and name.

00067 {
00068         return syscall(CG_CVAR_GETHIDDENVALUE, name);
00069 }

void trap_Cvar_Register vmCvar_t vmCvar,
const char *  varName,
const char *  defaultValue,
int  flags
 

Definition at line 50 of file cg_syscalls.c.

00050                                                                                                          {
00051         syscall( CG_CVAR_REGISTER, vmCvar, varName, defaultValue, flags );
00052 }

void trap_Cvar_Set const char *  var_name,
const char *  value
 

Definition at line 58 of file cg_syscalls.c.

00058                                                                  {
00059         syscall( CG_CVAR_SET, var_name, value );
00060 }

void trap_Cvar_Update vmCvar_t vmCvar  ) 
 

Definition at line 54 of file cg_syscalls.c.

00054                                              {
00055         syscall( CG_CVAR_UPDATE, vmCvar );
00056 }

void trap_Cvar_VariableStringBuffer const char *  var_name,
char *  buffer,
int  bufsize
 

Definition at line 62 of file cg_syscalls.c.

00062                                                                                        {
00063         syscall( CG_CVAR_VARIABLESTRINGBUFFER, var_name, buffer, bufsize );
00064 }

void trap_Error const char *  fmt  ) 
 

Definition at line 25 of file cg_syscalls.c.

00025                                       {
00026         syscall( CG_ERROR, fmt );
00027 }

void trap_FS_FCloseFile fileHandle_t  f  ) 
 

Definition at line 95 of file cg_syscalls.c.

00095                                              {
00096         syscall( CG_FS_FCLOSEFILE, f );
00097 }

int trap_FS_FOpenFile const char *  qpath,
fileHandle_t f,
fsMode_t  mode
 

Definition at line 83 of file cg_syscalls.c.

00083                                                                                        {
00084         return syscall( CG_FS_FOPENFILE, qpath, f, mode );
00085 }

int trap_FS_GetFileList const char *  path,
const char *  extension,
char *  listbuf,
int  bufsize
 

Definition at line 99 of file cg_syscalls.c.

00099                                                                                                 {
00100         return syscall( CG_FS_GETFILELIST, path, extension, listbuf, bufsize );
00101 }

void trap_FS_Read void *  buffer,
int  len,
fileHandle_t  f
 

Definition at line 87 of file cg_syscalls.c.

00087                                                               {
00088         syscall( CG_FS_READ, buffer, len, f );
00089 }

void trap_FS_Write const void *  buffer,
int  len,
fileHandle_t  f
 

Definition at line 91 of file cg_syscalls.c.

00091                                                                      {
00092         syscall( CG_FS_WRITE, buffer, len, f );
00093 }

void trap_FX_AddBezier addbezierArgStruct_t p  ) 
 

Definition at line 700 of file cg_syscalls.c.

References addbezierArgStruct_t, and CG_FX_ADDBEZIER.

Referenced by CG_AddLightningBeam(), and FX_DisruptorAltMiss().

00701 {
00702         syscall( CG_FX_ADDBEZIER, p );
00703 }

void trap_FX_AddElectricity addElectricityArgStruct_t p  ) 
 

Definition at line 715 of file cg_syscalls.c.

References CG_FX_ADDELECTRICITY.

00716 {
00717         syscall( CG_FX_ADDELECTRICITY, p );
00718 }

void trap_FX_AddLine const vec3_t  start,
const vec3_t  end,
float  size1,
float  size2,
float  sizeParm,
float  alpha1,
float  alpha2,
float  alphaParm,
const vec3_t  sRGB,
const vec3_t  eRGB,
float  rgbParm,
int  killTime,
qhandle_t  shader,
int  flags
 

Definition at line 450 of file cg_syscalls.c.

References CG_FX_ADDLINE, PASSFLOAT(), qhandle_t, and vec3_t.

Referenced by FX_ConcAltShot(), FX_DisruptorAltShot(), and FX_DisruptorMainShot().

00454 {
00455         syscall( CG_FX_ADDLINE, start, end, PASSFLOAT(size1), PASSFLOAT(size2), PASSFLOAT(sizeParm),
00456                                                                         PASSFLOAT(alpha1), PASSFLOAT(alpha2), PASSFLOAT(alphaParm),
00457                                                                         sRGB, eRGB, PASSFLOAT(rgbParm),
00458                                                                         killTime, shader, flags);
00459 }

void trap_FX_AddPoly addpolyArgStruct_t p  ) 
 

Definition at line 695 of file cg_syscalls.c.

References addpolyArgStruct_t, and CG_FX_ADDPOLY.

Referenced by CG_CreateSaberMarks(), and CG_Cube().

00696 {
00697         syscall( CG_FX_ADDPOLY, p );
00698 }

void trap_FX_AddPrimitive effectTrailArgStruct_t p  ) 
 

Definition at line 705 of file cg_syscalls.c.

References CG_FX_ADDPRIMITIVE, and effectTrailArgStruct_t.

Referenced by CG_AddSaberBlade().

00706 {
00707         syscall( CG_FX_ADDPRIMITIVE, p );
00708 }

void trap_FX_AddScheduledEffects qboolean  skyPortal  ) 
 

Definition at line 659 of file cg_syscalls.c.

References CG_FX_ADD_SCHEDULED_EFFECTS.

Referenced by CG_DrawActiveFrame(), and CG_DrawSkyBoxPortal().

00660 {
00661         syscall( CG_FX_ADD_SCHEDULED_EFFECTS, skyPortal );
00662 }

void trap_FX_AddSprite addspriteArgStruct_t p  ) 
 

Definition at line 710 of file cg_syscalls.c.

References addspriteArgStruct_t, and CG_FX_ADDSPRITE.

Referenced by CG_AddPlayerWeapon(), and CG_Player().

00711 {
00712         syscall( CG_FX_ADDSPRITE, p );
00713 }

void trap_FX_AdjustTime int  time  ) 
 

Definition at line 689 of file cg_syscalls.c.

References CG_FX_ADJUST_TIME.

Referenced by CG_DrawActiveFrame().

00690 {
00691         syscall( CG_FX_ADJUST_TIME, time );
00692 }

void trap_FX_Draw2DEffects float  screenXScale,
float  screenYScale
 

Definition at line 664 of file cg_syscalls.c.

References CG_FX_DRAW_2D_EFFECTS, and PASSFLOAT().

00665 {
00666         syscall( CG_FX_DRAW_2D_EFFECTS, PASSFLOAT(screenXScale), PASSFLOAT(screenYScale) );
00667 }       

qboolean trap_FX_FreeSystem void   ) 
 

Definition at line 679 of file cg_syscalls.c.

References CG_FX_FREE_SYSTEM, and qboolean.

Referenced by CG_Shutdown().

00680 {
00681         return syscall( CG_FX_FREE_SYSTEM );
00682 }

int trap_FX_InitSystem refdef_t refdef  ) 
 

Definition at line 669 of file cg_syscalls.c.

References CG_FX_INIT_SYSTEM.

00670 {
00671         return syscall( CG_FX_INIT_SYSTEM, refdef );
00672 }

void trap_FX_PlayBoltedEffectID int  id,
vec3_t  org,
void *  ghoul2,
const int  boltNum,
const int  entNum,
const int  modelNum,
int  iLooptime,
qboolean  isRelative
 

Definition at line 653 of file cg_syscalls.c.

References CG_FX_PLAY_BOLTED_EFFECT_ID, and vec3_t.

Referenced by CG_AddSaberBlade(), and CG_VehMuzzleFireFX().

00655 {
00656         syscall( CG_FX_PLAY_BOLTED_EFFECT_ID, id, org, ghoul2, boltNum, entNum, modelNum, iLooptime, isRelative );
00657 }

void trap_FX_PlayEffect const char *  file,
vec3_t  org,
vec3_t  fwd,
int  vol,
int  rad
 

Definition at line 626 of file cg_syscalls.c.

References CG_FX_PLAY_EFFECT, and vec3_t.

00627 {
00628         syscall( CG_FX_PLAY_EFFECT, file, org, fwd, vol, rad);
00629 }

void trap_FX_PlayEffectID int  id,
vec3_t  org,
vec3_t  fwd,
int  vol,
int  rad
 

Definition at line 637 of file cg_syscalls.c.

References CG_FX_PLAY_EFFECT_ID, and vec3_t.

Referenced by CG_AddPlayerWeapon(), CG_AddSaberBlade(), CG_Disintegration(), CG_EntityEvent(), CG_G2SaberEffects(), CG_MiscModelExplosion(), CG_MissileHitPlayer(), CG_MissileHitWall(), CG_Player(), CG_PlayerAnimEventDo(), CG_ROFF_NotetrackCallback(), CG_SaberCompWork(), CG_VehicleWeaponImpact(), FX_BlasterAltFireThink(), FX_BlasterProjectileThink(), FX_BlasterWeaponHitPlayer(), FX_BlasterWeaponHitWall(), FX_BowcasterAltProjectileThink(), FX_BowcasterHitPlayer(), FX_BowcasterHitWall(), FX_BowcasterProjectileThink(), FX_BryarAltHitPlayer(), FX_BryarAltHitWall(), FX_BryarAltProjectileThink(), FX_BryarHitPlayer(), FX_BryarHitWall(), FX_BryarProjectileThink(), FX_ConcussionHitPlayer(), FX_ConcussionHitWall(), FX_ConcussionProjectileThink(), FX_DEMP2_HitPlayer(), FX_DEMP2_HitWall(), FX_DEMP2_ProjectileThink(), FX_DisruptorAltHit(), FX_DisruptorAltMiss(), FX_DisruptorHitPlayer(), FX_DisruptorHitWall(), FX_FlechetteAltProjectileThink(), FX_FlechetteProjectileThink(), FX_FlechetteWeaponHitPlayer(), FX_FlechetteWeaponHitWall(), FX_ForceDrained(), FX_RepeaterAltHitPlayer(), FX_RepeaterAltHitWall(), FX_RepeaterAltProjectileThink(), FX_RepeaterHitPlayer(), FX_RepeaterHitWall(), FX_RepeaterProjectileThink(), FX_RocketAltProjectileThink(), FX_RocketHitPlayer(), FX_RocketHitWall(), FX_RocketProjectileThink(), FX_TurretHitPlayer(), FX_TurretHitWall(), FX_TurretProjectileThink(), PM_VehicleImpact(), and TurretClientRun().

00638 {
00639         syscall( CG_FX_PLAY_EFFECT_ID, id, org, fwd, vol, rad );
00640 }

void trap_FX_PlayEntityEffect const char *  file,
vec3_t  org,
vec3_t  axis[3],
const int  boltInfo,
const int  entNum,
int  vol,
int  rad
 

Definition at line 631 of file cg_syscalls.c.

References CG_FX_PLAY_ENTITY_EFFECT, and vec3_t.

00633 {
00634         syscall( CG_FX_PLAY_ENTITY_EFFECT, file, org, axis, boltInfo, entNum, vol, rad );
00635 }

void trap_FX_PlayEntityEffectID int  id,
vec3_t  org,
vec3_t  axis[3],
const int  boltInfo,
const int  entNum,
int  vol,
int  rad
 

Definition at line 647 of file cg_syscalls.c.

References CG_FX_PLAY_ENTITY_EFFECT_ID, and vec3_t.

Referenced by CG_AddPlayerWeapon(), and CG_Player().

00649 {
00650         syscall( CG_FX_PLAY_ENTITY_EFFECT_ID, id, org, axis, boltInfo, entNum, vol, rad );
00651 }

void trap_FX_PlayPortalEffectID int  id,
vec3_t  org,
vec3_t  fwd,
int  vol,
int  rad
 

Definition at line 642 of file cg_syscalls.c.

References CG_FX_PLAY_PORTAL_EFFECT_ID, and vec3_t.

Referenced by CG_EntityEvent().

00643 {
00644         syscall( CG_FX_PLAY_PORTAL_EFFECT_ID, id, org, fwd);
00645 }

int trap_FX_RegisterEffect const char *  file  ) 
 

Definition at line 621 of file cg_syscalls.c.

References CG_FX_REGISTER_EFFECT.

Referenced by CG_EntityEvent(), CG_MiscModelExplosion(), CG_RegisterWeapon(), CG_ROFF_NotetrackCallback(), ParseAnimationEvtBlock(), VEH_LoadVehicle(), and WP_SaberParseParms().

00622 {
00623         return syscall( CG_FX_REGISTER_EFFECT, file);
00624 }

void trap_FX_Reset void   ) 
 

Definition at line 684 of file cg_syscalls.c.

References CG_FX_RESET.

00685 {
00686         syscall ( CG_FX_RESET );
00687 }

void trap_FX_SetRefDef refdef_t refdef  ) 
 

Definition at line 674 of file cg_syscalls.c.

References CG_FX_SET_REFDEF.

00675 {
00676         syscall( CG_FX_SET_REFDEF, refdef );
00677 }

qboolean trap_G2_HaveWeGhoul2Models void *  ghoul2  ) 
 

Definition at line 786 of file cg_syscalls.c.

00787 {
00788         return (qboolean)(syscall(CG_G2_HAVEWEGHOULMODELS, ghoul2));
00789 }

void trap_G2_ListModelBones void *  ghlInfo,
int  frame
 

Definition at line 776 of file cg_syscalls.c.

00777 {
00778         syscall( CG_G2_LISTBONES, ghlInfo, frame);
00779 }

void trap_G2_ListModelSurfaces void *  ghlInfo  ) 
 

Definition at line 771 of file cg_syscalls.c.

00772 {
00773         syscall( CG_G2_LISTSURFACES, ghlInfo);
00774 }

void trap_G2_SetGhoul2ModelIndexes void *  ghoul2,
qhandle_t modelList,
qhandle_t skinList
 

Definition at line 781 of file cg_syscalls.c.

00782 {
00783         syscall( CG_G2_SETMODELS, ghoul2, modelList, skinList);
00784 }

void trap_G2API_AbsurdSmoothing void *  ghoul2,
qboolean  status
 

Definition at line 992 of file cg_syscalls.c.

00993 {
00994         syscall(CG_G2_ABSURDSMOOTHING, ghoul2, status);
00995 }

int trap_G2API_AddBolt void *  ghoul2,
int  modelIndex,
const char *  boneName
 

Definition at line 940 of file cg_syscalls.c.

00941 {
00942         return syscall(CG_G2_ADDBOLT, ghoul2, modelIndex, boneName);
00943 }

void trap_G2API_AddSkinGore void *  ghlInfo,
SSkinGoreData gore
 

Definition at line 925 of file cg_syscalls.c.

References CG_G2_ADDSKINGORE, and SSkinGoreData.

Referenced by CG_AddGhoul2Mark().

00926 {
00927         syscall(CG_G2_ADDSKINGORE, ghlInfo, gore);
00928 }

void trap_G2API_AnimateG2Models void *  ghoul2,
int  time,
sharedRagDollUpdateParams_t params
 

Definition at line 1003 of file cg_syscalls.c.

01004 {
01005         syscall(CG_G2_ANIMATEG2MODELS, ghoul2, time, params);
01006 }

qboolean trap_G2API_AttachEnt int *  boltInfo,
void *  ghlInfoTo,
int  toBoltIndex,
int  entNum,
int  toModelNum
 

Definition at line 945 of file cg_syscalls.c.

References CG_G2_ATTACHENT, and qboolean.

00946 {
00947         return syscall(CG_G2_ATTACHENT, boltInfo, ghlInfoTo, toBoltIndex, entNum, toModelNum);
00948 }

void trap_G2API_AttachInstanceToEntNum void *  ghoul2,
int  entityNum,
qboolean  server
 

Definition at line 1060 of file cg_syscalls.c.

01061 {
01062         syscall(CG_G2_ATTACHINSTANCETOENTNUM, ghoul2, entityNum, server);
01063 }

void trap_G2API_CleanEntAttachments void   ) 
 

Definition at line 1070 of file cg_syscalls.c.

01071 {
01072         syscall(CG_G2_CLEANENTATTACHMENTS);
01073 }

void trap_G2API_CleanGhoul2Models void **  ghoul2Ptr  ) 
 

Definition at line 856 of file cg_syscalls.c.

00857 {
00858         syscall(CG_G2_CLEANMODELS, ghoul2Ptr);
00859 }

void trap_G2API_ClearAttachedInstance int  entityNum  ) 
 

Definition at line 1065 of file cg_syscalls.c.

01066 {
01067         syscall(CG_G2_CLEARATTACHEDINSTANCE, entityNum);
01068 }

void trap_G2API_ClearSkinGore void *  ghlInfo  ) 
 

Definition at line 930 of file cg_syscalls.c.

References CG_G2_CLEARSKINGORE.

00931 {
00932         syscall(CG_G2_CLEARSKINGORE, ghlInfo );
00933 }

void trap_G2API_CollisionDetect CollisionRecord_t collRecMap,
void *  ghoul2,
const vec3_t  angles,
const vec3_t  position,
int  frameNumber,
int  entNum,
const vec3_t  rayStart,
const vec3_t  rayEnd,
const vec3_t  scale,
int  traceFlags,
int  useLod,
float  fRadius
 

Definition at line 820 of file cg_syscalls.c.

00834 {
00835         syscall ( CG_G2_COLLISIONDETECT, collRecMap, ghoul2, angles, position, frameNumber, entNum, rayStart, rayEnd, scale, traceFlags, useLod, PASSFLOAT(fRadius) );
00836 }

void trap_G2API_CollisionDetectCache CollisionRecord_t collRecMap,
void *  ghoul2,
const vec3_t  angles,
const vec3_t  position,
int  frameNumber,
int  entNum,
const vec3_t  rayStart,
const vec3_t  rayEnd,
const vec3_t  scale,
int  traceFlags,
int  useLod,
float  fRadius
 

Definition at line 838 of file cg_syscalls.c.

00852 {
00853         syscall ( CG_G2_COLLISIONDETECTCACHE, collRecMap, ghoul2, angles, position, frameNumber, entNum, rayStart, rayEnd, scale, traceFlags, useLod, PASSFLOAT(fRadius) );
00854 }

int trap_G2API_CopyGhoul2Instance void *  g2From,
void *  g2To,
int  modelIndex
 

Definition at line 890 of file cg_syscalls.c.

00891 {
00892         return syscall(CG_G2_COPYGHOUL2INSTANCE, g2From, g2To, modelIndex);
00893 }

void trap_G2API_CopySpecificGhoul2Model void *  g2From,
int  modelFrom,
void *  g2To,
int  modelTo
 

Definition at line 895 of file cg_syscalls.c.

00896 {
00897         syscall(CG_G2_COPYSPECIFICGHOUL2MODEL, g2From, modelFrom, g2To, modelTo);
00898 }

qboolean trap_G2API_DoesBoneExist void *  ghoul2,
int  modelIndex,
const char *  boneName
 

Definition at line 971 of file cg_syscalls.c.

00972 {
00973         return syscall(CG_G2_DOESBONEEXIST, ghoul2, modelIndex, boneName);
00974 }

void trap_G2API_DuplicateGhoul2Instance void *  g2From,
void **  g2To
 

Definition at line 900 of file cg_syscalls.c.

00901 {
00902         syscall(CG_G2_DUPLICATEGHOUL2INSTANCE, g2From, g2To);
00903 }

qboolean trap_G2API_GetBoltMatrix void *  ghoul2,
const int  modelIndex,
const int  boltIndex,
mdxaBone_t matrix,
const vec3_t  angles,
const vec3_t  position,
const int  frameNum,
qhandle_t modelList,
vec3_t  scale
 

Definition at line 791 of file cg_syscalls.c.

00793 {
00794         return (qboolean)(syscall(CG_G2_GETBOLT, ghoul2, modelIndex, boltIndex, matrix, angles, position, frameNum, modelList, scale));
00795 }

qboolean trap_G2API_GetBoltMatrix_NoRecNoRot void *  ghoul2,
const int  modelIndex,
const int  boltIndex,
mdxaBone_t matrix,
const vec3_t  angles,
const vec3_t  position,
const int  frameNum,
qhandle_t modelList,
vec3_t  scale
 

Definition at line 803 of file cg_syscalls.c.

00805 { //Same as above but force it to not reconstruct the skeleton before getting the bolt position
00806         return (qboolean)(syscall(CG_G2_GETBOLT_NOREC_NOROT, ghoul2, modelIndex, boltIndex, matrix, angles, position, frameNum, modelList, scale));
00807 }

qboolean trap_G2API_GetBoltMatrix_NoReconstruct void *  ghoul2,
const int  modelIndex,
const int  boltIndex,
mdxaBone_t matrix,
const vec3_t  angles,
const vec3_t  position,
const int  frameNum,
qhandle_t modelList,
vec3_t  scale
 

Definition at line 797 of file cg_syscalls.c.

00799 { //Same as above but force it to not reconstruct the skeleton before getting the bolt position
00800         return (qboolean)(syscall(CG_G2_GETBOLT_NOREC, ghoul2, modelIndex, boltIndex, matrix, angles, position, frameNum, modelList, scale));
00801 }

qboolean trap_G2API_GetBoneAnim void *  ghoul2,
const char *  boneName,
const int  currentTime,
float *  currentFrame,
int *  startFrame,
int *  endFrame,
int *  flags,
float *  animSpeed,
int *  modelList,
const int  modelIndex
 

Definition at line 874 of file cg_syscalls.c.

00876 {
00877         return syscall(CG_G2_GETBONEANIM, ghoul2, boneName, currentTime, currentFrame, startFrame, endFrame, flags, animSpeed, modelList, modelIndex);
00878 }

qboolean trap_G2API_GetBoneFrame void *  ghoul2,
const char *  boneName,
const int  currentTime,
float *  currentFrame,
int *  modelList,
const int  modelIndex
 

Definition at line 880 of file cg_syscalls.c.

00881 {
00882         return syscall(CG_G2_GETBONEFRAME, ghoul2, boneName, currentTime, currentFrame, modelList, modelIndex);
00883 }

void trap_G2API_GetGLAName void *  ghoul2,
int  modelIndex,
char *  fillBuf
 

Definition at line 885 of file cg_syscalls.c.

00886 {
00887         syscall(CG_G2_GETGLANAME, ghoul2, modelIndex, fillBuf);
00888 }

int trap_G2API_GetNumGoreMarks void *  ghlInfo,
int  modelIndex
 

Definition at line 920 of file cg_syscalls.c.

References CG_G2_GETNUMGOREMARKS.

Referenced by CG_AddGhoul2Mark().

00921 {
00922         return syscall(CG_G2_GETNUMGOREMARKS, ghlInfo, modelIndex);
00923 }

qboolean trap_G2API_GetRagBonePos void *  ghoul2,
const char *  boneName,
vec3_t  pos,
vec3_t  entAngles,
vec3_t  entPos,
vec3_t  entScale
 

Definition at line 1025 of file cg_syscalls.c.

01026 {
01027         return syscall(CG_G2_GETRAGBONEPOS, ghoul2, boneName, pos, entAngles, entPos, entScale);
01028 }

void trap_G2API_GetSurfaceName void *  ghoul2,
int  surfNumber,
int  modelIndex,
char *  fillBuf
 

Definition at line 1080 of file cg_syscalls.c.

01081 {
01082         syscall(CG_G2_GETSURFACENAME, ghoul2, surfNumber, modelIndex, fillBuf);
01083 }

int trap_G2API_GetSurfaceRenderStatus void *  ghoul2,
const int  modelIndex,
const char *  surfaceName
 

Definition at line 976 of file cg_syscalls.c.

00977 {
00978         return syscall(CG_G2_GETSURFACERENDERSTATUS, ghoul2, modelIndex, surfaceName);
00979 }

int trap_G2API_GetTime void   ) 
 

Definition at line 981 of file cg_syscalls.c.

00982 {
00983         return syscall(CG_G2_GETTIME);
00984 }

int trap_G2API_Ghoul2Size void *  ghlInfo  ) 
 

Definition at line 935 of file cg_syscalls.c.

00936 {
00937         return syscall(CG_G2_SIZE, ghlInfo );
00938 }

qboolean trap_G2API_HasGhoul2ModelOnIndex void *  ghlInfo,
int  modelIndex
 

Definition at line 905 of file cg_syscalls.c.

00906 {
00907         return syscall(CG_G2_HASGHOUL2MODELONINDEX, ghlInfo, modelIndex);
00908 }

qboolean trap_G2API_IKMove void *  ghoul2,
int  time,
sharedIKMoveParams_t params
 

Definition at line 1045 of file cg_syscalls.c.

01046 {
01047         return syscall(CG_G2_IKMOVE, ghoul2, time, params);
01048 }

int trap_G2API_InitGhoul2Model void **  ghoul2Ptr,
const char *  fileName,
int  modelIndex,
qhandle_t  customSkin,
qhandle_t  customShader,
int  modelFlags,
int  lodBias
 

Definition at line 809 of file cg_syscalls.c.

00811 {
00812         return syscall(CG_G2_INITGHOUL2MODEL, ghoul2Ptr, fileName, modelIndex, customSkin, customShader, modelFlags, lodBias);
00813 }

qboolean trap_G2API_OverrideServer void *  serverInstance  ) 
 

Definition at line 1075 of file cg_syscalls.c.

01076 {
01077         return syscall(CG_G2_OVERRIDESERVER, serverInstance);
01078 }

qboolean trap_G2API_RagEffectorGoal void *  ghoul2,
const char *  boneName,
vec3_t  pos
 

Definition at line 1020 of file cg_syscalls.c.

01021 {
01022         return syscall(CG_G2_RAGEFFECTORGOAL, ghoul2, boneName, pos);
01023 }

qboolean trap_G2API_RagEffectorKick void *  ghoul2,
const char *  boneName,
vec3_t  velocity
 

Definition at line 1030 of file cg_syscalls.c.

01031 {
01032         return syscall(CG_G2_RAGEFFECTORKICK, ghoul2, boneName, velocity);
01033 }

qboolean trap_G2API_RagForceSolve void *  ghoul2,
qboolean  force
 

Definition at line 1035 of file cg_syscalls.c.

01036 {
01037         return syscall(CG_G2_RAGFORCESOLVE, ghoul2, force);
01038 }

qboolean trap_G2API_RagPCJConstraint void *  ghoul2,
const char *  boneName,
vec3_t  min,
vec3_t  max
 

Definition at line 1010 of file cg_syscalls.c.

01011 {
01012         return syscall(CG_G2_RAGPCJCONSTRAINT, ghoul2, boneName, min, max);
01013 }

qboolean trap_G2API_RagPCJGradientSpeed void *  ghoul2,
const char *  boneName,
const float  speed
 

Definition at line 1015 of file cg_syscalls.c.

01016 {
01017         return syscall(CG_G2_RAGPCJGRADIENTSPEED, ghoul2, boneName, PASSFLOAT(speed));
01018 }

qboolean trap_G2API_RemoveBone void *  ghoul2,
const char *  boneName,
int  modelIndex
 

Definition at line 1050 of file cg_syscalls.c.

01051 {
01052         return syscall(CG_G2_REMOVEBONE, ghoul2, boneName, modelIndex);
01053 }

qboolean trap_G2API_RemoveGhoul2Model void *  ghlInfo,
int  modelIndex
 

Definition at line 910 of file cg_syscalls.c.

00911 {
00912         return syscall(CG_G2_REMOVEGHOUL2MODEL, ghlInfo, modelIndex);
00913 }

void trap_G2API_SetBoltInfo void *  ghoul2,
int  modelIndex,
int  boltInfo
 

Definition at line 950 of file cg_syscalls.c.

00951 {
00952         syscall(CG_G2_SETBOLTON, ghoul2, modelIndex, boltInfo);
00953 }

qboolean trap_G2API_SetBoneAngles void *  ghoul2,
int  modelIndex,
const char *  boneName,
const vec3_t  angles,
const int  flags,
const int  up,
const int  right,
const int  forward,
qhandle_t modelList,
int  blendTime,
int  currentTime
 

Definition at line 861 of file cg_syscalls.c.

00864 {
00865         return (syscall(CG_G2_ANGLEOVERRIDE, ghoul2, modelIndex, boneName, angles, flags, up, right, forward, modelList, blendTime, currentTime));
00866 }

qboolean trap_G2API_SetBoneAnim void *  ghoul2,
const int  modelIndex,
const char *  boneName,
const int  startFrame,
const int  endFrame,
const int  flags,
const float  animSpeed,
const int  currentTime,
const float  setFrame,
const int  blendTime
 

Definition at line 868 of file cg_syscalls.c.

00870 {
00871         return syscall(CG_G2_PLAYANIM, ghoul2, modelIndex, boneName, startFrame, endFrame, flags, PASSFLOAT(animSpeed), currentTime, PASSFLOAT(setFrame), blendTime);
00872 }

qboolean trap_G2API_SetBoneIKState void *  ghoul2,
int  time,
const char *  boneName,
int  ikState,
sharedSetBoneIKStateParams_t params
 

Definition at line 1040 of file cg_syscalls.c.

01041 {
01042         return syscall(CG_G2_SETBONEIKSTATE, ghoul2, time, boneName, ikState, params);
01043 }

qboolean trap_G2API_SetNewOrigin void *  ghoul2,
const int  boltIndex
 

Definition at line 965 of file cg_syscalls.c.

00966 {
00967         return syscall(CG_G2_SETNEWORIGIN, ghoul2, boltIndex);
00968 }

void trap_G2API_SetRagDoll void *  ghoul2,
sharedRagDollParams_t params
 

Definition at line 998 of file cg_syscalls.c.

00999 {
01000         syscall(CG_G2_SETRAGDOLL, ghoul2, params);
01001 }

qboolean trap_G2API_SetRootSurface void *  ghoul2,
const int  modelIndex,
const char *  surfaceName
 

Definition at line 955 of file cg_syscalls.c.

00956 {
00957         return syscall(CG_G2_SETROOTSURFACE, ghoul2, modelIndex, surfaceName);
00958 }

qboolean trap_G2API_SetSkin void *  ghoul2,
int  modelIndex,
qhandle_t  customSkin,
qhandle_t  renderSkin
 

Definition at line 815 of file cg_syscalls.c.

00816 {
00817         return syscall(CG_G2_SETSKIN, ghoul2, modelIndex, customSkin, renderSkin);
00818 }

qboolean trap_G2API_SetSurfaceOnOff void *  ghoul2,
const char *  surfaceName,
const int  flags
 

Definition at line 960 of file cg_syscalls.c.

00961 {
00962         return syscall(CG_G2_SETSURFACEONOFF, ghoul2, surfaceName, flags);
00963 }

void trap_G2API_SetTime int  time,
int  clock
 

Definition at line 986 of file cg_syscalls.c.

00987 {
00988         syscall(CG_G2_SETTIME, time, clock);
00989 }

qboolean trap_G2API_SkinlessModel void *  ghlInfo,
int  modelIndex
 

Definition at line 915 of file cg_syscalls.c.

References CG_G2_SKINLESSMODEL, and qboolean.

00916 {
00917         return syscall(CG_G2_SKINLESSMODEL, ghlInfo, modelIndex);
00918 }

int trap_GetCurrentCmdNumber void   ) 
 

Definition at line 486 of file cg_syscalls.c.

References CG_GETCURRENTCMDNUMBER.

Referenced by CG_NextForcePower_f(), CG_PredictPlayerState(), and CG_PrevForcePower_f().

00486                                                          {
00487         return syscall( CG_GETCURRENTCMDNUMBER );
00488 }

void trap_GetCurrentSnapshotNumber int *  snapshotNumber,
int *  serverTime
 

Definition at line 469 of file cg_syscalls.c.

References CG_GETCURRENTSNAPSHOTNUMBER.

Referenced by CG_ProcessSnapshots().

00469                                                                                       {
00470         syscall( CG_GETCURRENTSNAPSHOTNUMBER, snapshotNumber, serverTime );
00471 }

qboolean trap_GetDefaultState int  entityIndex,
entityState_t state
 

Definition at line 477 of file cg_syscalls.c.

References CG_GETDEFAULTSTATE, entityState_t, and qboolean.

Referenced by CG_TransitionPermanent().

00478 { //rwwRMG - added [NEWTRAP]
00479         return syscall( CG_GETDEFAULTSTATE, entityIndex, state );
00480 }

qboolean trap_GetEntityToken char *  buffer,
int  bufferSize
 

Definition at line 612 of file cg_syscalls.c.

00612                                                              {
00613         return syscall( CG_GET_ENTITY_TOKEN, buffer, bufferSize );
00614 }

void trap_GetGameState gameState_t gamestate  ) 
 

Definition at line 465 of file cg_syscalls.c.

References CG_GETGAMESTATE.

Referenced by CG_Init().

00465                                                             {
00466         syscall( CG_GETGAMESTATE, gamestate );
00467 }

void trap_GetGlconfig glconfig_t glconfig  ) 
 

Definition at line 461 of file cg_syscalls.c.

00461                                                          {
00462         syscall( CG_GETGLCONFIG, glconfig );
00463 }

qboolean trap_GetServerCommand int  serverCommandNumber  ) 
 

Definition at line 482 of file cg_syscalls.c.

References CG_GETSERVERCOMMAND, and qboolean.

00482                                                                  {
00483         return syscall( CG_GETSERVERCOMMAND, serverCommandNumber );
00484 }

qboolean trap_GetSnapshot int  snapshotNumber,
snapshot_t snapshot
 

Definition at line 473 of file cg_syscalls.c.

References CG_GETSNAPSHOT, and qboolean.

00473                                                                              {
00474         return syscall( CG_GETSNAPSHOT, snapshotNumber, snapshot );
00475 }

qboolean trap_GetUserCmd int  cmdNumber,
usercmd_t ucmd
 

Definition at line 490 of file cg_syscalls.c.

References CG_GETUSERCMD, qboolean, ucmd, and usercmd_t.

Referenced by CG_NextForcePower_f(), CG_PredictPlayerState(), and CG_PrevForcePower_f().

00490                                                                   {
00491         return syscall( CG_GETUSERCMD, cmdNumber, ucmd );
00492 }

int trap_Key_GetCatcher void   ) 
 

Definition at line 529 of file cg_syscalls.c.

00529                                 {
00530         return syscall( CG_KEY_GETCATCHER );
00531 }

int trap_Key_GetKey const char *  binding  ) 
 

Definition at line 537 of file cg_syscalls.c.

References CG_KEY_GETKEY.

00537                                            {
00538         return syscall( CG_KEY_GETKEY, binding );
00539 }

qboolean trap_Key_IsDown int  keynum  ) 
 

Definition at line 525 of file cg_syscalls.c.

00525                                        {
00526         return syscall( CG_KEY_ISDOWN, keynum );
00527 }

void trap_Key_SetCatcher int  catcher  ) 
 

Definition at line 533 of file cg_syscalls.c.

00533                                         {
00534         syscall( CG_KEY_SETCATCHER, catcher );
00535 }

qboolean trap_Language_IsAsian void   ) 
 

Definition at line 307 of file cg_syscalls.c.

00308 {
00309         return syscall( CG_LANGUAGE_ISASIAN );
00310 }

qboolean trap_Language_UsesSpaces void   ) 
 

Definition at line 312 of file cg_syscalls.c.

00313 {
00314         return syscall( CG_LANGUAGE_USESSPACES );
00315 }

int trap_MemoryRemaining void   ) 
 

Definition at line 521 of file cg_syscalls.c.

00521                                  {
00522         return syscall( CG_MEMORY_REMAINING );
00523 }

int trap_Milliseconds void   ) 
 

Definition at line 29 of file cg_syscalls.c.

00029                                           {
00030         return syscall( CG_MILLISECONDS ); 
00031 }

void trap_OpenUIMenu int  menuID  ) 
 

Definition at line 508 of file cg_syscalls.c.

References CG_OPENUIMENU.

Referenced by CG_DrawSiegeMessage(), and CG_EntityEvent().

00509 {
00510         syscall( CG_OPENUIMENU, menuID );
00511 }

int trap_PC_AddGlobalDefine char *  define  ) 
 

Definition at line 541 of file cg_syscalls.c.

00541                                             {
00542         return syscall( CG_PC_ADD_GLOBAL_DEFINE, define );
00543 }

int trap_PC_FreeSource int  handle  ) 
 

Definition at line 549 of file cg_syscalls.c.

00549                                      {
00550         return syscall( CG_PC_FREE_SOURCE, handle );
00551 }

int trap_PC_LoadGlobalDefines const char *  filename  ) 
 

Definition at line 561 of file cg_syscalls.c.

00562 {
00563         return syscall ( CG_PC_LOAD_GLOBAL_DEFINES, filename );
00564 }

int trap_PC_LoadSource const char *  filename  ) 
 

Definition at line 545 of file cg_syscalls.c.

00545                                                {
00546         return syscall( CG_PC_LOAD_SOURCE, filename );
00547 }

int trap_PC_ReadToken int  handle,
pc_token_t pc_token
 

Definition at line 553 of file cg_syscalls.c.

00553                                                           {
00554         return syscall( CG_PC_READ_TOKEN, handle, pc_token );
00555 }

void trap_PC_RemoveAllGlobalDefines void   ) 
 

Definition at line 566 of file cg_syscalls.c.

Referenced by UI_LoadMenus().

00567 {
00568         syscall ( CG_PC_REMOVE_ALL_GLOBAL_DEFINES );
00569 }

int trap_PC_SourceFileAndLine int  handle,
char *  filename,
int *  line
 

Definition at line 557 of file cg_syscalls.c.

00557                                                                        {
00558         return syscall( CG_PC_SOURCE_FILE_AND_LINE, handle, filename, line );
00559 }

int trap_PrecisionTimer_End void *  theTimer  ) 
 

Definition at line 45 of file cg_syscalls.c.

00046 {
00047         return syscall(CG_PRECISIONTIMER_END, theTimer);
00048 }

void trap_PrecisionTimer_Start void **  theNewTimer  ) 
 

Definition at line 39 of file cg_syscalls.c.

00040 {
00041         syscall(CG_PRECISIONTIMER_START, theNewTimer);
00042 }

void trap_Print const char *  fmt  ) 
 

Definition at line 21 of file cg_syscalls.c.

00021                                       {
00022         syscall( CG_PRINT, fmt );
00023 }

void trap_R_AddAdditiveLightToScene const vec3_t  org,
float  intensity,
float  r,
float  g,
float  b
 

Definition at line 356 of file cg_syscalls.c.

References CG_R_ADDADDITIVELIGHTTOSCENE, PASSFLOAT(), and vec3_t.

00356                                                                                                        {
00357         syscall( CG_R_ADDADDITIVELIGHTTOSCENE, org, PASSFLOAT(intensity), PASSFLOAT(r), PASSFLOAT(g), PASSFLOAT(b) );
00358 }

void trap_R_AddDecalToScene qhandle_t  shader,
const vec3_t  origin,
const vec3_t  dir,
float  orientation,
float  r,
float  g,
float  b,
float  a,
qboolean  alphaFade,
float  radius,
qboolean  temporary
 

Definition at line 343 of file cg_syscalls.c.

References CG_R_ADDDECALTOSCENE, PASSFLOAT(), qhandle_t, and vec3_t.

Referenced by CG_ImpactMark().

00344 {
00345         syscall( CG_R_ADDDECALTOSCENE, shader, origin, dir, PASSFLOAT(orientation), PASSFLOAT(r), PASSFLOAT(g), PASSFLOAT(b), PASSFLOAT(a), alphaFade, PASSFLOAT(radius), temporary );
00346 }

void trap_R_AddLightToScene const vec3_t  org,
float  intensity,
float  r,
float  g,
float  b
 

Definition at line 352 of file cg_syscalls.c.

00352                                                                                                {
00353         syscall( CG_R_ADDLIGHTTOSCENE, org, PASSFLOAT(intensity), PASSFLOAT(r), PASSFLOAT(g), PASSFLOAT(b) );
00354 }

void trap_R_AddPolysToScene qhandle_t  hShader,
int  numVerts,
const polyVert_t verts,
int  num
 

Definition at line 339 of file cg_syscalls.c.

References CG_R_ADDPOLYSTOSCENE, and qhandle_t.

00339                                                                                                      {
00340         syscall( CG_R_ADDPOLYSTOSCENE, hShader, numVerts, verts, num );
00341 }

void trap_R_AddPolyToScene qhandle_t  hShader,
int  numVerts,
const polyVert_t verts
 

Definition at line 335 of file cg_syscalls.c.

00335                                                                                            {
00336         syscall( CG_R_ADDPOLYTOSCENE, hShader, numVerts, verts );
00337 }

void trap_R_AddRefEntityToScene const refEntity_t re  ) 
 

Definition at line 331 of file cg_syscalls.c.

00331                                                             {
00332         syscall( CG_R_ADDREFENTITYTOSCENE, re );
00333 }

void trap_R_AutomapElevAdj float  newHeight  ) 
 

Definition at line 439 of file cg_syscalls.c.

References CG_R_AUTOMAPELEVADJ, and PASSFLOAT().

Referenced by CG_DrawAutoMap().

00440 {
00441         syscall( CG_R_AUTOMAPELEVADJ, PASSFLOAT(newHeight) );
00442 }

void trap_R_ClearDecals void   ) 
 

Definition at line 326 of file cg_syscalls.c.

References CG_R_CLEARDECALS.

00327 {
00328         syscall ( CG_R_CLEARDECALS );
00329 }

void trap_R_ClearScene void   ) 
 

Definition at line 322 of file cg_syscalls.c.

00322                                   {
00323         syscall( CG_R_CLEARSCENE );
00324 }

void trap_R_DrawRotatePic float  x,
float  y,
float  w,
float  h,
float  s1,
float  t1,
float  s2,
float  t2,
float  a,
qhandle_t  hShader
 

Definition at line 382 of file cg_syscalls.c.

References CG_R_DRAWROTATEPIC, PASSFLOAT(), and qhandle_t.

Referenced by CG_DrawRotatePic().

00384 {
00385         syscall( CG_R_DRAWROTATEPIC, PASSFLOAT(x), PASSFLOAT(y), PASSFLOAT(w), PASSFLOAT(h), PASSFLOAT(s1), PASSFLOAT(t1), PASSFLOAT(s2), PASSFLOAT(t2), PASSFLOAT(a), hShader );
00386 }

void trap_R_DrawRotatePic2 float  x,
float  y,
float  w,
float  h,
float  s1,
float  t1,
float  s2,
float  t2,
float  a,
qhandle_t  hShader
 

Definition at line 388 of file cg_syscalls.c.

References CG_R_DRAWROTATEPIC2, PASSFLOAT(), and qhandle_t.

Referenced by CG_DrawRotatePic2().

00390 {
00391         syscall( CG_R_DRAWROTATEPIC2, PASSFLOAT(x), PASSFLOAT(y), PASSFLOAT(w), PASSFLOAT(h), PASSFLOAT(s1), PASSFLOAT(t1), PASSFLOAT(s2), PASSFLOAT(t2), PASSFLOAT(a), hShader );
00392 }

void trap_R_DrawStretchPic float  x,
float  y,
float  w,
float  h,
float  s1,
float  t1,
float  s2,
float  t2,
qhandle_t  hShader
 

Definition at line 368 of file cg_syscalls.c.

00369                                                                                                                        {
00370         syscall( CG_R_DRAWSTRETCHPIC, PASSFLOAT(x), PASSFLOAT(y), PASSFLOAT(w), PASSFLOAT(h), PASSFLOAT(s1), PASSFLOAT(t1), PASSFLOAT(s2), PASSFLOAT(t2), hShader );
00371 }

void trap_R_Font_DrawString int  ox,
int  oy,
const char *  text,
const float *  rgba,
const int  setIndex,
int  iCharLimit,
const float  scale
 

Definition at line 302 of file cg_syscalls.c.

00303 {
00304         syscall( CG_R_FONT_DRAWSTRING, ox, oy, text, rgba, setIndex, iCharLimit, PASSFLOAT(scale));
00305 }

int trap_R_Font_HeightPixels const int  iFontIndex,
const float  scale
 

Definition at line 297 of file cg_syscalls.c.

00298 {
00299         return syscall( CG_R_FONT_STRHEIGHTPIXELS, iFontIndex, PASSFLOAT(scale));
00300 }

int trap_R_Font_StrLenChars const char *  text  ) 
 

Definition at line 292 of file cg_syscalls.c.

00293 {
00294         return syscall( CG_R_FONT_STRLENCHARS, text);
00295 }

int trap_R_Font_StrLenPixels const char *  text,
const int  iFontIndex,
const float  scale
 

Definition at line 287 of file cg_syscalls.c.

00288 {
00289         return syscall( CG_R_FONT_STRLENPIXELS, text, iFontIndex, PASSFLOAT(scale));
00290 }

void trap_R_GetBModelVerts int  bmodelIndex,
vec3_t verts,
vec3_t  normal
 

Definition at line 421 of file cg_syscalls.c.

References CG_R_GET_BMODEL_VERTS, and vec3_t.

Referenced by CG_GlassShatter().

00422 {
00423         syscall( CG_R_GET_BMODEL_VERTS, bmodelIndex, verts, normal );
00424 }

void trap_R_GetDistanceCull float *  f  ) 
 

Definition at line 426 of file cg_syscalls.c.

References CG_R_GETDISTANCECULL.

Referenced by CG_Init().

00427 {
00428         syscall(CG_R_GETDISTANCECULL, f);
00429 }

void trap_R_GetLightStyle int  style,
color4ub_t  color
 

Definition at line 411 of file cg_syscalls.c.

References CG_R_GET_LIGHT_STYLE, and color4ub_t.

00412 {
00413         syscall( CG_R_GET_LIGHT_STYLE, style, color );
00414 }

void trap_R_GetRealRes int *  w,
int *  h
 

Definition at line 432 of file cg_syscalls.c.

References CG_R_GETREALRES.

Referenced by CG_DrawAutoMap().

00433 {
00434         syscall( CG_R_GETREALRES, w, h );
00435 }

qboolean trap_R_InitWireframeAutomap void   ) 
 

Definition at line 445 of file cg_syscalls.c.

References CG_R_INITWIREFRAMEAUTO, and qboolean.

Referenced by CG_Init().

00446 {
00447         return syscall( CG_R_INITWIREFRAMEAUTO );
00448 }

qboolean trap_R_inPVS const vec3_t  p1,
const vec3_t  p2,
byte mask
 

Definition at line 616 of file cg_syscalls.c.

References byte, CG_R_INPVS, qboolean, and vec3_t.

Referenced by CG_DrawMiscEnts().

00616                                                                       {
00617         return syscall( CG_R_INPVS, p1, p2, mask );
00618 }

int trap_R_LerpTag orientation_t tag,
clipHandle_t  mod,
int  startFrame,
int  endFrame,
float  frac,
const char *  tagName
 

Definition at line 377 of file cg_syscalls.c.

References CG_R_LERPTAG, clipHandle_t, and PASSFLOAT().

Referenced by CG_GetTagWorldPosition(), CG_LoadClientInfo(), CG_PositionEntityOnTag(), and CG_PositionRotatedEntityOnTag().

00378                                                                              {
00379         return syscall( CG_R_LERPTAG, tag, mod, startFrame, endFrame, PASSFLOAT(frac), tagName );
00380 }

int trap_R_LightForPoint vec3_t  point,
vec3_t  ambientLight,
vec3_t  directedLight,
vec3_t  lightDir
 

Definition at line 348 of file cg_syscalls.c.

References CG_R_LIGHTFORPOINT, and vec3_t.

Referenced by CG_LightVerts().

00348                                                                                                                  {
00349         return syscall( CG_R_LIGHTFORPOINT, point, ambientLight, directedLight, lightDir );
00350 }

void trap_R_LoadWorldMap const char *  mapname  ) 
 

Definition at line 262 of file cg_syscalls.c.

References CG_R_LOADWORLDMAP.

00262                                                    {
00263         syscall( CG_R_LOADWORLDMAP, mapname );
00264 }

void trap_R_ModelBounds clipHandle_t  model,
vec3_t  mins,
vec3_t  maxs
 

Definition at line 373 of file cg_syscalls.c.

00373                                                                            {
00374         syscall( CG_R_MODELBOUNDS, model, mins, maxs );
00375 }

qhandle_t trap_R_RegisterFont const char *  fontName  ) 
 

Definition at line 282 of file cg_syscalls.c.

00283 {
00284         return syscall( CG_R_REGISTERFONT, fontName);
00285 }

qhandle_t trap_R_RegisterModel const char *  name  ) 
 

Definition at line 266 of file cg_syscalls.c.

00266                                                    {
00267         return syscall( CG_R_REGISTERMODEL, name );
00268 }

qhandle_t trap_R_RegisterShader const char *  name  ) 
 

Definition at line 274 of file cg_syscalls.c.

References CG_R_REGISTERSHADER, name, and qhandle_t.

Referenced by CG_AddLightningBeam(), CG_BracketEntity(), CG_DrawNewTeamInfo(), CG_DrawPlayerSphere(), CG_Init(), CG_Player(), CG_RegisterItemVisuals(), CG_RegisterWeapon(), CG_SaberClashFlare(), FX_ConcAltShot(), FX_DisruptorAltMiss(), FX_DisruptorAltShot(), FX_DisruptorMainShot(), FX_DrawPortableShield(), VEH_LoadVehicle(), and WP_SaberParseParms().

00274                                                     {
00275         return syscall( CG_R_REGISTERSHADER, name );
00276 }

qhandle_t trap_R_RegisterShaderNoMip const char *  name  ) 
 

Definition at line 278 of file cg_syscalls.c.

00278                                                          {
00279         return syscall( CG_R_REGISTERSHADERNOMIP, name );
00280 }

qhandle_t trap_R_RegisterSkin const char *  name  ) 
 

Definition at line 270 of file cg_syscalls.c.

00270                                                   {
00271         return syscall( CG_R_REGISTERSKIN, name );
00272 }

void trap_R_RemapShader const char *  oldShader,
const char *  newShader,
const char *  timeOffset
 

Definition at line 406 of file cg_syscalls.c.

00407 {
00408         syscall( CG_R_REMAP_SHADER, oldShader, newShader, timeOffset );
00409 }

void trap_R_RenderScene const refdef_t fd  ) 
 

Definition at line 360 of file cg_syscalls.c.

00360                                                  {
00361         syscall( CG_R_RENDERSCENE, fd );
00362 }

void trap_R_SetColor const float *  rgba  ) 
 

Definition at line 364 of file cg_syscalls.c.

00364                                              {
00365         syscall( CG_R_SETCOLOR, rgba );
00366 }

void trap_R_SetLightStyle int  style,
int  color
 

Definition at line 416 of file cg_syscalls.c.

References CG_R_SET_LIGHT_STYLE.

Referenced by CG_RunLightStyles().

00417 {
00418         syscall( CG_R_SET_LIGHT_STYLE, style, color );
00419 }

void trap_R_SetRangeFog float  range  ) 
 

Definition at line 395 of file cg_syscalls.c.

References CG_R_SETRANGEFOG, and PASSFLOAT().

Referenced by CG_DrawActiveFrame().

00396 {
00397         syscall(CG_R_SETRANGEFOG, PASSFLOAT(range));
00398 }

void trap_R_SetRefractProp float  alpha,
float  stretch,
qboolean  prepost,
qboolean  negate
 

Definition at line 401 of file cg_syscalls.c.

References CG_R_SETREFRACTIONPROP, and PASSFLOAT().

Referenced by CG_AddSaberBlade(), and CG_Player().

00402 {
00403         syscall(CG_R_SETREFRACTIONPROP, PASSFLOAT(alpha), PASSFLOAT(stretch), prepost, negate);
00404 }

void trap_R_WeatherContentsOverride int  contents  ) 
 

Definition at line 1105 of file cg_syscalls.c.

References CG_R_WEATHER_CONTENTS_OVERRIDE.

Referenced by CG_Shutdown().

01106 { //rwwRMG - added [NEWTRAP]
01107         syscall(CG_R_WEATHER_CONTENTS_OVERRIDE, contents);
01108 }

void trap_R_WorldEffectCommand const char *  cmd  ) 
 

Definition at line 1110 of file cg_syscalls.c.

References CG_R_WORLDEFFECTCOMMAND.

Referenced by CG_ParseWeatherEffect(), and CG_Shutdown().

01111 {
01112         syscall(CG_R_WORLDEFFECTCOMMAND, cmd);
01113 }

void trap_RE_InitRendererTerrain const char *  info  ) 
 

Definition at line 1100 of file cg_syscalls.c.

References CG_RE_INIT_RENDERER_TERRAIN.

01101 { //rwwRMG - added [NEWTRAP]
01102         syscall(CG_RE_INIT_RENDERER_TERRAIN, info);
01103 }

int trap_RealTime qtime_t qtime  ) 
 

Definition at line 575 of file cg_syscalls.c.

00575                                   {
00576         return syscall( CG_REAL_TIME, qtime );
00577 }

void trap_RemoveCommand const char *  cmdName  ) 
 

Definition at line 111 of file cg_syscalls.c.

References CG_REMOVECOMMAND.

00111                                                   {
00112         syscall( CG_REMOVECOMMAND, cmdName );
00113 }

void trap_RMG_Init int  terrainID,
const char *  terrainInfo
 

Definition at line 1095 of file cg_syscalls.c.

References CG_RMG_INIT.

01096 { //rwwRMG - added [NEWTRAP]
01097         syscall(CG_RMG_INIT, terrainID, terrainInfo);
01098 }

int trap_ROFF_Cache char *  file  ) 
 

Definition at line 740 of file cg_syscalls.c.

00741 {
00742         return syscall( CG_ROFF_CACHE, file );
00743 }

qboolean trap_ROFF_Clean void   ) 
 

Definition at line 730 of file cg_syscalls.c.

00731 {
00732         return syscall( CG_ROFF_CLEAN );
00733 }

qboolean trap_ROFF_Play int  entID,
int  roffID,
qboolean  doTranslation
 

Definition at line 745 of file cg_syscalls.c.

00746 {
00747         return syscall( CG_ROFF_PLAY, entID, roffID, doTranslation );
00748 }

qboolean trap_ROFF_Purge_Ent int  entID  ) 
 

Definition at line 750 of file cg_syscalls.c.

00751 {
00752         return syscall( CG_ROFF_PURGE_ENT, entID );
00753 }

void trap_ROFF_UpdateEntities void   ) 
 

Definition at line 735 of file cg_syscalls.c.

00736 {
00737         syscall( CG_ROFF_UPDATE_ENTITIES );
00738 }

int trap_S_AddLocalSet const char *  name,
vec3_t  listener_origin,
vec3_t  origin,
int  entID,
int  time
 

Definition at line 252 of file cg_syscalls.c.

References CG_S_ADDLOCALSET, name, and vec3_t.

00253 {
00254         return syscall(CG_S_ADDLOCALSET, name, listener_origin, origin, entID, time);
00255 }

void trap_S_AddLoopingSound int  entityNum,
const vec3_t  origin,
const vec3_t  velocity,
sfxHandle_t  sfx
 

Definition at line 204 of file cg_syscalls.c.

References CG_S_ADDLOOPINGSOUND, sfxHandle_t, and vec3_t.

Referenced by CG_AddPlayerWeapon(), CG_Player(), and CG_S_UpdateLoopingSounds().

00204                                                                                                              {
00205         syscall( CG_S_ADDLOOPINGSOUND, entityNum, origin, velocity, sfx );
00206 }

void trap_S_AddRealLoopingSound int  entityNum,
const vec3_t  origin,
const vec3_t  velocity,
sfxHandle_t  sfx
 

Definition at line 212 of file cg_syscalls.c.

References CG_S_ADDREALLOOPINGSOUND, sfxHandle_t, and vec3_t.

00212                                                                                                                  {
00213         syscall( CG_S_ADDREALLOOPINGSOUND, entityNum, origin, velocity, sfx );
00214 }

void trap_S_ClearLoopingSounds void   ) 
 

Definition at line 200 of file cg_syscalls.c.

References CG_S_CLEARLOOPINGSOUNDS.

Referenced by CG_DrawActiveFrame(), and CG_Init().

00200                                         {
00201         syscall( CG_S_CLEARLOOPINGSOUNDS );
00202 }

int trap_S_GetVoiceVolume int  entityNum  ) 
 

Definition at line 184 of file cg_syscalls.c.

References CG_S_GETVOICEVOLUME.

Referenced by CG_G2PlayerHeadAnims().

00184                                            {
00185         return syscall( CG_S_GETVOICEVOLUME, entityNum );
00186 }

void trap_S_MuteSound int  entityNum,
int  entchannel
 

Definition at line 188 of file cg_syscalls.c.

References CG_S_MUTESOUND.

Referenced by CG_EntityEvent(), CG_NextWeapon_f(), CG_OutOfAmmoChange(), CG_PrevWeapon_f(), CG_Weapon_f(), and CG_WeaponClean_f().

00188                                                           {
00189         syscall( CG_S_MUTESOUND, entityNum, entchannel );
00190 }

sfxHandle_t trap_S_RegisterSound const char *  sample  ) 
 

Definition at line 229 of file cg_syscalls.c.

00229                                                            {
00230         return syscall( CG_S_REGISTERSOUND, sample );
00231 }

void trap_S_Respatialize int  entityNum,
const vec3_t  origin,
vec3_t  axis[3],
int  inwater
 

Definition at line 220 of file cg_syscalls.c.

References CG_S_RESPATIALIZE, and vec3_t.

Referenced by CG_DrawActiveFrame().

00220                                                                                                {
00221         syscall( CG_S_RESPATIALIZE, entityNum, origin, axis, inwater );
00222 }

void trap_S_ShutUp qboolean  shutUpFactor  ) 
 

Definition at line 224 of file cg_syscalls.c.

References CG_S_SHUTUP.

Referenced by CG_G2AnimEntModelLoad(), and CG_LoadCISounds().

00225 {
00226         syscall(CG_S_SHUTUP, shutUpFactor);
00227 }

void trap_S_StartBackgroundTrack const char *  intro,
const char *  loop,
qboolean  bReturnWithoutStarting
 

Definition at line 233 of file cg_syscalls.c.

00233                                                                                                              {
00234         syscall( CG_S_STARTBACKGROUNDTRACK, intro, loop, bReturnWithoutStarting  );
00235 }

void trap_S_StartLocalSound sfxHandle_t  sfx,
int  channelNum
 

Definition at line 196 of file cg_syscalls.c.

00196                                                                   {
00197         syscall( CG_S_STARTLOCALSOUND, sfx, channelNum );
00198 }

void trap_S_StartSound vec3_t  origin,
int  entityNum,
int  entchannel,
sfxHandle_t  sfx
 

Definition at line 192 of file cg_syscalls.c.

References CG_S_STARTSOUND, sfxHandle_t, and vec3_t.

Referenced by CG_AddFragment(), CG_AddSaberBlade(), CG_CheckPlayerG2Weapons(), CG_Chunks(), CG_DoGlass(), CG_DrawForcePower(), CG_DrawRadar(), CG_DrawVehicleWeaponsLinked(), CG_EntityEvent(), CG_FireWeapon(), CG_FragmentBounceSound(), CG_G2SaberEffects(), CG_GlassShatter_Old(), CG_PainEvent(), CG_PlayDoorSound(), CG_Player(), CG_PlayerAnimEventDo(), CG_ROFF_NotetrackCallback(), CG_ToggleBinoculars(), CG_TryPlayCustomSound(), and DoFall().

00192                                                                                            {
00193         syscall( CG_S_STARTSOUND, origin, entityNum, entchannel, sfx );
00194 }

void trap_S_StopBackgroundTrack void   ) 
 

Definition at line 571 of file cg_syscalls.c.

00571                                            {
00572         syscall( CG_S_STOPBACKGROUNDTRACK );
00573 }

void trap_S_StopLoopingSound int  entityNum  ) 
 

Definition at line 216 of file cg_syscalls.c.

References CG_S_STOPLOOPINGSOUND.

00216                                                  {
00217         syscall( CG_S_STOPLOOPINGSOUND, entityNum );
00218 }

void trap_S_UpdateAmbientSet const char *  name,
vec3_t  origin
 

Definition at line 237 of file cg_syscalls.c.

References CG_S_UPDATEAMBIENTSET, name, and vec3_t.

Referenced by CG_DrawActiveFrame().

00238 {
00239         syscall(CG_S_UPDATEAMBIENTSET, name, origin);
00240 }

void trap_S_UpdateEntityPosition int  entityNum,
const vec3_t  origin
 

Definition at line 208 of file cg_syscalls.c.

References CG_S_UPDATEENTITYPOSITION, and vec3_t.

Referenced by CG_SetEntitySoundPosition(), and CG_UpdateSoundTrackers().

00208                                                                           {
00209         syscall( CG_S_UPDATEENTITYPOSITION, entityNum, origin );
00210 }

void trap_SendClientCommand const char *  s  ) 
 

Definition at line 115 of file cg_syscalls.c.

References CG_SENDCLIENTCOMMAND.

00115                                                 {
00116         syscall( CG_SENDCLIENTCOMMAND, s );
00117 }

void trap_SendConsoleCommand const char *  text  ) 
 

Definition at line 103 of file cg_syscalls.c.

References CG_SENDCONSOLECOMMAND.

00103                                                     {
00104         syscall( CG_SENDCONSOLECOMMAND, text );
00105 }

void trap_SetClientForceAngle int  time,
vec3_t  angle
 

Definition at line 498 of file cg_syscalls.c.

References CG_SETCLIENTFORCEANGLE, and vec3_t.

Referenced by CG_EmplacedView().

00499 {
00500         syscall( CG_SETCLIENTFORCEANGLE, time, angle );
00501 }

void trap_SetClientTurnExtent float  turnAdd,
float  turnSub,
int  turnTime
 

Definition at line 503 of file cg_syscalls.c.

References CG_SETCLIENTTURNEXTENT, and PASSFLOAT().

00504 {
00505         syscall( CG_SETCLIENTTURNEXTENT, PASSFLOAT(turnAdd), PASSFLOAT(turnSub), turnTime );
00506 }

void trap_SetUserCmdValue int  stateValue,
float  sensitivityScale,
float  mPitchOverride,
float  mYawOverride,
float  mSensitivityOverride,
int  fpSel,
int  invenSel,
qboolean  fighterControls
 

Definition at line 494 of file cg_syscalls.c.

References CG_SETUSERCMDVALUE, and PASSFLOAT().

Referenced by CG_DrawActiveFrame().

00494                                                                                                                                                                                                         {
00495         syscall( CG_SETUSERCMDVALUE, stateValue, PASSFLOAT(sensitivityScale), PASSFLOAT(mPitchOverride), PASSFLOAT(mYawOverride), PASSFLOAT(mSensitivityOverride), fpSel, invenSel, fighterControls );
00496 }

void trap_SnapVector float *  v  ) 
 

Definition at line 579 of file cg_syscalls.c.

00579                                  {
00580         syscall( CG_SNAPVECTOR, v );
00581 }

int trap_SP_GetStringTextString const char *  text,
char *  buffer,
int  bufferLength
 

Definition at line 725 of file cg_syscalls.c.

00726 {
00727         return syscall( CG_SP_GETSTRINGTEXTSTRING, text, buffer, bufferLength );
00728 }

void trap_TrueFree void **  ptr  ) 
 

Definition at line 762 of file cg_syscalls.c.

00763 {
00764         syscall(CG_TRUEFREE, ptr);
00765 }

void trap_TrueMalloc void **  ptr,
int  size
 

Definition at line 757 of file cg_syscalls.c.

00758 {
00759         syscall(CG_TRUEMALLOC, ptr, size);
00760 }

void trap_UpdateScreen void   ) 
 

Definition at line 119 of file cg_syscalls.c.

00119                                   {
00120         syscall( CG_UPDATESCREEN );
00121 }

void trap_WE_AddWeatherZone const vec3_t  mins,
const vec3_t  maxs
 

Definition at line 1115 of file cg_syscalls.c.

References CG_WE_ADDWEATHERZONE, and vec3_t.

Referenced by CG_CreateWeatherZoneFromSpawnEnt().

01116 {
01117         syscall( CG_WE_ADDWEATHERZONE, mins, maxs );
01118 }