#include "../game/q_shared.h"#include "tr_types.h"#include "../game/bg_public.h"#include "cg_public.h"#include "../namespace_begin.h"#include "../namespace_end.h"Go to the source code of this file.
Data Structures | |
| struct | centity_s |
| struct | cg_t |
| struct | cgEffects_t |
| struct | cgLoopSound_s |
| struct | cgMedia_t |
| struct | cgs_t |
| struct | cgscreffects_s |
| struct | chatBoxItem_s |
| struct | clientInfo_t |
| struct | forceTicPos_s |
| struct | itemInfo_t |
| struct | lerpFrame_t |
| struct | localEntity_s |
| struct | markPoly_s |
| struct | playerEntity_t |
| struct | powerupInfo_t |
| struct | score_t |
| struct | siegeExtended_s |
| struct | skulltrail_t |
| struct | weaponInfo_s |
Defines | |
| #define | CGAME_INLINE ID_INLINE |
| #define | NULL_HANDLE ((qhandle_t) 0) |
| #define | NULL_SOUND ((sfxHandle_t) 0) |
| #define | NULL_FX ((fxHandle_t) 0) |
| #define | POWERUP_BLINKS 5 |
| #define | POWERUP_BLINK_TIME 1000 |
| #define | FADE_TIME 200 |
| #define | PULSE_TIME 200 |
| #define | DAMAGE_DEFLECT_TIME 100 |
| #define | DAMAGE_RETURN_TIME 400 |
| #define | DAMAGE_TIME 500 |
| #define | LAND_DEFLECT_TIME 150 |
| #define | LAND_RETURN_TIME 300 |
| #define | STEP_TIME 200 |
| #define | DUCK_TIME 100 |
| #define | PAIN_TWITCH_TIME 200 |
| #define | WEAPON_SELECT_TIME 1400 |
| #define | ITEM_SCALEUP_TIME 1000 |
| #define | ZOOM_TIME 150 |
| #define | MAX_ZOOM_FOV 3.0f |
| #define | ZOOM_IN_TIME 1500.0f |
| #define | ZOOM_OUT_TIME 100.0f |
| #define | ZOOM_START_PERCENT 0.3f |
| #define | ITEM_BLOB_TIME 200 |
| #define | MUZZLE_FLASH_TIME 20 |
| #define | SINK_TIME 1000 |
| #define | ATTACKER_HEAD_TIME 10000 |
| #define | REWARD_TIME 3000 |
| #define | PULSE_SCALE 1.5 |
| #define | MAX_STEP_CHANGE 32 |
| #define | MAX_VERTS_ON_POLY 10 |
| #define | MAX_MARK_POLYS 256 |
| #define | STAT_MINUS 10 |
| #define | ICON_SIZE 48 |
| #define | CHAR_WIDTH 32 |
| #define | CHAR_HEIGHT 48 |
| #define | TEXT_ICON_SPACE 4 |
| #define | GIANT_WIDTH 32 |
| #define | GIANT_HEIGHT 48 |
| #define | NUM_FONT_BIG 1 |
| #define | NUM_FONT_SMALL 2 |
| #define | NUM_FONT_CHUNKY 3 |
| #define | NUM_CROSSHAIRS 9 |
| #define | TEAM_OVERLAY_MAXNAME_WIDTH 32 |
| #define | TEAM_OVERLAY_MAXLOCATION_WIDTH 64 |
| #define | WAVE_AMPLITUDE 1 |
| #define | WAVE_FREQUENCY 0.4 |
| #define | DEFAULT_MODEL "kyle" |
| #define | DEFAULT_FORCEPOWERS "5-1-000000000000000000" |
| #define | DEFAULT_REDTEAM_NAME "Empire" |
| #define | DEFAULT_BLUETEAM_NAME "Rebellion" |
| #define | MAX_CUSTOM_COMBAT_SOUNDS 40 |
| #define | MAX_CUSTOM_EXTRA_SOUNDS 40 |
| #define | MAX_CUSTOM_JEDI_SOUNDS 40 |
| #define | MAX_CUSTOM_DUEL_SOUNDS 40 |
| #define | MAX_CUSTOM_SOUNDS 40 |
| #define | MAX_CG_LOOPSOUNDS 8 |
| #define | MAX_SKULLTRAIL 10 |
| #define | MAX_REWARDSTACK 10 |
| #define | MAX_SOUNDBUFFER 20 |
| #define | MAX_PREDICTED_EVENTS 16 |
| #define | MAX_CHATBOX_ITEMS 5 |
| #define | MAX_TICS 14 |
| #define | NUM_CHUNK_MODELS 4 |
Typedefs | |
| typedef cgLoopSound_s | cgLoopSound_t |
| typedef centity_s | centity_t |
| typedef markPoly_s | markPoly_t |
| typedef localEntity_s | localEntity_t |
| typedef weaponInfo_s | weaponInfo_t |
| typedef chatBoxItem_s | chatBoxItem_t |
| typedef forceTicPos_s | forceTicPos_t |
| typedef cgscreffects_s | cgscreffects_t |
| typedef siegeExtended_s | siegeExtended_t |
Enumerations | |
| enum | footstep_t { FOOTSTEP_STONEWALK, FOOTSTEP_STONERUN, FOOTSTEP_METALWALK, FOOTSTEP_METALRUN, FOOTSTEP_PIPEWALK, FOOTSTEP_PIPERUN, FOOTSTEP_SPLASH, FOOTSTEP_WADE, FOOTSTEP_SWIM, FOOTSTEP_SNOWWALK, FOOTSTEP_SNOWRUN, FOOTSTEP_SANDWALK, FOOTSTEP_SANDRUN, FOOTSTEP_GRASSWALK, FOOTSTEP_GRASSRUN, FOOTSTEP_DIRTWALK, FOOTSTEP_DIRTRUN, FOOTSTEP_MUDWALK, FOOTSTEP_MUDRUN, FOOTSTEP_GRAVELWALK, FOOTSTEP_GRAVELRUN, FOOTSTEP_RUGWALK, FOOTSTEP_RUGRUN, FOOTSTEP_WOODWALK, FOOTSTEP_WOODRUN, FOOTSTEP_TOTAL } |
| enum | impactSound_t { IMPACTSOUND_DEFAULT, IMPACTSOUND_METAL, IMPACTSOUND_FLESH } |
| enum | leType_t { LE_MARK, LE_EXPLOSION, LE_SPRITE_EXPLOSION, LE_FADE_SCALE_MODEL, LE_FRAGMENT, LE_PUFF, LE_MOVE_SCALE_FADE, LE_FALL_SCALE_FADE, LE_FADE_RGB, LE_SCALE_FADE, LE_SCOREPLUM, LE_OLINE, LE_SHOWREFENTITY, LE_LINE } |
| enum | leFlag_t { LEF_PUFF_DONT_SCALE = 0x0001, LEF_TUMBLE = 0x0002, LEF_FADE_RGB = 0x0004, LEF_NO_RANDOM_ROTATE = 0x0008 } |
| enum | leMarkType_t { LEMT_NONE, LEMT_BURN, LEMT_BLOOD } |
| enum | leBounceSoundType_t { LEBS_NONE, LEBS_BLOOD, LEBS_BRASS, LEBS_METAL, LEBS_ROCK } |
| enum | { CHUNK_METAL1 = 0, CHUNK_METAL2, CHUNK_ROCK1, CHUNK_ROCK2, CHUNK_ROCK3, CHUNK_CRATE1, CHUNK_CRATE2, CHUNK_WHITE_METAL, NUM_CHUNK_TYPES } |
| enum | q3print_t { SYSTEM_PRINT, CHAT_PRINT, TEAMCHAT_PRINT } |
Functions | |
| void | CGCam_Shake (float intensity, int duration) |
| void | CGCam_SetMusicMult (float multiplier, int duration) |
| void | CG_DrawMiscEnts (void) |
| const char * | CG_ConfigString (int index) |
| const char * | CG_Argv (int arg) |
| void QDECL | CG_Printf (const char *msg,...) |
| void QDECL | CG_Error (const char *msg,...) |
| void | CG_StartMusic (qboolean bForceStart) |
| void | CG_UpdateCvars (void) |
| int | CG_CrosshairPlayer (void) |
| int | CG_LastAttacker (void) |
| void | CG_LoadMenus (const char *menuFile) |
| void | CG_KeyEvent (int key, qboolean down) |
| void | CG_MouseEvent (int x, int y) |
| void | CG_EventHandling (int type) |
| void | CG_RankRunFrame (void) |
| void | CG_SetScoreSelection (void *menu) |
| void | CG_BuildSpectatorString (void) |
| void | CG_NextInventory_f (void) |
| void | CG_PrevInventory_f (void) |
| void | CG_NextForcePower_f (void) |
| void | CG_PrevForcePower_f (void) |
| void | CG_TestModel_f (void) |
| void | CG_TestGun_f (void) |
| void | CG_TestModelNextFrame_f (void) |
| void | CG_TestModelPrevFrame_f (void) |
| void | CG_TestModelNextSkin_f (void) |
| void | CG_TestModelPrevSkin_f (void) |
| void | CG_ZoomDown_f (void) |
| void | CG_ZoomUp_f (void) |
| void | CG_AddBufferedSound (sfxHandle_t sfx) |
| void | CG_DrawActiveFrame (int serverTime, stereoFrame_t stereoView, qboolean demoPlayback) |
| void | CG_TestG2Model_f (void) |
| void | CG_TestModelSurfaceOnOff_f (void) |
| void | CG_ListModelSurfaces_f (void) |
| void | CG_ListModelBones_f (void) |
| void | CG_TestModelSetAnglespre_f (void) |
| void | CG_TestModelSetAnglespost_f (void) |
| void | CG_TestModelAnimate_f (void) |
| void | CG_FillRect (float x, float y, float width, float height, const float *color) |
| void | CG_DrawPic (float x, float y, float width, float height, qhandle_t hShader) |
| void | CG_DrawRotatePic (float x, float y, float width, float height, float angle, qhandle_t hShader) |
| void | CG_DrawRotatePic2 (float x, float y, float width, float height, float angle, qhandle_t hShader) |
| void | CG_DrawString (float x, float y, const char *string, float charWidth, float charHeight, const float *modulate) |
| void | CG_DrawNumField (int x, int y, int width, int value, int charWidth, int charHeight, int style, qboolean zeroFill) |
| void | CG_DrawStringExt (int x, int y, const char *string, const float *setColor, qboolean forceColor, qboolean shadow, int charWidth, int charHeight, int maxChars) |
| void | CG_DrawBigString (int x, int y, const char *s, float alpha) |
| void | CG_DrawBigStringColor (int x, int y, const char *s, vec4_t color) |
| void | CG_DrawSmallString (int x, int y, const char *s, float alpha) |
| void | CG_DrawSmallStringColor (int x, int y, const char *s, vec4_t color) |
| int | CG_DrawStrlen (const char *str) |
| float * | CG_FadeColor (int startMsec, int totalMsec) |
| float * | CG_TeamColor (int team) |
| void | CG_TileClear (void) |
| void | CG_ColorForHealth (vec4_t hcolor) |
| void | CG_GetColorForHealth (int health, int armor, vec4_t hcolor) |
| void | UI_DrawProportionalString (int x, int y, const char *str, int style, vec4_t color) |
| void | UI_DrawScaledProportionalString (int x, int y, const char *str, int style, vec4_t color, float scale) |
| void | CG_DrawRect (float x, float y, float width, float height, float size, const float *color) |
| void | CG_DrawSides (float x, float y, float w, float h, float size) |
| void | CG_DrawTopBottom (float x, float y, float w, float h, float size) |
| void | CG_AddLagometerFrameInfo (void) |
| void | CG_AddLagometerSnapshotInfo (snapshot_t *snap) |
| void | CG_CenterPrint (const char *str, int y, int charWidth) |
| void | CG_DrawHead (float x, float y, float w, float h, int clientNum, vec3_t headAngles) |
| void | CG_DrawActive (stereoFrame_t stereoView) |
| void | CG_DrawFlagModel (float x, float y, float w, float h, int team, qboolean force2D) |
| void | CG_DrawTeamBackground (int x, int y, int w, int h, float alpha, int team) |
| void | CG_OwnerDraw (float x, float y, float w, float h, float text_x, float text_y, int ownerDraw, int ownerDrawFlags, int align, float special, float scale, vec4_t color, qhandle_t shader, int textStyle, int font) |
| void | CG_Text_Paint (float x, float y, float scale, vec4_t color, const char *text, float adjust, int limit, int style, int iMenuFont) |
| int | CG_Text_Width (const char *text, float scale, int iMenuFont) |
| int | CG_Text_Height (const char *text, float scale, int iMenuFont) |
| float | CG_GetValue (int ownerDraw) |
| qboolean | CG_OwnerDrawVisible (int flags) |
| void | CG_RunMenuScript (char **args) |
| qboolean | CG_DeferMenuScript (char **args) |
| void | CG_ShowResponseHead (void) |
| void | CG_GetTeamColor (vec4_t *color) |
| const char * | CG_GetGameStatusText (void) |
| const char * | CG_GetKillerText (void) |
| void | CG_Draw3DModel (float x, float y, float w, float h, qhandle_t model, void *ghoul2, int g2radius, qhandle_t skin, vec3_t origin, vec3_t angles) |
| void | CG_Text_PaintChar (float x, float y, float width, float height, float scale, float s, float t, float s2, float t2, qhandle_t hShader) |
| const char * | CG_GameTypeString (void) |
| qboolean | CG_YourTeamHasFlag (void) |
| qboolean | CG_OtherTeamHasFlag (void) |
| qhandle_t | CG_StatusHandle (int task) |
| qboolean | CG_RagDoll (centity_t *cent, vec3_t forcedAngles) |
| qboolean | CG_G2TraceCollide (trace_t *tr, const vec3_t mins, const vec3_t maxs, const vec3_t lastValidStart, const vec3_t lastValidEnd) |
| void | CG_AddGhoul2Mark (int shader, float size, vec3_t start, vec3_t end, int entnum, vec3_t entposition, float entangle, void *ghoul2, vec3_t scale, int lifeTime) |
| void | CG_CreateNPCClient (clientInfo_t **ci) |
| void | CG_DestroyNPCClient (clientInfo_t **ci) |
| void | CG_Player (centity_t *cent) |
| void | CG_ResetPlayerEntity (centity_t *cent) |
| void | CG_AddRefEntityWithPowerups (refEntity_t *ent, entityState_t *state, int team) |
| void | CG_NewClientInfo (int clientNum, qboolean entitiesInitialized) |
| sfxHandle_t | CG_CustomSound (int clientNum, const char *soundName) |
| void | CG_PlayerShieldHit (int entitynum, vec3_t angles, int amount) |
| void | CG_BuildSolidList (void) |
| int | CG_PointContents (const vec3_t point, int passEntityNum) |
| void | CG_Trace (trace_t *result, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, int skipNumber, int mask) |
| void | CG_G2Trace (trace_t *result, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, int skipNumber, int mask) |
| void | CG_PredictPlayerState (void) |
| void | CG_LoadDeferredPlayers (void) |
| void | CG_CheckEvents (centity_t *cent) |
| const char * | CG_PlaceString (int rank) |
| void | CG_EntityEvent (centity_t *cent, vec3_t position) |
| void | CG_PainEvent (centity_t *cent, int health) |
| void | CG_ReattachLimb (centity_t *source) |
| void | CG_S_AddLoopingSound (int entityNum, const vec3_t origin, const vec3_t velocity, sfxHandle_t sfx) |
| void | CG_S_AddRealLoopingSound (int entityNum, const vec3_t origin, const vec3_t velocity, sfxHandle_t sfx) |
| void | CG_S_StopLoopingSound (int entityNum, sfxHandle_t sfx) |
| void | CG_S_UpdateLoopingSounds (int entityNum) |
| void | CG_SetEntitySoundPosition (centity_t *cent) |
| void | CG_AddPacketEntities (qboolean isPortal) |
| void | CG_ManualEntityRender (centity_t *cent) |
| void | CG_Beam (centity_t *cent) |
| void | CG_AdjustPositionForMover (const vec3_t in, int moverNum, int fromTime, int toTime, vec3_t out) |
| void | CG_PositionEntityOnTag (refEntity_t *entity, const refEntity_t *parent, qhandle_t parentModel, char *tagName) |
| void | CG_PositionRotatedEntityOnTag (refEntity_t *entity, const refEntity_t *parent, qhandle_t parentModel, char *tagName) |
| void | ScaleModelAxis (refEntity_t *ent) |
| void | TurretClientRun (centity_t *ent) |
| void | CG_GetClientWeaponMuzzleBoltPoint (int clIndex, vec3_t to) |
| void | CG_NextWeapon_f (void) |
| void | CG_PrevWeapon_f (void) |
| void | CG_Weapon_f (void) |
| void | CG_WeaponClean_f (void) |
| void | CG_RegisterWeapon (int weaponNum) |
| void | CG_RegisterItemVisuals (int itemNum) |
| void | CG_FireWeapon (centity_t *cent, qboolean alt_fire) |
| void | CG_MissileHitWall (int weapon, int clientNum, vec3_t origin, vec3_t dir, impactSound_t soundType, qboolean alt_fire, int charge) |
| void | CG_MissileHitPlayer (int weapon, vec3_t origin, vec3_t dir, int entityNum, qboolean alt_fire) |
| void | CG_AddViewWeapon (playerState_t *ps) |
| void | CG_AddPlayerWeapon (refEntity_t *parent, playerState_t *ps, centity_t *cent, int team, vec3_t newAngles, qboolean thirdPerson) |
| void | CG_DrawWeaponSelect (void) |
| void | CG_DrawIconBackground (void) |
| void | CG_OutOfAmmoChange (int oldWeapon) |
| void | CG_InitMarkPolys (void) |
| void | CG_AddMarks (void) |
| void | CG_ImpactMark (qhandle_t markShader, const vec3_t origin, const vec3_t dir, float orientation, float r, float g, float b, float a, qboolean alphaFade, float radius, qboolean temporary) |
| void | CG_InitLocalEntities (void) |
| localEntity_t * | CG_AllocLocalEntity (void) |
| void | CG_AddLocalEntities (void) |
| localEntity_t * | CG_SmokePuff (const vec3_t p, const vec3_t vel, float radius, float r, float g, float b, float a, float duration, int startTime, int fadeInTime, int leFlags, qhandle_t hShader) |
| void | CG_BubbleTrail (vec3_t start, vec3_t end, float spacing) |
| void | CG_GlassShatter (int entnum, vec3_t dmgPt, vec3_t dmgDir, float dmgRadius, int maxShards) |
| void | CG_ScorePlum (int client, vec3_t org, int score) |
| void | CG_Chunks (int owner, vec3_t origin, const vec3_t normal, const vec3_t mins, const vec3_t maxs, float speed, int numChunks, material_t chunkType, int customChunk, float baseScale) |
| void | CG_MiscModelExplosion (vec3_t mins, vec3_t maxs, int size, material_t chunkType) |
| void | CG_Bleed (vec3_t origin, int entityNum) |
| localEntity_t * | CG_MakeExplosion (vec3_t origin, vec3_t dir, qhandle_t hModel, int numframes, qhandle_t shader, int msec, qboolean isSprite, float scale, int flags) |
| void | CG_SurfaceExplosion (vec3_t origin, vec3_t normal, float radius, float shake_speed, qboolean smoke) |
| void | CG_TestLine (vec3_t start, vec3_t end, int time, unsigned int color, int radius) |
| void | CG_InitGlass (void) |
| void | CG_ProcessSnapshots (void) |
| void | CG_LoadingString (const char *s) |
| void | CG_LoadingItem (int itemNum) |
| void | CG_LoadingClient (int clientNum) |
| void | CG_DrawInformation (void) |
| qboolean | CG_DrawOldScoreboard (void) |
| void | CG_DrawOldTourneyScoreboard (void) |
| qboolean | CG_ConsoleCommand (void) |
| void | CG_InitConsoleCommands (void) |
| void | CG_ExecuteNewServerCommands (int latestSequence) |
| void | CG_ParseServerinfo (void) |
| void | CG_SetConfigValues (void) |
| void | CG_ShaderStateChanged (void) |
| int | CG_IsMindTricked (int trickIndex1, int trickIndex2, int trickIndex3, int trickIndex4, int client) |
| void | CG_Respawn (void) |
| void | CG_TransitionPlayerState (playerState_t *ps, playerState_t *ops) |
| void | CG_CheckChangedPredictableEvents (playerState_t *ps) |
| void | CG_InitSiegeMode (void) |
| void | CG_SiegeRoundOver (centity_t *ent, int won) |
| void | CG_SiegeObjectiveCompleted (centity_t *ent, int won, int objectivenum) |
| 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_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) |
| 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_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) |
| 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_StopLoopingSound (int entnum) |
| 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_AddRealLoopingSound (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_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_StopBackgroundTrack (void) |
| 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 *name) |
| 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 | 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 numPolys) |
| 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) |
| void | trap_R_AddLightToScene (const vec3_t org, float intensity, float r, float g, float b) |
| int | trap_R_LightForPoint (vec3_t point, vec3_t ambientLight, vec3_t directedLight, vec3_t lightDir) |
| 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) |
| void | BG_CycleInven (playerState_t *ps, int direction) |
| int | BG_ProperForceIndex (int power) |
| void | BG_CycleForce (playerState_t *ps, int direction) |
| 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_SnapVector (float *v) |
| qboolean | trap_loadCamera (const char *name) |
| void | trap_startCamera (int time) |
| qboolean | trap_getCameraInfo (int time, vec3_t *origin, vec3_t *angles) |
| qboolean | trap_GetEntityToken (char *buffer, int bufferSize) |
| qboolean | trap_R_inPVS (const vec3_t p1, const vec3_t p2, byte *mask) |
| int | trap_FX_InitSystem (refdef_t *) |
| void | trap_FX_SetRefDef (refdef_t *refdef) |
| 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 pGhoul2, int vol, int rad) |
| void | trap_FX_PlayBoltedEffectID (int id, vec3_t org, void *pGhoul2, 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) |
| qboolean | trap_FX_FreeSystem (void) |
| void | trap_FX_AdjustTime (int time) |
| void | trap_FX_Reset (void) |
| 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) |
| 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) |
| 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 | CG_ClearParticles (void) |
| void | CG_AddParticles (void) |
| void | CG_ParticleSnow (qhandle_t pshader, vec3_t origin, vec3_t origin2, int turb, float range, int snum) |
| void | CG_ParticleSmoke (qhandle_t pshader, centity_t *cent) |
| void | CG_AddParticleShrapnel (localEntity_t *le) |
| void | CG_ParticleSnowFlurry (qhandle_t pshader, centity_t *cent) |
| void | CG_ParticleBulletDebris (vec3_t org, vec3_t vel, int duration) |
| void | CG_ParticleSparks (vec3_t org, vec3_t vel, int duration, float x, float y, float speed) |
| void | CG_ParticleDust (centity_t *cent, vec3_t origin, vec3_t dir) |
| void | CG_ParticleMisc (qhandle_t pshader, vec3_t origin, int size, int duration, float alpha) |
| void | CG_ParticleExplosion (char *animStr, vec3_t origin, vec3_t vel, int duration, int sizeStart, int sizeEnd) |
| const char * | CG_GetStringEdString (char *refSection, char *refName) |
| int | CG_NewParticleArea (int num) |
| void | FX_TurretProjectileThink (centity_t *cent, const struct weaponInfo_s *weapon) |
| void | FX_TurretHitWall (vec3_t origin, vec3_t normal) |
| void | FX_TurretHitPlayer (vec3_t origin, vec3_t normal, qboolean humanoid) |
| void | FX_ConcussionHitWall (vec3_t origin, vec3_t normal) |
| void | FX_ConcussionHitPlayer (vec3_t origin, vec3_t normal, qboolean humanoid) |
| void | FX_ConcussionProjectileThink (centity_t *cent, const struct weaponInfo_s *weapon) |
| void | FX_ConcAltShot (vec3_t start, vec3_t end) |
| void | CG_Spark (vec3_t origin, vec3_t dir) |
| void | FX_BryarHitWall (vec3_t origin, vec3_t normal) |
| void | FX_BryarAltHitWall (vec3_t origin, vec3_t normal, int power) |
| void | FX_BryarHitPlayer (vec3_t origin, vec3_t normal, qboolean humanoid) |
| void | FX_BryarAltHitPlayer (vec3_t origin, vec3_t normal, qboolean humanoid) |
| void | FX_BlasterProjectileThink (centity_t *cent, const struct weaponInfo_s *weapon) |
| void | FX_BlasterAltFireThink (centity_t *cent, const struct weaponInfo_s *weapon) |
| void | FX_BlasterWeaponHitWall (vec3_t origin, vec3_t normal) |
| void | FX_BlasterWeaponHitPlayer (vec3_t origin, vec3_t normal, qboolean humanoid) |
| void | FX_ForceDrained (vec3_t origin, vec3_t dir) |
| 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_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, |