codemp/ui/ui_syscalls.c File Reference

#include "ui_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 *string)
void trap_Error (const char *string)
int trap_Milliseconds (void)
void trap_Cvar_Register (vmCvar_t *cvar, const char *var_name, const char *value, int flags)
void trap_Cvar_Update (vmCvar_t *cvar)
void trap_Cvar_Set (const char *var_name, const char *value)
float trap_Cvar_VariableValue (const char *var_name)
void trap_Cvar_VariableStringBuffer (const char *var_name, char *buffer, int bufsize)
void trap_Cvar_SetValue (const char *var_name, float value)
void trap_Cvar_Reset (const char *name)
void trap_Cvar_Create (const char *var_name, const char *var_value, int flags)
void trap_Cvar_InfoStringBuffer (int bit, char *buffer, int bufsize)
int trap_Argc (void)
void trap_Argv (int n, char *buffer, int bufferLength)
void trap_Cmd_ExecuteText (int exec_when, const char *text)
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)
qhandle_t trap_R_RegisterModel (const char *name)
qhandle_t trap_R_RegisterSkin (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)
qhandle_t trap_R_RegisterShaderNoMip (const char *name)
void trap_R_ShaderNameFromIndex (char *name, int index)
void trap_R_ClearScene (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_AddLightToScene (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)
void trap_UpdateScreen (void)
int trap_CM_LerpTag (orientation_t *tag, clipHandle_t mod, int startFrame, int endFrame, float frac, const char *tagName)
void trap_S_StartLocalSound (sfxHandle_t sfx, int channelNum)
sfxHandle_t trap_S_RegisterSound (const char *sample)
void trap_Key_KeynumToStringBuf (int keynum, char *buf, int buflen)
void trap_Key_GetBindingBuf (int keynum, char *buf, int buflen)
void trap_Key_SetBinding (int keynum, const char *binding)
qboolean trap_Key_IsDown (int keynum)
qboolean trap_Key_GetOverstrikeMode (void)
void trap_Key_SetOverstrikeMode (qboolean state)
void trap_Key_ClearStates (void)
int trap_Key_GetCatcher (void)
void trap_Key_SetCatcher (int catcher)
void trap_GetClipboardData (char *buf, int bufsize)
void trap_GetClientState (uiClientState_t *state)
void trap_GetGlconfig (glconfig_t *glconfig)
int trap_GetConfigString (int index, char *buff, int buffsize)
int trap_LAN_GetServerCount (int source)
void trap_LAN_GetServerAddressString (int source, int n, char *buf, int buflen)
void trap_LAN_GetServerInfo (int source, int n, char *buf, int buflen)
int trap_LAN_GetServerPing (int source, int n)
int trap_LAN_GetPingQueueCount (void)
int trap_LAN_ServerStatus (const char *serverAddress, char *serverStatus, int maxLen)
void trap_LAN_SaveCachedServers ()
void trap_LAN_LoadCachedServers ()
void trap_LAN_ResetPings (int n)
void trap_LAN_ClearPing (int n)
void trap_LAN_GetPing (int n, char *buf, int buflen, int *pingtime)
void trap_LAN_GetPingInfo (int n, char *buf, int buflen)
void trap_LAN_MarkServerVisible (int source, int n, qboolean visible)
int trap_LAN_ServerIsVisible (int source, int n)
qboolean trap_LAN_UpdateVisiblePings (int source)
int trap_LAN_AddServer (int source, const char *name, const char *addr)
void trap_LAN_RemoveServer (int source, const char *addr)
int trap_LAN_CompareServers (int source, int sortKey, int sortDir, int s1, int s2)
int trap_MemoryRemaining (void)
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)
void trap_S_StartBackgroundTrack (const char *intro, const char *loop, qboolean bReturnWithoutStarting)
int trap_RealTime (qtime_t *qtime)
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)
void trap_R_RemapShader (const char *oldShader, const char *newShader, const char *timeOffset)
int trap_SP_GetNumLanguages (void)
void trap_GetLanguageName (const int languageIndex, char *buffer)
int trap_SP_GetStringTextString (const char *text, char *buffer, int bufferLength)
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)
int trap_G2API_AddBolt (void *ghoul2, int modelIndex, const char *boneName)
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)
int trap_G2API_GetTime (void)
void trap_G2API_SetTime (int time, int clock)
void trap_G2API_SetRagDoll (void *ghoul2, sharedRagDollParams_t *params)
void trap_G2API_AnimateG2Models (void *ghoul2, int time, sharedRagDollUpdateParams_t *params)
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)
void trap_G2API_GetSurfaceName (void *ghoul2, int surfNumber, int modelIndex, char *fillBuf)
qboolean trap_G2API_AttachG2Model (void *ghoul2From, int modelIndexFrom, void *ghoul2To, int toBoltIndex, int toModel)


Function Documentation

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

Definition at line 11 of file ui_syscalls.c.

00011                                                         {
00012         syscall = syscallptr;
00013 }

int PASSFLOAT float  x  ) 
 

Definition at line 15 of file ui_syscalls.c.

Referenced by testPrintFloat(), trap_AAS_PredictClientMovement(), trap_BotAddAvoidSpot(), trap_BotChooseNBGItem(), trap_BotLibStartFrame(), trap_BotLoadCharacter(), trap_BotMoveInDirection(), trap_BotMovementViewTarget(), trap_BotSetAvoidGoalTime(), trap_Characteristic_BFloat(), trap_CM_LerpTag(), trap_Cvar_SetValue(), trap_EA_EndRegular(), trap_EA_GetInput(), trap_EA_Move(), trap_FX_AddLine(), trap_FX_Draw2DEffects(), trap_G2API_CollisionDetect(), trap_G2API_CollisionDetectCache(), trap_G2API_RagPCJGradientSpeed(), trap_G2API_SetBoneAnim(), trap_R_AddAdditiveLightToScene(), trap_R_AddDecalToScene(), trap_R_AddLightToScene(), trap_R_AutomapElevAdj(), trap_R_DrawRotatePic(), trap_R_DrawRotatePic2(), trap_R_DrawStretchPic(), trap_R_Font_DrawString(), trap_R_Font_HeightPixels(), trap_R_Font_StrLenPixels(), trap_R_LerpTag(), trap_R_SetRangeFog(), trap_R_SetRefractProp(), trap_SetClientTurnExtent(), trap_SetServerCull(), and trap_SetUserCmdValue().

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

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

Definition at line 146 of file ui_syscalls.c.

References CG_ANYLANGUAGE_READCHARFROMSTRING, and UI_ANYLANGUAGE_READCHARFROMSTRING.

00147 {
00148         return syscall( UI_ANYLANGUAGE_READCHARFROMSTRING, psText, piAdvanceCount, pbIsTrailingPunctuation);
00149 }

int trap_Argc void   ) 
 

Definition at line 71 of file ui_syscalls.c.

References CG_ARGC, and UI_ARGC.

00071                       {
00072         return syscall( UI_ARGC );
00073 }

void trap_Argv int  n,
char *  buffer,
int  bufferLength
 

Definition at line 75 of file ui_syscalls.c.

References CG_ARGV, and UI_ARGV.

Referenced by CG_Argv(), CG_TargetCommand_f(), ClientCommand(), Cmd_CallTeamVote_f(), Cmd_CallVote_f(), Cmd_DebugSetBodyAnim_f(), Cmd_DebugSetSaberMove_f(), Cmd_DuelTeam_f(), Cmd_Follow_f(), Cmd_ForceChanged_f(), Cmd_GameCommand_f(), Cmd_Give_f(), Cmd_NPC_f(), Cmd_SetViewpos_f(), Cmd_SiegeClass_f(), Cmd_Team_f(), Cmd_TeamTask_f(), Cmd_TeamVote_f(), Cmd_Vote_f(), ConcatArgs(), ConsoleCommand(), NPC_Kill_f(), NPC_Spawn_f(), Svcmd_AddBot_f(), Svcmd_AddIP_f(), Svcmd_ForceTeam_f(), Svcmd_Nav_f(), Svcmd_RemoveIP_f(), and UI_Argv().

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

void trap_CIN_DrawCinematic int  handle  ) 
 

Definition at line 423 of file ui_syscalls.c.

References CG_CIN_DRAWCINEMATIC, and UI_CIN_DRAWCINEMATIC.

00423                                          {
00424   syscall(UI_CIN_DRAWCINEMATIC, handle);
00425 }

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

Definition at line 405 of file ui_syscalls.c.

References CG_CIN_PLAYCINEMATIC, and UI_CIN_PLAYCINEMATIC.

Referenced by UI_FeederSelection().

00405                                                                                                    {
00406   return syscall(UI_CIN_PLAYCINEMATIC, arg0, xpos, ypos, width, height, bits);
00407 }

e_status trap_CIN_RunCinematic int  handle  ) 
 

Definition at line 417 of file ui_syscalls.c.

References CG_CIN_RUNCINEMATIC, e_status, and UI_CIN_RUNCINEMATIC.

00417                                             {
00418   return syscall(UI_CIN_RUNCINEMATIC, handle);
00419 }

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

Definition at line 429 of file ui_syscalls.c.

References CG_CIN_SETEXTENTS, and UI_CIN_SETEXTENTS.

00429                                                                   {
00430   syscall(UI_CIN_SETEXTENTS, handle, x, y, w, h);
00431 }

e_status trap_CIN_StopCinematic int  handle  ) 
 

Definition at line 411 of file ui_syscalls.c.

References CG_CIN_STOPCINEMATIC, e_status, and UI_CIN_STOPCINEMATIC.

Referenced by UI_FeederSelection().

00411                                             {
00412   return syscall(UI_CIN_STOPCINEMATIC, handle);
00413 }

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

Definition at line 206 of file ui_syscalls.c.

References clipHandle_t, PASSFLOAT(), and UI_CM_LERPTAG.

00206                                                                                                                            {
00207         return syscall( UI_CM_LERPTAG, tag, mod, startFrame, endFrame, PASSFLOAT(frac), tagName );
00208 }

void trap_Cmd_ExecuteText int  exec_when,
const char *  text
 

Definition at line 79 of file ui_syscalls.c.

References UI_CMD_EXECUTETEXT.

Referenced by _UI_Init(), UI_StartDemoLoop(), UI_UpdateClientForcePowers(), and UI_UpdateVideoSetup().

00079                                                              {
00080         syscall( UI_CMD_EXECUTETEXT, exec_when, text );
00081 }

void trap_Cvar_Create const char *  var_name,
const char *  var_value,
int  flags
 

Definition at line 63 of file ui_syscalls.c.

References UI_CVAR_CREATE.

00063                                                                                 {
00064         syscall( UI_CVAR_CREATE, var_name, var_value, flags );
00065 }

void trap_Cvar_InfoStringBuffer int  bit,
char *  buffer,
int  bufsize
 

Definition at line 67 of file ui_syscalls.c.

References UI_CVAR_INFOSTRINGBUFFER.

00067                                                                       {
00068         syscall( UI_CVAR_INFOSTRINGBUFFER, bit, buffer, bufsize );
00069 }

void trap_Cvar_Register vmCvar_t cvar,
const char *  var_name,
const char *  value,
int  flags
 

Definition at line 33 of file ui_syscalls.c.

References CG_CVAR_REGISTER, and UI_CVAR_REGISTER.

Referenced by _UI_Init(), AcceptBotCommand(), BG_AddPredictableEventToPlayerstate(), BotAISetup(), CG_RegisterCvars(), G_InitBots(), G_InitGame(), G_RefreshNextMap(), G_RegisterCvars(), InitSiegeMode(), LoadPath_ThisLevel(), NAV_CheckCalcPaths(), UI_GetVideoSetup(), UI_LoadBots(), and UI_RegisterCvars().

00033                                                                                               {
00034         syscall( UI_CVAR_REGISTER, cvar, var_name, value, flags );
00035 }

void trap_Cvar_Reset const char *  name  ) 
 

Definition at line 59 of file ui_syscalls.c.

References name, and UI_CVAR_RESET.

00059                                          {
00060         syscall( UI_CVAR_RESET, name ); 
00061 }

void trap_Cvar_Set const char *  var_name,
const char *  value
 

Definition at line 41 of file ui_syscalls.c.

References CG_CVAR_SET, and UI_CVAR_SET.

Referenced by _UI_Init(), _UI_KeyEvent(), _UI_Refresh(), _UI_SetActiveMenu(), CG_DrawActiveFrame(), CG_DrawSiegeMessage(), CG_DrawTimedMenus(), CG_EntityEvent(), CG_InitSiegeMode(), CG_NewClientInfo(), CG_ParseServerinfo(), CG_ParseSiegeObjectiveStatus(), CG_Player(), CG_PredictPlayerState(), CG_SE_UpdateMusic(), CG_SetSiegeTimerCvar(), CG_ShowResponseHead(), CG_SiegeBriefingDisplay(), CG_SiegeCountCvars(), CG_UpdateCvars(), CheckCvars(), CheckTournament(), ClientSpawn(), ClientThink_real(), G_InitGame(), G_RefreshNextMap(), G_RegisterCvars(), G_RunFrame(), G_WriteClientSessionData(), G_WriteSessionData(), InitSiegeMode(), SP_terrain(), SP_worldspawn(), UI_ClampMaxPlayers(), UI_FeederSelection(), UI_ForceMaxRank_HandleKey(), UI_GetSaberForMenu(), UI_GetVideoSetup(), UI_SaberDrawBlades(), UI_SetBestScores(), UI_ShowPostGame(), UI_SiegeSetCvarsForClass(), UI_UpdateClientForcePowers(), UI_UpdateCvarsForClass(), UI_UpdateVideoSetup(), and WP_InitForcePowers().

00041                                                               {
00042         syscall( UI_CVAR_SET, var_name, value );
00043 }

void trap_Cvar_SetValue const char *  var_name,
float  value
 

Definition at line 55 of file ui_syscalls.c.

References PASSFLOAT(), and UI_CVAR_SETVALUE.

00055                                                              {
00056         syscall( UI_CVAR_SETVALUE, var_name, PASSFLOAT( value ) );
00057 }

void trap_Cvar_Update vmCvar_t cvar  ) 
 

Definition at line 37 of file ui_syscalls.c.

References CG_CVAR_UPDATE, and UI_CVAR_UPDATE.

Referenced by BotAI(), BotAISetup(), BotAIStartFrame(), CalculateWeightGoals(), CG_UpdateCvars(), G_CheckMinimumPlayers(), G_UpdateCvars(), GetIdealDestination(), HolocronUpdate(), JediMasterUpdate(), LoadPath_ThisLevel(), RepairPaths(), and UI_UpdateCvars().

00037                                         {
00038         syscall( UI_CVAR_UPDATE, cvar );
00039 }

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

Definition at line 51 of file ui_syscalls.c.

References CG_CVAR_VARIABLESTRINGBUFFER, and UI_CVAR_VARIABLESTRINGBUFFER.

Referenced by _UI_SetActiveMenu(), CG_DrawInformation(), CG_DrawRadar(), CG_Init(), CG_InitSiegeMode(), CG_NewClientInfo(), CG_RegisterCvars(), CG_SiegeBriefingDisplay(), Cmd_CallVote_f(), FX_DrawPortableShield(), G_InitWorldSession(), G_ReadSessionData(), G_RunFrame(), ItemParse_asset_model(), NPC_UpdateAngles(), Q3_PlaySound(), SP_terrain(), trap_Cvar_VariableValue(), trap_R_RegisterShaderNoMip(), UI_Cvar_VariableString(), UI_DrawConnectScreen(), UI_FeederSelection(), UI_GetSaberForMenu(), UI_SaberDrawBlade(), UI_SaberDrawBlades(), UI_SetSiegeObjectiveGraphicPos(), UI_SetSiegeTeams(), UI_UpdateCharacterSkin(), and WP_ResistForcePush().

00051                                                                                        {
00052         syscall( UI_CVAR_VARIABLESTRINGBUFFER, var_name, buffer, bufsize );
00053 }

float trap_Cvar_VariableValue const char *  var_name  ) 
 

Definition at line 45 of file ui_syscalls.c.

References atof(), trap_Cvar_VariableStringBuffer(), and UI_CVAR_VARIABLEVALUE.

Referenced by _UI_Init(), _UI_SetActiveMenu(), G_AddRandomBot(), UI_ClampMaxPlayers(), UI_ConsoleCommand(), UI_FeederSelection(), UI_FindCurrentSiegeTeamClass(), UI_ForceConfigHandle(), UI_ForceSide_HandleKey(), UI_JediNonJedi_HandleKey(), UI_LoadBestScores(), UI_ParseInfos(), UI_ReadLegalForce(), UpdateForceStatus(), and UpdateForceUsed().

00045                                                       {
00046         int temp;
00047         temp = syscall( UI_CVAR_VARIABLEVALUE, var_name );
00048         return (*(float*)&temp);
00049 }

void trap_Error const char *  string  ) 
 

Definition at line 25 of file ui_syscalls.c.

References CG_ERROR, and UI_ERROR.

Referenced by CG_Error(), Com_Error(), G_Error(), and UI_LoadMenus().

00025                                       {
00026         syscall( UI_ERROR, string );
00027 }

void trap_FS_FCloseFile fileHandle_t  f  ) 
 

Definition at line 95 of file ui_syscalls.c.

References CG_FS_FCLOSEFILE, fileHandle_t, and UI_FS_FCLOSEFILE.

Referenced by BG_FileExists(), BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), BotUtilizePersonality(), CG_GetMenuBuffer(), CG_InitSiegeMode(), CG_LoadCISounds(), CG_LoadMenus(), CG_ParseSurfsFile(), G_LogWeaponOutput(), G_ModelIndex(), G_ShutdownGame(), GetMenuBuffer(), InitSiegeMode(), LoadPathData(), NPC_LoadParms(), SavePathData(), UI_ClearScores(), UI_ForceConfigHandle(), UI_hasSkinForBase(), UI_LoadBestScores(), UI_ParseAnimationFile(), UI_ParseInfos(), UI_SaberLoadParms(), UI_SaveForceTemplate(), UI_SetSiegeTeams(), and WP_SaberLoadParms().

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

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

Definition at line 83 of file ui_syscalls.c.

References CG_FS_FOPENFILE, fileHandle_t, and UI_FS_FOPENFILE.

Referenced by BG_FileExists(), BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), BotUtilizePersonality(), CG_GetMenuBuffer(), CG_InitSiegeMode(), CG_LoadCISounds(), CG_LoadMenus(), CG_ParseSurfsFile(), G_InitGame(), G_LogWeaponOutput(), G_ModelIndex(), GetMenuBuffer(), InitSiegeMode(), LoadPathData(), NPC_LoadParms(), SavePathData(), UI_ClearScores(), UI_ForceConfigHandle(), UI_hasSkinForBase(), UI_LoadBestScores(), UI_ParseAnimationFile(), UI_ParseInfos(), UI_SaberLoadParms(), UI_SaveForceTemplate(), UI_SetSiegeTeams(), and WP_SaberLoadParms().

00083                                                                            {
00084         return syscall( UI_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 ui_syscalls.c.

References CG_FS_GETFILELIST, and UI_FS_GETFILELIST.

Referenced by BG_SiegeLoadClasses(), BG_SiegeLoadTeams(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), NPC_LoadParms(), UI_ClearScores(), UI_LoadArenas(), UI_LoadBots(), UI_LoadForceConfig_List(), UI_SaberLoadParms(), and WP_SaberLoadParms().

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

void trap_FS_Read void *  buffer,
int  len,
fileHandle_t  f
 

Definition at line 87 of file ui_syscalls.c.

References CG_FS_READ, fileHandle_t, and UI_FS_READ.

Referenced by BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), BotUtilizePersonality(), CG_GetMenuBuffer(), CG_InitSiegeMode(), CG_LoadCISounds(), CG_LoadMenus(), CG_ParseSurfsFile(), GetMenuBuffer(), InitSiegeMode(), LoadPathData(), NPC_LoadParms(), UI_ForceConfigHandle(), UI_LoadBestScores(), UI_ParseAnimationFile(), UI_SaberLoadParms(), UI_SetSiegeTeams(), and WP_SaberLoadParms().

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

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

Definition at line 91 of file ui_syscalls.c.

References CG_FS_WRITE, fileHandle_t, and UI_FS_WRITE.

Referenced by G_LogPrintf(), G_LogWeaponOutput(), SavePathData(), UI_ClearScores(), and UI_SaveForceTemplate().

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

qboolean trap_G2_HaveWeGhoul2Models void *  ghoul2  ) 
 

Definition at line 470 of file ui_syscalls.c.

References CG_G2_HAVEWEGHOULMODELS, qboolean, and UI_G2_HAVEWEGHOULMODELS.

Referenced by CG_DestroyAllGhoul2(), CG_EntityEvent(), CG_GetClientWeaponMuzzleBoltPoint(), CG_LoadClientInfo(), CG_NewClientInfo(), CG_Player(), CG_ResetPlayerEntity(), CG_SetInitialSnapshot(), ClientDisconnect(), ClientThink_real(), G_FreeEntity(), G_ShutdownGame(), SetupGameGhoul2Model(), and UI_CleanupGhoul2().

00471 {
00472         return (qboolean)(syscall(UI_G2_HAVEWEGHOULMODELS, ghoul2));
00473 }

void trap_G2_ListModelBones void *  ghlInfo,
int  frame
 

Definition at line 460 of file ui_syscalls.c.

References CG_G2_LISTBONES, and UI_G2_LISTBONES.

00461 {
00462         syscall( UI_G2_LISTBONES, ghlInfo, frame);
00463 }

void trap_G2_ListModelSurfaces void *  ghlInfo  ) 
 

Definition at line 455 of file ui_syscalls.c.

References CG_G2_LISTSURFACES, and UI_G2_LISTSURFACES.

00456 {
00457         syscall( UI_G2_LISTSURFACES, ghlInfo);
00458 }

void trap_G2_SetGhoul2ModelIndexes void *  ghoul2,
qhandle_t modelList,
qhandle_t skinList
 

Definition at line 465 of file ui_syscalls.c.

References CG_G2_SETMODELS, qhandle_t, and UI_G2_SETMODELS.

00466 {
00467         syscall( UI_G2_SETMODELS, ghoul2, modelList, skinList);
00468 }

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

Definition at line 599 of file ui_syscalls.c.

References CG_G2_ADDBOLT, and UI_G2_ADDBOLT.

Referenced by BG_AttachToRancor(), CG_CalcEWebMuzzlePoint(), CG_CheckPassengerTurretView(), CG_Disintegration(), CG_EntityEvent(), CG_G2AnimEntModelLoad(), CG_InitG2Weapons(), CG_InitJetpackGhoul2(), CG_LoadClientInfo(), CG_NewClientInfo(), CG_Player(), CG_PlayerAnimEventDo(), CG_PredictPlayerState(), CG_RagDoll(), CG_ResetPlayerEntity(), CG_SetInitialSnapshot(), ClientThink_real(), EWeb_Create(), G_AttachToVehicle(), G_GetDismemberBolt(), G_GetHitLocFromSurfName(), G_SaberModelSetup(), GM_Dying(), ImperialProbe_FireBlaster(), Mark1_dying(), Mark1_FireBlaster(), Mark1_FireRocket(), Mark1Dead_FireBlaster(), Mark1Dead_FireRocket(), Mark2_FireBlaster(), NPC_Mark1_Pain(), NPC_Mark2_Pain(), Rancor_SetBolts(), Sentry_Fire(), SetupGameGhoul2Model(), SP_worldspawn(), TurretClientRun(), turretG2_set_models(), UI_SaberAttachToChar(), UI_SaberDrawBlade(), UpdateClientRenderinfo(), and Wampa_SetBolts().

00600 {
00601         return syscall(UI_G2_ADDBOLT, ghoul2, modelIndex, boneName);
00602 }

void trap_G2API_AnimateG2Models void *  ghoul2,
int  time,
sharedRagDollUpdateParams_t params
 

Definition at line 640 of file ui_syscalls.c.

References CG_G2_ANIMATEG2MODELS, and UI_G2_ANIMATEG2MODELS.

Referenced by CG_RagDoll(), and strap_G2API_AnimateG2Models().

00641 {
00642         syscall(UI_G2_ANIMATEG2MODELS, ghoul2, time, params);
00643 }

qboolean trap_G2API_AttachG2Model void *  ghoul2From,
int  modelIndexFrom,
void *  ghoul2To,
int  toBoltIndex,
int  toModel
 

Definition at line 661 of file ui_syscalls.c.

References qboolean, and UI_G2_ATTACHG2MODEL.

Referenced by UI_SaberAttachToChar().

00662 {
00663         return syscall(UI_G2_ATTACHG2MODEL, ghoul2From, modelIndexFrom, ghoul2To, toBoltIndex, toModel);
00664 }

void trap_G2API_CleanGhoul2Models void **  ghoul2Ptr  ) 
 

Definition at line 540 of file ui_syscalls.c.

References CG_G2_CLEANMODELS, and UI_G2_CLEANMODELS.

Referenced by BG_ModelCache(), CG_CacheG2AnimInfo(), CG_CleanJetpackGhoul2(), CG_CopyG2WeaponInstance(), CG_DestroyAllGhoul2(), CG_EntityEvent(), CG_G2AnimEntModelLoad(), CG_LoadClientInfo(), CG_NewClientInfo(), CG_Player(), CG_ShutDownG2Weapons(), ClientDisconnect(), G_FreeEntity(), G_SaberModelSetup(), G_ShutdownGame(), ItemParse_asset_model_go(), NPC_VehiclePrecache(), SetupGameGhoul2Model(), and UI_CleanupGhoul2().

00541 {
00542         syscall(UI_G2_CLEANMODELS, ghoul2Ptr);
00543 }

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 504 of file ui_syscalls.c.

References CG_G2_COLLISIONDETECT, PASSFLOAT(), UI_G2_COLLISIONDETECT, and vec3_t.

Referenced by CG_G2TraceCollide().

00518 {
00519         syscall ( UI_G2_COLLISIONDETECT, collRecMap, ghoul2, angles, position, frameNumber, entNum, rayStart, rayEnd, scale, traceFlags, useLod, PASSFLOAT(fRadius) );
00520 }

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 522 of file ui_syscalls.c.

References CG_G2_COLLISIONDETECTCACHE, PASSFLOAT(), UI_G2_COLLISIONDETECTCACHE, and vec3_t.

Referenced by CG_G2TraceCollide().

00536 {
00537         syscall ( UI_G2_COLLISIONDETECTCACHE, collRecMap, ghoul2, angles, position, frameNumber, entNum, rayStart, rayEnd, scale, traceFlags, useLod, PASSFLOAT(fRadius) );
00538 }

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

Definition at line 574 of file ui_syscalls.c.

References CG_G2_COPYGHOUL2INSTANCE, and UI_G2_COPYGHOUL2INSTANCE.

00575 {
00576         return syscall(UI_G2_COPYGHOUL2INSTANCE, g2From, g2To, modelIndex);
00577 }

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

Definition at line 579 of file ui_syscalls.c.

References CG_G2_COPYSPECIFICGHOUL2MODEL, and UI_G2_COPYSPECIFICGHOUL2MODEL.

Referenced by CG_CopyG2WeaponInstance(), CG_Player(), G_SaberModelSetup(), and SetupGameGhoul2Model().

00580 {
00581         syscall(UI_G2_COPYSPECIFICGHOUL2MODEL, g2From, modelFrom, g2To, modelTo);
00582 }

void trap_G2API_DuplicateGhoul2Instance void *  g2From,
void **  g2To
 

Definition at line 584 of file ui_syscalls.c.

References CG_G2_DUPLICATEGHOUL2INSTANCE, and UI_G2_DUPLICATEGHOUL2INSTANCE.

Referenced by CG_LoadClientInfo(), CG_NewClientInfo(), CG_Player(), CG_ResetPlayerEntity(), CG_SetInitialSnapshot(), and SetupGameGhoul2Model().

00585 {
00586         syscall(UI_G2_DUPLICATEGHOUL2INSTANCE, g2From, g2To);
00587 }

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 475 of file ui_syscalls.c.

References CG_G2_GETBOLT, qboolean, qhandle_t, UI_G2_GETBOLT, and vec3_t.

Referenced by BG_AttachToRancor(), Boba_FireFlameThrower(), Boba_StartFlameThrower(), CG_AddPlayerWeapon(), CG_AddSaberBlade(), CG_Disintegration(), CG_EntityEvent(), CG_GetClientWeaponMuzzleBoltPoint(), CG_Player(), CG_PlayerAnimEventDo(), CG_RagDoll(), CG_VehicleAttachDroidUnit(), ClientThink_real(), EWebFire(), EWebPositionUser(), G2_BoltToGhoul2Model(), G_AttachToVehicle(), G_GetBoltPosition(), G_GetDismemberBolt(), G_GetHitLocFromSurfName(), G_RunExPhys(), G_VehicleAttachDroidUnit(), ImperialProbe_FireBlaster(), Mark1_FireBlaster(), Mark1_FireRocket(), Mark1Dead_FireBlaster(), Mark1Dead_FireRocket(), Mark2_FireBlaster(), NPC_Mark1_Part_Explode(), NPC_Mark2_Part_Explode(), Sentry_Fire(), strap_G2API_GetBoltMatrix(), TurretClientRun(), turretG2_head_think(), UI_SaberDrawBlade(), UpdateClientRenderBolts(), UpdateClientRenderinfo(), and WP_SaberPositionUpdate().

00477 {
00478         return (qboolean)(syscall(UI_G2_GETBOLT, ghoul2, modelIndex, boltIndex, matrix, angles, position, frameNum, modelList, scale));
00479 }

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 487 of file ui_syscalls.c.

References CG_G2_GETBOLT_NOREC_NOROT, qboolean, qhandle_t, UI_G2_GETBOLT_NOREC_NOROT, and vec3_t.

Referenced by CG_CalcEWebMuzzlePoint(), CG_CalcVehMuzzle(), CG_CheckPassengerTurretView(), strap_G2API_GetBoltMatrix_NoRecNoRot(), and WP_CalcVehMuzzle().

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

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 481 of file ui_syscalls.c.

References CG_G2_GETBOLT_NOREC, qboolean, qhandle_t, UI_G2_GETBOLT_NOREC, and vec3_t.

Referenced by strap_G2API_GetBoltMatrix_NoReconstruct().

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

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 558 of file ui_syscalls.c.

References CG_G2_GETBONEANIM, qboolean, and UI_G2_GETBONEANIM.

Referenced by CG_RagDoll(), and strap_G2API_GetBoneAnim().

00560 {
00561         return syscall(UI_G2_GETBONEANIM, ghoul2, boneName, currentTime, currentFrame, startFrame, endFrame, flags, animSpeed, modelList, modelIndex);
00562 }

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

Definition at line 564 of file ui_syscalls.c.

References CG_G2_GETBONEFRAME, qboolean, and UI_G2_GETBONEFRAME.

Referenced by CG_TriggerAnimSounds().

00565 {
00566         return syscall(UI_G2_GETBONEFRAME, ghoul2, boneName, currentTime, currentFrame, modelList, modelIndex);
00567 }

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

Definition at line 569 of file ui_syscalls.c.

References CG_G2_GETGLANAME, and UI_G2_GETGLANAME.

Referenced by CG_CacheG2AnimInfo(), CG_G2AnimEntModelLoad(), CG_G2EvIndexForModel(), CG_G2SkelForModel(), ItemParse_asset_model_go(), NPC_VehiclePrecache(), and SetupGameGhoul2Model().

00570 {
00571         syscall(UI_G2_GETGLANAME, ghoul2, modelIndex, fillBuf);
00572 }

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

Definition at line 656 of file ui_syscalls.c.

References CG_G2_GETSURFACENAME, and UI_G2_GETSURFACENAME.

Referenced by G_CheckForDismemberment(), G_Damage(), and G_LocationBasedDamageModifier().

00657 {
00658         syscall(UI_G2_GETSURFACENAME, ghoul2, surfNumber, modelIndex, fillBuf);
00659 }

int trap_G2API_GetTime void   ) 
 

Definition at line 624 of file ui_syscalls.c.

References CG_G2_GETTIME, and UI_G2_GETTIME.

00625 {
00626         return syscall(UI_G2_GETTIME);
00627 }

qboolean trap_G2API_HasGhoul2ModelOnIndex void *  ghlInfo,
int  modelIndex
 

Definition at line 589 of file ui_syscalls.c.

References CG_G2_HASGHOUL2MODELONINDEX, qboolean, and UI_G2_HASGHOUL2MODELONINDEX.

Referenced by CG_AddPlayerWeapon(), CG_CopyG2WeaponInstance(), CG_EntityEvent(), CG_GetClientWeaponMuzzleBoltPoint(), CG_Player(), UI_SaberAttachToChar(), and UI_SaberDrawBlade().

00590 {
00591         return syscall(UI_G2_HASGHOUL2MODELONINDEX, ghlInfo, modelIndex);
00592 }

qboolean trap_G2API_IKMove void *  ghoul2,
int  time,
sharedIKMoveParams_t params
 

Definition at line 651 of file ui_syscalls.c.

References CG_G2_IKMOVE, qboolean, and UI_G2_IKMOVE.

Referenced by strap_G2API_IKMove().

00652 {
00653         return syscall(UI_G2_IKMOVE, ghoul2, time, params);
00654 }

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

Definition at line 493 of file ui_syscalls.c.

References CG_G2_INITGHOUL2MODEL, qhandle_t, and UI_G2_INITGHOUL2MODEL.

Referenced by BG_ModelCache(), CG_CacheG2AnimInfo(), CG_G2AnimEntModelLoad(), CG_InitG2Weapons(), CG_InitJetpackGhoul2(), CG_Player(), CG_RegisterItemVisuals(), EWeb_Create(), G_SaberModelSetup(), ItemParse_asset_model_go(), NPC_VehiclePrecache(), SetupGameGhoul2Model(), SP_misc_G2model(), SP_worldspawn(), TurretClientRun(), turretG2_set_models(), UI_SaberAttachToChar(), and WP_SaberAddG2Model().

00495 {
00496         return syscall(UI_G2_INITGHOUL2MODEL, ghoul2Ptr, fileName, modelIndex, customSkin, customShader, modelFlags, lodBias);
00497 }

qboolean trap_G2API_RemoveGhoul2Model void *  ghlInfo,
int  modelIndex
 

Definition at line 594 of file ui_syscalls.c.

References CG_G2_REMOVEGHOUL2MODEL, qboolean, and UI_G2_REMOVEGHOUL2MODEL.

Referenced by CG_CopyG2WeaponInstance(), CG_EntityEvent(), CG_Player(), turretG2_set_models(), and UI_SaberAttachToChar().

00595 {
00596         return syscall(UI_G2_REMOVEGHOUL2MODEL, ghlInfo, modelIndex);
00597 }

void trap_G2API_SetBoltInfo void *  ghoul2,
int  modelIndex,
int  boltInfo
 

Definition at line 604 of file ui_syscalls.c.

References CG_G2_SETBOLTON, and UI_G2_SETBOLTON.

Referenced by CG_InitG2Weapons(), CG_InitJetpackGhoul2(), G_SaberModelSetup(), SetupGameGhoul2Model(), and SP_worldspawn().

00605 {
00606         syscall(UI_G2_SETBOLTON, ghoul2, modelIndex, boltInfo);
00607 }

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 545 of file ui_syscalls.c.

References CG_G2_ANGLEOVERRIDE, qboolean, qhandle_t, UI_G2_ANGLEOVERRIDE, and vec3_t.

Referenced by CG_G2ServerBoneAngles(), CG_G2SetBoneAngles(), CG_Player(), EWeb_SetBoneAngles(), G2Tur_SetBoneAngles(), NPC_SetBoneAngles(), SetupGameGhoul2Model(), strap_G2API_SetBoneAngles(), and TurretClientRun().

00548 {
00549         return (syscall(UI_G2_ANGLEOVERRIDE, ghoul2, modelIndex, boneName, angles, flags, up, right, forward, modelList, blendTime, currentTime));
00550 }

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 552 of file ui_syscalls.c.

References CG_G2_PLAYANIM, PASSFLOAT(), qboolean, and UI_G2_PLAYANIM.

Referenced by CG_EntityEvent(), CG_NewClientInfo(), CG_Player(), CG_RagDoll(), EWeb_SetBoneAnim(), G_UpdateClientAnims(), ItemParse_asset_model_go(), SetupGameGhoul2Model(), SP_misc_G2model(), strap_G2API_SetBoneAnim(), TurboLaser_SetBoneAnim(), and TurretClientRun().

00554 {
00555         return syscall(UI_G2_PLAYANIM, ghoul2, modelIndex, boneName, startFrame, endFrame, flags, PASSFLOAT(animSpeed), currentTime, PASSFLOAT(setFrame), blendTime);
00556 }

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

Definition at line 646 of file ui_syscalls.c.

References CG_G2_SETBONEIKSTATE, qboolean, and UI_G2_SETBONEIKSTATE.

Referenced by CG_RagDoll(), and strap_G2API_SetBoneIKState().

00647 {
00648         return syscall(UI_G2_SETBONEIKSTATE, ghoul2, time, boneName, ikState, params);
00649 }

qboolean trap_G2API_SetNewOrigin void *  ghoul2,
const int  boltIndex
 

Definition at line 619 of file ui_syscalls.c.

References CG_G2_SETNEWORIGIN, qboolean, and UI_G2_SETNEWORIGIN.

00620 {
00621         return syscall(UI_G2_SETNEWORIGIN, ghoul2, boltIndex);
00622 }

void trap_G2API_SetRagDoll void *  ghoul2,
sharedRagDollParams_t params
 

Definition at line 635 of file ui_syscalls.c.

References CG_G2_SETRAGDOLL, and UI_G2_SETRAGDOLL.

Referenced by CG_Player(), CG_RagDoll(), and strap_G2API_SetRagDoll().

00636 {
00637         syscall(UI_G2_SETRAGDOLL, ghoul2, params);
00638 }

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

Definition at line 609 of file ui_syscalls.c.

References CG_G2_SETROOTSURFACE, qboolean, and UI_G2_SETROOTSURFACE.

00610 {
00611         return syscall(UI_G2_SETROOTSURFACE, ghoul2, modelIndex, surfaceName);
00612 }

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

Definition at line 499 of file ui_syscalls.c.

References CG_G2_SETSKIN, qboolean, qhandle_t, and UI_G2_SETSKIN.

Referenced by CG_G2AnimEntModelLoad(), CG_ReattachLimb(), G_SaberModelSetup(), ItemParse_asset_model_go(), ItemParse_model_g2skin_go(), SetupGameGhoul2Model(), SP_worldspawn(), and UI_SaberAttachToChar().

00500 {
00501         return syscall(UI_G2_SETSKIN, ghoul2, modelIndex, customSkin, renderSkin);
00502 }

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

Definition at line 614 of file ui_syscalls.c.

References CG_G2_SETSURFACEONOFF, qboolean, and UI_G2_SETSURFACEONOFF.

Referenced by CG_EntityEvent(), CG_G2Animated(), G_Dismember(), NPC_SetMiscDefaultData(), and NPC_SetSurfaceOnOff().

00615 {
00616         return syscall(UI_G2_SETSURFACEONOFF, ghoul2, surfaceName, flags);
00617 }

void trap_G2API_SetTime int  time,
int  clock
 

Definition at line 629 of file ui_syscalls.c.

References CG_G2_SETTIME, and UI_G2_SETTIME.

Referenced by _UI_Refresh().

00630 {
00631         syscall(UI_G2_SETTIME, time, clock);
00632 }

void trap_GetClientState uiClientState_t state  ) 
 

Definition at line 258 of file ui_syscalls.c.

References UI_GETCLIENTSTATE.

Referenced by UI_DrawConnectScreen().

00258                                                    {
00259         syscall( UI_GETCLIENTSTATE, state );
00260 }

void trap_GetClipboardData char *  buf,
int  bufsize
 

Definition at line 254 of file ui_syscalls.c.

References UI_GETCLIPBOARDDATA.

00254                                                      {
00255         syscall( UI_GETCLIPBOARDDATA, buf, bufsize );
00256 }

int trap_GetConfigString int  index,
char *  buff,
int  buffsize
 

Definition at line 266 of file ui_syscalls.c.

References UI_GETCONFIGSTRING.

Referenced by UI_DrawConnectScreen(), UI_ForceConfigHandle(), UI_ForceSide_HandleKey(), UI_HasSetSaberOnly(), UI_JediNonJedi_HandleKey(), UI_ReadLegalForce(), UI_SetSiegeTeams(), UI_TrueJediEnabled(), and UpdateForceStatus().

00266                                                                 {
00267         return syscall( UI_GETCONFIGSTRING, index, buff, buffsize );
00268 }

void trap_GetGlconfig glconfig_t glconfig  ) 
 

Definition at line 262 of file ui_syscalls.c.

References CG_GETGLCONFIG, and UI_GETGLCONFIG.

Referenced by _UI_Init(), and CG_Init().

00262                                               {
00263         syscall( UI_GETGLCONFIG, glconfig );
00264 }

void trap_GetLanguageName const int  languageIndex,
char *  buffer
 

Definition at line 443 of file ui_syscalls.c.

References UI_SP_GETLANGUAGENAME.

Referenced by ItemParse_cvarStrList().

00444 {
00445         syscall( UI_SP_GETLANGUAGENAME, languageIndex, buffer);
00446 }

void trap_Key_ClearStates void   ) 
 

Definition at line 242 of file ui_syscalls.c.

References UI_KEY_CLEARSTATES.

Referenced by _UI_KeyEvent(), and _UI_SetActiveMenu().

00242                                   {
00243         syscall( UI_KEY_CLEARSTATES );
00244 }

void trap_Key_GetBindingBuf int  keynum,
char *  buf,
int  buflen
 

Definition at line 222 of file ui_syscalls.c.

References UI_KEY_GETBINDINGBUF.

Referenced by _UI_Init().

00222                                                                  {
00223         syscall( UI_KEY_GETBINDINGBUF, keynum, buf, buflen );
00224 }

int trap_Key_GetCatcher void   ) 
 

Definition at line 246 of file ui_syscalls.c.

References CG_KEY_GETCATCHER, and UI_KEY_GETCATCHER.

00246                                 {
00247         return syscall( UI_KEY_GETCATCHER );
00248 }

qboolean trap_Key_GetOverstrikeMode void   ) 
 

Definition at line 234 of file ui_syscalls.c.

References qboolean, and UI_KEY_GETOVERSTRIKEMODE.

Referenced by _UI_Init().

00234                                             {
00235         return syscall( UI_KEY_GETOVERSTRIKEMODE );
00236 }

qboolean trap_Key_IsDown int  keynum  ) 
 

Definition at line 230 of file ui_syscalls.c.

References CG_KEY_ISDOWN, qboolean, and UI_KEY_ISDOWN.

00230                                        {
00231         return syscall( UI_KEY_ISDOWN, keynum );
00232 }

void trap_Key_KeynumToStringBuf int  keynum,
char *  buf,
int  buflen
 

Definition at line 218 of file ui_syscalls.c.

References UI_KEY_KEYNUMTOSTRINGBUF.

Referenced by _UI_Init().

00218                                                                      {
00219         syscall( UI_KEY_KEYNUMTOSTRINGBUF, keynum, buf, buflen );
00220 }

void trap_Key_SetBinding int  keynum,
const char *  binding
 

Definition at line 226 of file ui_syscalls.c.

References UI_KEY_SETBINDING.

Referenced by _UI_Init().

00226                                                             {
00227         syscall( UI_KEY_SETBINDING, keynum, binding );
00228 }

void trap_Key_SetCatcher int  catcher  ) 
 

Definition at line 250 of file ui_syscalls.c.

References CG_KEY_SETCATCHER, and UI_KEY_SETCATCHER.

Referenced by _UI_KeyEvent(), _UI_SetActiveMenu(), CG_KeyEvent(), CG_MouseEvent(), and UI_ConsoleCommand().

00250                                         {
00251         syscall( UI_KEY_SETCATCHER, catcher );
00252 }

void trap_Key_SetOverstrikeMode qboolean  state  ) 
 

Definition at line 238 of file ui_syscalls.c.

References UI_KEY_SETOVERSTRIKEMODE.

Referenced by _UI_Init().

00238                                                   {
00239         syscall( UI_KEY_SETOVERSTRIKEMODE, state );
00240 }

int trap_LAN_AddServer int  source,
const char *  name,
const char *  addr
 

Definition at line 330 of file ui_syscalls.c.

References name, and UI_LAN_ADDSERVER.

00330                                                                        {
00331         return syscall( UI_LAN_ADDSERVER, source, name, addr );
00332 }

void trap_LAN_ClearPing int  n  ) 
 

Definition at line 306 of file ui_syscalls.c.

References UI_LAN_CLEARPING.

00306                                  {
00307         syscall( UI_LAN_CLEARPING, n );
00308 }

int trap_LAN_CompareServers int  source,
int  sortKey,
int  sortDir,
int  s1,
int  s2
 

Definition at line 338 of file ui_syscalls.c.

References UI_LAN_COMPARESERVERS.

00338                                                                                     {
00339         return syscall( UI_LAN_COMPARESERVERS, source, sortKey, sortDir, s1, s2 );
00340 }

void trap_LAN_GetPing int  n,
char *  buf,
int  buflen,
int *  pingtime
 

Definition at line 310 of file ui_syscalls.c.

References UI_LAN_GETPING.

00310                                                                      {
00311         syscall( UI_LAN_GETPING, n, buf, buflen, pingtime );
00312 }

void trap_LAN_GetPingInfo int  n,
char *  buf,
int  buflen
 

Definition at line 314 of file ui_syscalls.c.

References UI_LAN_GETPINGINFO.

00314                                                           {
00315         syscall( UI_LAN_GETPINGINFO, n, buf, buflen );
00316 }

int trap_LAN_GetPingQueueCount void   ) 
 

Definition at line 286 of file ui_syscalls.c.

References UI_LAN_GETPINGQUEUECOUNT.

00286                                        {
00287         return syscall( UI_LAN_GETPINGQUEUECOUNT );
00288 }

void trap_LAN_GetServerAddressString int  source,
int  n,
char *  buf,
int  buflen
 

Definition at line 274 of file ui_syscalls.c.

References UI_LAN_GETSERVERADDRESSSTRING.

00274                                                                                  {
00275         syscall( UI_LAN_GETSERVERADDRESSSTRING, source, n, buf, buflen );
00276 }

int trap_LAN_GetServerCount int  source  ) 
 

Definition at line 270 of file ui_syscalls.c.

References UI_LAN_GETSERVERCOUNT.

00270                                               {
00271         return syscall( UI_LAN_GETSERVERCOUNT, source );
00272 }

void trap_LAN_GetServerInfo int  source,
int  n,
char *  buf,
int  buflen
 

Definition at line 278 of file ui_syscalls.c.

References UI_LAN_GETSERVERINFO.

Referenced by UI_FeederSelection().

00278                                                                         {
00279         syscall( UI_LAN_GETSERVERINFO, source, n, buf, buflen );
00280 }

int trap_LAN_GetServerPing int  source,
int  n
 

Definition at line 282 of file ui_syscalls.c.

References UI_LAN_GETSERVERPING.

00282                                                 {
00283         return syscall( UI_LAN_GETSERVERPING, source, n );
00284 }

void trap_LAN_LoadCachedServers  ) 
 

Definition at line 298 of file ui_syscalls.c.

References UI_LAN_LOADCACHEDSERVERS.

Referenced by _UI_Init().

00298                                   {
00299         syscall( UI_LAN_LOADCACHEDSERVERS );
00300 }

void trap_LAN_MarkServerVisible int  source,
int  n,
qboolean  visible
 

Definition at line 318 of file ui_syscalls.c.

References UI_LAN_MARKSERVERVISIBLE.

00318                                                                        {
00319         syscall( UI_LAN_MARKSERVERVISIBLE, source, n, visible );
00320 }

void trap_LAN_RemoveServer int  source,
const char *  addr
 

Definition at line 334 of file ui_syscalls.c.

References UI_LAN_REMOVESERVER.

00334                                                          {
00335         syscall( UI_LAN_REMOVESERVER, source, addr );
00336 }

void trap_LAN_ResetPings int  n  ) 
 

Definition at line 302 of file ui_syscalls.c.

References UI_LAN_RESETPINGS.

00302                                 {
00303         syscall( UI_LAN_RESETPINGS, n );
00304 }

void trap_LAN_SaveCachedServers  ) 
 

Definition at line 294 of file ui_syscalls.c.

References UI_LAN_SAVECACHEDSERVERS.

Referenced by _UI_Shutdown().

00294                                   {
00295         syscall( UI_LAN_SAVECACHEDSERVERS );
00296 }

int trap_LAN_ServerIsVisible int  source,
int  n
 

Definition at line 322 of file ui_syscalls.c.

References UI_LAN_SERVERISVISIBLE.

00322                                                  {
00323         return syscall( UI_LAN_SERVERISVISIBLE, source, n );
00324 }

int trap_LAN_ServerStatus const char *  serverAddress,
char *  serverStatus,
int  maxLen
 

Definition at line 290 of file ui_syscalls.c.

References UI_LAN_SERVERSTATUS.

00290                                                                                        {
00291         return syscall( UI_LAN_SERVERSTATUS, serverAddress, serverStatus, maxLen );
00292 }

qboolean trap_LAN_UpdateVisiblePings int  source  ) 
 

Definition at line 326 of file ui_syscalls.c.

References qboolean, and UI_LAN_UPDATEVISIBLEPINGS.

00326                                                    {
00327         return syscall( UI_LAN_UPDATEVISIBLEPINGS, source );
00328 }

qboolean trap_Language_IsAsian void   ) 
 

Definition at line 136 of file ui_syscalls.c.

References CG_LANGUAGE_ISASIAN, qboolean, and UI_LANGUAGE_ISASIAN.

00137 {
00138         return syscall( UI_LANGUAGE_ISASIAN );
00139 }

qboolean trap_Language_UsesSpaces void   ) 
 

Definition at line 141 of file ui_syscalls.c.

References CG_LANGUAGE_USESSPACES, qboolean, and UI_LANGUAGE_USESSPACES.

00142 {
00143         return syscall( UI_LANGUAGE_USESSPACES );
00144 }

int trap_MemoryRemaining void   ) 
 

Definition at line 342 of file ui_syscalls.c.

References CG_MEMORY_REMAINING, and UI_MEMORY_REMAINING.

00342                                  {
00343         return syscall( UI_MEMORY_REMAINING );
00344 }

int trap_Milliseconds void   ) 
 

Definition at line 29 of file ui_syscalls.c.

References CG_MILLISECONDS, and UI_MILLISECONDS.

00029                               {
00030         return syscall( UI_MILLISECONDS ); 
00031 }

int trap_PC_AddGlobalDefine char *  define  ) 
 

Definition at line 362 of file ui_syscalls.c.

References CG_PC_ADD_GLOBAL_DEFINE, and UI_PC_ADD_GLOBAL_DEFINE.

00362                                             {
00363         return syscall( UI_PC_ADD_GLOBAL_DEFINE, define );
00364 }

int trap_PC_FreeSource int  handle  ) 
 

Definition at line 370 of file ui_syscalls.c.

References CG_PC_FREE_SOURCE, and UI_PC_FREE_SOURCE.

Referenced by CG_ParseMenu(), UI_LoadMenus(), and UI_ParseMenu().

00370                                      {
00371         return syscall( UI_PC_FREE_SOURCE, handle );
00372 }

int trap_PC_LoadGlobalDefines const char *  filename  ) 
 

Definition at line 382 of file ui_syscalls.c.

References CG_PC_LOAD_GLOBAL_DEFINES, and UI_PC_LOAD_GLOBAL_DEFINES.

Referenced by UI_LoadMenus().

00383 {
00384         return syscall ( UI_PC_LOAD_GLOBAL_DEFINES, filename );
00385 }

int trap_PC_LoadSource const char *  filename  ) 
 

Definition at line 366 of file ui_syscalls.c.

References CG_PC_LOAD_SOURCE, and UI_PC_LOAD_SOURCE.

Referenced by CG_ParseMenu(), UI_LoadMenus(), and UI_ParseMenu().

00366                                                {
00367         return syscall( UI_PC_LOAD_SOURCE, filename );
00368 }

int trap_PC_ReadToken int  handle,
pc_token_t pc_token
 

Definition at line 374 of file ui_syscalls.c.

References CG_PC_READ_TOKEN, pc_token_t, and UI_PC_READ_TOKEN.

Referenced by Asset_Parse(), CG_Asset_Parse(), CG_ParseMenu(), Item_Parse(), ItemParse_asset_model(), ItemParse_asset_shader(), ItemParse_background(), ItemParse_cvarFloatList(), ItemParse_cvarStrList(), ItemParse_flag(), ItemParse_focusSound(), ItemParse_model_g2anim(), ItemParse_model_g2skin(), ItemParse_rectcvar(), Load_Menu(), Menu_Parse(), MenuParse_background(), PC_Float_Parse(), PC_Int_Parse(), PC_Script_Parse(), PC_String_Parse(), UI_LoadMenus(), and UI_ParseMenu().

00374                                                           {
00375         return syscall( UI_PC_READ_TOKEN, handle, pc_token );
00376 }

void trap_PC_RemoveAllGlobalDefines void   ) 
 

Definition at line 387 of file ui_syscalls.c.

References CG_PC_REMOVE_ALL_GLOBAL_DEFINES, and UI_PC_REMOVE_ALL_GLOBAL_DEFINES.

00388 {
00389         syscall ( UI_PC_REMOVE_ALL_GLOBAL_DEFINES );
00390 }

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

Definition at line 378 of file ui_syscalls.c.

References CG_PC_SOURCE_FILE_AND_LINE, and UI_PC_SOURCE_FILE_AND_LINE.

Referenced by PC_SourceError(), and PC_SourceWarning().

00378                                                                        {
00379         return syscall( UI_PC_SOURCE_FILE_AND_LINE, handle, filename, line );
00380 }

void trap_Print const char *  string  ) 
 

Definition at line 21 of file ui_syscalls.c.

References CG_PRINT, and UI_PRINT.

Referenced by CG_GetMenuBuffer(), CG_LoadMenus(), CG_Printf(), Com_Printf(), GetMenuBuffer(), UI_GetBotInfoByNumber(), and UI_LoadArenas().

00021                                       {
00022         syscall( UI_PRINT, string );
00023 }

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

Definition at line 182 of file ui_syscalls.c.

References CG_R_ADDLIGHTTOSCENE, PASSFLOAT(), UI_R_ADDLIGHTTOSCENE, and vec3_t.

Referenced by CG_AddPlayerWeapon(), and CG_DoSaber().

00182                                                                                             {
00183         syscall( UI_R_ADDLIGHTTOSCENE, org, PASSFLOAT(intensity), PASSFLOAT(r), PASSFLOAT(g), PASSFLOAT(b) );
00184 }

void trap_R_AddPolyToScene qhandle_t  hShader,
int  numVerts,
const polyVert_t verts
 

Definition at line 178 of file ui_syscalls.c.

References CG_R_ADDPOLYTOSCENE, qhandle_t, and UI_R_ADDPOLYTOSCENE.

Referenced by CG_AddMarks(), CG_AddParticleToScene(), CG_AddSaberBlade(), and CG_ImpactMark().

00178                                                                                         {
00179         syscall( UI_R_ADDPOLYTOSCENE, hShader, numVerts, verts );
00180 }

void trap_R_AddRefEntityToScene const refEntity_t re  ) 
 

Definition at line 174 of file ui_syscalls.c.

References CG_R_ADDREFENTITYTOSCENE, and UI_R_ADDREFENTITYTOSCENE.

Referenced by CG_AddFadeRGB(), CG_AddFragment(), CG_AddLine(), CG_AddOLine(), CG_AddRefEntity(), CG_AddRefEntityWithPowerups(), CG_AddScorePlum(), CG_Beam(), CG_CreateDistortionTrailPart(), CG_Disintegration(), CG_DoSaber(), CG_Draw3DModel(), CG_DrawMiscEnts(), CG_DrawPlayerShield(), CG_DrawPlayerSphere(), CG_Player(), and UI_DoSaber().

00174                                                          {
00175         syscall( UI_R_ADDREFENTITYTOSCENE, re );
00176 }

void trap_R_ClearScene void   ) 
 

Definition at line 170 of file ui_syscalls.c.

References CG_R_CLEARSCENE, and UI_R_CLEARSCENE.

00170                                {
00171         syscall( UI_R_CLEARSCENE );
00172 }

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 194 of file ui_syscalls.c.

References CG_R_DRAWSTRETCHPIC, PASSFLOAT(), qhandle_t, and UI_R_DRAWSTRETCHPIC.

Referenced by _UI_DrawSides(), _UI_DrawTopBottom(), CG_DrawChar(), CG_DrawPic(), CG_DrawSides(), CG_DrawTopBottom(), CG_FillRect(), CG_FillRect2(), UI_DrawHandlePic(), UI_DrawNamedPic(), UI_DrawSides(), UI_DrawTopBottom(), and UI_FillRect().

00194                                                                                                                             {
00195         syscall( UI_R_DRAWSTRETCHPIC, PASSFLOAT(x), PASSFLOAT(y), PASSFLOAT(w), PASSFLOAT(h), PASSFLOAT(s1), PASSFLOAT(t1), PASSFLOAT(s2), PASSFLOAT(t2), hShader );
00196 }

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 131 of file ui_syscalls.c.

References CG_R_FONT_DRAWSTRING, PASSFLOAT(), and UI_R_FONT_DRAWSTRING.

Referenced by CG_Text_Paint(), and Text_Paint().

00132 {
00133         syscall( UI_R_FONT_DRAWSTRING, ox, oy, text, rgba, setIndex, iCharLimit, PASSFLOAT(scale));
00134 }

int trap_R_Font_HeightPixels const int  iFontIndex,
const float  scale
 

Definition at line 126 of file ui_syscalls.c.

References CG_R_FONT_STRHEIGHTPIXELS, PASSFLOAT(), and UI_R_FONT_STRHEIGHTPIXELS.

Referenced by CG_Text_Height(), and Text_Height().

00127 {
00128         return syscall( UI_R_FONT_STRHEIGHTPIXELS, iFontIndex, PASSFLOAT(scale));
00129 }

int trap_R_Font_StrLenChars const char *  text  ) 
 

Definition at line 121 of file ui_syscalls.c.

References CG_R_FONT_STRLENCHARS, and UI_R_FONT_STRLENCHARS.

00122 {
00123         return syscall( UI_R_FONT_STRLENCHARS, text);
00124 }

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

Definition at line 116 of file ui_syscalls.c.

References CG_R_FONT_STRLENPIXELS, PASSFLOAT(), and UI_R_FONT_STRLENPIXELS.

Referenced by CG_Text_Width(), Text_PaintWithCursor(), and Text_Width().

00117 {
00118         return syscall( UI_R_FONT_STRLENPIXELS, text, iFontIndex, PASSFLOAT(scale));
00119 }

void trap_R_ModelBounds clipHandle_t  model,
vec3_t  mins,
vec3_t  maxs
 

Definition at line 198 of file ui_syscalls.c.

References CG_R_MODELBOUNDS, clipHandle_t, UI_R_MODELBOUNDS, and vec3_t.

Referenced by CG_CreateBrushEntData(), CG_CreateModelFromSpawnEnt(), CG_DrawFlagModel(), CG_MiscEnt(), and CG_RegisterWeapon().

00198                                                                            {
00199         syscall( UI_R_MODELBOUNDS, model, mins, maxs );
00200 }

qhandle_t trap_R_RegisterFont const char *  fontName  ) 
 

Definition at line 111 of file ui_syscalls.c.

References CG_R_REGISTERFONT, qhandle_t, and UI_R_REGISTERFONT.

Referenced by Asset_Parse(), and CG_Init().

00112 {
00113         return syscall( UI_R_REGISTERFONT, fontName);
00114 }

qhandle_t trap_R_RegisterModel const char *  name  ) 
 

Definition at line 103 of file ui_syscalls.c.

References CG_R_REGISTERMODEL, name, qhandle_t, and UI_R_REGISTERMODEL.

Referenced by BG_ModelCache(), CG_AddPlayerWeapon(), CG_CreateBrushEntData(), CG_CreateDebris(), CG_CreateDistortionTrailPart(), CG_CreateModelFromSpawnEnt(), CG_GlassShatter_Old(), CG_InitSiegeMode(), CG_MiscEnt(), CG_Player(), CG_PrecachePlayersForSiegeTeam(), CG_RegisterItemVisuals(), CG_RegisterWeapon(), CG_TestModel_f(), and VEH_LoadVehicle().

00103                                                    {
00104         return syscall( UI_R_REGISTERMODEL, name );
00105 }

qhandle_t trap_R_RegisterShaderNoMip const char *  name  ) 
 

Definition at line 151 of file ui_syscalls.c.

References CG_R_REGISTERSHADERNOMIP, name, qhandle_t, trap_Cvar_VariableStringBuffer(), and UI_R_REGISTERSHADERNOMIP.

Referenced by _UI_Init(), Asset_Parse(), AssetCache(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), CG_Asset_Parse(), CG_AssetCache(), CG_DrawFlagStatus(), CG_DrawInformation(), CG_DrawRadar(), CG_Init(), CG_InitSiegeMode(), CG_PrecacheSiegeObjectiveAssetsForTeam(), CG_RegisterItemVisuals(), CG_RegisterWeapon(), CG_SiegeCountCvars(), UI_CacheSaberGlowGraphics(), UI_DrawNamedPic(), UI_FeederSelection(), UI_InitForceShaders(), and VEH_LoadVehicle().

00151                                                          {
00152         char buf[1024];
00153         
00154         if (name[0] == '*') {
00155                 trap_Cvar_VariableStringBuffer(name+1, buf, sizeof(buf));
00156                 if (buf[0]) {
00157                         return syscall( UI_R_REGISTERSHADERNOMIP, &buf );
00158                 }
00159         }
00160         return syscall( UI_R_REGISTERSHADERNOMIP, name );
00161 }

qhandle_t trap_R_RegisterSkin const char *  name  ) 
 

Definition at line 107 of file ui_syscalls.c.

References CG_R_REGISTERSKIN, name, qhandle_t, and UI_R_REGISTERSKIN.

Referenced by BG_ModelCache(), CG_CacheG2AnimInfo(), CG_G2AnimEntModelLoad(), CG_HandleAppendedSkin(), CG_InitSiegeMode(), CG_PrecachePlayersForSiegeTeam(), ItemParse_model_g2skin(), ItemParse_model_g2skin_go(), NPC_VehiclePrecache(), SetupGameGhoul2Model(), SP_worldspawn(), UI_SaberAttachToChar(), VEH_LoadVehicle(), and WP_SaberParseParms().

00107                                                   {
00108         return syscall( UI_R_REGISTERSKIN, name );
00109 }

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

Definition at line 434 of file ui_syscalls.c.

References CG_R_REMAP_SHADER, and UI_R_REMAP_SHADER.

00434                                                                                                    {
00435         syscall( UI_R_REMAP_SHADER, oldShader, newShader, timeOffset );
00436 }

void trap_R_RenderScene const refdef_t fd  ) 
 

Definition at line 186 of file ui_syscalls.c.

References CG_R_RENDERSCENE, and UI_R_RENDERSCENE.

Referenced by CG_Draw3DModel(), CG_DrawActive(), CG_DrawAutoMap(), and CG_DrawSkyBoxPortal().

00186                                               {
00187         syscall( UI_R_RENDERSCENE, fd );
00188 }

void trap_R_SetColor const float *  rgba  ) 
 

Definition at line 190 of file ui_syscalls.c.

References CG_R_SETCOLOR, and UI_R_SETCOLOR.

Referenced by _UI_DrawRect(), CG_BracketEntity(), CG_DottedLine(), CG_DrawArmor(), CG_DrawForcePower(), CG_DrawForceSelect(), CG_DrawHealth(), CG_DrawHUD(), CG_DrawInformation(), CG_DrawInvenSelect(), CG_DrawMedal(), CG_DrawNewTeamInfo(), CG_DrawRadar(), CG_DrawRect(), CG_DrawStringExt(), CG_DrawTeamBackground(), CG_DrawVehicleAmmo(), CG_DrawVehicleAmmoLower(), CG_DrawVehicleAmmoUpper(), CG_DrawVehicleArmor(), CG_DrawVehicleDamage(), CG_DrawVehicleDamageHUD(), CG_DrawVehicleHud(), CG_DrawVehicleShields(), CG_DrawVehicleSpeed(), CG_DrawVehicleTurboRecharge(), CG_DrawVehicleWeaponsLinked(), CG_DrawWeaponSelect(), CG_FillRect(), CG_FillRect2(), CG_LoadBar(), CG_SaberClashFlare(), UI_DrawForceStars(), UI_DrawRect(), UI_FillRect(), and UI_SetColor().

00190                                           {
00191         syscall( UI_R_SETCOLOR, rgba );
00192 }

void trap_R_ShaderNameFromIndex char *  name,
int  index
 

Definition at line 165 of file ui_syscalls.c.

References name, and UI_R_SHADERNAMEFROMINDEX.

Referenced by UI_SiegeSetCvarsForClass().

00166 {
00167         syscall( UI_R_SHADERNAMEFROMINDEX, name, index );
00168 }

int trap_RealTime qtime_t qtime  ) 
 

Definition at line 400 of file ui_syscalls.c.

References CG_REAL_TIME, qtime_t, and UI_REAL_TIME.

00400                                   {
00401         return syscall( UI_REAL_TIME, qtime );
00402 }

sfxHandle_t trap_S_RegisterSound const char *  sample  ) 
 

Definition at line 214 of file ui_syscalls.c.

References CG_S_REGISTERSOUND, sfxHandle_t, and UI_S_REGISTERSOUND.

Referenced by Asset_Parse(), BG_SoundIndex(), CG_Asset_Parse(), CG_CustomSound(), CG_DoGlass(), CG_DrawRadar(), CG_EntityEvent(), CG_G2AnimEntModelLoad(), CG_GlassShatter_Old(), CG_LoadCISounds(), CG_PlayerAnimEventDo(), CG_PrecacheSiegeObjectiveAssetsForTeam(), CG_RegisterWeapon(), CG_ROFF_NotetrackCallback(), CG_SiegeObjectiveCompleted(), CG_SiegeRoundOver(), ParseAnimationEvtBlock(), VEH_LoadVehicle(), and VEH_LoadVehWeapon().

00214                                                            {
00215         return syscall( UI_S_REGISTERSOUND, sample );
00216 }

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

Definition at line 396 of file ui_syscalls.c.

References CG_S_STARTBACKGROUNDTRACK, and UI_S_STARTBACKGROUNDTRACK.

Referenced by CG_EntityEvent(), and CG_StartMusic().

00396                                                                                                         {
00397         syscall( UI_S_STARTBACKGROUNDTRACK, intro, loop, bReturnWithoutStarting );
00398 }

void trap_S_StartLocalSound sfxHandle_t  sfx,
int  channelNum
 

Definition at line 210 of file ui_syscalls.c.

References CG_S_STARTLOCALSOUND, sfxHandle_t, and UI_S_STARTLOCALSOUND.

Referenced by CG_CheckAmmo(), CG_CheckLocalSounds(), CG_EntityEvent(), CG_SiegeObjectiveCompleted(), CG_SiegeRoundOver(), Item_Model_Paint(), and UI_FeederSelection().

00210                                                                {
00211         syscall( UI_S_STARTLOCALSOUND, sfx, channelNum );
00212 }

void trap_S_StopBackgroundTrack void   ) 
 

Definition at line 392 of file ui_syscalls.c.

References CG_S_STOPBACKGROUNDTRACK, and UI_S_STOPBACKGROUNDTRACK.

00392                                         {
00393         syscall( UI_S_STOPBACKGROUNDTRACK );
00394 }

int trap_SP_GetNumLanguages void   ) 
 

Definition at line 438 of file ui_syscalls.c.

References UI_SP_GETNUMLANGUAGES.

Referenced by _UI_Init().

00439 {
00440         return syscall( UI_SP_GETNUMLANGUAGES );
00441 }

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

Definition at line 448 of file ui_syscalls.c.

References CG_SP_GETSTRINGTEXTSTRING, and UI_SP_GETSTRINGTEXTSTRING.

Referenced by BindingFromName(), CG_DrawInformation(), CG_DrawInvenSelect(), CG_DrawOldScoreboard(), CG_DrawSiegeMessageNonMenu(), CG_DrawWeaponSelect(), CG_GetGameStatusText(), CG_GetLocationString(), CG_GetStringEdString(), CG_InitSiegeMode(), CG_PlaceString(), Item_ListBox_Paint(), Item_Multi_Paint(), Item_Paint(), Item_Text_AutoWrapped_Paint(), Item_Text_Paint(), Item_Text_Wrapped_Paint(), Item_TextField_Paint(), Item_YesNo_Paint(), UI_DrawConnectScreen(), UI_GetStringEdString(), and UI_SaberProperNameForSaber().

00449 {
00450         return syscall( UI_SP_GETSTRINGTEXTSTRING, text, buffer, bufferLength );
00451 }

void trap_UpdateScreen void   ) 
 

Definition at line 202 of file ui_syscalls.c.

References CG_UPDATESCREEN, and UI_UPDATESCREEN.

00202                                {
00203         syscall( UI_UPDATESCREEN );
00204 }