codemp/game/q_shared.h File Reference

#include "../qcommon/disablewarnings.h"
#include "teams.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include <limits.h>
#include "surfaceflags.h"
#include "../qcommon/tags.h"

Go to the source code of this file.

Data Structures

struct  addbezierArgStruct_s
struct  addElectricityArgStruct_t
struct  addpolyArgStruct_s
struct  addspriteArgStruct_s
struct  bladeInfo_t
struct  CollisionRecord_t
struct  cplane_s
struct  cvar_s
struct  effectTrailArgStruct_s
struct  effectTrailVertStruct_t
struct  entityState_s
struct  forcedata_s
struct  gameState_t
struct  markFragment_t
struct  mdxaBone_t
struct  orientation_t
struct  pc_token_s
struct  playerState_s
struct  qint64
struct  qtime_s
struct  saberInfo_t
struct  saberTrail_t
struct  sharedIKMoveParams_t
struct  sharedRagDollParams_t
struct  sharedRagDollUpdateParams_t
struct  sharedSetBoneIKStateParams_t
struct  siegePers_s
struct  SSkinGoreData_s
struct  stringID_table_s
struct  trace_t
struct  trajectory_t
struct  usercmd_s
struct  vmCvar_t
struct  wpneighbor_s
struct  wpobject_s

Defines

#define Q3_SCRIPT_DIR   "scripts"
#define MAX_TEAMNAME   32
#define MAX_WORLD_COORD   ( 64 * 1024 )
#define MIN_WORLD_COORD   ( -64 * 1024 )
#define WORLD_SIZE   ( MAX_WORLD_COORD - MIN_WORLD_COORD )
#define VALID(a)   ( a != NULL )
#define VALIDATE(a)   ( assert( a ) )
#define VALIDATEV(a)   if ( a == NULL ) { assert(0); return; }
#define VALIDATEB(a)   if ( a == NULL ) { assert(0); return qfalse; }
#define VALIDATEP(a)   if ( a == NULL ) { assert(0); return NULL; }
#define VALIDSTRING(a)   ( ( a != 0 ) && ( a[0] != 0 ) )
#define G2_PERFORMANCE_ANALYSIS
#define _FULL_G2_LEAK_CHECKING
#define id386   0
#define idppc   0
#define QDECL
#define NULL   ((void *)0)
#define MAX_QINT   0x7fffffff
#define MIN_QINT   (-MAX_QINT-1)
#define PITCH   0
#define YAW   1
#define ROLL   2
#define MAX_STRING_CHARS   1024
#define MAX_STRING_TOKENS   1024
#define MAX_TOKEN_CHARS   1024
#define MAX_INFO_STRING   1024
#define MAX_INFO_KEY   1024
#define MAX_INFO_VALUE   1024
#define BIG_INFO_STRING   8192
#define BIG_INFO_KEY   8192
#define BIG_INFO_VALUE   8192
#define MAX_QPATH   64
#define MAX_OSPATH   256
#define MAX_NAME_LENGTH   32
#define MAX_SAY_TEXT   150
#define MAX_MAP_AREA_BYTES   32
#define LS_STYLES_START   0
#define LS_NUM_STYLES   32
#define LS_SWITCH_START   (LS_STYLES_START+LS_NUM_STYLES)
#define LS_NUM_SWITCH   32
#define MAX_LIGHT_STYLES   64
#define PROP_GAP_WIDTH   2
#define PROP_SPACE_WIDTH   4
#define PROP_HEIGHT   16
#define PROP_TINY_SIZE_SCALE   1
#define PROP_SMALL_SIZE_SCALE   1
#define PROP_BIG_SIZE_SCALE   1
#define PROP_GIANT_SIZE_SCALE   2
#define PROP_TINY_HEIGHT   10
#define PROP_GAP_TINY_WIDTH   1
#define PROP_SPACE_TINY_WIDTH   3
#define PROP_BIG_HEIGHT   24
#define PROP_GAP_BIG_WIDTH   3
#define PROP_SPACE_BIG_WIDTH   6
#define BLINK_DIVISOR   200
#define PULSE_DIVISOR   75
#define UI_LEFT   0x00000000
#define UI_CENTER   0x00000001
#define UI_RIGHT   0x00000002
#define UI_FORMATMASK   0x00000007
#define UI_SMALLFONT   0x00000010
#define UI_BIGFONT   0x00000020
#define UI_DROPSHADOW   0x00000800
#define UI_BLINK   0x00001000
#define UI_INVERSE   0x00002000
#define UI_PULSE   0x00004000
#define CIN_system   1
#define CIN_loop   2
#define CIN_hold   4
#define CIN_silent   8
#define CIN_shader   16
#define M_PI   3.14159265358979323846f
#define MAX_BLADES   8
#define SFL_NOT_LOCKABLE   (1<<0)
#define SFL_NOT_THROWABLE   (1<<1)
#define SFL_NOT_DISARMABLE   (1<<2)
#define SFL_NOT_ACTIVE_BLOCKING   (1<<3)
#define SFL_TWO_HANDED   (1<<4)
#define SFL_SINGLE_BLADE_THROWABLE   (1<<5)
#define SFL_RETURN_DAMAGE   (1<<6)
#define SFL_ON_IN_WATER   (1<<7)
#define SFL_BOUNCE_ON_WALLS   (1<<8)
#define SFL_BOLT_TO_WRIST   (1<<9)
#define SFL_NO_PULL_ATTACK   (1<<10)
#define SFL_NO_BACK_ATTACK   (1<<11)
#define SFL_NO_STABDOWN   (1<<12)
#define SFL_NO_WALL_RUNS   (1<<13)
#define SFL_NO_WALL_FLIPS   (1<<14)
#define SFL_NO_WALL_GRAB   (1<<15)
#define SFL_NO_ROLLS   (1<<16)
#define SFL_NO_FLIPS   (1<<17)
#define SFL_NO_CARTWHEELS   (1<<18)
#define SFL_NO_KICKS   (1<<19)
#define SFL_NO_MIRROR_ATTACKS   (1<<20)
#define SFL_NO_ROLL_STAB   (1<<21)
#define SFL2_NO_WALL_MARKS   (1<<0)
#define SFL2_NO_DLIGHT   (1<<1)
#define SFL2_NO_BLADE   (1<<2)
#define SFL2_NO_CLASH_FLARE   (1<<3)
#define SFL2_NO_DISMEMBERMENT   (1<<4)
#define SFL2_NO_IDLE_EFFECT   (1<<5)
#define SFL2_ALWAYS_BLOCK   (1<<6)
#define SFL2_NO_MANUAL_DEACTIVATE   (1<<7)
#define SFL2_TRANSITION_DAMAGE   (1<<8)
#define SFL2_NO_WALL_MARKS2   (1<<9)
#define SFL2_NO_DLIGHT2   (1<<10)
#define SFL2_NO_BLADE2   (1<<11)
#define SFL2_NO_CLASH_FLARE2   (1<<12)
#define SFL2_NO_DISMEMBERMENT2   (1<<13)
#define SFL2_NO_IDLE_EFFECT2   (1<<14)
#define SFL2_ALWAYS_BLOCK2   (1<<15)
#define SFL2_NO_MANUAL_DEACTIVATE2   (1<<16)
#define SFL2_TRANSITION_DAMAGE2   (1<<17)
#define MAX_SABERS   2
#define FORCE_LEVEL_4   (FORCE_LEVEL_3+1)
#define FORCE_LEVEL_5   (FORCE_LEVEL_4+1)
#define MAX_WPARRAY_SIZE   4096
#define MAX_NEIGHBOR_SIZE   32
#define MAX_NEIGHBOR_LINK_DISTANCE   128
#define MAX_NEIGHBOR_FORCEJUMP_LINK_DISTANCE   400
#define DEFAULT_GRID_SPACING   400
#define NUMVERTEXNORMALS   162
#define SCREEN_WIDTH   640
#define SCREEN_HEIGHT   480
#define TINYCHAR_WIDTH   (SMALLCHAR_WIDTH)
#define TINYCHAR_HEIGHT   (SMALLCHAR_HEIGHT/2)
#define SMALLCHAR_WIDTH   8
#define SMALLCHAR_HEIGHT   16
#define BIGCHAR_WIDTH   16
#define BIGCHAR_HEIGHT   16
#define GIANTCHAR_WIDTH   32
#define GIANTCHAR_HEIGHT   48
#define Q_COLOR_ESCAPE   '^'
#define Q_IsColorString(p)   ( p && *(p) == Q_COLOR_ESCAPE && *((p)+1) && *((p)+1) != Q_COLOR_ESCAPE && *((p)+1) <= '7' && *((p)+1) >= '0' )
#define COLOR_BLACK   '0'
#define COLOR_RED   '1'
#define COLOR_GREEN   '2'
#define COLOR_YELLOW   '3'
#define COLOR_BLUE   '4'
#define COLOR_CYAN   '5'
#define COLOR_MAGENTA   '6'
#define COLOR_WHITE   '7'
#define ColorIndex(c)   ( ( (c) - '0' ) & 7 )
#define S_COLOR_BLACK   "^0"
#define S_COLOR_RED   "^1"
#define S_COLOR_GREEN   "^2"
#define S_COLOR_YELLOW   "^3"
#define S_COLOR_BLUE   "^4"
#define S_COLOR_CYAN   "^5"
#define S_COLOR_MAGENTA   "^6"
#define S_COLOR_WHITE   "^7"
#define MAKERGB(v, r, g, b)   v[0]=r;v[1]=g;v[2]=b
#define MAKERGBA(v, r, g, b, a)   v[0]=r;v[1]=g;v[2]=b;v[3]=a
#define DEG2RAD(a)   ( ( (a) * M_PI ) / 180.0F )
#define RAD2DEG(a)   ( ( (a) * 180.0f ) / M_PI )
#define nanmask   (255<<23)
#define IS_NAN(x)   (((*(int *)&x)&nanmask)==nanmask)
#define SQRTFAST(x)   ( (x) * Q_rsqrt( x ) )
#define minimum(x, y)   ((x)<(y)?(x):(y))
#define maximum(x, y)   ((x)>(y)?(x):(y))
#define DotProduct(x, y)   ((x)[0]*(y)[0]+(x)[1]*(y)[1]+(x)[2]*(y)[2])
#define VectorSubtract(a, b, c)   ((c)[0]=(a)[0]-(b)[0],(c)[1]=(a)[1]-(b)[1],(c)[2]=(a)[2]-(b)[2])
#define VectorAdd(a, b, c)   ((c)[0]=(a)[0]+(b)[0],(c)[1]=(a)[1]+(b)[1],(c)[2]=(a)[2]+(b)[2])
#define VectorScale(v, s, o)   ((o)[0]=(v)[0]*(s),(o)[1]=(v)[1]*(s),(o)[2]=(v)[2]*(s))
#define VectorCopy(a, b)   ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2])
#define VectorCopy4(a, b)   ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2],(b)[3]=(a)[3])
#define VectorMA(v, s, b, o)   ((o)[0]=(v)[0]+(b)[0]*(s),(o)[1]=(v)[1]+(b)[1]*(s),(o)[2]=(v)[2]+(b)[2]*(s))
#define VectorInc(v)   ((v)[0] += 1.0f,(v)[1] += 1.0f,(v)[2] +=1.0f)
#define VectorDec(v)   ((v)[0] -= 1.0f,(v)[1] -= 1.0f,(v)[2] -=1.0f)
#define VectorInverseScaleVector(a, b, c)   ((c)[0]=(a)[0]/(b)[0],(c)[1]=(a)[1]/(b)[1],(c)[2]=(a)[2]/(b)[2])
#define VectorScaleVectorAdd(c, a, b, o)   ((o)[0]=(c)[0]+((a)[0]*(b)[0]),(o)[1]=(c)[1]+((a)[1]*(b)[1]),(o)[2]=(c)[2]+((a)[2]*(b)[2]))
#define VectorAdvance(a, s, b, c)   (((c)[0]=(a)[0] + s * ((b)[0] - (a)[0])),((c)[1]=(a)[1] + s * ((b)[1] - (a)[1])),((c)[2]=(a)[2] + s * ((b)[2] - (a)[2])))
#define VectorAverage(a, b, c)   (((c)[0]=((a)[0]+(b)[0])*0.5f),((c)[1]=((a)[1]+(b)[1])*0.5f),((c)[2]=((a)[2]+(b)[2])*0.5f))
#define VectorScaleVector(a, b, c)   (((c)[0]=(a)[0]*(b)[0]),((c)[1]=(a)[1]*(b)[1]),((c)[2]=(a)[2]*(b)[2]))
#define VectorClear(a)   ((a)[0]=(a)[1]=(a)[2]=0)
#define VectorNegate(a, b)   ((b)[0]=-(a)[0],(b)[1]=-(a)[1],(b)[2]=-(a)[2])
#define VectorSet(v, x, y, z)   ((v)[0]=(x), (v)[1]=(y), (v)[2]=(z))
#define VectorSet5(v, x, y, z, a, b)   ((v)[0]=(x), (v)[1]=(y), (v)[2]=(z), (v)[3]=(a), (v)[4]=(b))
#define Vector4Copy(a, b)   ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2],(b)[3]=(a)[3])
#define random()   ((rand () & 0x7fff) / ((float)0x7fff))
#define crandom()   (2.0 * (random() - 0.5))
#define MAX_TOKENLENGTH   1024
#define TT_STRING   1
#define TT_LITERAL   2
#define TT_NUMBER   3
#define TT_NAME   4
#define TT_PUNCTUATION   5
#define CVAR_ARCHIVE   0x00000001
#define CVAR_USERINFO   0x00000002
#define CVAR_SERVERINFO   0x00000004
#define CVAR_SYSTEMINFO   0x00000008
#define CVAR_INIT   0x00000010
#define CVAR_LATCH   0x00000020
#define CVAR_ROM   0x00000040
#define CVAR_USER_CREATED   0x00000080
#define CVAR_TEMP   0x00000100
#define CVAR_CHEAT   0x00000200
#define CVAR_NORESTART   0x00000400
#define CVAR_INTERNAL   0x00000800
#define CVAR_PARENTAL   0x00001000
#define MAX_CVAR_VALUE_STRING   256
#define PLANE_X   0
#define PLANE_Y   1
#define PLANE_Z   2
#define PLANE_NON_AXIAL   3
#define PlaneTypeForNormal(x)   (x[0] == 1.0 ? PLANE_X : (x[1] == 1.0 ? PLANE_Y : (x[2] == 1.0 ? PLANE_Z : PLANE_NON_AXIAL) ) )
#define MAX_G2_COLLISIONS   16
#define KEYCATCH_CONSOLE   0x0001
#define KEYCATCH_UI   0x0002
#define KEYCATCH_MESSAGE   0x0004
#define KEYCATCH_CGAME   0x0008
#define ANGLE2SHORT(x)   ((int)((x)*65536/360) & 65535)
#define SHORT2ANGLE(x)   ((x)*(360.0/65536))
#define SNAPFLAG_RATE_DELAYED   1
#define SNAPFLAG_NOT_ACTIVE   2
#define SNAPFLAG_SERVERCOUNT   4
#define MAX_CLIENTS   32
#define MAX_RADAR_ENTITIES   MAX_GENTITIES
#define MAX_TERRAINS   1
#define MAX_LOCATIONS   64
#define GENTITYNUM_BITS   10
#define MAX_GENTITIES   (1<<GENTITYNUM_BITS)
#define ENTITYNUM_NONE   (MAX_GENTITIES-1)
#define ENTITYNUM_WORLD   (MAX_GENTITIES-2)
#define ENTITYNUM_MAX_NORMAL   (MAX_GENTITIES-2)
#define MAX_MODELS   512
#define MAX_SOUNDS   256
#define MAX_ICONS   64
#define MAX_FX   64
#define MAX_SUB_BSP   32
#define MAX_G2BONES   64
#define MAX_AMBIENT_SETS   256
#define MAX_CONFIGSTRINGS   1700
#define CS_SERVERINFO   0
#define CS_SYSTEMINFO   1
#define RESERVED_CONFIGSTRINGS   2
#define MAX_GAMESTATE_CHARS   16000
#define TRACK_CHANNEL_MAX   (NUM_TRACK_CHANNELS-50)
#define MAX_STATS   16
#define MAX_PERSISTANT   16
#define MAX_POWERUPS   16
#define MAX_WEAPONS   19
#define MAX_PS_EVENTS   2
#define PS_PMOVEFRAMECOUNTBITS   6
#define FORCE_LIGHTSIDE   1
#define FORCE_DARKSIDE   2
#define MAX_FORCE_RANK   7
#define FALL_FADE_TIME   3000
#define _OPTIMIZED_VEHICLE_NETWORKING
#define BUTTON_ATTACK   1
#define BUTTON_TALK   2
#define BUTTON_USE_HOLDABLE   4
#define BUTTON_GESTURE   8
#define BUTTON_WALKING   16
#define BUTTON_USE   32
#define BUTTON_FORCEGRIP   64
#define BUTTON_ALT_ATTACK   128
#define BUTTON_ANY   256
#define BUTTON_FORCEPOWER   512
#define BUTTON_FORCE_LIGHTNING   1024
#define BUTTON_FORCE_DRAIN   2048
#define MOVE_RUN   120
#define SOLID_BMODEL   0xffffff
#define Square(x)   ((x)*(x))
#define AS_LOCAL   0
#define AS_GLOBAL   1
#define AS_FAVORITES   2
#define AS_MPLAYER   3
#define MAX_GLOBAL_SERVERS   2048
#define MAX_OTHER_SERVERS   128
#define MAX_PINGREQUESTS   32
#define MAX_SERVERSTATUSREQUESTS   16
#define SAY_ALL   0
#define SAY_TEAM   1
#define SAY_TELL   2
#define CDKEY_LEN   16
#define CDCHKSUM_LEN   2
#define TAGDEF(blah)   TAG_ ## blah
#define _G2_GORE
#define ENUM2STRING(arg)   #arg,arg

Typedefs

typedef unsigned char byte
typedef unsigned short word
typedef unsigned long ulong
typedef int qhandle_t
typedef int thandle_t
typedef int fxHandle_t
typedef int sfxHandle_t
typedef int fileHandle_t
typedef int clipHandle_t
typedef float vec_t
typedef vec_t vec2_t [2]
typedef vec_t vec3_t [3]
typedef vec_t vec4_t [4]
typedef vec_t vec5_t [5]
typedef vec3_t vec3pair_t [2]
typedef int ivec3_t [3]
typedef int ivec4_t [4]
typedef int ivec5_t [5]
typedef int fixed4_t
typedef int fixed8_t
typedef int fixed16_t
typedef int saber_colors_t
typedef int forcePowers_t
typedef int material_t
typedef wpneighbor_s wpneighbor_t
typedef wpobject_s wpobject_t
typedef pc_token_s pc_token_t
typedef cvar_s cvar_t
typedef int cvarHandle_t
typedef cplane_s cplane_t
typedef CollisionRecord_t G2Trace_t [MAX_G2_COLLISIONS]
typedef int soundChannel_t
typedef forcedata_s forcedata_t
typedef playerState_s playerState_t
typedef siegePers_s siegePers_t
typedef usercmd_s usercmd_t
typedef addpolyArgStruct_s addpolyArgStruct_t
typedef addbezierArgStruct_s addbezierArgStruct_t
typedef addspriteArgStruct_s addspriteArgStruct_t
typedef effectTrailArgStruct_s effectTrailArgStruct_t
typedef entityState_s entityState_t
typedef qtime_s qtime_t
typedef int e_status
typedef int flagStatus_t
typedef char memtag_t
typedef SSkinGoreData_s SSkinGoreData
typedef stringID_table_s stringID_table_t

Enumerations

enum  qboolean { qfalse, qtrue }
enum  cbufExec_t { EXEC_NOW, EXEC_INSERT, EXEC_APPEND }
enum  WL_e { WL_ERROR = 1, WL_WARNING, WL_VERBOSE, WL_DEBUG }
enum  printParm_t { PRINT_ALL, PRINT_DEVELOPER, PRINT_WARNING, PRINT_ERROR }
enum  errorParm_t {
  ERR_FATAL, ERR_DROP, ERR_SERVERDISCONNECT, ERR_DISCONNECT,
  ERR_NEED_CD
}
enum  ha_pref { h_high, h_low, h_dontcare }
enum  saberBlockType_t { BLK_NO, BLK_TIGHT, BLK_WIDE }
enum  saberBlockedType_t {
  BLOCKED_NONE, BLOCKED_BOUNCE_MOVE, BLOCKED_PARRY_BROKEN, BLOCKED_ATK_BOUNCE,
  BLOCKED_UPPER_RIGHT, BLOCKED_UPPER_LEFT, BLOCKED_LOWER_RIGHT, BLOCKED_LOWER_LEFT,
  BLOCKED_TOP, BLOCKED_UPPER_RIGHT_PROJ, BLOCKED_UPPER_LEFT_PROJ, BLOCKED_LOWER_RIGHT_PROJ,
  BLOCKED_LOWER_LEFT_PROJ, BLOCKED_TOP_PROJ
}
enum  {
  SABER_RED, SABER_ORANGE, SABER_YELLOW, SABER_GREEN,
  SABER_BLUE, SABER_PURPLE, NUM_SABER_COLORS
}
enum  {
  FP_FIRST = 0, FP_HEAL = 0, FP_LEVITATION, FP_SPEED,
  FP_PUSH, FP_PULL, FP_TELEPATHY, FP_GRIP,
  FP_LIGHTNING, FP_RAGE, FP_PROTECT, FP_ABSORB,
  FP_TEAM_HEAL, FP_TEAM_FORCE, FP_DRAIN, FP_SEE,
  FP_SABER_OFFENSE, FP_SABER_DEFENSE, FP_SABERTHROW, NUM_FORCE_POWERS
}
enum  saberType_t {
  SABER_NONE = 0, SABER_SINGLE, SABER_STAFF, SABER_DAGGER,
  SABER_BROAD, SABER_PRONG, SABER_ARC, SABER_SAI,
  SABER_CLAW, SABER_LANCE, SABER_STAR, SABER_TRIDENT,
  SABER_SITH_SWORD, NUM_SABERS
}
enum  saber_styles_t {
  SS_NONE = 0, SS_FAST, SS_MEDIUM, SS_STRONG,
  SS_DESANN, SS_TAVION, SS_DUAL, SS_STAFF,
  SS_NUM_SABER_STYLES
}
enum  {
  FORCE_LEVEL_0, FORCE_LEVEL_1, FORCE_LEVEL_2, FORCE_LEVEL_3,
  NUM_FORCE_POWER_LEVELS
}
enum  sharedERagPhase {
  RP_START_DEATH_ANIM, RP_END_DEATH_ANIM, RP_DEATH_COLLISION, RP_CORPSE_SHOT,
  RP_GET_PELVIS_OFFSET, RP_SET_PELVIS_OFFSET, RP_DISABLE_EFFECTORS
}
enum  sharedERagEffector {
  RE_MODEL_ROOT = 0x00000001, RE_PELVIS = 0x00000002, RE_LOWER_LUMBAR = 0x00000004, RE_UPPER_LUMBAR = 0x00000008,
  RE_THORACIC = 0x00000010, RE_CRANIUM = 0x00000020, RE_RHUMEROUS = 0x00000040, RE_LHUMEROUS = 0x00000080,
  RE_RRADIUS = 0x00000100, RE_LRADIUS = 0x00000200, RE_RFEMURYZ = 0x00000400, RE_LFEMURYZ = 0x00000800,
  RE_RTIBIA = 0x00001000, RE_LTIBIA = 0x00002000, RE_RHAND = 0x00004000, RE_LHAND = 0x00008000,
  RE_RTARSAL = 0x00010000, RE_LTARSAL = 0x00020000, RE_RTALUS = 0x00040000, RE_LTALUS = 0x00080000,
  RE_RRADIUSX = 0x00100000, RE_LRADIUSX = 0x00200000, RE_RFEMURX = 0x00400000, RE_LFEMURX = 0x00800000,
  RE_CEYEBROW = 0x01000000
}
enum  sharedEIKMoveState { IKS_NONE = 0, IKS_DYNAMIC }
enum  {
  MAT_METAL = 0, MAT_GLASS, MAT_ELECTRICAL, MAT_ELEC_METAL,
  MAT_DRK_STONE, MAT_LT_STONE, MAT_GLASS_METAL, MAT_METAL2,
  MAT_NONE, MAT_GREY_STONE, MAT_METAL3, MAT_CRATE1,
  MAT_GRATE1, MAT_ROPE, MAT_CRATE2, MAT_WHITE_METAL,
  MAT_SNOWY_ROCK, NUM_MATERIALS
}
enum  ct_table_t {
  CT_NONE, CT_BLACK, CT_RED, CT_GREEN,
  CT_BLUE, CT_YELLOW, CT_MAGENTA, CT_CYAN,
  CT_WHITE, CT_LTGREY, CT_MDGREY, CT_DKGREY,
  CT_DKGREY2, CT_VLTORANGE, CT_LTORANGE, CT_DKORANGE,
  CT_VDKORANGE, CT_VLTBLUE1, CT_LTBLUE1, CT_DKBLUE1,
  CT_VDKBLUE1, CT_VLTBLUE2, CT_LTBLUE2, CT_DKBLUE2,
  CT_VDKBLUE2, CT_VLTBROWN1, CT_LTBROWN1, CT_DKBROWN1,
  CT_VDKBROWN1, CT_VLTGOLD1, CT_LTGOLD1, CT_DKGOLD1,
  CT_VDKGOLD1, CT_VLTPURPLE1, CT_LTPURPLE1, CT_DKPURPLE1,
  CT_VDKPURPLE1, CT_VLTPURPLE2, CT_LTPURPLE2, CT_DKPURPLE2,
  CT_VDKPURPLE2, CT_VLTPURPLE3, CT_LTPURPLE3, CT_DKPURPLE3,
  CT_VDKPURPLE3, CT_VLTRED1, CT_LTRED1, CT_DKRED1,
  CT_VDKRED1, CT_VDKRED, CT_DKRED, CT_VLTAQUA,
  CT_LTAQUA, CT_DKAQUA, CT_VDKAQUA, CT_LTPINK,
  CT_DKPINK, CT_LTCYAN, CT_DKCYAN, CT_LTBLUE3,
  CT_BLUE3, CT_DKBLUE3, CT_HUD_GREEN, CT_HUD_RED,
  CT_ICON_BLUE, CT_NO_AMMO_RED, CT_HUD_ORANGE, CT_MAX
}
enum  fsMode_t { FS_READ, FS_WRITE, FS_APPEND, FS_APPEND_SYNC }
enum  fsOrigin_t { FS_SEEK_CUR, FS_SEEK_END, FS_SEEK_SET }
enum  {
  CHAN_AUTO, CHAN_LOCAL, CHAN_WEAPON, CHAN_VOICE,
  CHAN_VOICE_ATTEN, CHAN_ITEM, CHAN_BODY, CHAN_AMBIENT,
  CHAN_LOCAL_SOUND, CHAN_ANNOUNCER, CHAN_LESS_ATTEN, CHAN_MENU1,
  CHAN_VOICE_GLOBAL, CHAN_MUSIC
}
enum  trackchan_t {
  TRACK_CHANNEL_NONE = 50, TRACK_CHANNEL_1, TRACK_CHANNEL_2, TRACK_CHANNEL_3,
  TRACK_CHANNEL_4, TRACK_CHANNEL_5, NUM_TRACK_CHANNELS
}
enum  itemUseFail_t { SENTRY_NOROOM = 1, SENTRY_ALREADYPLACED, SHIELD_NOROOM, SEEKER_ALREADYDEPLOYED }
enum  genCmds_t {
  GENCMD_SABERSWITCH = 1, GENCMD_ENGAGE_DUEL, GENCMD_FORCE_HEAL, GENCMD_FORCE_SPEED,
  GENCMD_FORCE_THROW, GENCMD_FORCE_PULL, GENCMD_FORCE_DISTRACT, GENCMD_FORCE_RAGE,
  GENCMD_FORCE_PROTECT, GENCMD_FORCE_ABSORB, GENCMD_FORCE_HEALOTHER, GENCMD_FORCE_FORCEPOWEROTHER,
  GENCMD_FORCE_SEEING, GENCMD_USE_SEEKER, GENCMD_USE_FIELD, GENCMD_USE_BACTA,
  GENCMD_USE_ELECTROBINOCULARS, GENCMD_ZOOM, GENCMD_USE_SENTRY, GENCMD_USE_JETPACK,
  GENCMD_USE_BACTABIG, GENCMD_USE_HEALTHDISP, GENCMD_USE_AMMODISP, GENCMD_USE_EWEB,
  GENCMD_USE_CLOAK, GENCMD_SABERATTACKCYCLE, GENCMD_TAUNT, GENCMD_BOW,
  GENCMD_MEDITATE, GENCMD_FLOURISH, GENCMD_GLOAT
}
enum  trType_t {
  TR_STATIONARY, TR_INTERPOLATE, TR_LINEAR, TR_LINEAR_STOP,
  TR_NONLINEAR_STOP, TR_SINE, TR_GRAVITY
}
enum  connstate_t {
  CA_UNINITIALIZED, CA_DISCONNECTED, CA_AUTHORIZING, CA_CONNECTING,
  CA_CHALLENGING, CA_CONNECTED, CA_LOADING, CA_PRIMED,
  CA_ACTIVE, CA_CINEMATIC
}
enum  {
  FMV_IDLE, FMV_PLAY, FMV_EOF, FMV_ID_BLT,
  FMV_ID_IDLE, FMV_LOOPED, FMV_ID_WAIT
}
enum  _flag_status {
  FLAG_ATBASE = 0, FLAG_TAKEN, FLAG_TAKEN_RED, FLAG_TAKEN_BLUE,
  FLAG_DROPPED
}
enum  Eorientations {
  ORIGIN = 0, POSITIVE_X, POSITIVE_Z, POSITIVE_Y,
  NEGATIVE_X, NEGATIVE_Z, NEGATIVE_Y
}
enum  {
  ALL, BOTLIB, CLIENTS, BOTGAME,
  DOWNLOAD, GENERAL, CLIPBOARD, SND_MP3STREAMHDR,
  SND_DYNAMICMUSIC, BSP_DISKIMAGE, VM, SPECIAL_MEM_TEST,
  HUNK_MARK1, HUNK_MARK2, EVENT, FILESYS,
  GHOUL2, GHOUL2_GORE, LISTFILES, AMBIENTSET,
  STATIC, SMALL, MODEL_MD3, MODEL_GLM,
  MODEL_GLA, ICARUS, ICARUS2, ICARUS3,
  ICARUS4, ICARUS5, SHADERTEXT, SND_RAWDATA,
  TEMP_WORKSPACE, TEMP_PNG, TEXTPOOL, IMAGE_T,
  INFLATE, DEFLATE, BSP, GRIDMESH,
  POINTCACHE, TERRAIN, R_TERRAIN, RESAMPLE,
  CM_TERRAIN, CM_TERRAIN_TEMP, TEMP_IMAGE, VM_ALLOCATED,
  TEMP_HUNKALLOC
}
enum  ForceReload_e { eForceReload_NOTHING, eForceReload_MODELS, eForceReload_ALL }
enum  {
  FONT_NONE, FONT_SMALL = 1, FONT_MEDIUM, FONT_LARGE,
  FONT_SMALL2
}

Functions

short ShortSwap (short l)
int LongSwap (int l)
float FloatSwap (const float *f)
void * Hunk_Alloc (int size, ha_pref preference)
void Com_Memset (void *dest, const int val, const size_t count)
void Com_Memcpy (void *dest, const void *src, const size_t count)
float Q_fabs (float f)
float Q_rsqrt (float f)
signed char ClampChar (int i)
signed short ClampShort (int i)
float powf (float x, int y)
int DirToByte (vec3_t dir)
void ByteToDir (int b, vec3_t dir)
vec_t _DotProduct (const vec3_t v1, const vec3_t v2)
void _VectorSubtract (const vec3_t veca, const vec3_t vecb, vec3_t out)
void _VectorAdd (const vec3_t veca, const vec3_t vecb, vec3_t out)
void _VectorCopy (const vec3_t in, vec3_t out)
void _VectorScale (const vec3_t in, float scale, vec3_t out)
void _VectorMA (const vec3_t veca, float scale, const vec3_t vecb, vec3_t vecc)
unsigned ColorBytes3 (float r, float g, float b)
unsigned ColorBytes4 (float r, float g, float b, float a)
float NormalizeColor (const vec3_t in, vec3_t out)
float RadiusFromBounds (const vec3_t mins, const vec3_t maxs)
void ClearBounds (vec3_t mins, vec3_t maxs)
vec_t DistanceHorizontal (const vec3_t p1, const vec3_t p2)
vec_t DistanceHorizontalSquared (const vec3_t p1, const vec3_t p2)
void AddPointToBounds (const vec3_t v, vec3_t mins, vec3_t maxs)
vec_t VectorNormalize (vec3_t v)
vec_t VectorNormalize2 (const vec3_t v, vec3_t out)
void Vector4Scale (const vec4_t in, vec_t scale, vec4_t out)
void VectorRotate (vec3_t in, vec3_t matrix[3], vec3_t out)
int Q_log2 (int val)
float Q_acos (float c)
float Q_asin (float c)
int Q_rand (int *seed)
float Q_random (int *seed)
float Q_crandom (int *seed)
void vectoangles (const vec3_t value1, vec3_t angles)
void AnglesToAxis (const vec3_t angles, vec3_t axis[3])
void AxisClear (vec3_t axis[3])
void AxisCopy (vec3_t in[3], vec3_t out[3])
void SetPlaneSignbits (struct cplane_s *out)
int BoxOnPlaneSide (vec3_t emins, vec3_t emaxs, struct cplane_s *plane)
double fmod (double x, double y)
float AngleMod (float a)
float LerpAngle (float from, float to, float frac)
float AngleSubtract (float a1, float a2)
void AnglesSubtract (vec3_t v1, vec3_t v2, vec3_t v3)
float AngleNormalize360 (float angle)
float AngleNormalize180 (float angle)
float AngleDelta (float angle1, float angle2)
qboolean PlaneFromPoints (vec4_t plane, const vec3_t a, const vec3_t b, const vec3_t c)
void ProjectPointOnPlane (vec3_t dst, const vec3_t p, const vec3_t normal)
void RotatePointAroundVector (vec3_t dst, const vec3_t dir, const vec3_t point, float degrees)
void RotateAroundDirection (vec3_t axis[3], float yaw)
void MakeNormalVectors (const vec3_t forward, vec3_t right, vec3_t up)
void MatrixMultiply (float in1[3][3], float in2[3][3], float out[3][3])
void AngleVectors (const vec3_t angles, vec3_t forward, vec3_t right, vec3_t up)
void PerpendicularVector (vec3_t dst, const vec3_t src)
void NormalToLatLong (const vec3_t normal, byte bytes[2])
int Com_Clampi (int min, int max, int value)
float Com_Clamp (float min, float max, float value)
char * COM_SkipPath (char *pathname)
void COM_StripExtension (const char *in, char *out)
void COM_DefaultExtension (char *path, int maxSize, const char *extension)
void COM_BeginParseSession (const char *name)
int COM_GetCurrentParseLine (void)
const char * SkipWhitespace (const char *data, qboolean *hasNewLines)
char * COM_Parse (const char **data_p)
char * COM_ParseExt (const char **data_p, qboolean allowLineBreak)
int COM_Compress (char *data_p)
void COM_ParseError (char *format,...)
void COM_ParseWarning (char *format,...)
qboolean COM_ParseString (const char **data, const char **s)
qboolean COM_ParseInt (const char **data, int *i)
qboolean COM_ParseFloat (const char **data, float *f)
qboolean COM_ParseVec4 (const char **buffer, vec4_t *c)
void COM_MatchToken (const char **buf_p, char *match)
void SkipBracedSection (const char **program)
void SkipRestOfLine (const char **data)
void Parse1DMatrix (const char **buf_p, int x, float *m)
void Parse2DMatrix (const char **buf_p, int y, int x, float *m)
void Parse3DMatrix (const char **buf_p, int z, int y, int x, float *m)
void QDECL Com_sprintf (char *dest, int size, const char *fmt,...)
int Q_isprint (int c)
int Q_islower (int c)
int Q_isupper (int c)
int Q_isalpha (int c)
int Q_stricmp (const char *s1, const char *s2)
int Q_strncmp (const char *s1, const char *s2, int n)
int Q_stricmpn (const char *s1, const char *s2, int n)
char * Q_strlwr (char *s1)
char * Q_strupr (char *s1)
char * Q_strrchr (const char *string, int c)
void Q_strncpyz (char *dest, const char *src, int destsize)
void Q_strcat (char *dest, int size, const char *src)
int Q_PrintStrlen (const char *string)
char * Q_CleanStr (char *string)
char *QDECL va (const char *format,...)
char * Info_ValueForKey (const char *s, const char *key)
void Info_RemoveKey (char *s, const char *key)
void Info_RemoveKey_big (char *s, const char *key)
void Info_SetValueForKey (char *s, const char *key, const char *value)
void Info_SetValueForKey_Big (char *s, const char *key, const char *value)
qboolean Info_Validate (const char *s)
void Info_NextPair (const char **s, char *key, char *value)
void QDECL Com_Error (int level, const char *error,...)
void QDECL Com_Printf (const char *msg,...)
void Rand_Init (int seed)
float flrand (float min, float max)
int irand (int min, int max)
int Q_irand (int value1, int value2)
int GetIDForString (stringID_table_t *table, const char *string)
const char * GetStringForID (stringID_table_t *table, int id)

Variables

int g_Ghoul2Allocations
int g_G2ServerAlloc
int g_G2ClientAlloc
int g_G2AllocServer
float forceSpeedLevels [4]
vec3_t bytedirs [NUMVERTEXNORMALS]
vec4_t colorTable [CT_MAX]
vec4_t colorBlack
vec4_t colorRed
vec4_t colorGreen
vec4_t colorBlue
vec4_t colorYellow
vec4_t colorMagenta
vec4_t colorCyan
vec4_t colorWhite
vec4_t colorLtGrey
vec4_t colorMdGrey
vec4_t colorDkGrey
vec4_t colorLtBlue
vec4_t colorDkBlue
vec4_t g_color_table [8]
vec3_t vec3_origin
vec3_t axisDefault [3]


Define Documentation

#define _FULL_G2_LEAK_CHECKING
 

Definition at line 47 of file q_shared.h.

#define _G2_GORE
 

Definition at line 3110 of file q_shared.h.

#define _OPTIMIZED_VEHICLE_NETWORKING
 

Definition at line 2154 of file q_shared.h.

#define ANGLE2SHORT  )     ((int)((x)*65536/360) & 65535)
 

Definition at line 1972 of file q_shared.h.

Referenced by BotInputToUserCommand(), G_TryPushingEntity(), NPC_KeepCurrentFacing(), NPC_UpdateAngles(), NPC_UpdateFiringAngles(), PM_AdjustAngleForWallJump(), PM_AdjustAngleForWallRun(), PM_AdjustAngleForWallRunUp(), PM_SetPMViewAngle(), PM_UpdateViewAngles(), and SetClientViewAngle().

#define AS_FAVORITES   2
 

Definition at line 3027 of file q_shared.h.

#define AS_GLOBAL   1
 

Definition at line 3026 of file q_shared.h.

#define AS_LOCAL   0
 

Definition at line 3025 of file q_shared.h.

#define AS_MPLAYER   3
 

Definition at line 3029 of file q_shared.h.

#define BIG_INFO_KEY   8192
 

Definition at line 389 of file q_shared.h.

Referenced by Info_RemoveKey_Big(), and Info_ValueForKey().

#define BIG_INFO_STRING   8192
 

Definition at line 388 of file q_shared.h.

Referenced by Info_RemoveKey_Big(), Info_SetValueForKey_Big(), and Info_ValueForKey().

#define BIG_INFO_VALUE   8192
 

Definition at line 390 of file q_shared.h.

Referenced by Info_RemoveKey_Big(), and Info_ValueForKey().

#define BIGCHAR_HEIGHT   16
 

Definition at line 1039 of file q_shared.h.

Referenced by CG_DrawBigString(), CG_DrawBigStringColor(), CG_DrawOldScoreboard(), and UI_DrawTextBox().

#define BIGCHAR_WIDTH   16
 

Definition at line 1038 of file q_shared.h.

Referenced by CG_DrawBigString(), CG_DrawBigStringColor(), CG_DrawOldScoreboard(), CG_DrawSiegeMessageNonMenu(), CG_EntityEvent(), and UI_DrawTextBox().

#define BLINK_DIVISOR   200
 

Definition at line 485 of file q_shared.h.

Referenced by Item_OwnerDraw_Paint(), and Item_TextColor().

#define BUTTON_ALT_ATTACK   128
 

Definition at line 2462 of file q_shared.h.

Referenced by ATST_Ranged(), Boba_FireDecide(), BotInputToUserCommand(), ClientInactivityTimer(), ClientThink_real(), G_ActionButtonPressed(), NPC_ApplyScriptFlags(), NPC_BSSniper_Attack(), NPC_BSST_Attack(), NPC_ExecuteBState(), PM_AdjustAttackStates(), PM_CanDoKata(), PM_CheckAltKickAttack(), PM_VehicleWeaponAnimate(), PM_WeaponLightsaber(), PmoveSingle(), saberFirstThrown(), Touch_Multi(), and VEH_TurretObeyPassengerControl().

#define BUTTON_ANY   256
 

Definition at line 2464 of file q_shared.h.

#define BUTTON_ATTACK   1
 

Definition at line 2451 of file q_shared.h.

Referenced by AnimateRiders(), ATST_Ranged(), Boba_FireDecide(), BotInputToUserCommand(), BotUpdateInput(), ClientInactivityTimer(), ClientIntermissionThink(), ClientThink_real(), DownedSaberThink(), EWebThink(), G_ActionButtonPressed(), NPC_ApplyScriptFlags(), NPC_BSJedi_FollowLeader(), NPC_BSPointShoot(), NPC_BSRunAndShoot(), NPC_BSSniper_Attack(), NPC_BSST_Attack(), NPC_CheckAttackHold(), NPC_CheckAttackScript(), NPC_CheckCanAttack(), NPC_ExecuteBState(), NPC_StandTrackAndShoot(), PM_AdjustAttackStates(), PM_CanDoKata(), PM_CheckPullAttack(), PM_SaberAttackForMovement(), PM_VehicleWeaponAnimate(), PM_WeaponLightsaber(), PmoveSingle(), ShootThink(), SpectatorThink(), Touch_Multi(), VEH_TurretObeyPassengerControl(), WeaponThink(), WP_SaberCanBlock(), and WP_SaberStartMissileBlockCheck().

#define BUTTON_FORCE_DRAIN   2048
 

Definition at line 2470 of file q_shared.h.

Referenced by G_ActionButtonPressed(), PmoveSingle(), and WP_ForcePowersUpdate().

#define BUTTON_FORCE_LIGHTNING   1024
 

Definition at line 2468 of file q_shared.h.

Referenced by G_ActionButtonPressed(), PmoveSingle(), and WP_ForcePowersUpdate().

#define BUTTON_FORCEGRIP   64
 

Definition at line 2461 of file q_shared.h.

Referenced by G_ActionButtonPressed(), PmoveSingle(), and WP_ForcePowersUpdate().

#define BUTTON_FORCEPOWER   512
 

Definition at line 2466 of file q_shared.h.

Referenced by BotInputToUserCommand(), G_ActionButtonPressed(), PmoveSingle(), and WP_ForcePowersUpdate().

#define BUTTON_GESTURE   8
 

Definition at line 2454 of file q_shared.h.

Referenced by BotInputToUserCommand(), ClientThink_real(), and G_ActionButtonPressed().

#define BUTTON_TALK   2
 

Definition at line 2452 of file q_shared.h.

Referenced by CG_PredictPlayerState(), ClientThink_real(), and PmoveSingle().

#define BUTTON_USE   32
 

Definition at line 2460 of file q_shared.h.

Referenced by AnimateRiders(), BotInputToUserCommand(), CG_NextForcePower_f(), CG_PrevForcePower_f(), check_recharge(), ClientThink_real(), emplaced_gun_update(), G_ActionButtonPressed(), G_CheckClientIdle(), G_RunFrame(), NPC_ApplyScriptFlags(), PM_Use(), Touch_Multi(), and TryUse().

#define BUTTON_USE_HOLDABLE   4
 

Definition at line 2453 of file q_shared.h.

Referenced by BotInputToUserCommand(), ClientIntermissionThink(), ClientThink_real(), G_ActionButtonPressed(), and PmoveSingle().

#define BUTTON_WALKING   16
 

Definition at line 2455 of file q_shared.h.

Referenced by ATST_Patrol(), BG_AdjustClientSpeed(), BotInputToUserCommand(), ClientThink_real(), Droid_Patrol(), Howler_Patrol(), ImperialProbe_Patrol(), Mark1_Patrol(), Mark2_Patrol(), MineMonster_Idle(), MineMonster_Patrol(), NPC_ApplyScriptFlags(), NPC_BSDefault(), NPC_BSFlee(), NPC_BSFollowLeader(), NPC_BSGM_Patrol(), NPC_BSGrenadier_Patrol(), NPC_BSHuntAndKill(), NPC_BSIdle(), NPC_BSPatrol(), NPC_BSSniper_Patrol(), NPC_BSST_Investigate(), NPC_BSST_Patrol(), NPC_BSWampa_Default(), NPC_MoveToGoal(), NPC_Sentry_Patrol(), PmoveSingle(), Rancor_Idle(), Rancor_Patrol(), Remote_Patrol(), Wampa_Attack(), Wampa_Idle(), Wampa_Move(), and Wampa_Patrol().

#define CDCHKSUM_LEN   2
 

Definition at line 3069 of file q_shared.h.

#define CDKEY_LEN   16
 

Definition at line 3068 of file q_shared.h.

#define CIN_hold   4
 

Definition at line 517 of file q_shared.h.

#define CIN_loop   2
 

Definition at line 516 of file q_shared.h.

Referenced by UI_FeederSelection().

#define CIN_shader   16
 

Definition at line 519 of file q_shared.h.

#define CIN_silent   8
 

Definition at line 518 of file q_shared.h.

Referenced by UI_FeederSelection().

#define CIN_system   1
 

Definition at line 515 of file q_shared.h.

#define COLOR_BLACK   '0'
 

Definition at line 1150 of file q_shared.h.

#define COLOR_BLUE   '4'
 

Definition at line 1154 of file q_shared.h.

#define COLOR_CYAN   '5'
 

Definition at line 1155 of file q_shared.h.

Referenced by G_Say().

#define COLOR_GREEN   '2'
 

Definition at line 1152 of file q_shared.h.

Referenced by CG_BracketEntity(), CG_DrawRadar(), Debug_NPCPrintf(), and G_Say().

#define COLOR_MAGENTA   '6'
 

Definition at line 1156 of file q_shared.h.

Referenced by G_Say().

#define COLOR_RED   '1'
 

Definition at line 1151 of file q_shared.h.

Referenced by CG_BracketEntity(), CG_DrawRadar(), CG_DrawVehicleAmmo(), CG_DrawVehicleAmmoLower(), CG_DrawVehicleAmmoUpper(), and Debug_NPCPrintf().

#define COLOR_WHITE   '7'
 

Definition at line 1157 of file q_shared.h.

Referenced by Debug_NPCPrintf(), and G_Say().

#define COLOR_YELLOW   '3'
 

Definition at line 1153 of file q_shared.h.

Referenced by Debug_NPCPrintf().

#define ColorIndex  )     ( ( (c) - '0' ) & 7 )
 

Definition at line 1158 of file q_shared.h.

Referenced by CG_BracketEntity(), CG_DrawRadar(), CG_DrawStringExt(), CG_DrawVehicleAmmo(), CG_DrawVehicleAmmoLower(), and CG_DrawVehicleAmmoUpper().

 
#define crandom  )     (2.0 * (random() - 0.5))
 

Definition at line 1592 of file q_shared.h.

Referenced by CG_AddLightningBeam(), CG_AddParticleToScene(), CG_BubbleTrail(), CG_Chunks(), CG_CreateDebris(), CG_Disintegration(), CG_DoSaber(), CG_GlassShatter_Old(), CG_InitGlass(), CG_Particle_OilSlick(), CG_ParticleBloodCloud(), CG_ParticleBubble(), CG_ParticleDust(), CG_ParticleExplosion(), CG_ParticleImpactSmokePuff(), CG_ParticleSmoke(), CG_ParticleSnow(), CG_ParticleSnowFlurry(), CG_ParticleSparks(), CG_SE_UpdateShake(), CG_SurfaceExplosion(), Drop_Item(), func_timer_think(), Howler_Patrol(), MineMonster_Patrol(), multi_trigger_run(), NPC_BSDroid_Default(), NPC_BSGM_Attack(), Rancor_Patrol(), rocketThink(), Seeker_Strafe(), Touch_Item(), trigger_cleared_fire(), UI_DoSaber(), Use_Shooter(), Use_Target_Delay(), and Wampa_Patrol().

#define CS_SERVERINFO   0
 

Definition at line 2041 of file q_shared.h.

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

#define CS_SYSTEMINFO   1
 

Definition at line 2042 of file q_shared.h.

Referenced by CG_DrawInformation().

#define CVAR_ARCHIVE   0x00000001
 

Definition at line 1782 of file q_shared.h.

Referenced by _UI_Init(), CG_RegisterCvars(), and UI_GetVideoSetup().

#define CVAR_CHEAT   0x00000200
 

Definition at line 1798 of file q_shared.h.

Referenced by BotAISetup(), and LoadPath_ThisLevel().

#define CVAR_INIT   0x00000010
 

Definition at line 1788 of file q_shared.h.

Referenced by UI_LoadBots().

#define CVAR_INTERNAL   0x00000800
 

Definition at line 1800 of file q_shared.h.

Referenced by _UI_Init(), CG_RegisterCvars(), and UI_GetVideoSetup().

#define CVAR_LATCH   0x00000020
 

Definition at line 1790 of file q_shared.h.

#define CVAR_NORESTART   0x00000400
 

Definition at line 1799 of file q_shared.h.

#define CVAR_PARENTAL   0x00001000
 

Definition at line 1801 of file q_shared.h.

#define CVAR_ROM   0x00000040
 

Definition at line 1795 of file q_shared.h.

Referenced by AcceptBotCommand(), CG_RegisterCvars(), G_InitGame(), G_RefreshNextMap(), InitSiegeMode(), LoadPath_ThisLevel(), NAV_CheckCalcPaths(), UI_GetVideoSetup(), and UI_LoadBots().

#define CVAR_SERVERINFO   0x00000004
 

Definition at line 1786 of file q_shared.h.

Referenced by _UI_Init(), AcceptBotCommand(), G_InitBots(), G_InitGame(), G_RefreshNextMap(), InitSiegeMode(), LoadPath_ThisLevel(), and NAV_CheckCalcPaths().

#define CVAR_SYSTEMINFO   0x00000008
 

Definition at line 1787 of file q_shared.h.

#define CVAR_TEMP   0x00000100
 

Definition at line 1797 of file q_shared.h.

#define CVAR_USER_CREATED   0x00000080
 

Definition at line 1796 of file q_shared.h.

#define CVAR_USERINFO   0x00000002
 

Definition at line 1785 of file q_shared.h.

Referenced by CG_RegisterCvars().

#define DEFAULT_GRID_SPACING   400
 

Definition at line 999 of file q_shared.h.

Referenced by CalculatePaths(), G_BackwardAttachment(), G_RecursiveConnection(), and G_RMGPathing().

#define DEG2RAD  )     ( ( (a) * M_PI ) / 180.0F )
 

Definition at line 1174 of file q_shared.h.

Referenced by BG_EvaluateTrajectory(), BG_EvaluateTrajectoryDelta(), CG_AddParticleToScene(), G_FindClosestPointOnLineSegment(), G_PointDistFromLineSegment(), NPC_BSPointShoot(), and RotatePointAroundVector().

#define DotProduct x,
 )     ((x)[0]*(y)[0]+(x)[1]*(y)[1]+(x)[2]*(y)[2])
 

Definition at line 1358 of file q_shared.h.

Referenced by AnimateRiders(), BG_G2PlayerAngles(), Boba_FireDecide(), Boba_StopKnockdown(), BotInputToUserCommand(), CG_CreateSaberMarks(), CG_DamageFeedback(), CG_ImpactMark(), CG_LightVerts(), CG_ReflectVelocity(), CG_SaberClashFlare(), CG_WorldCoordToScreenCoordFloat(), DebugLine(), DirToByte(), DoImpact(), DotProductNormalize(), emplaced_gun_use(), ForceShootDrain(), ForceShootLightning(), ForceThrow(), G_AddPushVecToUcmd(), G_AttackDelay(), G_BounceItem(), G_BounceMissile(), G_BounceObject(), G_BounceProjectile(), G_CanJumpToEnemyVeh(), G_Damage(), G_DeflectMissile(), G_GetHitLocation(), G_GetHitLocFromSurfName(), G_GetHitQuad(), G_KnockOffVehicle(), G_ReflectMissile(), G_RotatePoint(), G_SPSaberDamageTraceLerped(), G_UcmdMoveForDir(), hyperspace_touch(), InFront(), Jedi_CheckFlipEvasions(), Jedi_FindEnemyInCone(), Jedi_SaberBlockGo(), MakeNormalVectors(), NAV_Bypass(), NAV_TrueCollision(), NAVNEW_DanceWithBlocker(), NPC_BSFlee(), NPC_BSNoClip(), NPC_BSST_Attack(), NPC_FindCombatPoint(), NPC_Jedi_Pain(), NPC_PickAlly(), NPC_PickEnemy(), Pickup_Powerup(), pitch_roll_for_slope(), PlaneFromPoints(), PM_AdjustAngleForWallRun(), PM_AnglesForSlope(), PM_ClipVelocity(), PM_pitch_roll_for_slope(), PM_SlideMove(), PM_StepSlideMove(), PM_VehicleImpact(), ProjectPointOnPlane(), rocketThink(), ShortestLineSegBewteen2LineSegs(), SP_func_door(), ST_Commander(), Touch_Multi(), ValidateBoard(), VectorRotate(), WP_SaberBlock(), WP_SaberBlockNonRandom(), WP_SabersIntersect(), WP_SaberStartMissileBlockCheck(), and WP_VehLeadCrosshairVeh().

#define ENTITYNUM_MAX_NORMAL   (MAX_GENTITIES-2)
 

Definition at line 2016 of file q_shared.h.

Referenced by CG_AdjustPositionForMover(), G_Spawn(), and NPC_Kill_f().

#define ENTITYNUM_NONE   (MAX_GENTITIES-1)
 

Definition at line 2014 of file q_shared.h.

Referenced by AI_ClosestGroupEntityNumToPoint(), AI_SetClosestBuddy(), AI_SortGroupByPathCostToEnemy(), BG_AdjustClientSpeed(), BG_ClearRocketLock(), BG_G2PlayerAngles(), Boba_FireDecide(), BotFallbackNavigation(), BotHasAssociated(), BotTrace_Strafe(), BroadcastObjectiveCompletion(), CalculatePaths(), CanCounterThrow(), CanDamage(), CanForceJumpTo(), CanGetToVector(), CanGetToVectorTravel(), CG_AddSaberBlade(), CG_CheckTargetVehicle(), CG_CheckThirdPersonAlpha(), CG_EntityEvent(), CG_G2MarkEvent(), CG_G2SaberEffects(), CG_G2Trace(), CG_G2TraceCollide(), CG_Player(), CG_Rag_Trace(), CG_RagDoll(), CG_SaberCompWork(), CG_Trace(), CG_UpdateSoundTrackers(), ClientCommand(), ClientSpawn(), ClientThink_real(), ConnectTrail(), CorpsePhysics(), CreateNewWP(), CreateNewWP_InsertUnder(), CreateNewWP_InTrail(), DoGripAction(), DoImpact(), DoorBlockingSection(), DownedSaberThink(), Eject(), emplaced_gun_update(), EntityVisibleBox(), EWebDie(), EWebPain(), EWebThink(), FireVehicleWeapon(), ForceGrip(), ForceJump(), ForceJumpCharge(), ForceShootDrain(), ForceShootLightning(), ForceTelepathy(), ForceTelepathyCheckDirectNPCTarget(), ForceThrow(), G_ClearLOS(), G_EjectDroidUnit(), G_FindLocalInterestPoint(), G_GetDismemberBolt(), G_InitGentity(), G_PickDeathAnim(), G_PortalifyEntities(), G_RecursiveConnection(), G_RMGPathing(), G_RunExPhys(), G_RunFrame(), G_RunMissile(), G_SetTauntAnim(), G_TryPushingEntity(), Initialize(), ItemUse_Sentry(), Jedi_DodgeEvasion(), Jedi_SaberBlockGo(), LoadPathData(), MineMonster_TryDamage(), NAV_ClearPathToPoint(), NAVNEW_TestNodeConnectionBlocked(), NPC_Begin(), NPC_BSJedi_FollowLeader(), NPC_BSJump(), NPC_BSSeeker_Default(), NPC_CheckSurrender(), NPC_ClearBlocked(), NPC_ClearLookTarget(), NPC_ExecuteBState(), NPC_FindCombatPoint(), NPC_MoveDirClear(), NPC_SearchForWeapons(), pas_think(), Pickup_Powerup(), player_die(), PM_CanBackstab(), PM_CanDoKata(), PM_CheckStabDown(), PM_ClipVelocity(), PM_ForceJumpingUp(), PM_MoveForKata(), PM_RocketLock(), PM_SaberAttackForMovement(), PM_SetSaberMove(), PM_SomeoneInFront(), PM_WeaponLightsaber(), PmoveSingle(), Rancor_Attack(), Rancor_DropVictim(), Rancor_Smash(), RepairPaths(), rocketThink(), saberBackToOwner(), SaberCombatHandling(), saberFirstThrown(), SaberUpdateSelf(), Seeker_Fire(), SeekerDroneUpdate(), Siege_TargetClosestObjective(), SiegeCheckTimers(), SiegeItemRemoveOwner(), SiegeItemThink(), SiegeRoundComplete(), siegeTriggerUse(), SP_misc_ammo_floor_unit(), SP_misc_model_ammo_power_converter(), SP_misc_model_health_power_converter(), SP_misc_model_shield_power_converter(), SP_misc_shield_floor_unit(), SP_misc_siege_item(), SP_PAS(), space_touch(), StandardBotAI(), touchLaserTrap(), TryUse(), TurretClientRun(), VEH_TryEject(), VEH_TurretThink(), Wampa_Attack(), waypoint_testDirection(), WP_DoSpecificPower(), WP_DropDetPack(), WP_FireMelee(), WP_FireVehicleWeapon(), WP_ForcePowerStop(), WP_ForcePowersUpdate(), WP_PlaceLaserTrap(), WP_ResistForcePush(), WP_SaberClearDamage(), WP_SaberRadiusDamage(), WP_SabersCheckLock(), WP_SaberStartMissileBlockCheck(), WP_SpawnInitForcePowers(), WPConstantRoutine(), and WPOrgVisible().

#define ENTITYNUM_WORLD   (MAX_GENTITIES-2)
 

Definition at line 2015 of file q_shared.h.

Referenced by AI_ValidateNoEnemyGroupMember(), asteroid_count_num_asteroids(), Boba_FireFlameThrower(), CG_AddFragment(), CG_AddSaberBlade(), CG_CheckTargetVehicle(), CG_DrawRadar(), CG_FragmentBounceSound(), CG_G2MarkEvent(), CG_G2Trace(), CG_Player(), CG_Rag_Trace(), CG_Trace(), charge_stick(), Cmd_NPC_f(), DoImpact(), EWeb_Create(), FighterIsInSpace(), ForceSpeed(), G_ClearLOS(), G_Damage(), G_EntIsBreakable(), G_EntIsDoor(), G_EntIsUnlockedDoor(), G_PortalifyEntities(), G_RMGPathing(), G_RunMissile(), G_RunStuckMissile(), G_SpawnEntitiesFromString(), Howler_TryDamage(), Jedi_CheckFlipEvasions(), maglock_link(), MakeDeadSaber(), NAV_CheckAhead(), NAV_ClearBlockedInfo(), NAV_ClearPathToPoint(), NAV_TestBestNode(), NAVNEW_ClearPathBetweenPoints(), NPC_CheckLookTarget(), NPC_CheckPlayerTeamStealth(), NPC_RemoveBody(), player_die(), PM_AddTouchEnt(), PM_CheckStabDown(), PM_VehicleImpact(), PmoveSingle(), proxMineThink(), Rancor_Crush(), SP_worldspawn(), touchLaserTrap(), ValidBloodPool(), VEH_TurretThink(), WP_FireStunBaton(), WP_LobFire(), WP_SaberDamageAdd(), and WP_SaberStartMissileBlockCheck().

#define ENUM2STRING arg   )     #arg,arg
 

Definition at line 3153 of file q_shared.h.

#define FALL_FADE_TIME   3000
 

Definition at line 2148 of file q_shared.h.

Referenced by ClientThink_real().

#define FORCE_DARKSIDE   2
 

Definition at line 2144 of file q_shared.h.

Referenced by BG_LegalizedForcePowers(), CG_GreyItem(), CG_Player(), SP_misc_holocron(), StandardBotAI(), Touch_Item(), UI_ForceConfigHandle(), UI_ReadLegalForce(), UI_SaveForceTemplate(), UpdateForceStatus(), and WP_InitForcePowers().

#define FORCE_LEVEL_4   (FORCE_LEVEL_3+1)
 

Definition at line 852 of file q_shared.h.

#define FORCE_LEVEL_5   (FORCE_LEVEL_4+1)
 

Definition at line 853 of file q_shared.h.

Referenced by BG_SiegeTranslateForcePowers().

#define FORCE_LIGHTSIDE   1
 

Definition at line 2143 of file q_shared.h.

Referenced by BG_LegalizedForcePowers(), CG_GreyItem(), CG_Player(), SP_misc_holocron(), StandardBotAI(), Touch_Item(), UI_FeederSelection(), UI_ForceConfigHandle(), UI_ReadLegalForce(), UI_SaveForceTemplate(), UI_TranslateFCFIndex(), UpdateForceStatus(), and WP_InitForcePowers().

#define G2_PERFORMANCE_ANALYSIS
 

Definition at line 46 of file q_shared.h.

#define GENTITYNUM_BITS   10
 

Definition at line 1994 of file q_shared.h.

#define GIANTCHAR_HEIGHT   48
 

Definition at line 1042 of file q_shared.h.

#define GIANTCHAR_WIDTH   32
 

Definition at line 1041 of file q_shared.h.

Referenced by CG_EntityEvent().

#define id386   0
 

Definition at line 128 of file q_shared.h.

#define idppc   0
 

Definition at line 134 of file q_shared.h.

#define IS_NAN  )     (((*(int *)&x)&nanmask)==nanmask)
 

Definition at line 1184 of file q_shared.h.

#define KEYCATCH_CGAME   0x0008
 

Definition at line 1939 of file q_shared.h.

#define KEYCATCH_CONSOLE   0x0001
 

Definition at line 1936 of file q_shared.h.

#define KEYCATCH_MESSAGE   0x0004
 

Definition at line 1938 of file q_shared.h.

#define KEYCATCH_UI   0x0002
 

Definition at line 1937 of file q_shared.h.

Referenced by _UI_KeyEvent(), _UI_SetActiveMenu(), CG_EntityEvent(), and UI_ConsoleCommand().

#define LS_NUM_STYLES   32
 

Definition at line 420 of file q_shared.h.

Referenced by SP_worldspawn().

#define LS_NUM_SWITCH   32
 

Definition at line 422 of file q_shared.h.

#define LS_STYLES_START   0
 

Definition at line 419 of file q_shared.h.

Referenced by SP_worldspawn().

#define LS_SWITCH_START   (LS_STYLES_START+LS_NUM_STYLES)
 

Definition at line 421 of file q_shared.h.

#define M_PI   3.14159265358979323846f
 

Definition at line 548 of file q_shared.h.

Referenced by AngleVectors(), BG_EvaluateTrajectory(), BG_EvaluateTrajectoryDelta(), CG_AddScorePlum(), CG_CalcFOVFromX(), CG_DrawSkyBoxPortal(), CG_Player(), InitShooter(), Item_Model_Paint(), Item_Paint(), SeekerDroneUpdate(), SP_func_pendulum(), vectoangles(), and vectoyaw().

#define MAKERGB v,
r,
g,
 )     v[0]=r;v[1]=g;v[2]=b
 

Definition at line 1171 of file q_shared.h.

Referenced by CG_RegisterWeapon().

#define MAKERGBA v,
r,
g,
b,
 )     v[0]=r;v[1]=g;v[2]=b;v[3]=a
 

Definition at line 1172 of file q_shared.h.

#define MAX_AMBIENT_SETS   256
 

Definition at line 2035 of file q_shared.h.

Referenced by G_PrecacheSoundsets(), and G_SoundSetIndex().

#define MAX_BLADES   8
 

Definition at line 670 of file q_shared.h.

Referenced by NPC_ParseParms(), WP_SaberParseParms(), and WP_SaberSetDefaults().

#define MAX_CLIENTS   32
 

Definition at line 1985 of file q_shared.h.

Referenced by AddSiegeWinningTeamPoints(), AnimateRiders(), asteroid_count_num_asteroids(), BG_AdjustClientSpeed(), BG_G2PlayerAngles(), BG_MySaber(), BG_UnrestrainedPitchRoll(), Board(), BotAILoadMap(), BotAIShutdown(), BotAIStartFrame(), BotDamageNotification(), BotDeathNotify(), BotGetFlagBack(), BotGuardFlagCarrier(), BotOrder(), BotReplyGreetings(), BotScanForLeader(), BotScheduleBotThink(), BotTrace_Jump(), CG_BuildSpectatorString(), CG_CalcEntityLerpPositions(), CG_CheckTargetVehicle(), CG_CrosshairPlayer(), CG_CustomSound(), CG_DrawHead(), CG_DrawRadar(), CG_DrawSiegeInfo(), CG_EntityEvent(), CG_G2PlayerHeadAnims(), CG_G2SaberEffects(), CG_GetClientWeaponMuzzleBoltPoint(), CG_GetCTFMessageEvent(), CG_LoadClientInfo(), CG_NewClientInfo(), CG_ParseSiegeExtendedDataEntry(), CG_Player(), CG_ReattachLimb(), CG_ThereIsAMaster(), CG_VehicleAttachDroidUnit(), CheckExitRules(), CheckForFriendInLOF(), ClientCommand(), ClientEndFrame(), ClientThink(), ClientThink_real(), Cmd_CallVote_f(), Cmd_EngageDuel_f(), Cmd_GameCommand_f(), Cmd_Give_f(), CommanderBotCTFAI(), CommanderBotSiegeAI(), CommanderBotTeamplayAI(), CTFTakesPriority(), Eject(), FindGenericEnemyIndex(), FireVehicleWeapon(), FireWeapon(), ForceGrip(), ForceSpeed(), ForceTeamForceReplenish(), ForceTeamHeal(), ForceTelepathyCheckDirectNPCTarget(), ForceThrow(), G_AddPowerDuelLoserScore(), G_AddPowerDuelScore(), G_CleanAllFakeClients(), G_ClearClientLog(), G_Damage(), G_EntitiesFree(), G_FreeEntity(), G_GetJediMaster(), G_InitGame(), G_LogWeaponDamage(), G_LogWeaponDeath(), G_LogWeaponFrag(), G_LogWeaponItem(), G_LogWeaponKill(), G_LogWeaponOutput(), G_LogWeaponPowerup(), G_OtherPlayersDueling(), G_PowerDuelCount(), G_RemoveDuelist(), G_RunFrame(), G_RunMissile(), G_Sound(), G_Spawn(), G_ThereIsAMaster(), G_TryPushingEntity(), G_UpdateClientAnims(), GetClosestSpawn(), GetFavoriteTargetForClient(), GetMaxDeathsForClient(), GetMaxKillsForClient(), GetNearestBadThing(), GetNextSpawnInIndex(), GetWorstEnemyForClient(), hurt_touch(), hyperspace_touch(), Jedi_CheckAmbushPlayer(), JMTakesPriority(), multi_trigger(), NPC_SomeoneLookingAtMe(), NPC_Think(), NPC_Touch(), pas_think(), player_die(), PlayersInGame(), PM_CheckStabDown(), PM_ClipVelocity(), PM_SetSpecialMoveValues(), PM_SlideMove(), PM_StepSlideMove(), PM_VehicleImpact(), PmoveSingle(), PrintCTFMessage(), proxMineThink(), RemovePowerDuelLosers(), respawn(), ScanForEnemies(), SetupGameGhoul2Model(), shipboundary_touch(), Siege_CountDefenders(), Siege_CountTeammates(), Siege_DefendFromAttackers(), SiegeBeginRound(), SiegeCheckTimers(), SiegeDoTeamAssign(), SiegeItemThink(), SiegeRoundComplete(), SP_emplaced_gun(), space_touch(), Team_ForceGesture(), thrownSaberTouch(), Touch_DoorTrigger(), Touch_Multi(), TryUse(), UI_ClampMaxPlayers(), UpdateEventTracker(), Use_Target_Escapetrig(), VEH_TryEject(), WP_InitForcePowers(), WP_SaberPositionUpdate(), WP_SetSaber(), and WP_VehCheckTraceFromCamPos().

#define MAX_CONFIGSTRINGS   1700
 

Definition at line 2037 of file q_shared.h.

Referenced by CG_ConfigString().

#define MAX_CVAR_VALUE_STRING   256
 

Definition at line 1818 of file q_shared.h.

#define MAX_FORCE_RANK   7
 

Definition at line 2146 of file q_shared.h.

#define MAX_FX   64
 

Definition at line 2023 of file q_shared.h.

Referenced by G_EffectIndex().

#define MAX_G2_COLLISIONS   16
 

Definition at line 1886 of file q_shared.h.

Referenced by CG_G2TraceCollide().

#define MAX_G2BONES   64
 

Definition at line 2030 of file q_shared.h.

Referenced by G_BoneIndex().

#define MAX_GAMESTATE_CHARS   16000
 

Definition at line 2046 of file q_shared.h.

#define MAX_GENTITIES   (1<<GENTITYNUM_BITS)
 

Definition at line 1996 of file q_shared.h.

Referenced by CG_DestroyAllGhoul2(), CG_LoadClientInfo(), CG_Player(), CG_PmoveClientPointerUpdate(), CG_PredictPlayerState(), CG_TransitionPermanent(), ClientBegin(), ClientCommand(), ClientDisconnect(), ClientThink_real(), CreateLaserTrap(), DEMP2_AltRadiusDamage(), drop_charge(), ForceShootDrain(), ForceShootLightning(), ForceTelepathy(), ForceThrow(), funcBBrushDieGo(), G_CleanAllFakeClients(), G_DebugPrint(), G_InitGame(), G_KillBox(), G_MoverPush(), G_MoverTouchPushTriggers(), G_PortalifyEntities(), G_PrecacheSoundsets(), G_RadiusDamage(), G_RadiusList(), G_RunFrame(), G_ShutdownGame(), G_Spawn(), G_TouchTriggers(), G_TryPushingEntity(), Jedi_FindEnemyInCone(), multi_trigger(), NPC_SpotWouldTelefrag(), pas_think(), PM_BGEntForNum(), Seeker_FindEnemy(), shipboundary_think(), SpotWouldTelefrag(), SpotWouldTelefrag2(), StandardBotAI(), TIMER_Clear(), TIMER_Clear2(), WP_DropDetPack(), WP_FireVehicleWeapon(), WP_PlaceLaserTrap(), and WP_SaberStartMissileBlockCheck().

#define MAX_GLOBAL_SERVERS   2048
 

Definition at line 3058 of file q_shared.h.

#define MAX_ICONS   64
 

Definition at line 2022 of file q_shared.h.

Referenced by G_IconIndex().

#define MAX_INFO_KEY   1024
 

Definition at line 385 of file q_shared.h.

Referenced by Info_RemoveKey().

#define MAX_INFO_STRING   1024
 

Definition at line 384 of file q_shared.h.

Referenced by CheckCvars(), ClientBegin(), ClientConnect(), ClientSpawn(), ClientUserinfoChanged(), Cmd_TeamTask_f(), G_BotConnect(), G_InitGame(), G_ParseInfos(), Info_RemoveKey(), Info_SetValueForKey(), SetTeamQuick(), SP_terrain(), UI_HasSetSaberOnly(), UI_ParseInfos(), UI_TrueJediEnabled(), UpdateForceStatus(), and WP_InitForcePowers().

#define MAX_INFO_VALUE   1024
 

Definition at line 386 of file q_shared.h.

Referenced by ClientBegin(), Info_RemoveKey(), UI_DrawConnectScreen(), UI_ForceConfigHandle(), UI_ForceSide_HandleKey(), UI_JediNonJedi_HandleKey(), UI_ReadLegalForce(), and UI_SetSiegeTeams().

#define MAX_LIGHT_STYLES   64
 

Definition at line 424 of file q_shared.h.

Referenced by CG_ClearLightStyles(), and CG_RunLightStyles().

#define MAX_LOCATIONS   64
 

Definition at line 1989 of file q_shared.h.

Referenced by CG_DrawNewTeamInfo().

#define MAX_MAP_AREA_BYTES   32
 

Definition at line 416 of file q_shared.h.

#define MAX_MODELS   512
 

Definition at line 2020 of file q_shared.h.

Referenced by G_ModelIndex().

#define MAX_NAME_LENGTH   32
 

Definition at line 400 of file q_shared.h.

Referenced by SanitizeString2().

#define MAX_NEIGHBOR_FORCEJUMP_LINK_DISTANCE   400
 

Definition at line 997 of file q_shared.h.

#define MAX_NEIGHBOR_LINK_DISTANCE   128
 

Definition at line 996 of file q_shared.h.

Referenced by CalculatePaths(), and CanForceJumpTo().

#define MAX_NEIGHBOR_SIZE   32
 

Definition at line 994 of file q_shared.h.

Referenced by CalculatePaths(), and LoadPathData().

#define MAX_OSPATH   256
 

Definition at line 397 of file q_shared.h.

#define MAX_OTHER_SERVERS   128
 

Definition at line 3059 of file q_shared.h.

#define MAX_PERSISTANT   16
 

Definition at line 2135 of file q_shared.h.

Referenced by ClientSpawn().

#define MAX_PINGREQUESTS   32
 

Definition at line 3061 of file q_shared.h.

#define MAX_POWERUPS   16
 

Definition at line 2136 of file q_shared.h.

Referenced by BG_PlayerStateToEntityState(), BG_PlayerStateToEntityStateExtraPolate(), ClientEndFrame(), and G_RunFrame().

#define MAX_PS_EVENTS   2
 

Definition at line 2139 of file q_shared.h.

Referenced by BG_AddPredictableEventToPlayerstate(), BG_PlayerStateToEntityState(), BG_PlayerStateToEntityStateExtraPolate(), BotCanHear(), CG_CheckChangedPredictableEvents(), CG_CheckPlayerstateEvents(), CG_PredictPlayerState(), ClientEvents(), and SendPendingPredictableEvents().

#define MAX_QINT   0x7fffffff
 

Definition at line 369 of file q_shared.h.

#define MAX_QPATH   64
 

Definition at line 393 of file q_shared.h.

Referenced by BG_ParseAnimationEvtFile(), BG_SiegeLoadClasses(), BG_SiegeLoadTeams(), BG_ValidateSkinForTeam(), BuildShaderStateConfig(), CG_CacheG2AnimInfo(), CG_CustomSound(), CG_G2AnimEntModelLoad(), CG_G2EvIndexForModel(), CG_G2SkelForModel(), CG_HandleAppendedSkin(), CG_InitSiegeMode(), CG_LoadCISounds(), CG_LoadClientInfo(), CG_LoadingClient(), CG_NewClientInfo(), CG_ParseSurfsFile(), CG_PrecacheSiegeObjectiveAssetsForTeam(), CG_RegisterWeapon(), CG_SetLightstyle(), CG_ShaderStateChanged(), CG_StartMusic(), CG_TestModel_f(), ClientUserinfoChanged(), COM_DefaultExtension(), G_CheckForDismemberment(), G_Damage(), G_Dismember(), G_LocationBasedDamageModifier(), Item_Model_Paint(), ItemParse_asset_model(), ItemParse_asset_model_go(), NAV_StoreWaypoint(), NPC_ParseParms(), NPC_Precache(), NPC_PrecacheAnimationCFG(), ParseAnimationEvtBlock(), Q3_PlaySound(), SetupGameGhoul2Model(), SP_misc_bsp(), SP_target_speaker(), SP_terrain(), UI_FeederSelection(), UI_GetSaberForMenu(), UI_LoadBestScores(), UI_SaberAttachToChar(), UI_SaberDrawBlade(), UI_SaberDrawBlades(), UI_SetSiegeTeams(), UI_SiegeSetCvarsForClass(), and UI_UpdateCharacterSkin().

#define MAX_RADAR_ENTITIES   MAX_GENTITIES
 

Definition at line 1987 of file q_shared.h.

#define MAX_SABERS   2
 

Definition at line 841 of file q_shared.h.

Referenced by BG_PrecacheSabersForSiegeTeam(), CG_CopyG2WeaponInstance(), CG_G2AnimEntModelLoad(), CG_NewClientInfo(), CG_Player(), CG_ResetPlayerEntity(), ClientDisconnect(), ClientSpawn(), ClientThink_real(), G_FreeEntity(), G_SaberModelSetup(), G_ShutdownGame(), WP_SaberLength(), WP_SaberPositionUpdate(), and WP_SabersIntersect().

#define MAX_SAY_TEXT   150
 

Definition at line 402 of file q_shared.h.

Referenced by G_Say().

#define MAX_SERVERSTATUSREQUESTS   16
 

Definition at line 3062 of file q_shared.h.

#define MAX_SOUNDS   256
 

Definition at line 2021 of file q_shared.h.

Referenced by G_SoundIndex().

#define MAX_STATS   16
 

Definition at line 2134 of file q_shared.h.

#define MAX_STRING_CHARS   1024
 

Definition at line 380 of file q_shared.h.

Referenced by BuildShaderStateConfig(), CG_Argv(), CG_ParseSiegeExtendedDataEntry(), ClientCommand(), ClientNumberFromString(), ClientUserinfoChanged(), Cmd_CallVote_f(), Cmd_DebugSetBodyAnim_f(), Cmd_DebugSetSaberMove_f(), ConcatArgs(), G_ClientNumberFromName(), G_ClientNumberFromStrippedName(), G_InitWorldSession(), G_NameInTriggerClassList(), G_ReadSessionData(), G_SiegeClientExData(), Item_ListBox_Paint(), Item_Multi_Paint(), Item_Paint(), UI_Argv(), UI_Cvar_VariableString(), UI_FeederSelection(), and UpdateTournamentInfo().

#define MAX_STRING_TOKENS   1024
 

Definition at line 381 of file q_shared.h.

Referenced by Cmd_CallTeamVote_f(), and Cmd_CallVote_f().

#define MAX_SUB_BSP   32
 

Definition at line 2025 of file q_shared.h.

Referenced by G_BSPIndex().

#define MAX_TEAMNAME   32
 

Definition at line 12 of file q_shared.h.

#define MAX_TERRAINS   1
 

Definition at line 1988 of file q_shared.h.

#define MAX_TOKEN_CHARS   1024
 

Definition at line 382 of file q_shared.h.

Referenced by CG_ParseSpawnVars(), CG_RegisterCvars(), ClientCommand(), Cmd_DuelTeam_f(), Cmd_Follow_f(), Cmd_ForceChanged_f(), Cmd_GameCommand_f(), Cmd_Give_f(), Cmd_SetViewpos_f(), Cmd_Team_f(), Cmd_TeamTask_f(), COM_ParseExt(), ConsoleCommand(), G_ParseInfos(), G_ParseSpawnVars(), G_ProcessIPBans(), Svcmd_AddBot_f(), Svcmd_AddIP_f(), Svcmd_BotList_f(), Svcmd_ForceTeam_f(), Svcmd_RemoveIP_f(), and UI_ParseInfos().

#define MAX_TOKENLENGTH   1024
 

Definition at line 1650 of file q_shared.h.

#define MAX_WEAPONS   19
 

Definition at line 2137 of file q_shared.h.

Referenced by CG_CopyG2WeaponInstance(), CG_EntityEvent(), CG_InitG2Weapons(), CG_ShutDownG2Weapons(), and Cmd_Give_f().

#define MAX_WORLD_COORD   ( 64 * 1024 )
 

Definition at line 18 of file q_shared.h.

#define MAX_WPARRAY_SIZE   4096
 

Definition at line 993 of file q_shared.h.

Referenced by CreateNewWP(), CreateNewWP_FromObject(), CreateNewWP_InsertUnder(), CreateNewWP_InTrail(), and RepairPaths().

#define maximum x,
 )     ((x)>(y)?(x):(y))
 

Definition at line 1355 of file q_shared.h.

#define MIN_QINT   (-MAX_QINT-1)
 

Definition at line 370 of file q_shared.h.

#define MIN_WORLD_COORD   ( -64 * 1024 )
 

Definition at line 19 of file q_shared.h.

Referenced by NPC_Spawn_Do().

#define minimum x,
 )     ((x)<(y)?(x):(y))
 

Definition at line 1354 of file q_shared.h.

#define MOVE_RUN   120
 

Definition at line 2485 of file q_shared.h.

#define nanmask   (255<<23)
 

Definition at line 1182 of file q_shared.h.

#define NULL   ((void *)0)
 

Definition at line 366 of file q_shared.h.

Referenced by _UI_DrawRect(), _UI_Init(), _UI_MouseEvent(), _UI_Refresh(), AcceptBotCommand(), AddPowerDuelPlayers(), AddSightEvent(), AddSoundEvent(), AddTournamentPlayer(), AI_CheckEnemyCollision(), AI_ClosestGroupEntityNumToPoint(), AI_DeleteGroupMember(), AI_DistributeAttack(), AI_GetGroup(), AI_GetGroupSize(), AI_GetGroupSize2(), AI_GetNextEmptyGroup(), AI_RefreshGroup(), AI_SetNewGroupCommander(), AI_SortGroupByPathCostToEnemy(), AI_ValidateGroupMember(), AnimateRiders(), asteroid_pick_random_asteroid(), ATST_Attack(), ATST_Hunt(), auto_turret_die(), B_Alloc(), B_CleanupAlloc(), B_Free(), BeamOut(), BeginAutoPathRoutine(), BG_FindItem(), BG_FindItemForAmmo(), BG_FindItemForHoldable(), BG_FindItemForPowerup(), BG_FindItemForWeapon(), BG_IK_MoveArm(), BG_ModelCache(), BG_MySaber(), BG_ParseAnimationEvtFile(), BG_PrecacheSabersForSiegeTeam(), BG_SiegeCheckClassLegality(), BG_SiegeFindClassByName(), BG_SiegeFindTeamForTheme(), BG_SiegeFindThemeForTeam(), BG_SiegeLoadClasses(), BG_SiegeSetTeamTheme(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), Blocked_Door(), Blocked_Mover(), BlowDetpacks(), Board(), Boba_FireDecide(), Boba_FireFlameThrower(), Boba_StartFlameThrower(), Boba_StopKnockdown(), BotCheckDetPacks(), BotDamageNotification(), BotDoChat(), BotDoTeamplayAI(), BotFallbackNavigation(), BotGetFlagBack(), BotGuardFlagCarrier(), BotInputToUserCommand(), BotLovedOneDied(), BotOrder(), BotReplyGreetings(), BotStraightTPOrderCheck(), BotSurfaceNear(), BotTrace_Duck(), BotTrace_Jump(), CalculateDemolitionist(), CalculateEfficiency(), CalculateLogistics(), CalculateSection31Award(), CalculateSharpshooter(), CalculateSiegeGoals(), CalculateTactician(), CalculateTeamCarrier(), CalculateTeamDefender(), CalculateTeamInterceptor(), CalculateTeamMVP(), CalculateTeamMVPByRank(), CalculateTeamRedShirt(), CalculateTeamWarrior(), CanSee(), CanShoot(), CG_AddFragment(), CG_AddParticles(), CG_AddParticleToScene(), CG_AddSaberBlade(), CG_BracketEntity(), CG_CacheG2AnimInfo(), CG_CalcEWebMuzzlePoint(), CG_CalcMuzzlePoint(), CG_CalcVehMuzzle(), CG_CheckPassengerTurretView(), CG_CheckPlayerG2Weapons(), CG_CheckTargetVehicle(), CG_Chunks(), CG_CleanJetpackGhoul2(), CG_ClearParticles(), CG_CopyG2WeaponInstance(), CG_DamageFeedback(), CG_DestroyAllGhoul2(), CG_Disintegration(), CG_DrawActiveFrame(), CG_DrawFlagModel(), CG_DrawForcePower(), CG_DrawForceSelect(), CG_DrawHUD(), CG_DrawInformation(), CG_DrawInvenSelect(), CG_DrawMedal(), CG_DrawNewTeamInfo(), CG_DrawRadar(), CG_DrawRect(), CG_DrawStringExt(), CG_DrawTeamBackground(), CG_DrawVehicleWeaponsLinked(), CG_DrawWeaponSelect(), CG_EntityEvent(), CG_FadeColor(), CG_FillRect(), CG_FillRect2(), CG_FireWeapon(), CG_G2AnimEntModelLoad(), CG_G2MarkEvent(), CG_G2PlayerHeadAnims(), CG_G2SaberEffects(), CG_G2SkelForModel(), CG_G2WeaponInstance(), CG_GetCTFMessageEvent(), CG_GetMenuBuffer(), CG_InitSiegeMode(), CG_KeyEvent(), CG_MiscModelExplosion(), CG_MouseEvent(), CG_NewClientInfo(), CG_PainEvent(), CG_ParticleBloodCloud(), CG_ParticleDust(), CG_PlayDoorSound(), CG_Player(), CG_PlayerAnimEventDo(), CG_PlayerAnimEvents(), CG_PmoveClientPointerUpdate(), CG_PredictPlayerState(), CG_PrintCTFMessage(), CG_ProcessSnapshots(), CG_RagDoll(), CG_ReattachLimb(), CG_RegisterCvars(), CG_RegisterItemVisuals(), CG_ResetPlayerEntity(), CG_S_AddLoopingSound(), CG_SaberClashFlare(), CG_SaberCompWork(), CG_SetInitialSnapshot(), CG_SetScoreSelection(), CG_SiegeObjectiveCompleted(), CG_SiegeRoundOver(), CG_SpawnCGameOnlyEnts(), CG_ToggleBinoculars(), check_recharge(), CheckAlmostCapture(), CheckForFriendInLOF(), CheckForFunc(), ClearNPCGlobals(), ClientBegin(), ClientCommand(), ClientConnect(), ClientEvents(), ClientForString(), ClientSpawn(), ClientThink_real(), ClientUserinfoChanged(), Cmd_DebugSetBodyAnim_f(), Cmd_DuelTeam_f(), Cmd_EngageDuel_f(), Cmd_NPC_f(), COM_ParseExt(), ConnectTrail(), CorpsePhysics(), CreateMissile(), CreateShield(), CTFFlagMovement(), CTFTakesPriority(), DeathFX(), DEMP2_AltRadiusDamage(), Display_CaptureItem(), Display_HandleKey(), Display_MouseMove(), Do_Strike(), DoFall(), DoGripAction(), DoImpact(), DoorBlockingSection(), DownedSaberThink(), Drop_Item(), Eject(), EjectAll(), emplaced_gun_realuse(), emplaced_gun_update(), emplaced_gun_use(), EWeb_Create(), EWeb_SetBoneAngles(), EWebFire(), EWebPositionUser(), EWebThink(), ExitLevel(), ExplodeDeath(), faller_think(), FighterSuspended(), FindGenericEnemyIndex(), FindIntermissionPoint(), finish_spawning_turretG2(), FireVehicleWeapon(), FirstFreeRefTag(), FirstFreeTagOwner(), FlagObjects(), ForceGrip(), ForceShootDrain(), ForceShootLightning(), ForceTeamForceReplenish(), ForceTeamHeal(), ForceTelepathy(), ForceTelepathyCheckDirectNPCTarget(), ForceThrow(), func_wait_return_solid(), funcBBrushDieGo(), funcBBrushPain(), fx_runner_link(), G2Tur_SetBoneAngles(), G_ActivateBehavior(), G_AddPushVecToUcmd(), G_AlertTeam(), G_Alloc(), G_AttachToVehicle(), G_AttackDelay(), G_CheckAlertEvents(), G_ClearEnemy(), G_ClearLineOfSight(), G_ClearLOS(), G_ClientForShooter(), G_Damage(), G_DoesMapSupportGametype(), G_DriveATST(), G_EjectDroidUnit(), G_EntIsUnlockedDoor(), G_EstimateCamPos(), G_Find(), G_FindDoorTrigger(), G_FindTeams(), G_GetArenaInfoByMap(), G_GetBoltPosition(), G_GetBotInfoByName(), G_GetBotInfoByNumber(), G_GetDismemberBolt(), G_GetDuelWinner(), G_GetHitLocFromSurfName(), G_GetHitQuad(), G_GetJediMaster(), G_HeldByMonster(), G_IsRidingVehicle(), G_ItemUsable(), G_KillBox(), G_KnockOffVehicle(), G_MissileImpact(), G_MoverPush(), G_MoverTeam(), G_MoverTouchPushTriggers(), G_ParseAnimFileSet(), G_PickTarget(), G_PortalifyEntities(), G_PrecacheSoundsets(), G_RadiusDamage(), G_RecursiveConnection(), G_RefreshNextMap(), G_RMGPathing(), G_RunExPhys(), G_RunFrame(), G_RunMissile(), G_RunObject(), G_RunStuckMissile(), G_Say(), G_SetActiveState(), G_SetEnemy(), G_SetMovedir(), G_ShutdownGame(), G_SiegeGetCompletionStatus(), G_SiegeSetObjectiveComplete(), G_Spawn(), G_SpawnGEntityFromSpawnVars(), G_SPSaberDamageTraceLerped(), G_StartObjectMoving(), G_TestEntityPosition(), G_TryPushingEntity(), G_UcmdMoveForDir(), G_UpdateClientAnims(), G_UseTargets2(), G_VehicleAttachDroidUnit(), GetClosestSpawn(), GetIdealDestination(), GetIDForString(), GetLoveLevel(), GetNearestBadThing(), GetNextSpawnInIndex(), GetObjectThatTargets(), GetPairedValue(), GetStringForID(), GradientBar_Paint(), Grenadier_EvaluateShot(), HolocronThink(), Howler_TryDamage(), hurt_touch(), hurt_use(), hyperspace_touch(), ImperialProbe_FireBlaster(), ImperialProbe_MaintainHeight(), ImperialProbe_Strafe(), ImperialProbe_Wait(), InFront(), Initialize(), InitSiegeMode(), Interrogator_MaintainHeight(), Interrogator_Strafe(), Item_Bind_HandleKey(), Item_HandleKey(), Item_Image_Paint(), Item_InitControls(), Item_ListBox_HandleKey(), Item_ListBox_Paint(), Item_Model_Paint(), Item_Multi_CountSettings(), Item_OwnerDraw_Paint(), Item_Paint(), Item_SetFocus(), Item_SetScreenCoords(), Item_SetTextExtents(), Item_Slider_ThumbPosition(), Item_Text_AutoWrapped_Paint(), Item_Text_Paint(), Item_Text_Wrapped_Paint(), Item_TextField_HandleKey(), Item_UpdatePosition(), ItemParse_asset_model_go(), ItemParse_flag(), ItemUse_Seeker(), ItemUse_Sentry(), ItemUse_UseDisp(), Jedi_CheckFlipEvasions(), Jedi_FindEnemyInCone(), Jedi_SaberBlockGo(), JMSaberThink(), JMTakesPriority(), KeywordHash_Find(), laserTrapThink(), LimbThink(), LoadPath_ThisLevel(), maglock_link(), MakeDeadSaber(), Mark1_AttackDecision(), Mark1_FireBlaster(), Mark1_FireRocket(), Mark1_Hunt(), Mark1Dead_FireBlaster(), Mark1Dead_FireRocket(), Mark2_FireBlaster(), Mark2_Hunt(), MeleeCombatHandling(), Menu_ClearFocus(), Menu_FadeItemByName(), Menu_FindItemByName(), Menu_GetFocused(), Menu_GetFocusedItem(), Menu_GetMatchingItemByNumber(), Menu_HandleKey(), Menu_HandleMouseMove(), Menu_HitTest(), Menu_ItemDisable(), Menu_OrbitItemByName(), Menu_Paint(), Menu_PostParse(), Menu_SetFeederSelection(), Menu_SetItemBackground(), Menu_SetItemText(), Menu_SetNextCursorItem(), Menu_SetPrevCursorItem(), Menu_ShowGroup(), Menu_ShowItemByName(), Menu_Transition3ItemByName(), Menu_TransitionItemByName(), Menu_UpdatePosition(), Menus_ActivateByName(), Menus_CloseByName(), Menus_FindByName(), MineMonster_TryDamage(), misc_weapon_shooter_aim(), NAV_Bypass(), NAV_ClearPathToPoint(), NAV_MoveBlocker(), NAV_MoveToGoal(), NAV_Steer(), NAV_TestForBlocked(), NAV_TrueCollision(), NAVNEW_Bypass(), NAVNEW_MoveToGoal(), NAVNEW_SidestepBlocker(), NPC_Begin(), NPC_Blocked(), NPC_BSAdvanceFight(), NPC_BSFlee(), NPC_BSGM_Attack(), NPC_BSGrenadier_Attack(), NPC_BSJedi_Default(), NPC_BSMove(), NPC_BSNoClip(), NPC_BSRancor_Default(), NPC_BSRemove(), NPC_BSSeeker_Default(), NPC_BSSniper_Attack(), NPC_BSST_Attack(), NPC_BSST_Investigate(), NPC_BSStandGuard(), NPC_BSWampa_Default(), NPC_CheckCanAttack(), NPC_CheckCharmed(), NPC_CheckEnemy(), NPC_CheckEnemyStealth(), NPC_CheckGetNewWeapon(), NPC_CheckLookTarget(), NPC_ClearBlocked(), NPC_ClearGoal(), NPC_ClearShot(), NPC_Droid_Pain(), NPC_EvaluateShot(), NPC_ExecuteBState(), NPC_FaceEnemy(), NPC_GetMoveInformation(), NPC_Jedi_Pain(), NPC_LoadParms(), NPC_Mark1_Pain(), NPC_Mark1_Part_Explode(), NPC_Mark2_Pain(), NPC_Mark2_Part_Explode(), NPC_MoveDirClear(), NPC_Pain(), NPC_ParseParms(), NPC_PickAlly(), NPC_PickEnemy(), NPC_PickEnemyExt(), NPC_Probe_Pain(), NPC_SearchForWeapons(), NPC_Seeker_Pain(), NPC_SetAnim(), NPC_SetBlocked(), NPC_SetBoneAngles(), NPC_SetMoveGoal(), NPC_ShotEntity(), NPC_ShowDebugInfo(), NPC_Spawn_Do(), NPC_SpawnType(), NPC_StartFlee(), NPC_ValidEnemy(), NPC_VehiclePrecache(), OrgVisible(), OrgVisibleBox(), P_WorldEffects(), pas_adjust_enemy(), pas_think(), Pickup_Powerup(), pitch_roll_for_slope(), PlaceShield(), player_die(), PM_AdjustAngleForWallJump(), PM_AdjustAngleForWallRun(), PM_AdjustAngleForWallRunUp(), PM_AnglesForSlope(), PM_BGEntForNum(), PM_CheckStabDown(), PM_FootSlopeTrace(), PM_HoverTrace(), PM_ItemUsable(), PM_pitch_roll_for_slope(), PM_RocketLock(), PM_SaberAttackForMovement(), PM_SaberFlipOverAttackMove(), PM_SaberJumpAttackMove(), PM_SaberLungeAttackMove(), PM_VehicleImpact(), PM_WeaponLightsaber(), PmoveSingle(), proxMineThink(), Q3_GetFloat(), Q3_Kill(), Q3_Lerp2Pos(), Q3_Remove(), Q3_SetICARUSFreeze(), Q_stricmpn(), Rancor_Attack(), Rancor_Bite(), Rancor_Crush(), Rancor_DropVictim(), Rancor_Smash(), Rancor_Swing(), Reached_Train(), ref_link(), Remote_MaintainHeight(), Remote_Strafe(), SaberColorToString(), SaberCombatHandling(), saberFirstThrown(), SavePathData(), Script_Scale(), Script_SetColor(), Script_SetItemColor(), Script_SetItemColorCvar(), Script_SetItemRect(), scriptrunner_run(), Seeker_FindEnemy(), Seeker_MaintainHeight(), Seeker_Ranged(), Seeker_Strafe(), SeekerDroneUpdate(), SelectDuelSpawnPoint(), SelectInitialSpawnPoint(), SelectNearestDeathmatchSpawnPoint(), SelectRandomDeathmatchSpawnPoint(), SelectRandomFurthestSpawnPoint(), SelectRandomTeamSpawnPoint(), SelectSpectatorSpawnPoint(), Sentry_AttackDecision(), Sentry_Fire(), Sentry_MaintainHeight(), Sentry_Strafe(), SetupGameGhoul2Model(), shipboundary_think(), shipboundary_touch(), ShotThroughGlass(), Siege_TargetClosestObjective(), SiegeItemThink(), SiegeItemUse(), SiegeTakesPriority(), SkipWhitespace(), SP_func_breakable(), SP_gametype_item(), SP_info_jedimaster_start(), SP_misc_holocron(), SP_misc_weapon_shooter(), SP_NPC_Cultist(), SP_NPC_Desann(), SP_NPC_Jedi(), SP_NPC_Kyle(), SP_NPC_Luke(), SP_NPC_Reborn(), SP_NPC_ShadowTrooper(), SP_NPC_Tavion(), SP_trigger_multiple(), SP_trigger_once(), SP_waypoint_navgoal(), SP_waypoint_navgoal_1(), SP_waypoint_navgoal_2(), SP_waypoint_navgoal_4(), SP_waypoint_navgoal_8(), SpecialItemThink(), SpectatorThink(), ST_Commander(), ST_TrackEnemy(), ST_TransferMoveGoal(), StandardBotAI(), StandardSetBodyAnim(), StrafeTracing(), String_Alloc(), String_Parse(), TAG_Add(), TAG_Find(), TAG_FindOwner(), TAG_GetOrigin2(), target_kill_use(), target_laser_start(), target_laser_think(), target_random_use(), target_relay_use(), Team_CaptureFlagSound(), Team_FragBonuses(), Team_GetLocation(), Team_ResetFlag(), Team_ReturnFlagSound(), Team_TakeFlagSound(), TeleportPlayer(), Think_SetupTrainTargets(), ThrowSaberToAttacker(), TIMER_Clear(), TIMER_Clear2(), TIMER_GetExisting(), TIMER_GetNew(), Touch_DoorTrigger(), Touch_Item(), Touch_Multi(), trigger_push_touch(), TryHeal(), TryUse(), turret_base_spawn_top(), turret_base_think(), turret_head_think(), TurretClientRun(), turretG2_base_think(), turretG2_die(), turretG2_head_think(), UI_Alloc(), UI_CleanupGhoul2(), UI_ClearG2Pointer(), UI_DrawForceStars(), UI_DrawRect(), UI_FeederSelection(), UI_FillRect(), UI_ForceSide_HandleKey(), UI_GetBotInfoByName(), UI_GetBotInfoByNumber(), UI_GetVideoSetup(), UI_InsertG2Pointer(), UI_JediNonJedi_HandleKey(), UI_Load(), UI_LoadForceConfig_List(), UI_LoadNonIngame(), UI_ReadLegalForce(), UI_SaberDrawBlade(), UI_SaberGetHiltInfo(), UI_SaveForceTemplate(), UI_SetSiegeTeams(), UI_SkinColor_HandleKey(), UI_UpdateCvarsForClass(), UI_UpdateForcePowers(), UnLockDoors(), Update(), UpdateClientRenderBolts(), UpdateClientRenderinfo(), UpdateForceUsed(), UpdateGoal(), UpdateTournamentInfo(), Use_Target_Give(), Use_Target_Screenshake(), UseSiegeTarget(), ValidateBoard(), ValidBloodPool(), ValidEnemy(), VEH_LoadVehicle(), VEH_LoadVehWeapon(), VEH_TryEject(), VEH_TurretObeyPassengerControl(), VEH_TurretThink(), vmMain(), Wampa_Attack(), Wampa_Slash(), waypoint_testDirection(), Window_Paint(), WP_CalcVehMuzzle(), WP_DisruptorAltFire(), WP_DropDetPack(), WP_FireVehicleWeapon(), WP_ForcePowersUpdate(), WP_GetVelocityForForceJump(), WP_PlaceLaserTrap(), WP_SaberApplyDamage(), WP_SaberBlock(), WP_SaberBlockNonRandom(), WP_SaberDoHit(), WP_SaberInitBladeData(), WP_SaberPositionUpdate(), WP_SaberRadiusDamage(), WP_SaberStartMissileBlockCheck(), WP_VehCheckTraceFromCamPos(), WPConstantRoutine(), WPOrgVisible(), and WPTouchRoutine().

#define NUMVERTEXNORMALS   162
 

Definition at line 1024 of file q_shared.h.

Referenced by ByteToDir(), and DirToByte().

#define PITCH   0
 

Definition at line 374 of file q_shared.h.

Referenced by AngleVectors(), BG_AttachToRancor(), BG_G2PlayerAngles(), BG_IK_MoveArm(), BG_TouchJumpPad(), BG_UpdateLookAngles(), Boba_FireDecide(), BotAimOffsetGoalAngles(), BotChangeViewAngles(), BotFallbackNavigation(), BotInputToUserCommand(), CG_AddPlayerWeapon(), CG_AddSaberBlade(), CG_CalcMuzzlePoint(), CG_CalcVehMuzzle(), CG_CreateDistortionTrailPart(), CG_DamageFeedback(), CG_DrawAutoMap(), CG_DrawPlayerSphere(), CG_FireWeapon(), CG_G2TraceCollide(), CG_Player(), CG_RagDoll(), CG_ResetPlayerEntity(), CG_TestModel_f(), CG_VehicleAttachDroidUnit(), ClientThink_real(), CreateLaserTrap(), CreepToPosition(), drop_charge(), Drop_Item(), Eject(), EWebUpdateBoneAngles(), FireWeapon(), G_Damage(), G_EstimateCamPos(), G_ItemUsable(), G_RunExPhys(), G_RunMissile(), InFOV(), InFOV3(), ItemUse_Sentry(), Jedi_CheckFlipEvasions(), LaunchItem(), LookAtKiller(), NPC_Begin(), NPC_BSAdvanceFight(), NPC_BSCinematic(), NPC_BSDefault(), NPC_BSFace(), NPC_BSFollowLeader(), NPC_BSGM_Attack(), NPC_BSGrenadier_Patrol(), NPC_BSJump(), NPC_BSPointShoot(), NPC_BSRunAndShoot(), NPC_BSSniper_Patrol(), NPC_BSStandAndShoot(), NPC_CheckCanAttack(), NPC_FacePosition(), NPC_GetVFOVPercentage(), NPC_KeepCurrentFacing(), NPC_MoveDirClear(), NPC_MoveToGoal(), NPC_Spawn_Do(), NPC_UpdateAngles(), NPC_UpdateFiringAngles(), NPC_UpdateShootAngles(), P_DamageFeedback(), pas_think(), pitch_roll_for_slope(), PM_AnglesForSlope(), PM_CanBackstab(), PM_HoverTrace(), PM_ItemUsable(), PM_pitch_roll_for_slope(), PM_SaberFlipOverAttackMove(), PM_SaberJumpAttackMove(), PM_SaberLungeAttackMove(), PM_SomeoneInFront(), PM_UpdateViewAngles(), PM_VehForcedTurning(), PM_VehicleImpact(), PM_VehicleViewAngles(), PmoveSingle(), Rancor_DropVictim(), Rancor_Swing(), SaberBounceSound(), SeekerDroneUpdate(), Sniper_FaceEnemy(), StandardBotAI(), TurretClientRun(), Update(), vectoangles(), vectoyaw(), VEH_TurretAim(), vmMain(), Wampa_Slash(), WP_CalcVehMuzzle(), and WP_GetVehicleCamPos().

#define PLANE_NON_AXIAL   3
 

Definition at line 1847 of file q_shared.h.

#define PLANE_X   0
 

Definition at line 1844 of file q_shared.h.

#define PLANE_Y   1
 

Definition at line 1845 of file q_shared.h.

#define PLANE_Z   2
 

Definition at line 1846 of file q_shared.h.

#define PlaneTypeForNormal  )     (x[0] == 1.0 ? PLANE_X : (x[1] == 1.0 ? PLANE_Y : (x[2] == 1.0 ? PLANE_Z : PLANE_NON_AXIAL) ) )
 

Definition at line 1856 of file q_shared.h.

#define PROP_BIG_HEIGHT   24
 

Definition at line 481 of file q_shared.h.

#define PROP_BIG_SIZE_SCALE   1
 

Definition at line 474 of file q_shared.h.

#define PROP_GAP_BIG_WIDTH   3
 

Definition at line 482 of file q_shared.h.

#define PROP_GAP_TINY_WIDTH   1
 

Definition at line 478 of file q_shared.h.

#define PROP_GAP_WIDTH   2
 

Definition at line 467 of file q_shared.h.

#define PROP_GIANT_SIZE_SCALE   2
 

Definition at line 475 of file q_shared.h.

#define PROP_HEIGHT   16
 

Definition at line 470 of file q_shared.h.

#define PROP_SMALL_SIZE_SCALE   1
 

Definition at line 473 of file q_shared.h.

#define PROP_SPACE_BIG_WIDTH   6
 

Definition at line 483 of file q_shared.h.

#define PROP_SPACE_TINY_WIDTH   3
 

Definition at line 479 of file q_shared.h.

#define PROP_SPACE_WIDTH   4
 

Definition at line 469 of file q_shared.h.

#define PROP_TINY_HEIGHT   10
 

Definition at line 477 of file q_shared.h.

#define PROP_TINY_SIZE_SCALE   1
 

Definition at line 472 of file q_shared.h.

#define PS_PMOVEFRAMECOUNTBITS   6
 

Definition at line 2141 of file q_shared.h.

Referenced by Pmove().

#define PULSE_DIVISOR   75
 

Definition at line 486 of file q_shared.h.

Referenced by Item_Bind_Paint(), Item_Multi_Paint(), Item_OwnerDraw_Paint(), Item_Slider_Paint(), Item_TextColor(), Item_TextField_Paint(), and Item_YesNo_Paint().

#define Q3_SCRIPT_DIR   "scripts"
 

Definition at line 10 of file q_shared.h.

Referenced by G_ActivateBehavior(), and scriptrunner_run().

#define Q_COLOR_ESCAPE   '^'
 

Definition at line 1145 of file q_shared.h.

Referenced by Debug_NPCPrintf(), G_Say(), and Team_GetLocationMsg().

#define Q_IsColorString  )     ( p && *(p) == Q_COLOR_ESCAPE && *((p)+1) && *((p)+1) != Q_COLOR_ESCAPE && *((p)+1) <= '7' && *((p)+1) >= '0' )
 

Definition at line 1147 of file q_shared.h.

Referenced by CG_DrawStringExt(), CG_DrawStrlen(), Q_CleanStr(), Q_PrintStrlen(), and RemoveColorEscapeSequences().

#define QDECL
 

Definition at line 139 of file q_shared.h.

Referenced by BotAI_Print(), CG_Error(), CG_Printf(), Com_Error(), Com_Printf(), Com_sprintf(), G_ClearClientLog(), G_Error(), G_LogPrintf(), G_LogWeaponDamage(), G_LogWeaponDeath(), G_LogWeaponFire(), G_LogWeaponFrag(), G_LogWeaponItem(), G_LogWeaponKill(), G_LogWeaponPickup(), G_LogWeaponPowerup(), G_Printf(), SortRanks(), and va().

#define RAD2DEG  )     ( ( (a) * 180.0f ) / M_PI )
 

Definition at line 1175 of file q_shared.h.

Referenced by NormalToLatLong(), and Use_BinaryMover_Go().

 
#define random  )     ((rand () & 0x7fff) / ((float)0x7fff))
 

Definition at line 1591 of file q_shared.h.

Referenced by BlowDetpacks(), CanShoot(), CG_AddPlayerWeapon(), CG_BloodPool(), CG_BubbleTrail(), CG_Chunks(), CG_CreateSaberMarks(), CG_Disintegration(), CG_DoGlass(), CG_DoSaber(), CG_DrawPlayerShield(), CG_LaunchGib(), CG_MiscModelExplosion(), CG_ParticleDust(), CG_Player(), CG_SurfaceExplosion(), CG_ThrowChunk(), finish_spawning_turretG2(), funcBBrushDieGo(), fx_runner_think(), G_AddRandomBot(), Howler_Attack(), ImperialProbe_Strafe(), Interrogator_Strafe(), MineMonster_Attack(), NPC_Blocked(), NPC_BSAdvanceFight(), NPC_BSSeeker_Default(), NPC_BSStandGuard(), NPC_CheckCanAttack(), NPC_CheckDefend(), NPC_ChoosePainAnimation(), NPC_Droid_Pain(), NPC_Probe_Pain(), NPC_SetBlocked(), NPC_StandTrackAndShoot(), pas_adjust_enemy(), Rancor_Attack(), Remote_Strafe(), Seeker_FindEnemy(), Seeker_FollowOwner(), Seeker_Strafe(), SelectDuelSpawnPoint(), SelectRandomFurthestSpawnPoint(), Sentry_Strafe(), turret_base_spawn_top(), turret_base_think(), turretG2_base_think(), TurretG2Pain(), TurretPain(), and Wampa_Attack().

#define RESERVED_CONFIGSTRINGS   2
 

Definition at line 2044 of file q_shared.h.

#define ROLL   2
 

Definition at line 376 of file q_shared.h.

Referenced by AngleVectors(), AnimateRiders(), BG_AttachToRancor(), BG_G2PlayerAngles(), BG_IK_MoveArm(), BG_UpdateLookAngles(), Board(), BotFallbackNavigation(), BotInputToUserCommand(), CG_AddParticles(), CG_AddParticleToScene(), CG_AddPlayerWeapon(), CG_AddSaberBlade(), CG_CalcVehMuzzle(), CG_DamageFeedback(), CG_DrawPlayerSphere(), CG_EntityEvent(), CG_G2TraceCollide(), CG_Player(), CG_RagDoll(), CG_TestModel_f(), CG_VehicleAttachDroidUnit(), ClientThink_real(), CreateLaserTrap(), drop_charge(), Eject(), finish_spawning_turretG2(), G_Damage(), G_ItemUsable(), G_RunExPhys(), G_RunMissile(), ItemUse_Sentry(), Jedi_CheckFlipEvasions(), LaunchItem(), LookAtKiller(), NPC_MoveDirClear(), NPC_Spawn_Do(), NPC_UpdateAngles(), NPC_UpdateFiringAngles(), pitch_roll_for_slope(), PM_AnglesForSlope(), PM_HoverTrace(), PM_ItemUsable(), PM_pitch_roll_for_slope(), PM_SaberFlipOverAttackMove(), PM_SaberJumpAttackMove(), PM_SaberLungeAttackMove(), PM_VehicleImpact(), PM_VehicleViewAngles(), PmoveSingle(), ProcessOrientCommands(), Rancor_DropVictim(), SeekerDroneUpdate(), StopFollowing(), TurretClientRun(), vectoangles(), and WP_CalcVehMuzzle().

#define S_COLOR_BLACK   "^0"
 

Definition at line 1160 of file q_shared.h.

#define S_COLOR_BLUE   "^4"
 

Definition at line 1164 of file q_shared.h.

Referenced by G_DebugPrint(), and TeamColorString().

#define S_COLOR_CYAN   "^5"
 

Definition at line 1165 of file q_shared.h.

#define S_COLOR_GREEN   "^2"
 

Definition at line 1162 of file q_shared.h.

Referenced by Cmd_ForceChanged_f(), Debug_Printf(), G_DebugPrint(), NPC_BSST_Attack(), and NPC_Kill_f().

#define S_COLOR_MAGENTA   "^6"
 

Definition at line 1166 of file q_shared.h.

#define S_COLOR_RED   "^1"
 

Definition at line 1161 of file q_shared.h.

Referenced by BG_ParseAnimationFile(), BotUtilizePersonality(), CG_GetMenuBuffer(), CG_LoadMenus(), ConnectTrail(), CP_FindCombatPointWaypoints(), CreateNewWP(), CreateNewWP_FromObject(), Debug_Printf(), G_DebugPrint(), G_GetBotInfoByNumber(), GetMenuBuffer(), LoadPathData(), NAV_CheckCalcPaths(), NAV_WaypointsTooFar(), NPC_BSST_Attack(), NPC_Kill_f(), NPC_ParseParms(), NPC_Precache(), NPC_PrecacheAnimationCFG(), NPC_Spawn_Do(), NPC_SpawnType(), NPC_Think(), ParseAnimationEvtBlock(), PC_SourceError(), ReadChatGroups(), ref_link(), SavePathData(), SP_fx_runner(), SP_point_combat(), SP_waypoint(), SP_waypoint_navgoal(), SP_waypoint_navgoal_1(), SP_waypoint_navgoal_2(), SP_waypoint_navgoal_4(), SP_waypoint_navgoal_8(), SP_waypoint_small(), TAG_Add(), TeamColorString(), TransferWPData(), UI_GetBotInfoByNumber(), UI_LoadMenus(), UI_SaberParseParm(), VEH_LoadVehicle(), VEH_LoadVehWeapon(), VEH_VehicleIndexForName(), VEH_VehWeaponIndexForName(), WP_SaberParseParm(), and WP_SaberParseParms().

#define S_COLOR_WHITE   "^7"
 

Definition at line 1167 of file q_shared.h.

Referenced by AcceptBotCommand(), BroadcastTeamChange(), CheckExitRules(), ClientBegin(), ClientConnect(), ClientUserinfoChanged(), Debug_Printf(), NPC_SpawnType(), Team_GetLocationMsg(), and TeamColorString().

#define S_COLOR_YELLOW   "^3"
 

Definition at line 1163 of file q_shared.h.

Referenced by AcceptBotCommand(), Asset_Parse(), BotWaypointRender(), CG_S_AddLoopingSound(), ConnectTrail(), CreateNewWP(), CreateNewWP_InsertUnder(), CreateNewWP_InTrail(), Debug_Printf(), G_CheckTeamItems(), G_DebugPrint(), ItemParse_flag(), ItemParse_style(), ItemParse_textalign(), LoadPathData(), Menu_ItemsMatchingGroup(), MenuParse_descAlignment(), MenuParse_style(), NPC_BSST_Attack(), NPC_ParseParms(), ParseAnimationEvtBlock(), PC_SourceWarning(), RemoveWP_InTrail(), Script_Transition2(), Script_Transition3(), SP_trigger_multiple(), TeamColorString(), TeleportToWP(), UI_LoadArenas(), UI_LoadMenus(), WP_SaberParseParms(), and WPFlagsModify().

#define SAY_ALL   0
 

Definition at line 3064 of file q_shared.h.

Referenced by ClientCommand(), and G_Say().

#define SAY_TEAM   1
 

Definition at line 3065 of file q_shared.h.

Referenced by ClientCommand(), and G_Say().

#define SAY_TELL   2
 

Definition at line 3066 of file q_shared.h.

Referenced by Cmd_GameCommand_f(), and G_Say().

#define SCREEN_HEIGHT   480
 

Definition at line 1030 of file q_shared.h.

Referenced by _UI_MouseEvent(), Board(), CG_DrawHUD(), CG_DrawIconBackground(), CG_DrawInformation(), CG_DrawSiegeMessageNonMenu(), CG_EntityEvent(), DrawAmmo(), Menu_Paint(), and UI_DrawCenteredPic().

#define SCREEN_WIDTH   640
 

Definition at line 1029 of file q_shared.h.

Referenced by _UI_MouseEvent(), CG_DrawHUD(), CG_DrawInformation(), CG_DrawOldScoreboard(), DrawAmmo(), Item_Bind_Paint(), Item_Paint(), Menu_Paint(), and UI_DrawCenteredPic().

#define SFL2_ALWAYS_BLOCK   (1<<6)
 

Definition at line 721 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL2_ALWAYS_BLOCK2   (1<<15)
 

Definition at line 731 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL2_NO_BLADE   (1<<2)
 

Definition at line 717 of file q_shared.h.

Referenced by CG_AddSaberBlade(), and WP_SaberParseParms().

#define SFL2_NO_BLADE2   (1<<11)
 

Definition at line 727 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL2_NO_CLASH_FLARE   (1<<3)
 

Definition at line 718 of file q_shared.h.

Referenced by CG_EntityEvent(), WP_SaberDoHit(), and WP_SaberParseParms().

#define SFL2_NO_CLASH_FLARE2   (1<<12)
 

Definition at line 728 of file q_shared.h.

Referenced by WP_SaberDoHit(), and WP_SaberParseParms().

#define SFL2_NO_DISMEMBERMENT   (1<<4)
 

Definition at line 719 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL2_NO_DISMEMBERMENT2   (1<<13)
 

Definition at line 729 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL2_NO_DLIGHT   (1<<1)
 

Definition at line 716 of file q_shared.h.

Referenced by CG_AddSaberBlade(), and WP_SaberParseParms().

#define SFL2_NO_DLIGHT2   (1<<10)
 

Definition at line 726 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL2_NO_IDLE_EFFECT   (1<<5)
 

Definition at line 720 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL2_NO_IDLE_EFFECT2   (1<<14)
 

Definition at line 730 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL2_NO_MANUAL_DEACTIVATE   (1<<7)
 

Definition at line 722 of file q_shared.h.

Referenced by Cmd_SaberAttackCycle_f(), WP_SaberCanTurnOffSomeBlades(), and WP_SaberParseParms().

#define SFL2_NO_MANUAL_DEACTIVATE2   (1<<16)
 

Definition at line 732 of file q_shared.h.

Referenced by Cmd_SaberAttackCycle_f(), WP_SaberCanTurnOffSomeBlades(), and WP_SaberParseParms().

#define SFL2_NO_WALL_MARKS   (1<<0)
 

Definition at line 715 of file q_shared.h.

Referenced by CG_AddSaberBlade(), and WP_SaberParseParms().

#define SFL2_NO_WALL_MARKS2   (1<<9)
 

Definition at line 725 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL2_TRANSITION_DAMAGE   (1<<8)
 

Definition at line 723 of file q_shared.h.

Referenced by WP_SaberBladeDoTransitionDamage(), and WP_SaberParseParms().

#define SFL2_TRANSITION_DAMAGE2   (1<<17)
 

Definition at line 733 of file q_shared.h.

Referenced by WP_SaberBladeDoTransitionDamage(), and WP_SaberParseParms().

#define SFL_BOLT_TO_WRIST   (1<<9)
 

Definition at line 697 of file q_shared.h.

Referenced by G_SaberModelSetup(), and WP_SaberParseParms().

#define SFL_BOUNCE_ON_WALLS   (1<<8)
 

Definition at line 696 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL_NO_BACK_ATTACK   (1<<11)
 

Definition at line 702 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL_NO_CARTWHEELS   (1<<18)
 

Definition at line 709 of file q_shared.h.

Referenced by Jedi_CheckFlipEvasions(), PM_SaberAttackForMovement(), and WP_SaberParseParms().

#define SFL_NO_FLIPS   (1<<17)
 

Definition at line 708 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL_NO_KICKS   (1<<19)
 

Definition at line 710 of file q_shared.h.

Referenced by PM_CheckAltKickAttack(), and WP_SaberParseParms().

#define SFL_NO_MIRROR_ATTACKS   (1<<20)
 

Definition at line 711 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL_NO_PULL_ATTACK   (1<<10)
 

Definition at line 701 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL_NO_ROLL_STAB   (1<<21)
 

Definition at line 712 of file q_shared.h.

Referenced by PM_CanDoRollStab(), and WP_SaberParseParms().

#define SFL_NO_ROLLS   (1<<16)
 

Definition at line 707 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL_NO_STABDOWN   (1<<12)
 

Definition at line 703 of file q_shared.h.

Referenced by PM_CheckStabDown(), and WP_SaberParseParms().

#define SFL_NO_WALL_FLIPS   (1<<14)
 

Definition at line 705 of file q_shared.h.

Referenced by Jedi_CheckFlipEvasions(), and WP_SaberParseParms().

#define SFL_NO_WALL_GRAB   (1<<15)
 

Definition at line 706 of file q_shared.h.

Referenced by WP_SaberParseParms().

#define SFL_NO_WALL_RUNS   (1<<13)
 

Definition at line 704 of file q_shared.h.

Referenced by Jedi_CheckFlipEvasions(), and WP_SaberParseParms().

#define SFL_NOT_ACTIVE_BLOCKING   (1<<3)
 

Definition at line 690 of file q_shared.h.

Referenced by WP_SaberParseParms(), and WP_SaberStartMissileBlockCheck().

#define SFL_NOT_DISARMABLE   (1<<2)
 

Definition at line 689 of file q_shared.h.

Referenced by saberKnockOutOfHand(), and WP_SaberParseParms().

#define SFL_NOT_LOCKABLE   (1<<0)
 

Definition at line 687 of file q_shared.h.

Referenced by WP_SaberParseParms(), and WP_SabersCheckLock().

#define SFL_NOT_THROWABLE   (1<<1)
 

Definition at line 688 of file q_shared.h.

Referenced by WP_SaberParseParms(), and WP_SaberPositionUpdate().

#define SFL_ON_IN_WATER   (1<<7)
 

Definition at line 695 of file q_shared.h.

#define SFL_RETURN_DAMAGE   (1<<6)
 

Definition at line 693 of file q_shared.h.

Referenced by CG_Player(), saberBackToOwner(), and WP_SaberParseParms().

#define SFL_SINGLE_BLADE_THROWABLE   (1<<5)
 

Definition at line 692 of file q_shared.h.

Referenced by WP_SaberParseParms(), and WP_SaberPositionUpdate().

#define SFL_TWO_HANDED   (1<<4)
 

Definition at line 691 of file q_shared.h.

Referenced by ClientSpawn(), NPC_ParseParms(), WP_ForcePowerUsable(), WP_SaberParseParms(), and WP_SetSaber().

#define SHORT2ANGLE  )     ((x)*(360.0/65536))
 

Definition at line 1973 of file q_shared.h.

Referenced by BotAI(), BotUpdateInput(), NPC_FacePosition(), and PM_UpdateViewAngles().

#define SMALLCHAR_HEIGHT   16
 

Definition at line 1036 of file q_shared.h.

Referenced by CG_DrawSmallString(), and CG_DrawSmallStringColor().

#define SMALLCHAR_WIDTH   8
 

Definition at line 1035 of file q_shared.h.

Referenced by CG_DrawSmallString(), and CG_DrawSmallStringColor().

#define SNAPFLAG_NOT_ACTIVE   2
 

Definition at line 1976 of file q_shared.h.

Referenced by CG_DrawActiveFrame(), and CG_ProcessSnapshots().

#define SNAPFLAG_RATE_DELAYED   1
 

Definition at line 1975 of file q_shared.h.

#define SNAPFLAG_SERVERCOUNT   4
 

Definition at line 1977 of file q_shared.h.

#define SOLID_BMODEL   0xffffff
 

Definition at line 2642 of file q_shared.h.

Referenced by CG_PointContents(), CG_SetEntitySoundPosition(), Jedi_CheckFlipEvasions(), NAV_TestBestNode(), PM_VehicleImpact(), and TryHeal().

#define SQRTFAST  )     ( (x) * Q_rsqrt( x ) )
 

Definition at line 1237 of file q_shared.h.

#define Square  )     ((x)*(x))
 

Definition at line 3005 of file q_shared.h.

#define TAGDEF blah   )     TAG_ ## blah
 

Definition at line 3103 of file q_shared.h.

#define TINYCHAR_HEIGHT   (SMALLCHAR_HEIGHT/2)
 

Definition at line 1033 of file q_shared.h.

#define TINYCHAR_WIDTH   (SMALLCHAR_WIDTH)
 

Definition at line 1032 of file q_shared.h.

#define TRACK_CHANNEL_MAX   (NUM_TRACK_CHANNELS-50)
 

Definition at line 2066 of file q_shared.h.

#define TT_LITERAL   2
 

Definition at line 1655 of file q_shared.h.

#define TT_NAME   4
 

Definition at line 1657 of file q_shared.h.

#define TT_NUMBER   3
 

Definition at line 1656 of file q_shared.h.

Referenced by PC_Float_Parse(), and PC_Int_Parse().

#define TT_PUNCTUATION   5
 

Definition at line 1658 of file q_shared.h.

#define TT_STRING   1
 

Definition at line 1654 of file q_shared.h.

#define UI_BIGFONT   0x00000020
 

Definition at line 493 of file q_shared.h.

#define UI_BLINK   0x00001000
 

Definition at line 496 of file q_shared.h.

Referenced by UI_DrawProportionalString(), and UI_DrawScaledProportionalString().

#define UI_CENTER   0x00000001
 

Definition at line 489 of file q_shared.h.

Referenced by CG_DrawForceSelect(), CG_DrawInformation(), CG_DrawInvenSelect(), CG_DrawOldScoreboard(), CG_DrawWeaponSelect(), UI_DrawProportionalString(), and UI_DrawScaledProportionalString().

#define UI_DROPSHADOW   0x00000800
 

Definition at line 495 of file q_shared.h.

Referenced by CG_DrawHUD(), CG_DrawInformation(), CG_DrawOldScoreboard(), UI_DrawProportionalString(), and UI_DrawScaledProportionalString().

#define UI_FORMATMASK   0x00000007
 

Definition at line 491 of file q_shared.h.

#define UI_INVERSE   0x00002000
 

Definition at line 497 of file q_shared.h.

#define UI_LEFT   0x00000000
 

Definition at line 488 of file q_shared.h.

Referenced by UI_DrawProportionalString(), and UI_DrawScaledProportionalString().

#define UI_PULSE   0x00004000
 

Definition at line 498 of file q_shared.h.

Referenced by UI_DrawProportionalString(), and UI_DrawScaledProportionalString().

#define UI_RIGHT   0x00000002
 

Definition at line 490 of file q_shared.h.

Referenced by CG_DrawHUD(), UI_DrawProportionalString(), and UI_DrawScaledProportionalString().

#define UI_SMALLFONT   0x00000010
 

Definition at line 492 of file q_shared.h.

Referenced by CG_DrawForceSelect(), CG_DrawHUD(), CG_DrawInvenSelect(), CG_DrawWeaponSelect(), and UI_DrawProportionalString().

#define VALID  )     ( a != NULL )
 

Definition at line 23 of file q_shared.h.

#define VALIDATE  )     ( assert( a ) )
 

Definition at line 24 of file q_shared.h.

#define VALIDATEB  )     if ( a == NULL ) { assert(0); return qfalse; }
 

Definition at line 27 of file q_shared.h.

#define VALIDATEP  )     if ( a == NULL ) { assert(0); return NULL; }
 

Definition at line 28 of file q_shared.h.

#define VALIDATEV  )     if ( a == NULL ) { assert(0); return; }
 

Definition at line 26 of file q_shared.h.

#define VALIDSTRING  )     ( ( a != 0 ) && ( a[0] != 0 ) )
 

Definition at line 30 of file q_shared.h.

Referenced by G_ActivateBehavior(), NAV_CheckAhead(), and NAV_TestBestNode().

#define Vector4Copy a,
 )     ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2],(b)[3]=(a)[3])
 

Definition at line 1401 of file q_shared.h.

#define VectorAdd a,
b,
 )     ((c)[0]=(a)[0]+(b)[0],(c)[1]=(a)[1]+(b)[1],(c)[2]=(a)[2]+(b)[2])
 

Definition at line 1360 of file q_shared.h.

Referenced by AimAtTarget(), BG_G2PlayerAngles(), CalcTeamDoorCenter(), CanDamage(), CG_AddLightningBeam(), CG_AddSaberBlade(), CG_AdjustPositionForMover(), CG_BubbleTrail(), CG_CalcEntityLerpPositions(), CG_CalcVehicleMuzzlePoint(), CG_CreateSaberMarks(), CG_DrawSkyBoxPortal(), CG_MakeExplosion(), CG_MiscModelExplosion(), CG_PlayDoorLoopSound(), CG_Player(), CG_PredictPlayerState(), CG_RagDoll(), CG_S_UpdateLoopingSounds(), CG_SE_UpdateShake(), CG_SetEntitySoundPosition(), ClientThink_real(), ForceThrow(), funcBBrushDieGo(), funcBBrushPain(), FX_DisruptorAltMiss(), G_AddPushVecToUcmd(), G_ApplyKnockback(), G_BounceItem(), G_BounceMissile(), G_BoxInBounds(), G_Damage(), G_Dismember(), G_GetHitLocation(), G_KillBox(), G_MiscModelExplosion(), G_MoverPush(), G_MoverTouchPushTriggers(), G_RunExPhys(), G_Throw(), G_TouchTriggers(), G_TryPushingEntity(), GlassUse(), NAV_ClearPathToPoint(), NAV_HitNavGoal(), NAV_StackedCanyon(), NAV_TrueCollision(), NAVNEW_DanceWithBlocker(), NPC_AimWiggle(), NPC_BSJump(), NPC_ShowDebugInfo(), NPC_SpotWouldTelefrag(), PM_SlideMove(), PM_VehicleImpact(), SaberUpdateSelf(), SeekerDroneUpdate(), SpotWouldTelefrag(), SpotWouldTelefrag2(), UI_SaberDrawBlade(), VEH_TryEject(), W_TraceSetStart(), and WP_SaberPositionUpdate().

#define VectorAdvance a,
s,
b,
 )     (((c)[0]=(a)[0] + s * ((b)[0] - (a)[0])),((c)[1]=(a)[1] + s * ((b)[1] - (a)[1])),((c)[2]=(a)[2] + s * ((b)[2] - (a)[2])))
 

Definition at line 1370 of file q_shared.h.

#define VectorAverage a,
b,
 )     (((c)[0]=((a)[0]+(b)[0])*0.5f),((c)[1]=((a)[1]+(b)[1])*0.5f),((c)[2]=((a)[2]+(b)[2])*0.5f))
 

Definition at line 1371 of file q_shared.h.

#define VectorClear  )     ((a)[0]=(a)[1]=(a)[2]=0)
 

Definition at line 1397 of file q_shared.h.

Referenced by anglerCallback(), auto_turret_die(), BG_EvaluateTrajectoryDelta(), BG_G2PlayerAngles(), BG_IK_MoveArm(), Boba_FireDecide(), CG_AddPlayerWeapon(), CG_BloodPool(), CG_CalcEntityLerpPositions(), CG_CalcEWebMuzzlePoint(), CG_CalcMuzzlePoint(), CG_CalcVehicleMuzzlePoint(), CG_ColorForHealth(), CG_DrawFlagModel(), CG_EntityEvent(), CG_G2Animated(), CG_GetColorForHealth(), CG_Particle_Bleed(), CG_Particle_OilParticle(), CG_Particle_OilSlick(), CG_ParticleBloodCloud(), CG_ParticleDust(), CG_ParticleExplosion(), CG_Player(), CG_PredictPlayerState(), CG_RagDoll(), CG_ROFF_NotetrackCallback(), CG_ScorePlum(), charge_stick(), ClientCommand(), ClientEndFrame(), ClientThink_real(), Cmd_SetViewpos_f(), EWebUpdateBoneAngles(), FX_DrawPortableShield(), G_AddPushVecToUcmd(), G_Damage(), G_Dismember(), G_HeldByMonster(), G_RMGPathing(), G_RunExPhys(), G_RunMissile(), G_RunObject(), G_SetMovedir(), G_SetOrigin(), G_StopObjectMoving(), Initialize(), laserTrapStick(), NAVNEW_SidestepBlocker(), NormalizeColor(), NPC_Begin(), NPC_BSGM_Attack(), NPC_BSJump(), NPC_BSNoClip(), NPC_BSST_Attack(), NPC_CheckPossibleEnemy(), NPC_MoveDirClear(), NPC_Spawn_Do(), NPC_Think(), PM_AdjustAngleForWallRun(), PM_LegsSlopeBackTransition(), PM_SlideMove(), PM_VehForcedTurning(), saberCheckKnockdown_DuelLoss(), SiegeBroadcast_OBJECTIVECOMPLETE(), SiegeBroadcast_ROUNDOVER(), SiegeRoundComplete(), SP_func_plat(), SP_func_train(), SP_misc_portal_camera(), SP_misc_portal_surface(), SP_terrain(), TAG_GetOrigin(), thrownSaberTouch(), turretG2_die(), UpdateClientRenderinfo(), VectorNormalize2(), VEH_TurretAim(), WP_DisruptorAltFire(), and WP_ResistForcePush().

#define VectorCopy a,
 )     ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2])
 

Definition at line 1363 of file q_shared.h.

Referenced by AcceptBotCommand(), AddSightEvent(), AddSoundEvent(), AI_GetGroup(), AI_GroupUpdateEnemyLastSeen(), AI_ValidateNoEnemyGroupMember(), AimAtTarget(), anglerCallback(), auto_turret_die(), AxisCopy(), BG_EvaluateTrajectory(), BG_EvaluateTrajectoryDelta(), BG_FighterUpdate(), BG_G2PlayerAngles(), BG_IK_MoveArm(), BG_PlayerStateToEntityState(), BG_PlayerStateToEntityStateExtraPolate(), BG_TouchJumpPad(), BG_UpdateLookAngles(), BG_VehicleAdjustBBoxForOrientation(), BG_VehTraceFromCamPos(), BlowDetpacks(), Board(), Boba_FireDecide(), body_die(), BotAI(), BotAimLeading(), BotFallbackNavigation(), BotGetFlagBack(), BotGuardFlagCarrier(), BotTrace_Duck(), BotTrace_Jump(), BotTrace_Strafe(), ByteToDir(), CalcEntitySpot(), CalcMuzzlePoint(), CalcMuzzlePointOrigin(), CanDamage(), CanForceJumpTo(), CanGetToVectorTravel(), CG_AddFragment(), CG_AddGhoul2Mark(), CG_AddLightningBeam(), CG_AddParticles(), CG_AddParticleToScene(), CG_AddPlayerWeapon(), CG_AddRandomLightning(), CG_AddSaberBlade(), CG_AddScorePlum(), CG_AddViewWeapon(), CG_AdjustPositionForMover(), CG_Beam(), CG_Bleed(), CG_BloodPool(), CG_BubbleTrail(), CG_CalcEntityLerpPositions(), CG_CalcMuzzlePoint(), CG_CalcVehicleMuzzlePoint(), CG_CalcVehMuzzle(), CG_Chunks(), CG_CreateDebris(), CG_CreateDistortionTrailPart(), CG_CreateModelFromSpawnEnt(), CG_CreateSaberMarks(), CG_CreateSkyOriFromSpawnEnt(), CG_Cube(), CG_Disintegration(), CG_DoSaber(), CG_Draw3DModel(), CG_DrawActive(), CG_DrawActiveFrame(), CG_DrawAutoMap(), CG_DrawMiscEnts(), CG_DrawPlayerShield(), CG_DrawPlayerSphere(), CG_DrawRadar(), CG_EntityEvent(), CG_G2MarkEvent(), CG_G2SaberEffects(), CG_G2ServerBoneAngles(), CG_G2TraceCollide(), CG_GetTagWorldPosition(), CG_GetVehicleCamPos(), CG_GlassShatter_Old(), CG_ImpactMark(), CG_LaunchGib(), CG_MakeExplosion(), CG_MiscEnt(), CG_Particle_Bleed(), CG_Particle_OilParticle(), CG_Particle_OilSlick(), CG_ParticleBloodCloud(), CG_ParticleBubble(), CG_ParticleBulletDebris(), CG_ParticleDust(), CG_ParticleExplosion(), CG_ParticleImpactSmokePuff(), CG_ParticleMisc(), CG_ParticleSmoke(), CG_ParticleSnow(), CG_ParticleSnowFlurry(), CG_ParticleSparks(), CG_PlayDoorLoopSound(), CG_Player(), CG_PositionEntityOnTag(), CG_PositionRotatedEntityOnTag(), CG_PredictPlayerState(), CG_RagDoll(), CG_ReflectVelocity(), CG_ResetPlayerEntity(), CG_ROFF_NotetrackCallback(), CG_S_AddLoopingSound(), CG_S_UpdateLoopingSounds(), CG_SaberCompWork(), CG_ScorePlum(), CG_SetGhoul2Info(), CG_SetGhoul2InfoRef(), CG_SmokePuff(), CG_TestLine(), CG_ThrowChunk(), CG_TransitionPermanent(), CG_UpdateSoundTrackers(), charge_stick(), CheckForFriendInLOF(), CheckForFunc(), ClientCommand(), ClientSpawn(), ClientThink_real(), Cmd_Give_f(), CombatBotAI(), ConnectTrail(), CreateLaserTrap(), CreateMissile(), CreateNewWP(), CreateNewWP_FromObject(), CreateNewWP_InsertUnder(), CreateNewWP_InTrail(), CreateShield(), CTFFlagMovement(), CTFTakesPriority(), DeathFX(), DebugLine(), DEMP2_AltRadiusDamage(), DetPackBlow(), Do_Strike(), DoGripAction(), DoImpact(), drop_charge(), Drop_Item(), Eject(), emplaced_gun_update(), EWeb_Create(), EWeb_SetBoneAngles(), EWebPositionUser(), ExplodeDeath(), FindIntermissionPoint(), FireVehicleWeapon(), FireWeapon(), ForceGrip(), ForceJump(), ForceShootDrain(), ForceShootLightning(), ForceTelepathy(), ForceTelepathyCheckDirectNPCTarget(), ForceThrow(), func_wait_return_solid(), funcBBrushDieGo(), FX_AddOrientedLine(), FX_DEMP2_AltDetonate(), FX_DisruptorAltMiss(), FX_DrawPortableShield(), fx_runner_think(), G2Tur_SetBoneAngles(), G_ApplyKnockback(), G_BounceItem(), G_BounceMissile(), G_BounceObject(), G_CheckClientIdle(), G_CheckInSolid(), G_Chunks(), G_ClearLineOfSight(), G_Damage(), G_DebugBoxLines(), G_DeflectMissile(), G_Dismember(), G_DriveATST(), G_EstimateCamPos(), G_ExpandPointToBBox(), G_FindClosestPointOnLineSegment(), G_GetBoltPosition(), G_GetDismemberBolt(), G_GetDismemberLoc(), G_GetHitLocation(), G_GetHitQuad(), G_ItemUsable(), G_KnockOffVehicle(), G_MiscModelExplosion(), G_MissileBounceEffect(), G_MissileImpact(), G_MoverPush(), G_PickDeathAnim(), G_PlayEffect(), G_PlayEffectID(), G_PreDefSound(), G_RadiusDamage(), G_ReflectMissile(), G_RMGPathing(), G_ROFF_NotetrackCallback(), G_RotatePoint(), G_RunExPhys(), G_RunItem(), G_RunMissile(), G_RunObject(), G_ScreenShake(), G_SetAngles(), G_SetMovedir(), G_SetOrigin(), G_SoundTempEntity(), G_SpawnGEntityFromSpawnVars(), G_SPSaberDamageTraceLerped(), G_StartObjectMoving(), G_StopObjectMoving(), G_TempEntity(), G_TestEntityPosition(), G_TestLine(), G_Throw(), G_TryPushingEntity(), G_UcmdMoveForDir(), G_VehicleAttachDroidUnit(), G_VehicleSpawn(), GetIdealDestination(), GlassDie(), GlassDie_Old(), GlassUse(), HolocronThink(), hyperspace_touch(), InFOV(), InFOV2(), InFront(), InitMover(), InitMoverTrData(), Item_Model_Paint(), ItemUse_Sentry(), ItemUse_UseDisp(), Jedi_CheckFlipEvasions(), Jedi_SaberBlockGo(), JMSaberThink(), laserTrapExplode(), laserTrapStick(), LaunchItem(), locateCamera(), MakeDeadSaber(), MeleeCombatHandling(), misc_weapon_shooter_aim(), MoveClientToIntermission(), MoveTowardIdealAngles(), NAV_AvoidCollision(), NAV_Bypass(), NAV_ClearPathToPoint(), NAV_FindClosestWaypointForPoint(), NAV_Steer(), NAV_TrueCollision(), NAVNEW_AvoidCollision(), NAVNEW_DanceWithBlocker(), NAVNEW_MoveToGoal(), NAVNEW_PushBlocker(), NAVNEW_SidestepBlocker(), NAVNEW_TestNodeConnectionBlocked(), NPC_Begin(), NPC_BSAdvanceFight(), NPC_BSEmplaced(), NPC_BSGM_Attack(), NPC_BSGM_Default(), NPC_BSGrenadier_Attack(), NPC_BSGrenadier_Patrol(), NPC_BSJump(), NPC_BSSniper_Attack(), NPC_BSSniper_Patrol(), NPC_BSST_Attack(), NPC_CheckCanAttack(), NPC_CheckInSolid(), NPC_CheckInvestigate(), NPC_CheckPossibleEnemy(), NPC_Droid_Pain(), NPC_FindCombatPoint(), NPC_GetEntsNearBolt(), NPC_GetMoveDirection(), NPC_GetMoveDirectionAltRoute(), NPC_GetMoveInformation(), NPC_GM_Pain(), NPC_Howler_Pain(), NPC_Jedi_Pain(), NPC_MineMonster_Pain(), NPC_MoveDirClear(), NPC_Pain(), NPC_ParseParms(), NPC_Probe_Pain(), NPC_Rancor_Pain(), NPC_SetBoneAngles(), NPC_SetMoveGoal(), NPC_SetPickUpGoal(), NPC_ShotEntity(), NPC_Spawn_Do(), NPC_SpawnType(), NPC_StartFlee(), NPC_Think(), NPC_Wampa_Pain(), OrgVisibleCurve(), pas_adjust_enemy(), pas_fire(), pas_think(), pitch_roll_for_slope(), PlaceShield(), player_die(), PM_AdjustAngleForWallRunUp(), PM_CanBackstab(), PM_ClipVelocity(), PM_FootSlopeTrace(), PM_GroundDistance(), PM_HoverTrace(), PM_ItemUsable(), PM_pitch_roll_for_slope(), PM_RocketLock(), PM_SaberFlipOverAttackMove(), PM_SaberJumpAttackMove(), PM_SaberLungeAttackMove(), PM_SetPMViewAngle(), PM_SlideMove(), PM_SomeoneInFront(), PM_StepSlideMove(), PM_VehicleImpact(), PM_WalkableGroundDistance(), PmoveSingle(), Q3_GetVector(), Q3_Lerp2Angles(), Q3_Lerp2Origin(), Q3_Lerp2Pos(), Q3_Play(), Q3_Set(), Rancor_Swing(), Reached_Train(), Remote_Fire(), rocketThink(), RotateAroundDirection(), saberBackToOwner(), SaberBounceSound(), SaberCombatHandling(), saberFirstThrown(), saberKnockOutOfHand(), SeekerDroneUpdate(), SelectCTFSpawnPoint(), SelectDuelSpawnPoint(), SelectInitialSpawnPoint(), SelectRandomFurthestSpawnPoint(), SelectSiegeSpawnPoint(), SelectSpectatorSpawnPoint(), SetClientViewAngle(), SetMoverState(), ShortestLineSegBewteen2LineSegs(), ShotThroughGlass(), Siege_TargetClosestObjective(), SiegeItemThink(), SiegeItemTouch(), Sniper_FaceEnemy(), Sniper_UpdateEnemyPos(), SP_emplaced_gun(), SP_func_bobbing(), SP_func_button(), SP_func_door(), SP_func_glass(), SP_func_pendulum(), SP_func_plat(), SP_func_rotating(), SP_func_static(), SP_func_usable(), SP_func_wall(), SP_info_jedimaster_start(), SP_misc_ammo_floor_unit(), SP_misc_bsp(), SP_misc_G2model(), SP_misc_holocron(), SP_misc_model(), SP_misc_model_ammo_power_converter(), SP_misc_model_health_power_converter(), SP_misc_model_shield_power_converter(), SP_misc_portal_surface(), SP_misc_shield_floor_unit(), SP_misc_siege_item(), SP_misc_weapon_shooter(), SP_point_combat(), SP_target_interest(), SP_target_push(), SP_target_speaker(), SpawnPlatTrigger(), SpecialItemThink(), SpectatorThink(), StandardBotAI(), StrafeTracing(), TAG_Add(), TAG_GetAngles(), TAG_GetOrigin(), TAG_GetOrigin2(), target_laser_think(), Team_GetLocation(), TeleportPlayer(), TeleportToWP(), Think_SpawnNewDoorTrigger(), thrownSaberTouch(), ThrowSaberToAttacker(), Touch_Multi(), touchLaserTrap(), TransferWPData(), trigger_push_touch(), TryUse(), turret_base_spawn_top(), turret_base_think(), turret_head_think(), TurretClientRun(), turretG2_base_think(), turretG2_die(), UI_DoSaber(), UpdateClientRenderBolts(), UpdateClientRenderinfo(), Use_Shooter(), Use_target_push(), VEH_TryEject(), VEH_TurretAnglesToEnemy(), VEH_TurretObeyPassengerControl(), VEH_TurretThink(), vmMain(), W_TraceSetStart(), WaitingForNow(), Wampa_Slash(), WP_CalcVehMuzzle(), WP_DisruptorAltFire(), WP_FireMelee(), WP_FireStunBaton(), WP_FireThermalDetonator(), WP_FireVehicleWeapon(), WP_GetVelocityForForceJump(), WP_LobFire(), WP_PlaceLaserTrap(), WP_SaberBlockNonRandom(), WP_SaberDamageAdd(), WP_SaberDoClash(), WP_SaberDoHit(), WP_SaberPositionUpdate(), WP_SabersIntersect(), WP_SaberStartMissileBlockCheck(), and WP_VehCheckTraceFromCamPos().

#define VectorCopy4 a,
 )     ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2],(b)[3]=(a)[3])
 

Definition at line 1364 of file q_shared.h.

Referenced by CG_DottedLine(), CG_DrawRadar(), CG_DrawVehicleDamage(), and CG_DrawVehicleDamageHUD().

#define VectorDec  )     ((v)[0] -= 1.0f,(v)[1] -= 1.0f,(v)[2] -=1.0f)
 

Definition at line 1367 of file q_shared.h.

#define VectorInc  )     ((v)[0] += 1.0f,(v)[1] += 1.0f,(v)[2] +=1.0f)
 

Definition at line 1366 of file q_shared.h.

#define VectorInverseScaleVector a,
b,
 )     ((c)[0]=(a)[0]/(b)[0],(c)[1]=(a)[1]/(b)[1],(c)[2]=(a)[2]/(b)[2])
 

Definition at line 1368 of file q_shared.h.

#define VectorMA v,
s,
b,
 )     ((o)[0]=(v)[0]+(b)[0]*(s),(o)[1]=(v)[1]+(b)[1]*(s),(o)[2]=(v)[2]+(b)[2]*(s))
 

Definition at line 1365 of file q_shared.h.

Referenced by anglerCallback(), BG_EvaluateTrajectory(), BG_VehicleAdjustBBoxForOrientation(), BG_VehTraceFromCamPos(), Boba_FireDecide(), Boba_FireFlameThrower(), CalcEntitySpot(), CalcMuzzlePoint(), CalcMuzzlePointOrigin(), CG_AddLightningBeam(), CG_AddParticleToScene(), CG_AddSaberBlade(), CG_AddScorePlum(), CG_AddViewWeapon(), CG_BracketEntity(), CG_BubbleTrail(), CG_CalcEntityLerpPositions(), CG_CalcEWebMuzzlePoint(), CG_CalcMuzzlePoint(), CG_CheckPassengerTurretView(), CG_CheckThirdPersonAlpha(), CG_Disintegration(), CG_DoSaber(), CG_DrawActive(), CG_DrawAutoMap(), CG_DrawPlayerSphere(), CG_DrawRadar(), CG_EntityEvent(), CG_GetTagWorldPosition(), CG_ParticleBloodCloud(), CG_ParticleDust(), CG_Player(), CG_PositionEntityOnTag(), CG_PositionRotatedEntityOnTag(), CG_RagDoll(), CG_ReflectVelocity(), CG_SaberCompWork(), CG_SurfaceExplosion(), CG_TestModel_f(), DeathFX(), DebugLine(), EWeb_Create(), EWebFire(), EWebPositionUser(), FireVehicleWeapon(), ForceShootDrain(), ForceShootLightning(), ForceThrow(), funcBBrushDieGo(), funcBBrushPain(), FX_DisruptorAltMiss(), G_AddPushVecToUcmd(), G_BounceItem(), G_BounceMissile(), G_BounceObject(), G_BounceProjectile(), G_Dismember(), G_EstimateCamPos(), G_FindClosestPointOnLineSegment(), G_ItemUsable(), G_MoverTouchPushTriggers(), G_PointDistFromLineSegment(), G_RunExPhys(), G_SPSaberDamageTraceLerped(), Howler_TryDamage(), hyperspace_touch(), ImperialProbe_Hunt(), ImperialProbe_Strafe(), Interrogator_Hunt(), Interrogator_Strafe(), Jedi_CheckFlipEvasions(), laserTrapThink(), maglock_link(), MakeNormalVectors(), MineMonster_TryDamage(), NAV_AvoidCollision(), NAV_Bypass(), NAV_StackedCanyon(), NAV_Steer(), NAV_TrueCollision(), NAVNEW_AvoidCollision(), NAVNEW_DanceWithBlocker(), NAVNEW_PushBlocker(), NAVNEW_SidestepBlocker(), NPC_BSAdvanceFight(), NPC_BSGM_Attack(), NPC_BSJump(), NPC_BSSniper_Attack(), NPC_CheckCanAttack(), NPC_Droid_Pain(), NPC_MoveDirClear(), NPC_Probe_Pain(), NPC_ShotEntity(), NPC_SpawnType(), PlaceShield(), PM_AdjustAngleForWallJump(), PM_AdjustAngleForWallRun(), PM_AdjustAngleForWallRunUp(), PM_CheckStabDown(), PM_ItemUsable(), PM_RocketLock(), PM_SaberAttackForMovement(), PM_SlideMove(), PM_WeaponLightsaber(), PmoveSingle(), RaySphereIntersections(), Remote_Hunt(), Remote_Strafe(), rocketThink(), Seeker_Fire(), Seeker_FollowOwner(), Seeker_Hunt(), Seeker_Strafe(), Sentry_Hunt(), Sentry_Strafe(), ShortestLineSegBewteen2LineSegs(), Sniper_FaceEnemy(), SP_func_button(), SP_func_door(), target_laser_think(), TryUse(), turret_head_think(), turretG2_die(), turretG2_head_think(), UI_DoSaber(), UI_SaberDrawBlade(), Use_Shooter(), ValidBloodPool(), VEH_StartStrafeRam(), VEH_TurretAnglesToEnemy(), waypoint_testDirection(), WP_DisruptorAltFire(), WP_DropDetPack(), WP_FireMelee(), WP_FireStunBaton(), WP_GetVelocityForForceJump(), WP_SaberPositionUpdate(), WP_SabersIntersect(), WP_SaberStartMissileBlockCheck(), WP_VehCheckTraceFromCamPos(), and WP_VehLeadCrosshairVeh().

#define VectorNegate a,
 )     ((b)[0]=-(a)[0],(b)[1]=-(a)[1],(b)[2]=-(a)[2])
 

Definition at line 1398 of file q_shared.h.

Referenced by CG_ParticleDust().

#define VectorScale v,
s,
 )     ((o)[0]=(v)[0]*(s),(o)[1]=(v)[1]*(s),(o)[2]=(v)[2]*(s))
 

Definition at line 1361 of file q_shared.h.

Referenced by AimAtTarget(), AnimateRiders(), BG_EvaluateTrajectoryDelta(), BG_G2PlayerAngles(), CalcTeamDoorCenter(), CanDamage(), CG_AddLightningBeam(), CG_BubbleTrail(), CG_CalcVehicleMuzzlePoint(), CG_Chunks(), CG_CreateSaberMarks(), CG_Disintegration(), CG_DrawPlayerShield(), CG_DrawPlayerSphere(), CG_DrawSkyBoxPortal(), CG_ImpactMark(), CG_MakeExplosion(), CG_MiscModelExplosion(), CG_PlayerShieldHit(), CG_PredictPlayerState(), CG_RagDoll(), CG_ReflectVelocity(), CG_SaberCompWork(), ClientThink_real(), CreateMissile(), drop_charge(), Drop_Item(), faller_think(), finish_spawning_turretG2(), funcBBrushDieGo(), funcBBrushPain(), FX_ForceDrained(), G_AddPushVecToUcmd(), G_ApplyKnockback(), G_BounceItem(), G_BounceMissile(), G_BounceObject(), G_Damage(), G_DeflectMissile(), G_Dismember(), G_GetHitLocation(), G_MiscModelExplosion(), G_ReflectMissile(), G_RunExPhys(), G_RunObject(), G_StartObjectMoving(), G_Throw(), GlassUse(), InitMoverTrData(), ItemUse_UseDisp(), Jedi_CheckFlipEvasions(), Mark1_FireRocket(), Mark1Dead_FireRocket(), NAV_Bypass(), NAV_MoveBlocker(), NAVNEW_PushBlocker(), NPC_BSFollowLeader(), NPC_BSHuntAndKill(), NPC_BSJump(), NPC_MoveDirClear(), PM_AdjustAngleForWallJump(), PM_AdjustAngleForWallRun(), PM_AdjustAngleForWallRunUp(), PM_SaberFlipOverAttackMove(), PM_SaberJumpAttackMove(), PM_SaberLungeAttackMove(), PM_SlideMove(), PM_VehicleImpact(), PmoveSingle(), Rancor_Attack(), rocketThink(), saberBackToOwner(), saberCheckKnockdown_BrokenParry(), saberCheckKnockdown_DuelLoss(), saberFirstThrown(), ScaleModelAxis(), Seeker_FindEnemy(), SetMoverState(), SP_fx_runner(), SP_target_push(), TeleportPlayer(), trigger_push_touch(), UI_SaberDrawBlade(), UI_ScaleModelAxis(), Use_BinaryMover_Go(), Wampa_Attack(), WP_FireMelee(), WP_FireStunBaton(), WP_FireThermalDetonator(), WP_FireVehicleWeapon(), WP_LobFire(), WP_PlaceLaserTrap(), WP_SaberDoHit(), WP_SaberPositionUpdate(), and WP_SaberStartMissileBlockCheck().

#define VectorScaleVector a,
b,
 )     (((c)[0]=(a)[0]*(b)[0]),((c)[1]=(a)[1]*(b)[1]),((c)[2]=(a)[2]*(b)[2]))
 

Definition at line 1372 of file q_shared.h.

Referenced by CG_CreateModelFromSpawnEnt(), and CG_MiscEnt().

#define VectorScaleVectorAdd c,
a,
b,
 )     ((o)[0]=(c)[0]+((a)[0]*(b)[0]),(o)[1]=(c)[1]+((a)[1]*(b)[1]),(o)[2]=(c)[2]+((a)[2]*(b)[2]))
 

Definition at line 1369 of file q_shared.h.

#define VectorSet v,
x,
y,
 )     ((v)[0]=(x), (v)[1]=(y), (v)[2]=(z))
 

Definition at line 1399 of file q_shared.h.

Referenced by BG_AttachToRancor(), BG_G2PlayerAngles(), BG_IK_MoveArm(), BG_VehicleAdjustBBoxForOrientation(), Boba_StopKnockdown(), CG_AddGhoul2Mark(), CG_AddLightningBeam(), CG_AddParticleToScene(), CG_AddSaberBlade(), CG_Chunks(), CG_CreateSaberMarks(), CG_Disintegration(), CG_DrawAutoMap(), CG_ParticleImpactSmokePuff(), CG_Player(), CG_PlayerAnimEventDo(), CG_RagDoll(), CG_RegisterWeapon(), CG_SaberClashFlare(), CG_SurfaceExplosion(), CG_ThrowChunk(), ClientEvents(), ClientThink_real(), CreateLaserTrap(), CreateShield(), DeathFX(), DebugLine(), Do_Strike(), drop_charge(), emplaced_gun_update(), EWeb_Create(), EWebDie(), finish_spawning_turretG2(), FinishSpawningItem(), FireVehicleWeapon(), funcBBrushDieGo(), funcBBrushPain(), G_Dismember(), G_DriveATST(), G_EstimateCamPos(), G_GetBoltPosition(), G_GetHitLocation(), G_GetHitLocFromSurfName(), G_ItemUsable(), G_RMGPathing(), G_RunExPhys(), G_SpecialSpawnItem(), hurt_touch(), ImperialProbe_Wait(), Item_Model_Paint(), ItemUse_Sentry(), Jedi_CheckFlipEvasions(), laserTrapStick(), LaunchItem(), maglock_link(), MakeDeadSaber(), Mark1_FireRocket(), Mark1Dead_FireRocket(), Menu_Transition3ItemByName(), misc_faller_create(), NAV_CheckAhead(), NAV_FindClosestWaypointForPoint2(), NAV_HitNavGoal(), NAV_TestBestNode(), NAVNEW_TestNodeConnectionBlocked(), NPC_BSGM_Default(), NPC_CheckEnemyStealth(), NPC_GalakMech_Init(), NPC_ParseParms(), NPC_Probe_Pain(), NPC_ShotEntity(), pas_think(), PlaceShield(), PM_AdjustAngleForWallJump(), PM_AdjustAngleForWallRun(), PM_AdjustAngleForWallRunUp(), PM_AnglesForSlope(), PM_CheckFixMins(), PM_CheckStabDown(), PM_FootSlopeTrace(), PM_ItemUsable(), PM_SaberAttackForMovement(), PM_StepSlideMove(), PM_WeaponLightsaber(), PmoveSingle(), Rancor_Attack(), Rancor_CheckDropVictim(), Rancor_Combat(), saberKnockDown(), saberKnockOutOfHand(), Seeker_FindEnemy(), SiegeItemDie(), SP_emplaced_gun(), SP_fx_runner(), SP_info_jedimaster_start(), SP_misc_ammo_floor_unit(), SP_misc_holocron(), SP_misc_model(), SP_misc_model_ammo_power_converter(), SP_misc_model_health_power_converter(), SP_misc_model_shield_power_converter(), SP_misc_shield_floor_unit(), SP_misc_turret(), SP_PAS(), SP_waypoint(), SP_waypoint_navgoal(), SP_waypoint_navgoal_1(), SP_waypoint_navgoal_2(), SP_waypoint_navgoal_4(), SP_waypoint_navgoal_8(), SP_waypoint_small(), TryUse(), turret_base_spawn_top(), turret_die(), turret_head_think(), turretG2_die(), UI_DoSaber(), Update(), ValidateBoard(), ValidBloodPool(), VEH_TryEject(), Wampa_Attack(), Wampa_Combat(), waypoint_testDirection(), WP_FireMelee(), WP_FireStunBaton(), WP_FireThermalDetonator(), WP_FireVehicleWeapon(), WP_SaberPositionUpdate(), and WP_VehCheckTraceFromCamPos().

#define VectorSet5 v,
x,
y,
z,
a,
 )     ((v)[0]=(x), (v)[1]=(y), (v)[2]=(z), (v)[3]=(a), (v)[4]=(b))
 

Definition at line 1400 of file q_shared.h.

#define VectorSubtract a,
b,
 )     ((c)[0]=(a)[0]-(b)[0],(c)[1]=(a)[1]-(b)[1],(c)[2]=(a)[2]-(b)[2])
 

Definition at line 1359 of file q_shared.h.

Referenced by AimAtTarget(), AnglesToAxis(), AnimateRiders(), BeginAutoPathRoutine(), BG_G2PlayerAngles(), BG_IK_MoveArm(), BG_UpdateLookAngles(), BG_VehicleAdjustBBoxForOrientation(), BG_VehTraceFromCamPos(), Boba_FireDecide(), BotAimLeading(), BotCheckDetPacks(), BotDefendFlag(), BotGetEnemyFlag(), BotGetFlagHome(), BotPVSCheck(), BotTrace_Duck(), BotTrace_Jump(), BotTrace_Strafe(), BotWaypointRender(), CalcEntitySpot(), CalculatePaths(), CanCounterThrow(), CanForceJumpTo(), CanGetToVectorTravel(), CanShoot(), CG_AddGhoul2Mark(), CG_AddLightningBeam(), CG_AddSaberBlade(), CG_AddScorePlum(), CG_AdjustPositionForMover(), CG_BracketEntity(), CG_BubbleTrail(), CG_BuildSolidList(), CG_CheckThirdPersonAlpha(), CG_Chunks(), CG_CreateDebris(), CG_CreateDistortionTrailPart(), CG_CreateSaberMarks(), CG_DamageFeedback(), CG_Disintegration(), CG_DoCameraShake(), CG_DrawActiveFrame(), CG_DrawMiscEnts(), CG_DrawPlayerSphere(), CG_DrawRadar(), CG_DrawSkyBoxPortal(), CG_EntityEvent(), CG_ExplosionEffects(), CG_GlassShatter_Old(), CG_ImpactMark(), CG_MiscModelExplosion(), CG_Player(), CG_PredictPlayerState(), CG_RagDoll(), CG_SaberClashFlare(), CG_SaberCompWork(), CG_SurfaceExplosion(), CG_WorldCoordToScreenCoordFloat(), CheckAlmostCapture(), ClientCommand(), ClientThink_real(), CombatBotAI(), ConnectTrail(), CTFFlagMovement(), DebugLine(), DEMP2_AltRadiusDamage(), DistanceHorizontal(), DistanceHorizontalSquared(), DoGripAction(), DoImpact(), emplaced_gun_update(), emplaced_gun_use(), EWebPositionUser(), FindGenericEnemyIndex(), FindIntermissionPoint(), FlagObjects(), ForceShootDrain(), ForceShootLightning(), ForceTeamForceReplenish(), ForceTeamHeal(), ForceTelepathy(), ForceThrow(), funcBBrushDieGo(), funcBBrushPain(), fx_runner_link(), G_AttackDelay(), G_BounceProjectile(), G_CanJumpToEnemyVeh(), G_CheckAlertEvents(), G_CheckClientIdle(), G_Damage(), G_Dismember(), G_EstimateCamPos(), G_FindClosestPointOnLineSegment(), G_FindLocalInterestPoint(), G_GetHitLocation(), G_GetHitLocFromSurfName(), G_GetHitQuad(), G_KnockOffVehicle(), G_MoverTeam(), G_MoverTouchPushTriggers(), G_NearestNodeToPoint(), G_PointDistFromLineSegment(), G_RadiusDamage(), G_ReflectMissile(), G_RunExPhys(), G_RunFrame(), G_SPSaberDamageTraceLerped(), G_TouchTriggers(), G_TryPushingEntity(), GetAnglesForDirection(), GetClosestSpawn(), GetIdealDestination(), GetNearestBadThing(), GetNearestVisibleWP(), GetNearestVisibleWPToItem(), GetNewFlagPoint(), GlassUse(), Howler_Patrol(), hyperspace_touch(), ImperialProbe_FireBlaster(), ImperialProbe_Hunt(), InFOV(), InFOV3(), InFront(), InitMoverTrData(), Interrogator_Hunt(), InVisrange(), Jedi_CheckFlipEvasions(), Jedi_FindEnemyInCone(), Jedi_SaberBlockGo(), locateCamera(), LookAtKiller(), Mark1_FireBlaster(), Mark1_FireRocket(), Mark2_FireBlaster(), MeleeCombatHandling(), MineMonster_Patrol(), misc_weapon_shooter_aim(), NAV_HitNavGoal(), NAV_MoveToGoal(), NAV_ResolveEntityCollision(), NAVNEW_MoveToGoal(), NAVNEW_ResolveEntityCollision(), NPC_BSAdvanceFight(), NPC_BSCinematic(), NPC_BSDefault(), NPC_BSFlee(), NPC_BSFollowLeader(), NPC_BSGM_Attack(), NPC_BSGrenadier_Patrol(), NPC_BSHuntAndKill(), NPC_BSJump(), NPC_BSNoClip(), NPC_BSPointShoot(), NPC_BSRunAndShoot(), NPC_BSSearch(), NPC_BSSniper_Patrol(), NPC_BSST_Attack(), NPC_BSWander(), NPC_CheckAttackHold(), NPC_CheckCanAttack(), NPC_Droid_Pain(), NPC_EnemyTooFar(), NPC_FindCombatPoint(), NPC_GetHFOVPercentage(), NPC_GetMoveInformation(), NPC_GetVFOVPercentage(), NPC_Jedi_Pain(), NPC_PickAlly(), NPC_PickEnemy(), NPC_Probe_Pain(), pas_fire(), pas_think(), PassStandardEnemyChecks(), Pickup_Powerup(), PlaneFromPoints(), PM_GroundDistance(), PM_SaberLockBreak(), PM_StepSlideMove(), PM_VehForcedTurning(), PM_VehicleImpact(), PM_WalkableGroundDistance(), proxMineThink(), Reached_Train(), ref_link(), Remote_Fire(), Remote_Hunt(), RepairPaths(), rocketThink(), saberBackToOwner(), saberCheckKnockdown_BrokenParry(), saberCheckKnockdown_DuelLoss(), SaberCombatHandling(), saberFirstThrown(), SavePathData(), ScanForEnemies(), Seeker_Fire(), Seeker_FollowOwner(), Seeker_Hunt(), Seeker_Strafe(), SeekerDroneUpdate(), SelectDuelSpawnPoint(), SelectNearestDeathmatchSpawnPoint(), SelectRandomFurthestSpawnPoint(), Sentry_Hunt(), SetMoverState(), ShortestLineSegBewteen2LineSegs(), Siege_DefendFromAttackers(), Siege_TargetClosestObjective(), SP_func_button(), SP_func_door(), ST_Commander(), StandardBotAI(), target_laser_think(), Team_FragBonuses(), ThrowSaberToAttacker(), trigger_push_touch(), turret_base_think(), TurretClientRun(), turretG2_base_think(), UI_SaberDrawBlade(), Use_BinaryMover_Go(), Use_Shooter(), ValidateBoard(), VEH_TurretAnglesToEnemy(), VEH_TurretThink(), WaitingForNow(), WP_LobFire(), WP_SaberBlock(), WP_SaberBlockNonRandom(), WP_SaberPositionUpdate(), WP_SaberRadiusDamage(), WP_SabersIntersect(), WP_SaberStartMissileBlockCheck(), WP_VehCheckTraceFromCamPos(), and WP_VehLeadCrosshairVeh().

#define WORLD_SIZE   ( MAX_WORLD_COORD - MIN_WORLD_COORD )
 

Definition at line 20 of file q_shared.h.

Referenced by NPC_FindNearestEnemy(), and NPC_FindSquadPoint().

#define YAW   1
 

Definition at line 375 of file q_shared.h.

Referenced by AngleVectors(), BG_EmplacedView(), BG_G2PlayerAngles(), BG_PlayerStateToEntityState(), BG_PlayerStateToEntityStateExtraPolate(), BG_UpdateLookAngles(), Boba_FireDecide(), Boba_StopKnockdown(), BotAimOffsetGoalAngles(), BotFallbackNavigation(), BotInputToUserCommand(), BotTrace_Strafe(), CanCounterThrow(), CG_AddGhoul2Mark(), CG_AddPlayerWeapon(), CG_AddSaberBlade(), CG_CreateModelFromSpawnEnt(), CG_DamageFeedback(), CG_Disintegration(), CG_DrawAutoMap(), CG_DrawFlagModel(), CG_DrawRadar(), CG_EmplacedView(), CG_G2Animated(), CG_G2MarkEvent(), CG_G2TraceCollide(), CG_Player(), CG_PlayerAnimEventDo(), CG_RagDoll(), CG_ResetPlayerEntity(), CG_SaberCompWork(), CG_TestModel_f(), CG_ThrowChunk(), ClientCommand(), ClientThink_real(), Cmd_SetViewpos_f(), CreateLaserTrap(), CreateShield(), CreepToPosition(), drop_charge(), Drop_Item(), Eject(), EWebPositionUser(), EWebThink(), EWebUpdateBoneAngles(), FireWeapon(), G_GetBoltPosition(), G_GetDismemberBolt(), G_GetHitLocation(), G_GetHitLocFromSurfName(), G_HeldByMonster(), G_ItemUsable(), G_MoverPush(), G_RunExPhys(), G_TryPushingEntity(), G_VehicleSpawn(), InFOV(), InFOV3(), Initialize(), ItemUse_Sentry(), Jedi_CheckFlipEvasions(), LookAtKiller(), NAV_MoveBlocker(), NAV_Steer(), NAVNEW_SidestepBlocker(), NPC_Begin(), NPC_BSCinematic(), NPC_BSDefault(), NPC_BSFace(), NPC_BSFollowLeader(), NPC_BSGM_Attack(), NPC_BSGrenadier_Attack(), NPC_BSGrenadier_Patrol(), NPC_BSJump(), NPC_BSNoClip(), NPC_BSPointShoot(), NPC_BSRunAndShoot(), NPC_BSSniper_Attack(), NPC_BSSniper_Patrol(), NPC_BSST_Attack(), NPC_BSStandAndShoot(), NPC_CheckCanAttack(), NPC_FacePosition(), NPC_GetHFOVPercentage(), NPC_GetMoveDirection(), NPC_GetMoveDirectionAltRoute(), NPC_KeepCurrentFacing(), NPC_MoveDirClear(), NPC_MoveToGoal(), NPC_SlideMoveToGoal(), NPC_Spawn_Do(), NPC_UpdateAngles(), NPC_UpdateFiringAngles(), NPC_UpdateShootAngles(), P_DamageFeedback(), pas_think(), PlaceShield(), PM_AdjustAngleForWallJump(), PM_AdjustAngleForWallRun(), PM_AdjustAngleForWallRunUp(), PM_AnglesForSlope(), PM_CheckStabDown(), PM_FootSlopeTrace(), PM_HoverTrace(), PM_ItemUsable(), PM_pitch_roll_for_slope(), PM_SaberAttackForMovement(), PM_UpdateViewAngles(), PM_VehFaceHyperspacePoint(), PM_VehForcedTurning(), PM_VehicleImpact(), PM_VehicleViewAngles(), PmoveSingle(), ProcessOrientCommands(), R2D2_TurnAnims(), Rancor_Attack(), Rancor_Combat(), Rancor_Swing(), SeekerDroneUpdate(), Sniper_FaceEnemy(), StandardBotAI(), TryUse(), TurretClientRun(), Update(), ValidateBoard(), vectoangles(), vectoyaw(), VEH_TryEject(), VEH_TurretAim(), vmMain(), Wampa_Attack(), Wampa_Combat(), Wampa_Slash(), and WP_SaberPositionUpdate().


Typedef Documentation

typedef struct addbezierArgStruct_s addbezierArgStruct_t
 

Referenced by CG_AddLightningBeam(), FX_DisruptorAltMiss(), and trap_FX_AddBezier().

typedef struct addpolyArgStruct_s addpolyArgStruct_t
 

Referenced by CG_CreateSaberMarks(), CG_Cube(), and trap_FX_AddPoly().

typedef struct addspriteArgStruct_s addspriteArgStruct_t
 

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

typedef unsigned char byte
 

Definition at line 349 of file q_shared.h.

Referenced by BG_ParseField(), CG_ImpactMark(), CG_SpawnCGameEntFromVars(), ColorBytes3(), ColorBytes4(), ConnectTrail(), EWeb_SetBoneAngles(), G2Tur_SetBoneAngles(), G_FilterPacket(), G_Find(), G_SpawnGEntityFromSpawnVars(), LongSwap(), NormalToLatLong(), NPC_SetBoneAngles(), PM_BGEntForNum(), ShortSwap(), SP_worldspawn(), and trap_R_inPVS().

typedef int clipHandle_t
 

Definition at line 363 of file q_shared.h.

Referenced by CG_PointContents(), trap_CM_BoxTrace(), trap_CM_CapsuleTrace(), trap_CM_InlineModel(), trap_CM_LerpTag(), trap_CM_PointContents(), trap_CM_TempBoxModel(), trap_CM_TempCapsuleModel(), trap_CM_TransformedBoxTrace(), trap_CM_TransformedCapsuleTrace(), trap_CM_TransformedPointContents(), trap_R_LerpTag(), and trap_R_ModelBounds().

typedef struct cplane_s cplane_t
 

Referenced by SetPlaneSignbits().

typedef struct cvar_s cvar_t
 

typedef int cvarHandle_t
 

Definition at line 1820 of file q_shared.h.

typedef int e_status
 

Definition at line 3041 of file q_shared.h.

Referenced by trap_CIN_RunCinematic(), and trap_CIN_StopCinematic().

typedef struct effectTrailArgStruct_s effectTrailArgStruct_t
 

Referenced by CG_AddSaberBlade(), and trap_FX_AddPrimitive().

typedef struct entityState_s entityState_t
 

Referenced by BG_CanItemBeGrabbed(), BG_G2PlayerAngles(), BG_IK_MoveArm(), BG_InRoll2(), BG_InRollAnim(), BG_InRollES(), BG_PlayerStateToEntityState(), BG_PlayerStateToEntityStateExtraPolate(), BG_PlayerTouchesItem(), BG_TouchJumpPad(), BotAI_GetEntityState(), BotAI_GetSnapshotEntity(), CG_AddRefEntityWithPowerups(), CG_Beam(), CG_BuildSolidList(), CG_CreateBBRefEnts(), CG_EntityEvent(), CG_FireWeapon(), CG_G2MarkEvent(), CG_GetCTFMessageEvent(), CG_InClientBitflags(), CG_PointContents(), CG_SetInitialSnapshot(), CG_Special(), CG_VehMuzzleFireFX(), DoFall(), and trap_GetDefaultState().

typedef int fileHandle_t
 

Definition at line 362 of file q_shared.h.

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(), G_LogWeaponOutput(), G_ModelIndex(), GetMenuBuffer(), InitSiegeMode(), LoadPathData(), NPC_LoadParms(), SavePathData(), trap_FS_FCloseFile(), trap_FS_FOpenFile(), trap_FS_Read(), trap_FS_Write(), UI_ClearScores(), UI_ForceConfigHandle(), UI_hasSkinForBase(), UI_LoadBestScores(), UI_ParseAnimationFile(), UI_SaberLoadParms(), UI_SaveForceTemplate(), UI_SetSiegeTeams(), and WP_SaberLoadParms().

typedef int fixed16_t
 

Definition at line 545 of file q_shared.h.

typedef int fixed4_t
 

Definition at line 543 of file q_shared.h.

typedef int fixed8_t
 

Definition at line 544 of file q_shared.h.

typedef int flagStatus_t
 

Definition at line 3050 of file q_shared.h.

Referenced by Team_SetFlagStatus().

typedef struct forcedata_s forcedata_t
 

Referenced by BotMindTricked(), ClientSpawn(), G_IsMindTricked(), and WP_AddAsMindtricked().

typedef int forcePowers_t
 

Definition at line 613 of file q_shared.h.

Referenced by BG_CanUseFPNow(), BG_ForcePowerDrain(), DoGripAction(), ForcePowerUsableOn(), WP_DoSpecificPower(), WP_ForcePowerAvailable(), WP_ForcePowerInUse(), WP_ForcePowerStart(), WP_ForcePowerStop(), WP_ForcePowersUpdate(), and WP_ForcePowerUsable().

typedef int fxHandle_t
 

Definition at line 360 of file q_shared.h.

typedef CollisionRecord_t G2Trace_t[MAX_G2_COLLISIONS]
 

Definition at line 1888 of file q_shared.h.

Referenced by CG_G2TraceCollide().

typedef int ivec3_t[3]
 

Definition at line 539 of file q_shared.h.

typedef int ivec4_t[4]
 

Definition at line 540 of file q_shared.h.

typedef int ivec5_t[5]
 

Definition at line 541 of file q_shared.h.

typedef int material_t
 

Definition at line 990 of file q_shared.h.

Referenced by CG_Chunks(), CG_MiscModelExplosion(), funcBBrushDieGo(), G_Chunks(), and G_MiscModelExplosion().

typedef char memtag_t
 

Definition at line 3107 of file q_shared.h.

typedef struct pc_token_s pc_token_t
 

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(), trap_PC_ReadToken(), UI_LoadMenus(), and UI_ParseMenu().

typedef struct playerState_s playerState_t
 

Referenced by AnimateRiders(), BG_AddPredictableEventToPlayerstate(), BG_AdjustClientSpeed(), BG_CanItemBeGrabbed(), BG_CanUseFPNow(), BG_ClearRocketLock(), BG_CmdForRoll(), BG_CycleForce(), BG_CycleInven(), BG_ExternThisSoICanRecompileInDebug(), BG_FighterUpdate(), BG_FlipPart(), BG_ForcePowerDrain(), BG_HasYsalamiri(), BG_InKnockDownOnGround(), BG_InRoll(), BG_IsItemSelectable(), BG_KnockDownable(), BG_PlayerStateToEntityState(), BG_PlayerStateToEntityStateExtraPolate(), BG_PlayerTouchesItem(), BG_SabersOff(), BG_SetAnim(), BG_SetAnimFinal(), BG_SetLegsAnimTimer(), BG_SetTorsoAnimTimer(), BG_StartTorsoAnim(), BG_TouchJumpPad(), BG_UnrestrainedPitchRoll(), BotAI_GetClientState(), BotResetState(), CG_AddPacketEntities(), CG_AddPlayerWeapon(), CG_AddViewWeapon(), CG_CheckChangedPredictableEvents(), CG_CheckLocalSounds(), CG_CheckPlayerG2Weapons(), CG_CheckPlayerstateEvents(), CG_DrawArmor(), CG_DrawHealth(), CG_DrawVehicleHud(), CG_GetValue(), CG_PredictPlayerState(), CG_SetScoreSelection(), CG_SiegeObjectiveCompleted(), CG_SiegeRoundOver(), CG_TransitionPlayerState(), CheckTournament(), FighterIsLanded(), FighterIsLanding(), FighterIsLaunching(), FighterSuspended(), G_InGetUpAnim(), G_InKnockDown(), G_ItemUsable(), PM_AdjustAngleForWallJump(), PM_AdjustAngleForWallRun(), PM_AdjustAngleForWallRunUp(), PM_CanRollFromSoulCal(), PM_InKnockDown(), PM_InRollComplete(), PM_ItemUsable(), PM_SaberLockBreak(), PM_SaberLocked(), PM_SaberLockLoseAnim(), PM_SaberLockResultAnim(), PM_SetAnimFrame(), PM_SetPMViewAngle(), PM_UpdateViewAngles(), PM_VehicleViewAngles(), PM_WeaponLightsaber(), ProcessOrientCommands(), SendPendingPredictableEvents(), trap_LocateGameData(), and WP_HasForcePowers().

typedef int qhandle_t
 

Definition at line 358 of file q_shared.h.

Referenced by BG_AttachToRancor(), CG_BloodPool(), CG_DoSaber(), CG_Draw3DModel(), CG_DrawFlagModel(), CG_DrawInformation(), CG_DrawMedal(), CG_DrawNewTeamInfo(), CG_DrawPic(), CG_DrawRadar(), CG_DrawRotatePic(), CG_DrawRotatePic2(), CG_DrawTeamSpectators(), CG_EntityEvent(), CG_G2MarkEvent(), CG_G2SetBoneAngles(), CG_HandleAppendedSkin(), CG_ImpactMark(), CG_LaunchGib(), CG_MakeExplosion(), CG_OwnerDraw(), CG_Particle_Bleed(), CG_Particle_OilParticle(), CG_Particle_OilSlick(), CG_ParticleBubble(), CG_ParticleImpactSmokePuff(), CG_ParticleMisc(), CG_ParticleSmoke(), CG_ParticleSnow(), CG_ParticleSnowFlurry(), CG_PlayerAnimEventDo(), CG_PositionEntityOnTag(), CG_PositionRotatedEntityOnTag(), CG_SmokePuff(), CG_StatusHandle(), CG_ThrowChunk(), FX_AddOrientedLine(), FX_DrawPortableShield(), Item_ListBox_Paint(), strap_G2API_GetBoltMatrix(), strap_G2API_GetBoltMatrix_NoRecNoRot(), strap_G2API_GetBoltMatrix_NoReconstruct(), strap_G2API_SetBoneAngles(), trap_FX_AddLine(), trap_G2_SetGhoul2ModelIndexes(), trap_G2API_GetBoltMatrix(), trap_G2API_GetBoltMatrix_NoRecNoRot(), trap_G2API_GetBoltMatrix_NoReconstruct(), trap_G2API_InitGhoul2Model(), trap_G2API_SetBoneAngles(), trap_G2API_SetSkin(), trap_R_AddDecalToScene(), trap_R_AddPolysToScene(), trap_R_AddPolyToScene(), trap_R_DrawRotatePic(), trap_R_DrawRotatePic2(), trap_R_DrawStretchPic(), trap_R_RegisterFont(), trap_R_RegisterModel(), trap_R_RegisterShader(), trap_R_RegisterShaderNoMip(), trap_R_RegisterSkin(), UI_DoSaber(), UI_DrawCenteredPic(), UI_DrawHandlePic(), UI_DrawNamedPic(), and WP_SaberAddG2Model().

typedef struct qtime_s qtime_t
 

Referenced by trap_RealTime().

typedef int saber_colors_t
 

Definition at line 588 of file q_shared.h.

Referenced by CG_DoSaber(), NPC_ParseParms(), SaberColorToString(), TranslateSaberColor(), UI_DoSaber(), UI_SaberDrawBlade(), WP_SaberParseParms(), and WPDEBUG_SaberColor().

typedef int sfxHandle_t
 

Definition at line 361 of file q_shared.h.

Referenced by CG_AddBufferedSound(), CG_CheckLocalSounds(), CG_CustomSound(), CG_EntityEvent(), CG_FragmentBounceSound(), CG_PlayDoorLoopSound(), CG_PlayDoorSound(), CG_S_AddLoopingSound(), CG_S_AddRealLoopingSound(), CG_S_StopLoopingSound(), CG_TryPlayCustomSound(), Item_SetFocus(), Q3_SetLoopSound(), trap_AS_GetBModelSound(), trap_S_AddLoopingSound(), trap_S_AddRealLoopingSound(), trap_S_RegisterSound(), trap_S_StartLocalSound(), trap_S_StartSound(), and UI_FeederSelection().

typedef struct siegePers_s siegePers_t
 

Referenced by trap_SiegePersGet(), and trap_SiegePersSet().

typedef int soundChannel_t
 

Definition at line 1961 of file q_shared.h.

Referenced by CG_PlayerAnimEventDo(), and Q3_PlaySound().

typedef struct SSkinGoreData_s SSkinGoreData
 

Referenced by CG_AddGhoul2Mark(), and trap_G2API_AddSkinGore().

typedef struct stringID_table_s stringID_table_t
 

Referenced by BG_SiegeTranslateGenericTable(), GetIDForString(), and GetStringForID().

typedef int thandle_t
 

Definition at line 359 of file q_shared.h.

typedef unsigned long ulong
 

Definition at line 351 of file q_shared.h.

typedef struct usercmd_s usercmd_t
 

Referenced by BG_AdjustClientSpeed(), BG_CmdForRoll(), BG_FighterUpdate(), Board(), Boba_StopKnockdown(), BotInputToUserCommand(), CG_NextForcePower_f(), CG_PredictPlayerState(), CG_PrevForcePower_f(), ClientThink(), ClientThink_real(), Eject(), ForceJump(), ForceJumpCharge(), G_AddPushVecToUcmd(), G_AttachToVehicle(), G_CanJumpToEnemyVeh(), G_CheckClientIdle(), G_CheckMovingLoopingSounds(), G_HeldByMonster(), G_SetAnim(), G_UcmdMoveForDir(), Initialize(), Jedi_SaberBlockGo(), NPC_Begin(), NPC_ExecuteBState(), NPC_Think(), PM_AdjustAngleForWallJump(), PM_AdjustAngleForWallRun(), PM_AdjustAngleForWallRunUp(), PM_AdjustAnglesForWallRunUpFlipAlt(), PM_MoveForKata(), PM_SaberMoveQuadrantForMovement(), PM_SetPMViewAngle(), PM_UpdateViewAngles(), PM_VehicleViewAngles(), RestoreNPCGlobals(), SaveNPCGlobals(), SetNPCGlobals(), SpectatorThink(), trap_BotUserCommand(), trap_GetUsercmd(), trap_GetUserCmd(), Update(), WP_DoSpecificPower(), WP_ForcePowersUpdate(), WP_GetVelocityForForceJump(), WP_SaberPositionUpdate(), and WP_SaberStartMissileBlockCheck().

typedef vec_t vec2_t[2]
 

Definition at line 531 of file q_shared.h.

Referenced by CG_DoGlass(), G_BackwardAttachment(), G_RecursiveConnection(), and Vector2Set().

typedef vec_t vec3_t[3]
 

Definition at line 532 of file q_shared.h.

Referenced by _DotProduct(), _UI_SetActiveMenu(), _VectorAdd(), _VectorCopy(), _VectorMA(), _VectorScale(), _VectorSubtract(), AddPointToBounds(), AddScore(), AddSightEvent(), AddSoundEvent(), AddTeamScore(), AI_ClosestGroupEntityNumToPoint(), AI_DistributeAttack(), AI_GetGroupSize(), AI_GroupUpdateEnemyLastSeen(), AI_ValidateNoEnemyGroupMember(), AimAtTarget(), AnglesSubtract(), AnglesToAxis(), AngleVectors(), AnimateRiders(), asteroid_field_think(), auto_turret_die(), AxisClear(), AxisCopy(), BeginAutoPathRoutine(), BG_AttachToRancor(), BG_EmplacedView(), BG_EvaluateTrajectory(), BG_EvaluateTrajectoryDelta(), BG_FighterUpdate(), BG_G2ATSTAngles(), BG_G2PlayerAngles(), BG_IK_MoveArm(), BG_ParseField(), BG_PlayerTouchesItem(), BG_TouchJumpPad(), BG_UpdateLookAngles(), BG_VehicleAdjustBBoxForOrientation(), BG_VehTraceFromCamPos(), Board(), Boba_FireDecide(), Boba_FireFlameThrower(), Boba_StartFlameThrower(), Boba_StopKnockdown(), BotAimLeading(), BotCheckDetPacks(), BotDefendFlag(), BotFallbackNavigation(), BotGetEnemyFlag(), BotGetFlagBack(), BotGetFlagHome(), BotGuardFlagCarrier(), BotInputToUserCommand(), BotPVSCheck(), BotSurfaceNear(), BotTrace_Duck(), BotTrace_Jump(), BotTrace_Strafe(), BotWaypointRender(), BoxOnPlaneSide(), ByteToDir(), CalcEntitySpot(), CalcMuzzlePoint(), CalcMuzzlePointOrigin(), CalcTeamDoorCenter(), CalculatePaths(), CalculateSiegeGoals(), CanCounterThrow(), CanDamage(), CanForceJumpTo(), CanGetToVector(), CanGetToVectorTravel(), CanSee(), CanShoot(), CG_AddFragment(), CG_AddGhoul2Mark(), CG_AddLightningBeam(), CG_AddParticles(), CG_AddParticleToScene(), CG_AddPlayerWeapon(), CG_AddRandomLightning(), CG_AddSaberBlade(), CG_AddScorePlum(), CG_AddViewWeapon(), CG_AdjustPositionForMover(), CG_Bleed(), CG_BloodPool(), CG_BloodTrail(), CG_BracketEntity(), CG_BubbleTrail(), CG_BuildSolidList(), CG_CalcEntityLerpPositions(), CG_CalcEWebMuzzlePoint(), CG_CalcMuzzlePoint(), CG_CalcVehicleMuzzlePoint(), CG_CalcVehMuzzle(), CG_CheckPassengerTurretView(), CG_CheckThirdPersonAlpha(), CG_Chunks(), CG_CreateBBRefEnts(), CG_CreateDebris(), CG_CreateDistortionTrailPart(), CG_CreateModelFromSpawnEnt(), CG_CreateSaberMarks(), CG_Cube(), CG_DamageFeedback(), CG_Disintegration(), CG_DoCameraShake(), CG_DoGlass(), CG_DoSaber(), CG_Draw3DModel(), CG_DrawActive(), CG_DrawActiveFrame(), CG_DrawAutoMap(), CG_DrawFlagModel(), CG_DrawHead(), CG_DrawMiscEnts(), CG_DrawPlayerShield(), CG_DrawPlayerSphere(), CG_DrawRadar(), CG_DrawSkyBoxPortal(), CG_EmplacedView(), CG_EntityEvent(), CG_ExplosionEffects(), CG_G2Animated(), CG_G2MarkEvent(), CG_G2SaberEffects(), CG_G2ServerBoneAngles(), CG_G2SetBoneAngles(), CG_G2Trace(), CG_G2TraceCollide(), CG_GetClientWeaponMuzzleBoltPoint(), CG_GetTagWorldPosition(), CG_GetVehicleCamPos(), CG_GlassShatter(), CG_GlassShatter_Old(), CG_ImpactMark(), CG_LaunchGib(), CG_LightVerts(), CG_MakeExplosion(), CG_MiscEnt(), CG_MiscModelExplosion(), CG_MissileHitPlayer(), CG_MissileHitWall(), CG_NewParticleArea(), CG_Particle_Bleed(), CG_ParticleBloodCloud(), CG_ParticleBubble(), CG_ParticleBulletDebris(), CG_ParticleDust(), CG_ParticleExplosion(), CG_ParticleImpactSmokePuff(), CG_ParticleMisc(), CG_ParticleSnow(), CG_ParticleSparks(), CG_PlayDoorLoopSound(), CG_Player(), CG_PlayerAnimEventDo(), CG_PlayerShieldHit(), CG_PointContents(), CG_PositionRotatedEntityOnTag(), CG_PredictPlayerState(), CG_Rag_Trace(), CG_RagDoll(), CG_ReflectVelocity(), CG_RegisterWeapon(), CG_ROFF_NotetrackCallback(), CG_S_AddLoopingSound(), CG_S_AddRealLoopingSound(), CG_S_UpdateLoopingSounds(), CG_SaberClashFlare(), CG_SaberCompWork(), CG_ScorePlum(), CG_SE_UpdateShake(), CG_SetEntitySoundPosition(), CG_SmokePuff(), CG_SurfaceExplosion(), CG_TestLine(), CG_TestModel_f(), CG_ThrowChunk(), CG_Trace(), CG_TryPlayCustomSound(), CG_VehicleAttachDroidUnit(), CG_VehicleWeaponImpact(), CG_WorldCoordToScreenCoord(), CG_WorldCoordToScreenCoordFloat(), charge_stick(), CheckAlmostCapture(), CheckForFriendInLOF(), CheckForFunc(), ClearBounds(), ClientCommand(), ClientEvents(), ClientSpawn(), ClientThink_real(), Cmd_EngageDuel_f(), Cmd_SetViewpos_f(), CombatBotAI(), ConnectTrail(), coplanar_tri_tri(), CreateLaserTrap(), CreateMissile(), CreateNewWP(), CreateNewWP_InsertUnder(), CreateNewWP_InTrail(), CreateShield(), CreepToPosition(), CTFFlagMovement(), CTFTakesPriority(), DeathFX(), DebugLine(), DEMP2_AltRadiusDamage(), DetPackBlow(), DirToByte(), DismembermentByNum(), DismembermentTest(), DistanceHorizontal(), DistanceHorizontalSquared(), Do_Strike(), DoGripAction(), DoImpact(), DotProductNormalize(), Droid_Spin(), drop_charge(), Drop_Item(), Eject(), emplaced_gun_update(), emplaced_gun_use(), EntityVisibleBox(), EWeb_Create(), EWeb_SetBoneAngles(), EWebDie(), EWebFire(), EWebPositionUser(), EWebUpdateBoneAngles(), ExplodeDeath(), FindGenericEnemyIndex(), FindIntermissionPoint(), finish_spawning_turretG2(), FinishSpawningItem(), FireVehicleWeapon(), FireWeapon(), FlagObjects(), ForceDrainDamage(), ForceGrip(), ForceJump(), ForceLightningDamage(), ForceShootDrain(), ForceShootLightning(), ForceTeamForceReplenish(), ForceTeamHeal(), ForceTelepathy(), ForceTelepathyCheckDirectNPCTarget(), ForceThrow(), funcBBrushDieGo(), funcBBrushPain(), FX_AddOrientedLine(), FX_BlasterAltFireThink(), FX_BlasterProjectileThink(), FX_BlasterWeaponHitPlayer(), FX_BlasterWeaponHitWall(), FX_BowcasterAltProjectileThink(), FX_BowcasterHitPlayer(), FX_BowcasterHitWall(), FX_BowcasterProjectileThink(), FX_BryarAltHitPlayer(), FX_BryarAltHitWall(), FX_BryarAltProjectileThink(), FX_BryarHitPlayer(), FX_BryarHitWall(), FX_BryarProjectileThink(), FX_ConcAltShot(), FX_ConcussionHitPlayer(), FX_ConcussionHitWall(), FX_ConcussionProjectileThink(), FX_DEMP2_AltBeam(), FX_DEMP2_AltDetonate(), FX_DEMP2_HitPlayer(), FX_DEMP2_HitWall(), FX_DEMP2_ProjectileThink(), FX_DisruptorAltHit(), FX_DisruptorAltMiss(), FX_DisruptorAltShot(), FX_DisruptorHitPlayer(), FX_DisruptorHitWall(), FX_DisruptorMainShot(), FX_DrawPortableShield(), FX_FlechetteAltProjectileThink(), FX_FlechetteProjectileThink(), FX_FlechetteWeaponHitPlayer(), FX_FlechetteWeaponHitWall(), FX_ForceDrained(), FX_RepeaterAltHitPlayer(), FX_RepeaterAltHitWall(), FX_RepeaterAltProjectileThink(), FX_RepeaterHitPlayer(), FX_RepeaterHitWall(), FX_RepeaterProjectileThink(), FX_RocketAltProjectileThink(), FX_RocketHitPlayer(), FX_RocketHitWall(), FX_RocketProjectileThink(), fx_runner_link(), FX_TurretHitPlayer(), FX_TurretHitWall(), FX_TurretProjectileThink(), G2Tur_SetBoneAngles(), G_AddPushVecToUcmd(), G_AlertTeam(), G_ApplyKnockback(), G_AttackDelay(), G_BounceItem(), G_BounceMissile(), G_BounceObject(), G_BounceProjectile(), G_BoundsOverlap(), G_BoxInBounds(), G_CanJumpToEnemyVeh(), G_CheckAlertEvents(), G_CheckClientIdle(), G_CheckForDismemberment(), G_CheckInSolid(), G_Chunks(), G_ClearLineOfSight(), G_ClearLOS(), G_ClearLOS2(), G_ClearLOS3(), G_ClearLOS4(), G_ClearLOS5(), G_ClearTrace(), G_CreateRotationMatrix(), G_Cube(), G_CubeOutline(), G_Damage(), G_DebugBoxLines(), G_DeflectMissile(), G_Dismember(), G_DrawCombatPoint(), G_DrawEdge(), G_DrawNode(), G_EstimateCamPos(), G_ExpandPointToBBox(), G_ExplodeMissile(), G_FindClosestPointOnLineSegment(), G_FindLocalInterestPoint(), G_GetBoltPosition(), G_GetDismemberBolt(), G_GetDismemberLoc(), G_GetHitLocation(), G_GetHitLocFromSurfName(), G_GetHitQuad(), G_GetLightLevel(), G_ItemUsable(), G_KillBox(), G_KnockOffVehicle(), G_Line(), G_LocationBasedDamageModifier(), G_MiscModelExplosion(), G_MissileBounceEffect(), G_MissileImpact(), G_MoverPush(), G_MoverTeam(), G_MoverTouchPushTriggers(), G_NearestNodeToPoint(), G_PickDeathAnim(), G_PlayEffect(), G_PlayEffectID(), G_PointDistFromLineSegment(), G_PointInBounds(), G_PreDefSound(), G_RadiusDamage(), G_RadiusList(), G_ReflectMissile(), G_RMGPathing(), G_RotatePoint(), G_RunExPhys(), G_RunFrame(), G_RunItem(), G_RunMissile(), G_RunObject(), G_ScreenShake(), G_SetAngles(), G_SetMovedir(), G_SetOrigin(), G_SoundAtLoc(), G_SoundTempEntity(), G_SPSaberDamageTraceLerped(), G_StartFlee(), G_StartObjectMoving(), G_TempEntity(), G_TestEntityPosition(), G_TestLine(), G_Throw(), G_TouchTriggers(), G_TransposeMatrix(), G_TryPushingEntity(), G_UcmdMoveForDir(), G_VehicleAttachDroidUnit(), G_VehicleTrace(), GetAnglesForDirection(), GetClosestSpawn(), GetIdealDestination(), GetNearestBadThing(), GetNearestVisibleWP(), GetNearestVisibleWPToItem(), GetNewFlagPoint(), GlassDie(), GlassDie_Old(), GlassUse(), Howler_Patrol(), Howler_TryDamage(), hurt_touch(), hyperspace_touch(), ImperialProbe_FireBlaster(), ImperialProbe_Hunt(), ImperialProbe_Strafe(), ImperialProbe_Wait(), InFieldOfVision(), InFOV(), InFOV2(), InFOV3(), InFront(), InitMover(), InitMoverTrData(), Interrogator_Hunt(), Interrogator_Strafe(), InVisrange(), Item_Model_Paint(), ItemUse_Sentry(), ItemUse_UseDisp(), Jedi_CheckFlipEvasions(), Jedi_FindEnemyInCone(), Jedi_SaberBlockGo(), laserTrapExplode(), laserTrapStick(), laserTrapThink(), LaunchItem(), locateCamera(), LookAtKiller(), maglock_link(), MakeDeadSaber(), MakeNormalVectors(), Mark1_FireBlaster(), Mark1_FireRocket(), Mark1Dead_FireBlaster(), Mark1Dead_FireRocket(), Mark2_FireBlaster(), MeleeCombatHandling(), MineMonster_Patrol(), MineMonster_TryDamage(), NAV_AvoidCollision(), NAV_Bypass(), NAV_CheckAhead(), NAV_ClearPathToPoint(), NAV_FindClosestWaypointForPoint(), NAV_FindClosestWaypointForPoint2(), NAV_HitNavGoal(), NAV_MicroError(), NAV_MoveBlocker(), NAV_MoveToGoal(), NAV_ResolveBlock(), NAV_ResolveEntityCollision(), NAV_ShowDebugInfo(), NAV_StackedCanyon(), NAV_Steer(), NAV_TestBestNode(), NAV_TrueCollision(), NAVNEW_AvoidCollision(), NAVNEW_Bypass(), NAVNEW_CheckDoubleBlock(), NAVNEW_ClearPathBetweenPoints(), NAVNEW_DanceWithBlocker(), NAVNEW_MoveToGoal(), NAVNEW_PushBlocker(), NAVNEW_ResolveEntityCollision(), NAVNEW_SidestepBlocker(), NAVNEW_TestNodeConnectionBlocked(), NodeHere(), NormalizeColor(), NormalToLatLong(), NPC_AimWiggle(), NPC_Begin(), NPC_BSAdvanceFight(), NPC_BSCinematic(), NPC_BSDefault(), NPC_BSEmplaced(), NPC_BSFlee(), NPC_BSFollowLeader(), NPC_BSGM_Attack(), NPC_BSGrenadier_Patrol(), NPC_BSHuntAndKill(), NPC_BSJump(), NPC_BSNoClip(), NPC_BSPointShoot(), NPC_BSRunAndShoot(), NPC_BSSearch(), NPC_BSSniper_Attack(), NPC_BSSniper_Patrol(), NPC_BSST_Attack(), NPC_BSWander(), NPC_CheckAttackHold(), NPC_CheckCanAttack(), NPC_CheckEnemyStealth(), NPC_CheckInSolid(), NPC_CheckInvestigate(), NPC_ChoosePainAnimation(), NPC_ClearLOS(), NPC_ClearLOS2(), NPC_ClearLOS3(), NPC_ClearLOS5(), NPC_ClearPathToGoal(), NPC_ClearShot(), NPC_Droid_Pain(), NPC_EnemyTooFar(), NPC_EntRangeFromBolt(), NPC_FaceEntity(), NPC_FacePosition(), NPC_FindCombatPoint(), NPC_FindNearestEnemy(), NPC_FindSquadPoint(), NPC_GetEntsNearBolt(), NPC_GetHFOVPercentage(), NPC_GetMoveDirection(), NPC_GetMoveDirectionAltRoute(), NPC_GetMoveInformation(), NPC_GetVFOVPercentage(), NPC_GM_Pain(), NPC_Jedi_Pain(), NPC_Mark1_Part_Explode(), NPC_Mark2_Part_Explode(), NPC_MoveDirClear(), NPC_MoveToGoal(), NPC_Pain(), NPC_ParseParms(), NPC_PickAlly(), NPC_PickEnemy(), NPC_Probe_Pain(), NPC_SetBoneAngles(), NPC_SetMoveGoal(), NPC_SetPickUpGoal(), NPC_ShotEntity(), NPC_ShowDebugInfo(), NPC_Spawn_Do(), NPC_SpawnType(), NPC_SpotWouldTelefrag(), NPC_StartFlee(), NPC_Think(), NPC_UpdateShootAngles(), OrgVisible(), OrgVisibleBox(), OrgVisibleCurve(), P_DamageFeedback(), pas_adjust_enemy(), pas_fire(), pas_think(), PassStandardEnemyChecks(), PerpendicularVector(), Pickup_Powerup(), pitch_roll_for_slope(), PlaceShield(), PlaneFromPoints(), player_die(), PM_AdjustAngleForWallJump(), PM_AdjustAngleForWallRun(), PM_AdjustAngleForWallRunUp(), PM_AnglesForSlope(), PM_CanBackstab(), PM_CheckFixMins(), PM_CheckStabDown(), PM_ClipVelocity(), PM_FootSlopeTrace(), PM_GroundDistance(), PM_HoverTrace(), PM_ItemUsable(), PM_pitch_roll_for_slope(), PM_RocketLock(), PM_SaberAttackForMovement(), PM_SaberFlipOverAttackMove(), PM_SaberJumpAttackMove(), PM_SaberLockBreak(), PM_SaberLungeAttackMove(), PM_SetPMViewAngle(), PM_SlideMove(), PM_SomeoneInFront(), PM_StepSlideMove(), PM_VehForcedTurning(), PM_VehicleImpact(), PM_VehicleViewAngles(), PM_WalkableGroundDistance(), PM_WeaponLightsaber(), PmoveSingle(), ProjectPointOnPlane(), proxMineThink(), Q3_GetTag(), Q3_GetVector(), Q3_Lerp2Angles(), Q3_Lerp2Origin(), Q3_Lerp2Pos(), Q3_Set(), RadiusFromBounds(), Rancor_Attack(), Rancor_Bite(), Rancor_CheckDropVictim(), Rancor_Combat(), Rancor_Smash(), Rancor_Swing(), RaySphereIntersections(), Reached_BinaryMover(), Reached_Train(), ref_link(), Remote_Fire(), Remote_Hunt(), Remote_Strafe(), RepairPaths(), rocketThink(), RotateAroundDirection(), RotatePointAroundVector(), saberBackToOwner(), saberCheckKnockdown_BrokenParry(), saberCheckKnockdown_DuelLoss(), SaberCombatHandling(), saberFirstThrown(), saberKnockDown(), saberKnockOutOfHand(), SaberUpdateSelf(), SavePathData(), ScanForEnemies(), ScorePlum(), Seeker_FindEnemy(), Seeker_Fire(), Seeker_FollowOwner(), Seeker_Hunt(), Seeker_Strafe(), SeekerDroneUpdate(), SelectCTFSpawnPoint(), SelectDuelSpawnPoint(), SelectInitialSpawnPoint(), SelectNearestDeathmatchSpawnPoint(), SelectRandomFurthestSpawnPoint(), SelectSiegeSpawnPoint(), SelectSpawnPoint(), SelectSpectatorSpawnPoint(), Sentry_Fire(), Sentry_Hunt(), Sentry_Strafe(), SetClientViewAngle(), SetMoverState(), SetupGameGhoul2Model(), ShortestLineSegBewteen2LineSegs(), ShotThroughGlass(), Siege_DefendFromAttackers(), Siege_TargetClosestObjective(), SiegeBroadcast_OBJECTIVECOMPLETE(), SiegeBroadcast_ROUNDOVER(), SiegeItemDie(), SiegeItemTouch(), SiegeRoundComplete(), SiegeTakesPriority(), SnapVectorTowards(), Sniper_FaceEnemy(), SP_emplaced_gun(), SP_func_button(), SP_func_door(), SP_func_rotating(), SP_misc_ammo_floor_unit(), SP_misc_holocron(), SP_misc_shield_floor_unit(), SP_misc_skyportal(), SpawnPlatTrigger(), SpotWouldTelefrag(), SpotWouldTelefrag2(), ST_Commander(), ST_StartFlee(), ST_TrackEnemy(), StandardBotAI(), StrafeTracing(), strap_G2API_GetBoltMatrix(), strap_G2API_GetBoltMatrix_NoRecNoRot(), strap_G2API_GetBoltMatrix_NoReconstruct(), strap_G2API_SetBoneAngles(), TAG_Add(), TAG_GetAngles(), TAG_GetOrigin(), TAG_GetOrigin2(), target_laser_think(), Team_FragBonuses(), Team_GetLocation(), TeleportPlayer(), thermalDetonatorExplode(), Think_SpawnNewDoorTrigger(), ThrowSaberToAttacker(), TossClientWeapon(), Touch_Multi(), trap_AAS_AlternativeRouteGoals(), trap_AAS_AreaTravelTimeToGoalArea(), trap_AAS_BBoxAreas(), trap_AAS_PointAreaNum(), trap_AAS_PointContents(), trap_AAS_PointReachabilityAreaIndex(), trap_AAS_PredictClientMovement(), trap_AAS_PredictRoute(), trap_AAS_PresenceTypeBoundingBox(), trap_AAS_Swimming(), trap_AAS_TraceAreas(), trap_AAS_VectorForBSPEpairKey(), trap_BotAddAvoidSpot(), trap_BotChooseLTGItem(), trap_BotChooseNBGItem(), trap_BotItemGoalInVisButNotVisible(), trap_BotLibTest(), trap_BotMoveInDirection(), trap_BotMovementViewTarget(), trap_BotPredictVisiblePosition(), trap_BotReachabilityArea(), trap_BotTouchingGoal(), trap_CM_BoxTrace(), trap_CM_CapsuleTrace(), trap_CM_MarkFragments(), trap_CM_PointContents(), trap_CM_TempBoxModel(), trap_CM_TempCapsuleModel(), trap_CM_TransformedBoxTrace(), trap_CM_TransformedCapsuleTrace(), trap_CM_TransformedPointContents(), trap_DebugPolygonCreate(), trap_EA_Move(), trap_EA_View(), trap_EntitiesInBox(), trap_EntityContact(), trap_EntityContactCapsule(), trap_FX_AddLine(), trap_FX_PlayBoltedEffectID(), trap_FX_PlayEffect(), trap_FX_PlayEffectID(), trap_FX_PlayEntityEffect(), trap_FX_PlayEntityEffectID(), trap_FX_PlayPortalEffectID(), trap_G2API_CollisionDetect(), trap_G2API_CollisionDetectCache(), trap_G2API_GetBoltMatrix(), trap_G2API_GetBoltMatrix_NoRecNoRot(), trap_G2API_GetBoltMatrix_NoReconstruct(), trap_G2API_GetRagBonePos(), trap_G2API_RagEffectorGoal(), trap_G2API_RagEffectorKick(), trap_G2API_RagPCJConstraint(), trap_G2API_SetBoneAngles(), trap_G2Trace(), trap_ICARUS_GetVectorVariable(), trap_InPVS(), trap_InPVSIgnorePortals(), trap_Nav_AddRawPoint(), trap_Nav_GetNodePosition(), trap_Nav_GetProjectedNode(), trap_PointContents(), trap_R_AddAdditiveLightToScene(), trap_R_AddDecalToScene(), trap_R_AddLightToScene(), trap_R_GetBModelVerts(), trap_R_inPVS(), trap_R_LightForPoint(), trap_R_ModelBounds(), trap_S_AddLocalSet(), trap_S_AddLoopingSound(), trap_S_AddRealLoopingSound(), trap_S_Respatialize(), trap_S_StartSound(), trap_S_UpdateAmbientSet(), trap_S_UpdateEntityPosition(), trap_SetClientForceAngle(), trap_Trace(), trap_TraceCapsule(), trap_WE_AddWeatherZone(), tri_tri_intersect(), trigger_push_touch(), TryUse(), turret_base_spawn_top(), turret_base_think(), turret_head_think(), TurretClientRun(), turretG2_base_think(), turretG2_die(), turretG2_head_think(), tv(), UI_DoSaber(), UI_SaberDrawBlade(), UI_SaberDrawBlades(), Update(), UpdateClientRenderBolts(), UpdateClientRenderinfo(), Use_BinaryMover_Go(), Use_Shooter(), ValidateBoard(), ValidBloodPool(), vectoangles(), VectorCompare2(), VectorNormalize(), VectorNormalize2(), VectorNPos(), VectorRotate(), vectoyaw(), VEH_StartStrafeRam(), VEH_TryEject(), VEH_TurretAim(), VEH_TurretAnglesToEnemy(), VEH_TurretObeyPassengerControl(), VEH_TurretThink(), vtos(), W_TraceSetStart(), WaitingForNow(), Wampa_Attack(), Wampa_Combat(), Wampa_Slash(), waypoint_testDirection(), WP_CalcVehMuzzle(), WP_DisruptorAltFire(), WP_FireBlasterMissile(), WP_FireEmplacedMissile(), WP_FireGenericBlasterMissile(), WP_FireMelee(), WP_FireStunBaton(), WP_FireThermalDetonator(), WP_FireTurboLaserMissile(), WP_FireTurretMissile(), WP_FireVehicleWeapon(), WP_GetVehicleCamPos(), WP_GetVelocityForForceJump(), WP_LobFire(), WP_PlaceLaserTrap(), WP_SaberBlock(), WP_SaberBlockNonRandom(), WP_SaberCanBlock(), WP_SaberDamageAdd(), WP_SaberPositionUpdate(), WP_SaberRadiusDamage(), WP_SabersIntersect(), WP_SaberStartMissileBlockCheck(), WP_VehCheckTraceFromCamPos(), WP_VehLeadCrosshairVeh(), and WPOrgVisible().

typedef vec3_t vec3pair_t[2]
 

Definition at line 537 of file q_shared.h.

typedef vec_t vec4_t[4]
 

Definition at line 533 of file q_shared.h.

Referenced by CG_ColorForGivenHealth(), CG_ColorForHealth(), CG_DottedLine(), CG_DrawArmor(), CG_DrawBigStringColor(), CG_DrawCloakFuel(), CG_DrawEWebHealth(), CG_DrawForcePower(), CG_DrawGenericTimerBar(), CG_DrawHaqrBar(), CG_DrawHealth(), CG_DrawHealthBar(), CG_DrawInvenSelect(), CG_DrawJetpackFuel(), CG_DrawMedal(), CG_DrawNewTeamInfo(), CG_DrawRadar(), CG_DrawSiegeInfo(), CG_DrawSkyBoxPortal(), CG_DrawSmallStringColor(), CG_DrawStringExt(), CG_DrawTeamBackground(), CG_DrawTeamSpectators(), CG_DrawVehicleAmmo(), CG_DrawVehicleAmmoLower(), CG_DrawVehicleAmmoUpper(), CG_DrawVehicleArmor(), CG_DrawVehicleDamage(), CG_DrawVehicleDamageHUD(), CG_DrawVehicleShields(), CG_DrawVehicleSpeed(), CG_DrawWeaponSelect(), CG_FadeColor(), CG_GetColorForHealth(), CG_GetTeamColor(), CG_OwnerDraw(), CG_Player(), CG_Text_Paint(), CG_Text_PaintWithCursor(), Color_Parse(), COM_ParseVec4(), GradientBar_Paint(), Item_Bind_Paint(), Item_ListBox_Paint(), Item_Multi_Paint(), Item_OwnerDraw_Paint(), Item_Paint(), Item_Slider_Paint(), Item_Text_AutoWrapped_Paint(), Item_Text_Paint(), Item_Text_Wrapped_Paint(), Item_TextColor(), Item_TextField_Paint(), Item_YesNo_Paint(), LerpColor(), Menu_Paint(), Menu_PaintAll(), PC_Color_Parse(), PlaneFromPoints(), Script_SetColor(), Script_SetItemColor(), Script_SetItemColorCvar(), Script_SetTeamColor(), Text_Paint(), Text_PaintCenter(), Text_PaintWithCursor(), UI_DrawForceStars(), UI_DrawProportionalString(), UI_DrawScaledProportionalString(), Vector4Scale(), and Window_Paint().

typedef vec_t vec5_t[5]
 

Definition at line 534 of file q_shared.h.

typedef float vec_t
 

Definition at line 530 of file q_shared.h.

Referenced by _DotProduct(), _VectorScale(), DistanceHorizontal(), DistanceHorizontalSquared(), NormalToLatLong(), Vector4Scale(), VectorNormalize(), and VectorNormalize2().

typedef unsigned short word
 

Definition at line 350 of file q_shared.h.

typedef struct wpneighbor_s wpneighbor_t
 

typedef struct wpobject_s wpobject_t
 

Referenced by BotDefendFlag(), BotGetEnemyFlag(), BotGetFlagHome(), BotHasAssociated(), CanForceJumpTo(), CreateNewWP(), CreateNewWP_FromObject(), CreateNewWP_InsertUnder(), CreateNewWP_InTrail(), CTFTakesPriority(), GetNewFlagPoint(), LoadPathData(), SiegeTakesPriority(), TransferWPData(), and trap_Bot_UpdateWaypoints().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
SABER_RED 
SABER_ORANGE 
SABER_YELLOW 
SABER_GREEN 
SABER_BLUE 
SABER_PURPLE 
NUM_SABER_COLORS 

Definition at line 577 of file q_shared.h.

00578 {
00579         SABER_RED,
00580         SABER_ORANGE,
00581         SABER_YELLOW,
00582         SABER_GREEN,
00583         SABER_BLUE,
00584         SABER_PURPLE,
00585         NUM_SABER_COLORS
00586 
00587 };

anonymous enum
 

Enumeration values:
FP_FIRST 
FP_HEAL 
FP_LEVITATION 
FP_SPEED 
FP_PUSH 
FP_PULL 
FP_TELEPATHY 
FP_GRIP 
FP_LIGHTNING 
FP_RAGE 
FP_PROTECT 
FP_ABSORB 
FP_TEAM_HEAL 
FP_TEAM_FORCE 
FP_DRAIN 
FP_SEE 
FP_SABER_OFFENSE 
FP_SABER_DEFENSE 
FP_SABERTHROW 
NUM_FORCE_POWERS 

Definition at line 590 of file q_shared.h.

00591 {
00592         FP_FIRST = 0,//marker
00593         FP_HEAL = 0,//instant
00594         FP_LEVITATION,//hold/duration
00595         FP_SPEED,//duration
00596         FP_PUSH,//hold/duration
00597         FP_PULL,//hold/duration
00598         FP_TELEPATHY,//instant
00599         FP_GRIP,//hold/duration
00600         FP_LIGHTNING,//hold/duration
00601         FP_RAGE,//duration
00602         FP_PROTECT,
00603         FP_ABSORB,
00604         FP_TEAM_HEAL,
00605         FP_TEAM_FORCE,
00606         FP_DRAIN,
00607         FP_SEE,
00608         FP_SABER_OFFENSE,
00609         FP_SABER_DEFENSE,
00610         FP_SABERTHROW,
00611         NUM_FORCE_POWERS
00612 };

anonymous enum
 

Enumeration values:
FORCE_LEVEL_0 
FORCE_LEVEL_1 
FORCE_LEVEL_2 
FORCE_LEVEL_3 
NUM_FORCE_POWER_LEVELS 

Definition at line 843 of file q_shared.h.

00844 {
00845         FORCE_LEVEL_0,
00846         FORCE_LEVEL_1,
00847         FORCE_LEVEL_2,
00848         FORCE_LEVEL_3,
00849         NUM_FORCE_POWER_LEVELS
00850 };

anonymous enum
 

Enumeration values:
MAT_METAL 
MAT_GLASS 
MAT_ELECTRICAL 
MAT_ELEC_METAL 
MAT_DRK_STONE 
MAT_LT_STONE 
MAT_GLASS_METAL 
MAT_METAL2 
MAT_NONE 
MAT_GREY_STONE 
MAT_METAL3 
MAT_CRATE1 
MAT_GRATE1 
MAT_ROPE 
MAT_CRATE2 
MAT_WHITE_METAL 
MAT_SNOWY_ROCK 
NUM_MATERIALS 

Definition at line 967 of file q_shared.h.

00968 {
00969         MAT_METAL = 0,  // scorched blue-grey metal
00970         MAT_GLASS,              // not a real chunk type, just plays an effect with glass sprites
00971         MAT_ELECTRICAL, // sparks only
00972         MAT_ELEC_METAL, // sparks/electrical type metal
00973         MAT_DRK_STONE,  // brown
00974         MAT_LT_STONE,   // tan
00975         MAT_GLASS_METAL,// glass sprites and METAl chunk
00976         MAT_METAL2,             // electrical metal type
00977         MAT_NONE,               // no chunks
00978         MAT_GREY_STONE, // grey
00979         MAT_METAL3,             // METAL and METAL2 chunks
00980         MAT_CRATE1,             // yellow multi-colored crate chunks
00981         MAT_GRATE1,             // grate chunks
00982         MAT_ROPE,               // for yavin trial...no chunks, just wispy bits
00983         MAT_CRATE2,             // read multi-colored crate chunks
00984         MAT_WHITE_METAL,// white angular chunks
00985         MAT_SNOWY_ROCK, // gray & brown chunks
00986 
00987         NUM_MATERIALS
00988 
00989 };

anonymous enum
 

Enumeration values:
CHAN_AUTO 
CHAN_LOCAL 
CHAN_WEAPON 
CHAN_VOICE 
CHAN_VOICE_ATTEN 
CHAN_ITEM 
CHAN_BODY 
CHAN_AMBIENT 
CHAN_LOCAL_SOUND 
CHAN_ANNOUNCER 
CHAN_LESS_ATTEN 
CHAN_MENU1 
CHAN_VOICE_GLOBAL 
CHAN_MUSIC 

Definition at line 1945 of file q_shared.h.

01945              {
01946         CHAN_AUTO,      //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" # Auto-picks an empty channel to play sound on
01947         CHAN_LOCAL,     //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" # menu sounds, etc
01948         CHAN_WEAPON,//## %s !!"W:\game\base\!!sound\*.wav;*.mp3" 
01949         CHAN_VOICE, //## %s !!"W:\game\base\!!sound\voice\*.wav;*.mp3" # Voice sounds cause mouth animation
01950         CHAN_VOICE_ATTEN, //## %s !!"W:\game\base\!!sound\voice\*.wav;*.mp3" # Causes mouth animation but still use normal sound falloff 
01951         CHAN_ITEM,  //## %s !!"W:\game\base\!!sound\*.wav;*.mp3"
01952         CHAN_BODY,      //## %s !!"W:\game\base\!!sound\*.wav;*.mp3"
01953         CHAN_AMBIENT,//## %s !!"W:\game\base\!!sound\*.wav;*.mp3" # added for ambient sounds
01954         CHAN_LOCAL_SOUND,       //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" #chat messages, etc
01955         CHAN_ANNOUNCER,         //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" #announcer voices, etc
01956         CHAN_LESS_ATTEN,        //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" #attenuates similar to chan_voice, but uses empty channel auto-pick behaviour
01957         CHAN_MENU1,             //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" #menu stuff, etc
01958         CHAN_VOICE_GLOBAL,  //## %s !!"W:\game\base\!!sound\voice\*.wav;*.mp3" # Causes mouth animation and is broadcast, like announcer
01959         CHAN_MUSIC,     //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" #music played as a looping sound - added by BTO (VV)
01960 };

anonymous enum
 

Enumeration values:
FMV_IDLE 
FMV_PLAY 
FMV_EOF 
FMV_ID_BLT 
FMV_ID_IDLE 
FMV_LOOPED 
FMV_ID_WAIT 

Definition at line 3032 of file q_shared.h.

03032              {
03033         FMV_IDLE,
03034         FMV_PLAY,               // play
03035         FMV_EOF,                // all other conditions, i.e. stop/EOF/abort
03036         FMV_ID_BLT,
03037         FMV_ID_IDLE,
03038         FMV_LOOPED,
03039         FMV_ID_WAIT
03040 };

anonymous enum
 

Enumeration values:
ALL 
BOTLIB 
CLIENTS 
BOTGAME 
DOWNLOAD 
GENERAL 
CLIPBOARD 
SND_MP3STREAMHDR 
SND_DYNAMICMUSIC 
BSP_DISKIMAGE 
VM 
SPECIAL_MEM_TEST 
HUNK_MARK1 
HUNK_MARK2 
EVENT 
FILESYS 
GHOUL2 
GHOUL2_GORE 
LISTFILES 
AMBIENTSET 
STATIC 
SMALL 
MODEL_MD3 
MODEL_GLM 
MODEL_GLA 
ICARUS 
ICARUS2 
ICARUS3 
ICARUS4 
ICARUS5 
SHADERTEXT 
SND_RAWDATA 
TEMP_WORKSPACE 
TEMP_PNG 
TEXTPOOL 
IMAGE_T 
INFLATE 
DEFLATE 
BSP 
GRIDMESH 
POINTCACHE 
TERRAIN 
R_TERRAIN 
RESAMPLE 
CM_TERRAIN 
CM_TERRAIN_TEMP 
TEMP_IMAGE 
VM_ALLOCATED 
TEMP_HUNKALLOC 

Definition at line 3104 of file q_shared.h.

03104              {
03105         #include "../qcommon/tags.h"
03106 };

anonymous enum
 

Enumeration values:
FONT_NONE 
FONT_SMALL 
FONT_MEDIUM 
FONT_LARGE 
FONT_SMALL2 

Definition at line 3176 of file q_shared.h.

03176      {
03177         FONT_NONE,
03178         FONT_SMALL=1,
03179         FONT_MEDIUM,
03180         FONT_LARGE,
03181         FONT_SMALL2
03182 };

enum _flag_status
 

Enumeration values:
FLAG_ATBASE 
FLAG_TAKEN 
FLAG_TAKEN_RED 
FLAG_TAKEN_BLUE 
FLAG_DROPPED 

Definition at line 3043 of file q_shared.h.

03043                           {
03044         FLAG_ATBASE = 0,
03045         FLAG_TAKEN,                     // CTF
03046         FLAG_TAKEN_RED,         // One Flag CTF
03047         FLAG_TAKEN_BLUE,        // One Flag CTF
03048         FLAG_DROPPED
03049 };

enum cbufExec_t
 

Enumeration values:
EXEC_NOW 
EXEC_INSERT 
EXEC_APPEND 

Definition at line 405 of file q_shared.h.

00405              {
00406         EXEC_NOW,                       // don't return until completed, a VM should NEVER use this,
00407                                                 // because some commands might cause the VM to be unloaded...
00408         EXEC_INSERT,            // insert at current position, but don't run yet
00409         EXEC_APPEND                     // add to end of the command buffer (normal case)
00410 } cbufExec_t;

enum connstate_t
 

Enumeration values:
CA_UNINITIALIZED 
CA_DISCONNECTED 
CA_AUTHORIZING 
CA_CONNECTING 
CA_CHALLENGING 
CA_CONNECTED 
CA_LOADING 
CA_PRIMED 
CA_ACTIVE 
CA_CINEMATIC 

Definition at line 2991 of file q_shared.h.

02991              {
02992         CA_UNINITIALIZED,
02993         CA_DISCONNECTED,        // not talking to a server
02994         CA_AUTHORIZING,         // not used any more, was checking cd key 
02995         CA_CONNECTING,          // sending request packets to the server
02996         CA_CHALLENGING,         // sending challenge packets to the server
02997         CA_CONNECTED,           // netchan_t established, getting gamestate
02998         CA_LOADING,                     // only during cgame initialization, never during main loop
02999         CA_PRIMED,                      // got gamestate, waiting for first frame
03000         CA_ACTIVE,                      // game views should be displayed
03001         CA_CINEMATIC            // playing a cinematic or a static pic, not connected to a server
03002 } connstate_t;

enum ct_table_t
 

Enumeration values:
CT_NONE 
CT_BLACK 
CT_RED 
CT_GREEN 
CT_BLUE 
CT_YELLOW 
CT_MAGENTA 
CT_CYAN 
CT_WHITE 
CT_LTGREY 
CT_MDGREY 
CT_DKGREY 
CT_DKGREY2 
CT_VLTORANGE 
CT_LTORANGE 
CT_DKORANGE 
CT_VDKORANGE 
CT_VLTBLUE1 
CT_LTBLUE1 
CT_DKBLUE1 
CT_VDKBLUE1 
CT_VLTBLUE2 
CT_LTBLUE2 
CT_DKBLUE2 
CT_VDKBLUE2 
CT_VLTBROWN1 
CT_LTBROWN1 
CT_DKBROWN1 
CT_VDKBROWN1 
CT_VLTGOLD1 
CT_LTGOLD1 
CT_DKGOLD1 
CT_VDKGOLD1 
CT_VLTPURPLE1 
CT_LTPURPLE1 
CT_DKPURPLE1 
CT_VDKPURPLE1 
CT_VLTPURPLE2 
CT_LTPURPLE2 
CT_DKPURPLE2 
CT_VDKPURPLE2 
CT_VLTPURPLE3 
CT_LTPURPLE3 
CT_DKPURPLE3 
CT_VDKPURPLE3 
CT_VLTRED1 
CT_LTRED1 
CT_DKRED1 
CT_VDKRED1 
CT_VDKRED 
CT_DKRED 
CT_VLTAQUA 
CT_LTAQUA 
CT_DKAQUA 
CT_VDKAQUA 
CT_LTPINK 
CT_DKPINK 
CT_LTCYAN 
CT_DKCYAN 
CT_LTBLUE3 
CT_BLUE3 
CT_DKBLUE3 
CT_HUD_GREEN 
CT_HUD_RED 
CT_ICON_BLUE 
CT_NO_AMMO_RED 
CT_HUD_ORANGE 
CT_MAX 

Definition at line 1044 of file q_shared.h.

01045 {
01046 CT_NONE,
01047 CT_BLACK,
01048 CT_RED,
01049 CT_GREEN,
01050 CT_BLUE,
01051 CT_YELLOW,
01052 CT_MAGENTA,
01053 CT_CYAN,
01054 CT_WHITE,
01055 CT_LTGREY,
01056 CT_MDGREY,
01057 CT_DKGREY,
01058 CT_DKGREY2,
01059 
01060 CT_VLTORANGE,
01061 CT_LTORANGE,
01062 CT_DKORANGE,
01063 CT_VDKORANGE,
01064 
01065 CT_VLTBLUE1,
01066 CT_LTBLUE1,
01067 CT_DKBLUE1,
01068 CT_VDKBLUE1,
01069 
01070 CT_VLTBLUE2,
01071 CT_LTBLUE2,
01072 CT_DKBLUE2,
01073 CT_VDKBLUE2,
01074 
01075 CT_VLTBROWN1,
01076 CT_LTBROWN1,
01077 CT_DKBROWN1,
01078 CT_VDKBROWN1,
01079 
01080 CT_VLTGOLD1,
01081 CT_LTGOLD1,
01082 CT_DKGOLD1,
01083 CT_VDKGOLD1,
01084 
01085 CT_VLTPURPLE1,
01086 CT_LTPURPLE1,
01087 CT_DKPURPLE1,
01088 CT_VDKPURPLE1,
01089 
01090 CT_VLTPURPLE2,
01091 CT_LTPURPLE2,
01092 CT_DKPURPLE2,
01093 CT_VDKPURPLE2,
01094 
01095 CT_VLTPURPLE3,
01096 CT_LTPURPLE3,
01097 CT_DKPURPLE3,
01098 CT_VDKPURPLE3,
01099 
01100 CT_VLTRED1,
01101 CT_LTRED1,
01102 CT_DKRED1,
01103 CT_VDKRED1,
01104 CT_VDKRED,
01105 CT_DKRED,
01106 
01107 CT_VLTAQUA,
01108 CT_LTAQUA,
01109 CT_DKAQUA,
01110 CT_VDKAQUA,
01111 
01112 CT_LTPINK,
01113 CT_DKPINK,
01114 CT_LTCYAN,
01115 CT_DKCYAN,
01116 CT_LTBLUE3,
01117 CT_BLUE3,
01118 CT_DKBLUE3,
01119 
01120 CT_HUD_GREEN,
01121 CT_HUD_RED,
01122 CT_ICON_BLUE,
01123 CT_NO_AMMO_RED,
01124 CT_HUD_ORANGE,
01125 
01126 CT_MAX
01127 } ct_table_t;

enum Eorientations
 

Enumeration values:
ORIGIN 
POSITIVE_X 
POSITIVE_Z 
POSITIVE_Y 
NEGATIVE_X 
NEGATIVE_Z 
NEGATIVE_Y 

Definition at line 3086 of file q_shared.h.

03087 {
03088         ORIGIN = 0, 
03089         POSITIVE_X,
03090         POSITIVE_Z,
03091         POSITIVE_Y,
03092         NEGATIVE_X,
03093         NEGATIVE_Z,
03094         NEGATIVE_Y
03095 };

enum errorParm_t
 

Enumeration values:
ERR_FATAL 
ERR_DROP 
ERR_SERVERDISCONNECT 
ERR_DISCONNECT 
ERR_NEED_CD 

Definition at line 451 of file q_shared.h.

00451              {
00452         ERR_FATAL,                                      // exit the entire game with a popup window
00453         ERR_DROP,                                       // print to console and disconnect from game
00454         ERR_SERVERDISCONNECT,           // don't kill server
00455         ERR_DISCONNECT,                         // client disconnected from the server
00456         ERR_NEED_CD                                     // pop up the need-cd dialog
00457 } errorParm_t;

enum ForceReload_e
 

Enumeration values:
eForceReload_NOTHING 
eForceReload_MODELS 
eForceReload_ALL 

Definition at line 3166 of file q_shared.h.

03167 {
03168         eForceReload_NOTHING,
03169 //      eForceReload_BSP,       // not used in MP codebase
03170         eForceReload_MODELS,
03171         eForceReload_ALL
03172 
03173 } ForceReload_e;

enum fsMode_t
 

Enumeration values:
FS_READ 
FS_WRITE 
FS_APPEND 
FS_APPEND_SYNC 

Definition at line 1685 of file q_shared.h.

01685              {
01686         FS_READ,
01687         FS_WRITE,
01688         FS_APPEND,
01689         FS_APPEND_SYNC
01690 } fsMode_t;

enum fsOrigin_t
 

Enumeration values:
FS_SEEK_CUR 
FS_SEEK_END 
FS_SEEK_SET 

Definition at line 1692 of file q_shared.h.

01692              {
01693         FS_SEEK_CUR,
01694         FS_SEEK_END,
01695         FS_SEEK_SET
01696 } fsOrigin_t;

enum genCmds_t
 

Enumeration values:
GENCMD_SABERSWITCH 
GENCMD_ENGAGE_DUEL 
GENCMD_FORCE_HEAL 
GENCMD_FORCE_SPEED 
GENCMD_FORCE_THROW 
GENCMD_FORCE_PULL 
GENCMD_FORCE_DISTRACT 
GENCMD_FORCE_RAGE 
GENCMD_FORCE_PROTECT 
GENCMD_FORCE_ABSORB 
GENCMD_FORCE_HEALOTHER 
GENCMD_FORCE_FORCEPOWEROTHER 
GENCMD_FORCE_SEEING 
GENCMD_USE_SEEKER 
GENCMD_USE_FIELD 
GENCMD_USE_BACTA 
GENCMD_USE_ELECTROBINOCULARS 
GENCMD_ZOOM 
GENCMD_USE_SENTRY 
GENCMD_USE_JETPACK 
GENCMD_USE_BACTABIG 
GENCMD_USE_HEALTHDISP 
GENCMD_USE_AMMODISP 
GENCMD_USE_EWEB 
GENCMD_USE_CLOAK 
GENCMD_SABERATTACKCYCLE 
GENCMD_TAUNT 
GENCMD_BOW 
GENCMD_MEDITATE 
GENCMD_FLOURISH 
GENCMD_GLOAT 

Definition at line 2488 of file q_shared.h.

enum ha_pref
 

Enumeration values:
h_high 
h_low 
h_dontcare 

Definition at line 504 of file q_shared.h.

00504              {
00505         h_high,
00506         h_low,
00507         h_dontcare
00508 } ha_pref;

enum itemUseFail_t
 

Enumeration values:
SENTRY_NOROOM 
SENTRY_ALREADYPLACED 
SHIELD_NOROOM 
SEEKER_ALREADYDEPLOYED 

Definition at line 2126 of file q_shared.h.

enum printParm_t
 

Enumeration values:
PRINT_ALL 
PRINT_DEVELOPER 
PRINT_WARNING 
PRINT_ERROR 

Definition at line 438 of file q_shared.h.

00438              {
00439         PRINT_ALL,
00440         PRINT_DEVELOPER,                // only print when "developer 1"
00441         PRINT_WARNING,
00442         PRINT_ERROR
00443 } printParm_t;

enum qboolean
 

Enumeration values:
qfalse 
qtrue 

Definition at line 353 of file q_shared.h.

Referenced by _UI_IsFullscreen(), _UI_SetActiveMenu(), AI_CheckEnemyCollision(), AI_FindSelfInPreviousGroup(), AI_GetNextEmptyGroup(), AI_GroupContainsEntNum(), AI_GroupMemberKilled(), AI_RefreshGroup(), AI_SortGroupByPathCostToEnemy(), AI_TryJoinPreviousGroup(), AI_ValidateGroupMember(), AI_ValidateNoEnemyGroupMember(), ammo_generic_power_converter_use(), ammo_power_converter_use(), Asset_Parse(), ATST_Attack(), BG_AddPredictableEventToPlayerstate(), BG_CanItemBeGrabbed(), BG_CanUseFPNow(), BG_CheckIncrementLockAnim(), BG_CrouchAnim(), BG_DirectFlippingAnim(), BG_EnoughForcePowerForMove(), BG_FighterUpdate(), BG_FileExists(), BG_FlippingAnim(), BG_FullBodyTauntAnim(), BG_GetRootSurfNameWithVariant(), BG_HasAnimation(), BG_HasYsalamiri(), BG_InBackFlip(), BG_InDeathAnim(), BG_InExtraDefenseSaberMove(), BG_InKataAnim(), BG_InKnockDown(), BG_InKnockDownOnGround(), BG_InKnockDownOnly(), BG_InReboundHold(), BG_InReboundJump(), BG_InReboundRelease(), BG_InRoll(), BG_InRoll2(), BG_InRollAnim(), BG_InRollES(), BG_InSaberLock(), BG_InSaberLockOld(), BG_InSaberStandAnim(), BG_InSlopeAnim(), BG_InSpecialDeathAnim(), BG_InSpecialJump(), BG_IsItemSelectable(), BG_IsValidCharacterModel(), BG_KickingAnim(), BG_KickMove(), BG_KnockDownable(), BG_LegalizedForcePowers(), BG_OutOfMemory(), BG_ParseAnimationFile(), BG_ParseLiteral(), BG_PlayerTouchesItem(), BG_SaberInAttack(), BG_SaberInAttackPure(), BG_SaberInIdle(), BG_SaberInKata(), BG_SaberInReturn(), BG_SaberInSpecial(), BG_SaberInSpecialAttack(), BG_SaberInTransitionAny(), BG_SaberLockBreakAnim(), BG_SabersOff(), BG_SaberStanceAnim(), BG_SI_Active(), BG_SiegeCheckClassLegality(), BG_SiegeGetPairedValue(), BG_SiegeGetValueGroup(), BG_SiegeParseTeamFile(), BG_SiegeTranslateForcePowers(), BG_SpinningSaberAnim(), BG_StabDownAnim(), BG_SuperBreakLoseAnim(), BG_SuperBreakWinAnim(), BG_UnrestrainedPitchRoll(), BG_ValidateSkinForTeam(), Boba_FireDecide(), Boba_Flying(), Boba_StopKnockdown(), body_die(), BotCTFGuardDuty(), BotPVSCheck(), BotWeaponSelectable(), CalculateDemolitionist(), CalculateEfficiency(), CalculateLogistics(), CalculateSection31Award(), CalculateSharpshooter(), CalculateTactician(), CalculateTeamCarrier(), CalculateTeamDefender(), CalculateTeamInterceptor(), CalculateTeamMVP(), CalculateTeamMVPByRank(), CalculateTeamRedShirt(), CalculateTeamWarrior(), CalculateUntouchable(), CanCounterThrow(), CanDamage(), CanGetToVectorTravel(), CanSee(), CanShoot(), CG_AddSaberBlade(), CG_Asset_Parse(), CG_BloodPool(), CG_BracketEntity(), CG_CalcEntityLerpPositions(), CG_CalcFOVFromX(), CG_CalcMuzzlePoint(), CG_CalcVehicleMuzzlePoint(), CG_CheckPassengerTurretView(), CG_CheckTargetVehicle(), CG_Chunks(), CG_ConsoleCommand(), CG_CopyG2WeaponInstance(), CG_DeferMenuScript(), CG_DoGlass(), CG_DrawActiveFrame(), CG_DrawForcePower(), CG_DrawOldScoreboard(), CG_DrawRadar(), CG_DrawVehicleHud(), CG_DrawVehicleWeaponsLinked(), CG_DrawWeaponSelect(), CG_EntityEvent(), CG_G2PlayerHeadAnims(), CG_G2SaberEffects(), CG_G2TraceCollide(), CG_GreyItem(), CG_InATST(), CG_InFighter(), CG_Init_CG(), CG_InRoll(), CG_InRollAnim(), CG_Load_Menu(), CG_LoadCISounds(), CG_LoadClientInfo(), CG_MissileHitPlayer(), CG_NewClientInfo(), CG_NoUseableForce(), CG_OtherTeamHasFlag(), CG_OwnerDrawVisible(), CG_ParseSpawnVars(), CG_ParseSurfsFile(), CG_ParticleSnowFlurry(), CG_Player(), CG_PlayerAnimEvents(), CG_PredictPlayerState(), CG_RagDoll(), CG_S_AddLoopingSound(), CG_SaberCompWork(), CG_SiegeBriefingDisplay(), CG_ThereIsAMaster(), CG_UsingEWeb(), CG_VehicleAttachDroidUnit(), CG_VehicleShouldDrawShields(), CG_VehicleWeaponImpact(), CG_WeaponCheck(), CG_WorldCoordToScreenCoord(), CG_WorldCoordToScreenCoordFloat(), CG_YourTeamHasFlag(), CheatsOk(), CheatsOn(), CheckExitRules(), CheckItemCanBePickedUpByNPC(), CheckTournament(), ClientCommand(), ClientEndFrame(), ClientEvents(), ClientInactivityTimer(), ClientSpawn(), ClientThink_real(), ClientUserinfoChanged(), Cmd_Give_f(), Cmd_SaberAttackCycle_f(), Cmd_SiegeClass_f(), Color_Parse(), COM_Compress(), COM_ParseExt(), COM_ParseFloat(), COM_ParseInt(), COM_ParseString(), COM_ParseVec4(), ConsoleCommand(), coplanar_tri_tri(), CreateShield(), Display_KeyBindPending(), Display_MouseMove(), DoImpact(), DownedSaberThink(), DuelLimitHit(), Eject(), EntIsGlass(), EWebThink(), FighterIsInSpace(), FighterIsLanded(), FighterIsLanding(), FighterIsLaunching(), FighterOverValidLandingSurface(), FighterSuspended(), FireVehicleWeapon(), Float_Parse(), FlyingCreature(), ForcePower_Valid(), ForceTelepathy(), ForceTelepathyCheckDirectNPCTarget(), ForceThrow(), G_ActionButtonPressed(), G_ActivateBehavior(), G_BackwardAttachment(), G_BotConnect(), G_BoundsOverlap(), G_BoxInBounds(), G_CallSpawn(), G_CanBeEnemy(), G_CanDisruptify(), G_CanResetDuelists(), G_CheckClientIdle(), G_CheckForDanger(), G_CheckInSolid(), G_ClearLineOfSight(), G_ClearLOS(), G_ClearLOS2(), G_ClearLOS3(), G_ClearLOS4(), G_ClearLOS5(), G_ClearTrace(), G_DoesMapSupportGametype(), G_EntIsBreakable(), G_EntIsDoor(), G_EntIsRemovableUsable(), G_EntIsUnlockedDoor(), G_EntitiesFree(), G_ExpandPointToBBox(), G_FilterPacket(), G_FindClosestPointOnLineSegment(), G_GetHitLocFromSurfName(), G_HeavyMelee(), G_InGetUpAnim(), G_InKnockDown(), G_IsMindTricked(), G_MissileImpact(), G_MoverPush(), G_NameInTriggerClassList(), G_OtherPlayersDueling(), G_ParseAnimFileSet(), G_ParseSpawnVars(), G_PlayerHasCustomSkeleton(), G_PointInBounds(), G_PowerDuelCheckFail(), G_RadiusDamage(), G_ReadSessionData(), G_RefreshNextMap(), G_RegisterCvars(), G_RunExPhys(), G_RunMissile(), G_SaberModelSetup(), G_SetSaber(), G_SiegeGetCompletionStatus(), G_SpawnFloat(), G_SpawnInt(), G_SpawnString(), G_SpawnVector(), G_SpecialRollGetup(), G_SPSaberDamageTraceLerped(), G_StandingAnim(), G_TeamEnemy(), G_ThereIsAMaster(), G_TryPushingEntity(), G_UpdateClientAnims(), G_UpdateCvars(), Grenadier_EvaluateShot(), HasSetSaberOnly(), HaveWeapon(), Howler_Combat(), ImperialProbe_AttackDecision(), Info_Validate(), InFOV(), InFOV2(), InFOV3(), InFront(), InitMover(), Int_Parse(), Interrogator_Attack(), InVisrange(), IsVisible(), Item_Bind_HandleKey(), Item_EnableShowViaCvar(), Item_HandleAccept(), Item_HandleKey(), Item_ListBox_HandleKey(), Item_Multi_HandleKey(), Item_OwnerDraw_HandleKey(), Item_Parse(), Item_RunScript(), Item_SetFocus(), Item_Slider_HandleKey(), Item_TextField_HandleKey(), Item_TextScroll_HandleKey(), Item_YesNo_HandleKey(), ItemParse_action(), ItemParse_addColorRange(), ItemParse_align(), ItemParse_Appearance_slot(), ItemParse_asset_model(), ItemParse_asset_model_go(), ItemParse_asset_shader(), ItemParse_autowrapped(), ItemParse_backcolor(), ItemParse_background(), ItemParse_border(), ItemParse_bordercolor(), ItemParse_bordersize(), ItemParse_cinematic(), ItemParse_columns(), ItemParse_cvar(), ItemParse_cvarFloat(), ItemParse_cvarFloatList(), ItemParse_cvarStrList(), ItemParse_cvarTest(), ItemParse_decoration(), ItemParse_descText(), ItemParse_disableCvar(), ItemParse_doubleClick(), ItemParse_elementheight(), ItemParse_elementtype(), ItemParse_elementwidth(), ItemParse_enableCvar(), ItemParse_feeder(), ItemParse_flag(), ItemParse_focusSound(), ItemParse_font(), ItemParse_forecolor(), ItemParse_group(), ItemParse_hideCvar(), ItemParse_horizontalscroll(), ItemParse_invertyesno(), ItemParse_isCharacter(), ItemParse_isSaber(), ItemParse_isSaber2(), ItemParse_leaveFocus(), ItemParse_lineHeight(), ItemParse_maxChars(), ItemParse_maxLineChars(), ItemParse_maxPaintChars(), ItemParse_model_angle(), ItemParse_model_fovx(), ItemParse_model_fovy(), ItemParse_model_g2anim(), ItemParse_model_g2anim_go(), ItemParse_model_g2maxs(), ItemParse_model_g2mins(), ItemParse_model_g2scale(), ItemParse_model_g2skin(), ItemParse_model_g2skin_go(), ItemParse_model_origin(), ItemParse_model_rotation(), ItemParse_mouseEnter(), ItemParse_mouseEnterText(), ItemParse_mouseExit(), ItemParse_mouseExitText(), ItemParse_name(), ItemParse_notselectable(), ItemParse_onFocus(), ItemParse_outlinecolor(), ItemParse_ownerdraw(), ItemParse_ownerdrawFlag(), ItemParse_rect(), ItemParse_rectcvar(), ItemParse_scrollhidden(), ItemParse_showCvar(), ItemParse_special(), ItemParse_style(), ItemParse_text(), ItemParse_text2(), ItemParse_text2alignx(), ItemParse_text2aligny(), ItemParse_textalign(), ItemParse_textalignx(), ItemParse_textaligny(), ItemParse_textscale(), ItemParse_textstyle(), ItemParse_type(), ItemParse_visible(), ItemParse_wrapped(), ItemParse_xoffset(), Jedi_CanPullBackSaber(), Jedi_CheckAmbushPlayer(), Jedi_CheckDanger(), Jedi_CheckFlipEvasions(), Jedi_DodgeEvasion(), Jedi_QuickReactions(), Jedi_SaberBlockGo(), Jedi_SaberBusy(), Jedi_WaitingAmbush(), Load_Menu(), LogAccuracyHit(), MaintainBodyQueue(), Mark1_AttackDecision(), Mark2_AttackDecision(), Menu_HandleKey(), Menu_HandleMouseMove(), Menu_Parse(), Menu_SetNextCursorItem(), Menu_SetPrevCursorItem(), MenuParse_appearanceIncrement(), MenuParse_backcolor(), MenuParse_background(), MenuParse_border(), MenuParse_bordercolor(), MenuParse_borderSize(), MenuParse_cinematic(), MenuParse_descAlignment(), MenuParse_descColor(), MenuParse_descScale(), MenuParse_descX(), MenuParse_descY(), MenuParse_disablecolor(), MenuParse_fadeAmount(), MenuParse_fadeClamp(), MenuParse_fadeCycle(), MenuParse_focuscolor(), MenuParse_font(), MenuParse_forecolor(), MenuParse_fullscreen(), MenuParse_itemDef(), MenuParse_name(), MenuParse_onAccept(), MenuParse_onClose(), MenuParse_onESC(), MenuParse_onOpen(), MenuParse_outlinecolor(), MenuParse_outOfBounds(), MenuParse_ownerdraw(), MenuParse_ownerdrawFlag(), MenuParse_popup(), MenuParse_rect(), MenuParse_soundLoop(), MenuParse_style(), MenuParse_visible(), Menus_AnyFullScreenVisible(), MineMonster_Combat(), multi_trigger(), NAV_AvoidCollision(), NAV_Bypass(), NAV_CheckAhead(), NAV_CheckNodeFailedForEnt(), NAV_ClearPathToPoint(), NAV_HitNavGoal(), NAV_MicroError(), NAV_MoveBlocker(), NAV_ResolveBlock(), NAV_ResolveEntityCollision(), NAV_StackedCanyon(), NAV_TestForBlocked(), NAV_TrueCollision(), NAV_WaypointsTooFar(), NAVNEW_AvoidCollision(), NAVNEW_Bypass(), NAVNEW_CheckDoubleBlock(), NAVNEW_DanceWithBlocker(), NAVNEW_MoveToGoal(), NAVNEW_ResolveEntityCollision(), NAVNEW_SidestepBlocker(), NAVNEW_TestNodeConnectionBlocked(), NPC_BSAdvanceFight(), NPC_BSDefault(), NPC_BSEmplaced(), NPC_BSFlee(), NPC_BSGM_Attack(), NPC_BSHuntAndKill(), NPC_CheckAttack(), NPC_CheckCanAttack(), NPC_CheckCanAttackExt(), NPC_CheckCombatMove(), NPC_CheckDefend(), NPC_CheckEnemy(), NPC_CheckEnemyExt(), NPC_CheckEnemyStealth(), NPC_CheckForDanger(), NPC_CheckInvestigate(), NPC_CheckLookTarget(), NPC_CheckPlayerTeamStealth(), NPC_CheckSurrender(), NPC_ClearLOS(), NPC_ClearLOS2(), NPC_ClearLOS3(), NPC_ClearLOS4(), NPC_ClearLOS5(), NPC_ClearPathToGoal(), NPC_ClearShot(), NPC_EnemyTooFar(), NPC_EvaluateShot(), NPC_FaceEnemy(), NPC_FaceEntity(), NPC_FacePosition(), NPC_FindEnemy(), NPC_FindPlayer(), NPC_FreeCombatPoint(), NPC_GetMoveDirection(), NPC_GetMoveDirectionAltRoute(), NPC_GetMoveInformation(), NPC_Kill_f(), NPC_MoveDirClear(), NPC_MoveToGoal(), NPC_ParseParms(), NPC_PickEnemy(), NPC_Precache(), NPC_Rancor_Pain(), NPC_ReserveCombatPoint(), NPC_Respond(), NPC_RunBehavior(), NPC_SetCombatPoint(), NPC_SetSurfaceOnOff(), NPC_SlideMoveToGoal(), NPC_SomeoneLookingAtMe(), NPC_Spawn_f(), NPC_SpotWouldTelefrag(), NPC_StandTrackAndShoot(), NPC_TargetVisible(), NPC_UpdateAngles(), NPC_UpdateFiringAngles(), NPC_ValidEnemy(), NPC_VehiclePrecache(), NPC_Wampa_Pain(), OnSameTeam(), P_WorldEffects(), ParseRect(), pas_adjust_enemy(), pas_think(), PC_Color_Parse(), PC_Float_Parse(), PC_Int_Parse(), PC_Rect_Parse(), PC_Script_Parse(), PC_String_Parse(), PlaceShield(), PlaneFromPoints(), player_die(), PM_AdjustAngleForWallJump(), PM_AdjustAngleForWallRun(), PM_AdjustAngleForWallRunUp(), PM_AdjustAnglesForWallRunUpFlipAlt(), PM_AdjustStandAnimForSlope(), PM_CanBackstab(), PM_CanDoKata(), PM_CanDoRollStab(), PM_CanRollFromSoulCal(), PM_CanSetWeaponAnims(), PM_CheckAltKickAttack(), PM_CheckDualForwardJumpDuck(), PM_CheckPullAttack(), PM_DoSlowFall(), PM_ForceJumpingUp(), PM_GroundSlideOkay(), PM_InCartwheel(), PM_InKnockDown(), PM_InOnGroundAnim(), PM_InRollComplete(), PM_InSaberAnim(), PM_InSecondaryStyle(), PM_IsRocketTrooper(), PM_JumpingAnim(), PM_LandingAnim(), PM_PainAnim(), PM_RollingAnim(), PM_RunningAnim(), PM_SaberAttackForMovement(), PM_SaberInBounce(), PM_SaberInBrokenParry(), PM_SaberInDeflect(), PM_SaberInKnockaway(), PM_SaberInParry(), PM_SaberInReflect(), PM_SaberInReturn(), PM_SaberInStart(), PM_SaberInTransition(), PM_SaberKataDone(), PM_SaberLockBreak(), PM_SaberMoveOkayForKata(), PM_SaberPowerCheck(), PM_SlideMove(), PM_SomeoneInFront(), PM_SpinningAnim(), PM_StepSlideMove(), PM_SwimmingAnim(), PM_VehicleImpact(), PM_VehicleViewAngles(), PM_WalkingAnim(), PM_WeaponLightsaber(), PM_WeaponOkOnVehicle(), PmoveSingle(), prox_mine_think(), Q3_PlaySound(), Q3_Set(), Rancor_CheckRoar(), Rancor_Combat(), ReachedGoal(), Rect_ContainsPoint(), Rect_Parse(), Remote_Attack(), RemoveOldestAlert(), saberCheckKnockdown_BrokenParry(), saberCheckKnockdown_DuelLoss(), saberCheckKnockdown_Smashed(), saberCheckKnockdown_Thrown(), saberKnockOutOfHand(), ScanForEnemies(), ScoreIsTied(), Script_Close(), Script_Defer(), Script_Disable(), Script_Exec(), Script_FadeIn(), Script_FadeOut(), Script_Hide(), Script_Open(), Script_Orbit(), Script_Play(), Script_playLooped(), Script_RunDeferred(), Script_Scale(), Script_SetAsset(), Script_SetBackground(), Script_SetColor(), Script_SetCvar(), Script_SetCvarToCvar(), Script_SetFocus(), Script_SetItemBackground(), Script_SetItemColor(), Script_SetItemColorCvar(), Script_SetItemRect(), Script_SetItemRectCvar(), Script_SetItemText(), Script_SetPlayerModel(), Script_SetTeamColor(), Script_Show(), Script_Transition(), Script_Transition2(), Script_Transition3(), Seeker_Attack(), SelectRandomTeamSpawnPoint(), Sentry_AttackDecision(), SetTeam(), ShortestLineSegBewteen2LineSegs(), ShotThroughGlass(), SiegeBeginRound(), Sniper_EvaluateShot(), Sniper_FaceEnemy(), SP_bsp_worldspawn(), SpotWouldTelefrag(), SpotWouldTelefrag2(), ST_Commander(), StandardBotAI(), strap_G2API_GetBoltMatrix(), strap_G2API_GetBoltMatrix_NoRecNoRot(), strap_G2API_GetBoltMatrix_NoReconstruct(), strap_G2API_GetBoneAnim(), strap_G2API_IKMove(), strap_G2API_SetBoneAngles(), strap_G2API_SetBoneAnim(), strap_G2API_SetBoneIKState(), String_Parse(), target_relay_use(), Team_GetLocationMsg(), Team_SetFlagStatus(), TeleportPlayer(), TIMER_Done(), TIMER_Done2(), TIMER_Exists(), TIMER_Start(), Touch_Item(), trap_AreasConnected(), trap_EntityContact(), trap_EntityContactCapsule(), trap_FX_FreeSystem(), trap_G2_HaveWeGhoul2Models(), trap_G2API_AttachEnt(), trap_G2API_AttachG2Model(), trap_G2API_DoesBoneExist(), trap_G2API_GetBoltMatrix(), trap_G2API_GetBoltMatrix_NoRecNoRot(), trap_G2API_GetBoltMatrix_NoReconstruct(), trap_G2API_GetBoneAnim(), trap_G2API_GetBoneFrame(), trap_G2API_GetRagBonePos(), trap_G2API_HasGhoul2ModelOnIndex(), trap_G2API_IKMove(), trap_G2API_OverrideServer(), trap_G2API_RagEffectorGoal(), trap_G2API_RagEffectorKick(), trap_G2API_RagForceSolve(), trap_G2API_RagPCJConstraint(), trap_G2API_RagPCJGradientSpeed(), trap_G2API_RemoveBone(), trap_G2API_RemoveGhoul2Model(), trap_G2API_RemoveGhoul2Models(), trap_G2API_SetBoneAngles(), trap_G2API_SetBoneAnim(), trap_G2API_SetBoneIKState(), trap_G2API_SetNewOrigin(), trap_G2API_SetRootSurface(), trap_G2API_SetSkin(), trap_G2API_SetSurfaceOnOff(), trap_G2API_SkinlessModel(), trap_GetDefaultState(), trap_GetEntityToken(), trap_GetServerCommand(), trap_GetSnapshot(), trap_GetUserCmd(), trap_ICARUS_IsInitialized(), trap_ICARUS_IsRunning(), trap_ICARUS_MaintainTaskManager(), trap_ICARUS_RegisterScript(), trap_ICARUS_TaskIDPending(), trap_ICARUS_ValidEnt(), trap_InPVS(), trap_InPVSIgnorePortals(), trap_Key_GetOverstrikeMode(), trap_Key_IsDown(), trap_LAN_UpdateVisiblePings(), trap_Language_IsAsian(), trap_Language_UsesSpaces(), trap_Nav_CheckFailedEdge(), trap_Nav_Connected(), trap_Nav_GetPathsCalculated(), trap_Nav_Load(), trap_Nav_NodeFailed(), trap_Nav_NodesAreNeighbors(), trap_Nav_RouteBlocked(), trap_Nav_Save(), trap_R_InitWireframeAutomap(), trap_R_inPVS(), trap_ROFF_Clean(), trap_ROFF_Play(), trap_ROFF_Purge_Ent(), tri_tri_intersect(), TryGrapple(), TryHeal(), turret_base_spawn_top(), turret_base_think(), turretG2_base_think(), UI_ConsoleCommand(), UI_CursorInRect(), UI_FeederSelection(), UI_ForceMaxRank_HandleKey(), UI_ForcePowerRank_HandleKey(), UI_ForceSide_HandleKey(), UI_HasSetSaberOnly(), UI_hasSkinForBase(), UI_IsSaberTwoHanded(), UI_JediNonJedi_HandleKey(), UI_LoadForceConfig_List(), UI_OutOfMemory(), UI_ParseLiteral(), UI_ParseLiteralSilent(), UI_ReadLegalForce(), UI_SaberDrawBlade(), UI_SaberModelForSaber(), UI_SaberParseParm(), UI_SaberProperNameForSaber(), UI_SaberShouldDrawBlade(), UI_SaberSkinForSaber(), UI_SaberTypeForSaber(), UI_SaberValidForPlayerInMP(), UI_SaveForceTemplate(), UI_SkinColor_HandleKey(), UI_TrueJediEnabled(), UpdateForceStatus(), UpdateForceUsed(), UpdateTournamentInfo(), Use_Target_Screenshake(), ValidBloodPool(), ValidEnemy(), ValidUseTarget(), VEH_TurretAim(), VEH_TurretThink(), Wampa_CheckRoar(), Wampa_Combat(), WP_DisruptorAltFire(), WP_ForcePowerAvailable(), WP_ForcePowerInUse(), WP_ForcePowerStart(), WP_ForcePowersUpdate(), WP_ForcePowerUsable(), WP_HasForcePowers(), WP_InitForcePowers(), WP_LobFire(), WP_ResistForcePush(), WP_SaberBladeDoTransitionDamage(), WP_SaberBladeUseSecondBladeStyle(), WP_SaberCanBlock(), WP_SaberCanTurnOffSomeBlades(), WP_SaberDoHit(), WP_SaberParseParm(), WP_SaberParseParms(), WP_SaberPositionUpdate(), WP_SabersCheckLock(), WP_SabersIntersect(), WP_SaberStartMissileBlockCheck(), WP_SaberStyleValidForSaber(), WP_SaberValidForPlayerInMP(), WP_UseFirstValidSaberStyle(), and WP_VehCheckTraceFromCamPos().

00353 {qfalse, qtrue} qboolean;

enum saber_styles_t
 

Enumeration values:
SS_NONE 
SS_FAST 
SS_MEDIUM 
SS_STRONG 
SS_DESANN 
SS_TAVION 
SS_DUAL 
SS_STAFF 
SS_NUM_SABER_STYLES 

Definition at line 672 of file q_shared.h.

Referenced by TranslateSaberStyle().

00673 {
00674         SS_NONE = 0,
00675         SS_FAST,
00676         SS_MEDIUM,
00677         SS_STRONG,
00678         SS_DESANN,
00679         SS_TAVION,
00680         SS_DUAL,
00681         SS_STAFF,
00682         SS_NUM_SABER_STYLES
00683 } saber_styles_t;

enum saberBlockedType_t
 

Enumeration values:
BLOCKED_NONE 
BLOCKED_BOUNCE_MOVE 
BLOCKED_PARRY_BROKEN 
BLOCKED_ATK_BOUNCE 
BLOCKED_UPPER_RIGHT 
BLOCKED_UPPER_LEFT 
BLOCKED_LOWER_RIGHT 
BLOCKED_LOWER_LEFT 
BLOCKED_TOP 
BLOCKED_UPPER_RIGHT_PROJ 
BLOCKED_UPPER_LEFT_PROJ 
BLOCKED_LOWER_RIGHT_PROJ 
BLOCKED_LOWER_LEFT_PROJ 
BLOCKED_TOP_PROJ 

Definition at line 558 of file q_shared.h.

enum saberBlockType_t
 

Enumeration values:
BLK_NO 
BLK_TIGHT 
BLK_WIDE 

Definition at line 552 of file q_shared.h.

00552              {
00553         BLK_NO,
00554         BLK_TIGHT,              // Block only attacks and shots around the saber itself, a bbox of around 12x12x12
00555         BLK_WIDE                // Block all attacks in an area around the player in a rough arc of 180 degrees
00556 } saberBlockType_t;

enum saberType_t
 

Enumeration values:
SABER_NONE 
SABER_SINGLE 
SABER_STAFF 
SABER_DAGGER 
SABER_BROAD 
SABER_PRONG 
SABER_ARC 
SABER_SAI 
SABER_CLAW 
SABER_LANCE 
SABER_STAR 
SABER_TRIDENT 
SABER_SITH_SWORD 
NUM_SABERS 

Definition at line 615 of file q_shared.h.

Referenced by TranslateSaberType(), UI_GetSaberForMenu(), UI_SaberDrawBlades(), and WP_SaberParseParms().

00616 {
00617         SABER_NONE = 0,
00618         SABER_SINGLE,
00619         SABER_STAFF,
00620         SABER_DAGGER,
00621         SABER_BROAD,
00622         SABER_PRONG,
00623         SABER_ARC,
00624         SABER_SAI,
00625         SABER_CLAW,
00626         SABER_LANCE,
00627         SABER_STAR,
00628         SABER_TRIDENT,
00629         SABER_SITH_SWORD,
00630         NUM_SABERS
00631 } saberType_t;

enum sharedEIKMoveState
 

Enumeration values:
IKS_NONE 
IKS_DYNAMIC 

Definition at line 960 of file q_shared.h.

00961 {
00962         IKS_NONE = 0,
00963         IKS_DYNAMIC
00964 };

enum sharedERagEffector
 

Enumeration values:
RE_MODEL_ROOT 
RE_PELVIS 
RE_LOWER_LUMBAR 
RE_UPPER_LUMBAR 
RE_THORACIC 
RE_CRANIUM 
RE_RHUMEROUS 
RE_LHUMEROUS 
RE_RRADIUS 
RE_LRADIUS 
RE_RFEMURYZ 
RE_LFEMURYZ 
RE_RTIBIA 
RE_LTIBIA 
RE_RHAND 
RE_LHAND 
RE_RTARSAL 
RE_LTARSAL 
RE_RTALUS 
RE_LTALUS 
RE_RRADIUSX 
RE_LRADIUSX 
RE_RFEMURX 
RE_LFEMURX 
RE_CEYEBROW 

Definition at line 867 of file q_shared.h.

00868 {
00869         RE_MODEL_ROOT=                  0x00000001, //"model_root"
00870         RE_PELVIS=                              0x00000002, //"pelvis"
00871         RE_LOWER_LUMBAR=                0x00000004, //"lower_lumbar"
00872         RE_UPPER_LUMBAR=                0x00000008, //"upper_lumbar"
00873         RE_THORACIC=                    0x00000010, //"thoracic"
00874         RE_CRANIUM=                             0x00000020, //"cranium"
00875         RE_RHUMEROUS=                   0x00000040, //"rhumerus"
00876         RE_LHUMEROUS=                   0x00000080, //"lhumerus"
00877         RE_RRADIUS=                             0x00000100, //"rradius"
00878         RE_LRADIUS=                             0x00000200, //"lradius"
00879         RE_RFEMURYZ=                    0x00000400, //"rfemurYZ"
00880         RE_LFEMURYZ=                    0x00000800, //"lfemurYZ"
00881         RE_RTIBIA=                              0x00001000, //"rtibia"
00882         RE_LTIBIA=                              0x00002000, //"ltibia"
00883         RE_RHAND=                               0x00004000, //"rhand"
00884         RE_LHAND=                               0x00008000, //"lhand"
00885         RE_RTARSAL=                             0x00010000, //"rtarsal"
00886         RE_LTARSAL=                             0x00020000, //"ltarsal"
00887         RE_RTALUS=                              0x00040000, //"rtalus"
00888         RE_LTALUS=                              0x00080000, //"ltalus"
00889         RE_RRADIUSX=                    0x00100000, //"rradiusX"
00890         RE_LRADIUSX=                    0x00200000, //"lradiusX"
00891         RE_RFEMURX=                             0x00400000, //"rfemurX"
00892         RE_LFEMURX=                             0x00800000, //"lfemurX"
00893         RE_CEYEBROW=                    0x01000000 //"ceyebrow"
00894 };

enum sharedERagPhase
 

Enumeration values:
RP_START_DEATH_ANIM 
RP_END_DEATH_ANIM 
RP_DEATH_COLLISION 
RP_CORPSE_SHOT 
RP_GET_PELVIS_OFFSET 
RP_SET_PELVIS_OFFSET 
RP_DISABLE_EFFECTORS 

Definition at line 856 of file q_shared.h.

00857 {
00858         RP_START_DEATH_ANIM,
00859         RP_END_DEATH_ANIM,
00860         RP_DEATH_COLLISION,
00861         RP_CORPSE_SHOT,
00862         RP_GET_PELVIS_OFFSET,  // this actually does nothing but set the pelvisAnglesOffset, and pelvisPositionOffset
00863         RP_SET_PELVIS_OFFSET,  // this actually does nothing but set the pelvisAnglesOffset, and pelvisPositionOffset
00864         RP_DISABLE_EFFECTORS  // this removes effectors given by the effectorsToTurnOff member
00865 };

enum trackchan_t
 

Enumeration values:
TRACK_CHANNEL_NONE 
TRACK_CHANNEL_1 
TRACK_CHANNEL_2 
TRACK_CHANNEL_3 
TRACK_CHANNEL_4 
TRACK_CHANNEL_5 
NUM_TRACK_CHANNELS 

Definition at line 2056 of file q_shared.h.

enum trType_t
 

Enumeration values:
TR_STATIONARY 
TR_INTERPOLATE 
TR_LINEAR 
TR_LINEAR_STOP 
TR_NONLINEAR_STOP 
TR_SINE 
TR_GRAVITY 

Definition at line 2644 of file q_shared.h.

02644              {
02645         TR_STATIONARY,
02646         TR_INTERPOLATE,                         // non-parametric, but interpolate between snapshots
02647         TR_LINEAR,
02648         TR_LINEAR_STOP,
02649         TR_NONLINEAR_STOP,
02650         TR_SINE,                                        // value = base + sin( time / duration ) * delta
02651         TR_GRAVITY
02652 } trType_t;

enum WL_e
 

Enumeration values:
WL_ERROR 
WL_WARNING 
WL_VERBOSE 
WL_DEBUG 

Definition at line 428 of file q_shared.h.

00428           {
00429         WL_ERROR=1,
00430         WL_WARNING,
00431         WL_VERBOSE,
00432         WL_DEBUG
00433 };


Function Documentation

vec_t _DotProduct const vec3_t  v1,
const vec3_t  v2
 

Definition at line 1221 of file q_math.c.

References vec3_t, and vec_t.

01221                                                       {
01222         return v1[0]*v2[0] + v1[1]*v2[1] + v1[2]*v2[2];
01223 }

void _VectorAdd const vec3_t  veca,
const vec3_t  vecb,
vec3_t  out
 

Definition at line 1231 of file q_math.c.

References vec3_t.

01231                                                                     {
01232         out[0] = veca[0]+vecb[0];
01233         out[1] = veca[1]+vecb[1];
01234         out[2] = veca[2]+vecb[2];
01235 }

void _VectorCopy const vec3_t  in,
vec3_t  out
 

Definition at line 1237 of file q_math.c.

References vec3_t.

01237                                                 {
01238         out[0] = in[0];
01239         out[1] = in[1];
01240         out[2] = in[2];
01241 }

void _VectorMA const vec3_t  veca,
float  scale,
const vec3_t  vecb,
vec3_t  vecc
 

Definition at line 1214 of file q_math.c.

References vec3_t.

01214                                                                                 {
01215         vecc[0] = veca[0] + scale*vecb[0];
01216         vecc[1] = veca[1] + scale*vecb[1];
01217         vecc[2] = veca[2] + scale*vecb[2];
01218 }

void _VectorScale const vec3_t  in,
float  scale,
vec3_t  out
 

void _VectorSubtract const vec3_t  veca,
const vec3_t  vecb,
vec3_t  out
 

Definition at line 1225 of file q_math.c.

References vec3_t.

01225                                                                          {
01226         out[0] = veca[0]-vecb[0];
01227         out[1] = veca[1]-vecb[1];
01228         out[2] = veca[2]-vecb[2];
01229 }

void AddPointToBounds const vec3_t  v,
vec3_t  mins,
vec3_t  maxs
 

Definition at line 1148 of file q_math.c.

References vec3_t.

Referenced by Think_SpawnNewDoorTrigger().

01148                                                                   {
01149         if ( v[0] < mins[0] ) {
01150                 mins[0] = v[0];
01151         }
01152         if ( v[0] > maxs[0]) {
01153                 maxs[0] = v[0];
01154         }
01155 
01156         if ( v[1] < mins[1] ) {
01157                 mins[1] = v[1];
01158         }
01159         if ( v[1] > maxs[1]) {
01160                 maxs[1] = v[1];
01161         }
01162 
01163         if ( v[2] < mins[2] ) {
01164                 mins[2] = v[2];
01165         }
01166         if ( v[2] > maxs[2]) {
01167                 maxs[2] = v[2];
01168         }
01169 }

float AngleDelta float  angle1,
float  angle2
 

Definition at line 738 of file q_math.c.

References AngleNormalize180().

Referenced by ClientThink_real(), InFOV(), InFOV3(), NPC_BSJump(), NPC_BSPointShoot(), NPC_GetHFOVPercentage(), NPC_GetVFOVPercentage(), NPC_UpdateAngles(), NPC_UpdateFiringAngles(), NPC_UpdateShootAngles(), Q3_Lerp2Pos(), R2D2_TurnAnims(), and WP_SaberPositionUpdate().

00738                                                 {
00739         return AngleNormalize180( angle1 - angle2 );
00740 }

float AngleMod float  a  ) 
 

Definition at line 697 of file q_math.c.

Referenced by BG_G2PlayerAngles(), BotAI(), BotChangeViewAngle(), BotChangeViewAngles(), BotUpdateInput(), and InFieldOfVision().

00697                           {
00698         a = (360.0/65536) * ((int)(a*(65536/360.0)) & 65535);
00699         return a;
00700 }

float AngleNormalize180 float  angle  ) 
 

Definition at line 722 of file q_math.c.

References AngleNormalize360().

Referenced by AngleDelta(), BG_G2PlayerAngles(), BG_TouchJumpPad(), BG_UpdateLookAngles(), G_EstimateCamPos(), PM_UpdateViewAngles(), PM_VehFaceHyperspacePoint(), PM_VehForcedTurning(), PM_VehicleImpact(), ProcessOrientCommands(), and VEH_TurretAim().

00722                                         {
00723         angle = AngleNormalize360( angle );
00724         if ( angle > 180.0 ) {
00725                 angle -= 360.0;
00726         }
00727         return angle;
00728 }

float AngleNormalize360 float  angle  ) 
 

Definition at line 710 of file q_math.c.

Referenced by AngleNormalize180(), Droid_Patrol(), Droid_Spin(), ImperialProbe_Wait(), Interrogator_PartsMove(), NAV_Bypass(), NAVNEW_SidestepBlocker(), NPC_BSGM_Attack(), NPC_BSJump(), NPC_BSPointShoot(), NPC_BSSearch(), NPC_BSWander(), NPC_FacePosition(), NPC_GetMoveDirection(), NPC_GetMoveDirectionAltRoute(), NPC_MoveToGoal(), pas_think(), PM_VehFaceHyperspacePoint(), R2D2_PartsMove(), and Sniper_FaceEnemy().

00710                                         {
00711         return (360.0 / 65536) * ((int)(angle * (65536 / 360.0)) & 65535);
00712 }

void AnglesSubtract vec3_t  v1,
vec3_t  v2,
vec3_t  v3
 

Definition at line 690 of file q_math.c.

References AngleSubtract(), and vec3_t.

Referenced by BG_G2PlayerAngles(), CG_CheckPassengerTurretView(), PM_VehicleImpact(), and VEH_TurretAim().

00690                                                        {
00691         v3[0] = AngleSubtract( v1[0], v2[0] );
00692         v3[1] = AngleSubtract( v1[1], v2[1] );
00693         v3[2] = AngleSubtract( v1[2], v2[2] );
00694 }

void AnglesToAxis const vec3_t  angles,
vec3_t  axis[3]
 

Definition at line 530 of file q_math.c.

References AngleVectors(), vec3_origin, vec3_t, and VectorSubtract.

Referenced by BG_G2PlayerAngles(), BG_VehicleAdjustBBoxForOrientation(), CG_AddFragment(), CG_AddPacketEntities(), CG_AddPlayerWeapon(), CG_AddViewWeapon(), CG_CreateDistortionTrailPart(), CG_CreateModelFromSpawnEnt(), CG_Draw3DModel(), CG_DrawActiveFrame(), CG_DrawAutoMap(), CG_DrawPlayerShield(), CG_DrawPlayerSphere(), CG_EmplacedView(), CG_MiscEnt(), CG_Player(), CG_ScorePlum(), CG_TestModel_f(), G_EstimateCamPos(), Item_Model_Paint(), and WP_SaberPositionUpdate().

00530                                                          {
00531         vec3_t  right;
00532 
00533         // angle vectors returns "right" instead of "y axis"
00534         AngleVectors( angles, axis[0], right, axis[2] );
00535         VectorSubtract( vec3_origin, right, axis[1] );
00536 }

float AngleSubtract float  a1,
float  a2
 

Definition at line 675 of file q_math.c.

References fmod().

Referenced by AnglesSubtract(), BG_EmplacedView(), BG_G2PlayerAngles(), CanCounterThrow(), CG_PredictPlayerState(), EWebPositionUser(), EWebUpdateBoneAngles(), pas_think(), PM_VehFaceHyperspacePoint(), PM_VehForcedTurning(), ProcessOrientCommands(), and Q3_Lerp2Angles().

00675                                             {
00676         float   a;
00677 
00678         a = a1 - a2;
00679         a=fmod(a,360);//chop it down quickly, then level it out
00680         while ( a > 180 ) {
00681                 a -= 360;
00682         }
00683         while ( a < -180 ) {
00684                 a += 360;
00685         }
00686         return a;
00687 }

void AngleVectors const vec3_t  angles,
vec3_t  forward,
vec3_t  right,
vec3_t  up
 

Definition at line 1315 of file q_math.c.

References cos(), M_PI, PITCH, ROLL, sin(), vec3_t, and YAW.

Referenced by AnglesToAxis(), AnimateRiders(), Boba_FireDecide(), Boba_StopKnockdown(), BotFallbackNavigation(), BotInputToUserCommand(), BotSurfaceNear(), BotTrace_Duck(), BotTrace_Jump(), BotTrace_Strafe(), CalcEntitySpot(), CG_AddParticles(), CG_AddParticleToScene(), CG_CalcMuzzlePoint(), CG_CalcVehicleMuzzlePoint(), CG_DamageFeedback(), CG_Disintegration(), CG_DrawAutoMap(), CG_DrawRadar(), CG_EntityEvent(), CG_ParticleBloodCloud(), CG_ParticleDust(), CG_Player(), CG_ROFF_NotetrackCallback(), CG_WorldCoordToScreenCoordFloat(), CheckForFriendInLOF(), ClientCommand(), ClientThink_real(), Cmd_EngageDuel_f(), DeathFX(), DoGripAction(), Drop_Item(), emplaced_gun_use(), EWeb_Create(), ExplodeDeath(), finish_spawning_turretG2(), FireVehicleWeapon(), FireWeapon(), ForceGrip(), ForceShootDrain(), ForceShootLightning(), ForceTelepathy(), ForceTelepathyCheckDirectNPCTarget(), ForceThrow(), G_AddPushVecToUcmd(), G_AttackDelay(), G_CanJumpToEnemyVeh(), G_CreateRotationMatrix(), G_Damage(), G_DeflectMissile(), G_EstimateCamPos(), G_GetDismemberLoc(), G_GetHitLocation(), G_GetHitLocFromSurfName(), G_GetHitQuad(), G_ItemUsable(), G_KnockOffVehicle(), G_MissileImpact(), G_SetMovedir(), G_SPSaberDamageTraceLerped(), G_UcmdMoveForDir(), Howler_TryDamage(), hyperspace_touch(), ImperialProbe_FireBlaster(), ImperialProbe_Strafe(), InFront(), Interrogator_Strafe(), ItemUse_Sentry(), ItemUse_UseDisp(), Jedi_CheckFlipEvasions(), Jedi_FindEnemyInCone(), Jedi_SaberBlockGo(), maglock_link(), Mark1_FireBlaster(), Mark1_FireRocket(), Mark2_FireBlaster(), MeleeCombatHandling(), MineMonster_TryDamage(), NAV_Bypass(), NAV_MoveBlocker(), NAV_Steer(), NAVNEW_Bypass(), NAVNEW_SidestepBlocker(), NPC_BSAdvanceFight(), NPC_BSNoClip(), NPC_BSSniper_Attack(), NPC_BSST_Attack(), NPC_CheckCanAttack(), NPC_Droid_Pain(), NPC_Jedi_Pain(), NPC_MoveDirClear(), NPC_PickAlly(), NPC_ShotEntity(), NPC_SpawnType(), Pickup_Powerup(), pitch_roll_for_slope(), PlaceShield(), player_die(), PM_AdjustAngleForWallJump(), PM_AdjustAngleForWallRun(), PM_AdjustAngleForWallRunUp(), PM_AnglesForSlope(), PM_CanBackstab(), PM_CheckStabDown(), PM_HoverTrace(), PM_ItemUsable(), PM_pitch_roll_for_slope(), PM_RocketLock(), PM_SaberAttackForMovement(), PM_SaberFlipOverAttackMove(), PM_SaberJumpAttackMove(), PM_SaberLungeAttackMove(), PM_SomeoneInFront(), PM_VehicleImpact(), PM_WeaponLightsaber(), PmoveSingle(), Rancor_Attack(), Rancor_Swing(), Remote_Fire(), Remote_Strafe(), SaberCombatHandling(), saberFirstThrown(), saberKnockDown(), Seeker_Strafe(), Sentry_Fire(), Sentry_Strafe(), Sniper_FaceEnemy(), SP_misc_weapon_shooter(), StrafeTracing(), TeleportPlayer(), Touch_Multi(), TryUse(), turret_head_think(), Update(), UpdateClientRenderinfo(), ValidateBoard(), ValidBloodPool(), VEH_StartStrafeRam(), VEH_TryEject(), Wampa_Attack(), Wampa_Slash(), waypoint_testDirection(), WP_DropDetPack(), WP_DropThermal(), WP_GetVelocityForForceJump(), WP_SaberBlock(), WP_SaberBlockNonRandom(), WP_SaberPositionUpdate(), WP_SaberStartMissileBlockCheck(), and WP_VehCheckTraceFromCamPos().

01315                                                                                  {
01316         float           angle;
01317         static float            sr, sp, sy, cr, cp, cy;
01318         // static to help MS compiler fp bugs
01319 
01320         angle = angles[YAW] * (M_PI*2 / 360);
01321         sy = sin(angle);
01322         cy = cos(angle);
01323         angle = angles[PITCH] * (M_PI*2 / 360);
01324         sp = sin(angle);
01325         cp = cos(angle);
01326         angle = angles[ROLL] * (M_PI*2 / 360);
01327         sr = sin(angle);
01328         cr = cos(angle);
01329 
01330         if (forward)
01331         {
01332                 forward[0] = cp*cy;
01333                 forward[1] = cp*sy;
01334                 forward[2] = -sp;
01335         }
01336         if (right)
01337         {
01338                 right[0] = (-1*sr*sp*cy+-1*cr*-sy);
01339                 right[1] = (-1*sr*sp*sy+-1*cr*cy);
01340                 right[2] = -1*sr*cp;
01341         }
01342         if (up)
01343         {
01344                 up[0] = (cr*sp*cy+-sr*-sy);
01345                 up[1] = (cr*sp*sy+-sr*cy);
01346                 up[2] = cr*cp;
01347         }
01348 }

void AxisClear vec3_t  axis[3]  ) 
 

Definition at line 538 of file q_math.c.

References vec3_t.

Referenced by CG_Beam(), CG_Draw3DModel(), CG_MakeExplosion(), FX_AddOrientedLine(), and Item_Model_Paint().

00538                                  {
00539         axis[0][0] = 1;
00540         axis[0][1] = 0;
00541         axis[0][2] = 0;
00542         axis[1][0] = 0;
00543         axis[1][1] = 1;
00544         axis[1][2] = 0;
00545         axis[2][0] = 0;
00546         axis[2][1] = 0;
00547         axis[2][2] = 1;
00548 }

void AxisCopy vec3_t  in[3],
vec3_t  out[3]
 

Definition at line 550 of file q_math.c.

References vec3_t, and VectorCopy.

Referenced by CG_Chunks(), CG_LaunchGib(), and CG_ThrowChunk().

00550                                              {
00551         VectorCopy( in[0], out[0] );
00552         VectorCopy( in[1], out[1] );
00553         VectorCopy( in[2], out[2] );
00554 }

int BoxOnPlaneSide vec3_t  emins,
vec3_t  emaxs,
struct cplane_s plane
 

Definition at line 809 of file q_math.c.

References cplane_s::dist, cplane_s::normal, cplane_s::signbits, cplane_s::type, and vec3_t.

00810 {
00811         float   dist1, dist2;
00812         int             sides;
00813 
00814 // fast axial cases
00815         if (p->type < 3)
00816         {
00817                 if (p->dist <= emins[p->type])
00818                         return 1;
00819                 if (p->dist >= emaxs[p->type])
00820                         return 2;
00821                 return 3;
00822         }
00823 
00824 // general case
00825         switch (p->signbits)
00826         {
00827         case 0:
00828                 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
00829                 dist2 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
00830                 break;
00831         case 1:
00832                 dist1 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
00833                 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
00834                 break;
00835         case 2:
00836                 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
00837                 dist2 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
00838                 break;
00839         case 3:
00840                 dist1 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
00841                 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
00842                 break;
00843         case 4:
00844                 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
00845                 dist2 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
00846                 break;
00847         case 5:
00848                 dist1 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
00849                 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
00850                 break;
00851         case 6:
00852                 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
00853                 dist2 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
00854                 break;
00855         case 7:
00856                 dist1 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
00857                 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
00858                 break;
00859         default:
00860                 dist1 = dist2 = 0;              // shut up compiler
00861                 break;
00862         }
00863 
00864         sides = 0;
00865         if (dist1 >= p->dist)
00866                 sides = 1;
00867         if (dist2 < p->dist)
00868                 sides |= 2;
00869 
00870         return sides;
00871 }

void ByteToDir int  b,
vec3_t  dir
 

Definition at line 324 of file q_math.c.

References bytedirs, NUMVERTEXNORMALS, vec3_origin, vec3_t, and VectorCopy.

Referenced by CG_EntityEvent(), and CG_VehicleWeaponImpact().

00324                                     {
00325         if ( b < 0 || b >= NUMVERTEXNORMALS ) {
00326                 VectorCopy( vec3_origin, dir );
00327                 return;
00328         }
00329         VectorCopy (bytedirs[b], dir);
00330 }

signed char ClampChar int  i  ) 
 

Definition at line 279 of file q_math.c.

00279                                {
00280         if ( i < -128 ) {
00281                 return -128;
00282         }
00283         if ( i > 127 ) {
00284                 return 127;
00285         }
00286         return i;
00287 }

signed short ClampShort int  i  ) 
 

Definition at line 289 of file q_math.c.

00289                                  {
00290         if ( i < -32768 ) {
00291                 return -32768;
00292         }
00293         if ( i > 0x7fff ) {
00294                 return 0x7fff;
00295         }
00296         return i;
00297 }

void ClearBounds vec3_t  mins,
vec3_t  maxs
 

Definition at line 1129 of file q_math.c.

References vec3_t.

01129                                              {
01130         mins[0] = mins[1] = mins[2] = 99999;
01131         maxs[0] = maxs[1] = maxs[2] = -99999;
01132 }

unsigned ColorBytes3 float  r,
float  g,
float  b
 

Definition at line 333 of file q_math.c.

References byte.

00333                                                  {
00334         unsigned        i;
00335 
00336         ( (byte *)&i )[0] = r * 255;
00337         ( (byte *)&i )[1] = g * 255;
00338         ( (byte *)&i )[2] = b * 255;
00339 
00340         return i;
00341 }

unsigned ColorBytes4 float  r,
float  g,
float  b,
float  a
 

Definition at line 343 of file q_math.c.

References byte.

00343                                                           {
00344         unsigned        i;
00345 
00346         ( (byte *)&i )[0] = r * 255;
00347         ( (byte *)&i )[1] = g * 255;
00348         ( (byte *)&i )[2] = b * 255;
00349         ( (byte *)&i )[3] = a * 255;
00350 
00351         return i;
00352 }

void COM_BeginParseSession const char *  name  ) 
 

Definition at line 284 of file q_shared.c.

References Com_sprintf(), and name.

Referenced by NPC_ParseParms(), NPC_Precache(), NPC_PrecacheAnimationCFG(), UI_SaberGetHiltInfo(), UI_SaberParseParm(), VEH_LoadVehicle(), VEH_LoadVehWeapon(), WP_SaberParseParm(), and WP_SaberParseParms().

00285 {
00286         com_lines = 0;
00287         Com_sprintf(com_parsename, sizeof(com_parsename), "%s", name);
00288 }

float Com_Clamp float  min,
float  max,
float  value
 

Definition at line 64 of file q_shared.c.

References min.

00064                                                      {
00065         if ( value < min ) {
00066                 return min;
00067         }
00068         if ( value > max ) {
00069                 return max;
00070         }
00071         return value;
00072 }

int Com_Clampi int  min,
int  max,
int  value
 

Definition at line 51 of file q_shared.c.

References min.

00052 {
00053         if ( value < min ) 
00054         {
00055                 return min;
00056         }
00057         if ( value > max ) 
00058         {
00059                 return max;
00060         }
00061         return value;
00062 }

int COM_Compress char *  data_p  ) 
 

Definition at line 353 of file q_shared.c.

References qboolean, qfalse, and qtrue.

Referenced by NPC_LoadParms(), UI_SaberLoadParms(), and WP_SaberLoadParms().

00353                                  {
00354         char *in, *out;
00355         int c;
00356         qboolean newline = qfalse, whitespace = qfalse;
00357         
00358         in = out = data_p;
00359         if (in) {
00360                 while ((c = *in) != 0) {
00361                         // skip double slash comments
00362                         if ( c == '/' && in[1] == '/' ) {
00363                                 while (*in && *in != '\n') {
00364                                         in++;
00365                                 }
00366                                 // skip /* */ comments
00367                         } else if ( c == '/' && in[1] == '*' ) {
00368                                 while ( *in && ( *in != '*' || in[1] != '/' ) ) 
00369                                         in++;
00370                                 if ( *in ) 
00371                                         in += 2;
00372                                 // record when we hit a newline
00373                         } else if ( c == '\n' || c == '\r' ) {
00374                                 newline = qtrue;
00375                                 in++;
00376                                 // record when we hit whitespace
00377                         } else if ( c == ' ' || c == '\t') {
00378                                 whitespace = qtrue;
00379                                 in++;
00380                                 // an actual token
00381                         } else {
00382                                 // if we have a pending newline, emit it (and it counts as whitespace)
00383                                 if (newline) {
00384                                         *out++ = '\n';
00385                                         newline = qfalse;
00386                                         whitespace = qfalse;
00387                                 } if (whitespace) {
00388                                         *out++ = ' ';
00389                                         whitespace = qfalse;
00390                                 }
00391                                 
00392                                 // copy quoted strings unmolested
00393                                 if (c == '"') {
00394                                         *out++ = c;
00395                                         in++;
00396                                         while (1) {
00397                                                 c = *in;
00398                                                 if (c && c != '"') {
00399                                                         *out++ = c;
00400                                                         in++;
00401                                                 } else {
00402                                                         break;
00403                                                 }
00404                                         }
00405                                         if (c == '"') {
00406                                                 *out++ = c;
00407                                                 in++;
00408                                         }
00409                                 } else {
00410                                         *out = c;
00411                                         out++;
00412                                         in++;
00413                                 }
00414                         }
00415                 }
00416         }
00417         *out = 0;
00418         return out - data_p;
00419 }

void COM_DefaultExtension char *  path,
int  maxSize,
const char *  extension
 

Definition at line 112 of file q_shared.c.

References Com_sprintf(), MAX_QPATH, Q_strncpyz(), and strlen().

00112                                                                             {
00113         char    oldPath[MAX_QPATH];
00114         char    *src;
00115 
00116 //
00117 // if path doesn't have a .EXT, append extension
00118 // (extension should include the .)
00119 //
00120         src = path + strlen(path) - 1;
00121 
00122         while (*src != '/' && src != path) {
00123                 if ( *src == '.' ) {
00124                         return;                 // it has an extension
00125                 }
00126                 src--;
00127         }
00128 
00129         Q_strncpyz( oldPath, path, sizeof( oldPath ) );
00130         Com_sprintf( path, maxSize, "%s%s", oldPath, extension );
00131 }

void QDECL Com_Error int  level,
const char *  error,
... 
 

Definition at line 1234 of file cg_main.c.

References CG_Error(), QDECL, trap_Error(), va(), va_end, va_list, va_start, and vsprintf().

Referenced by BG_Alloc(), BG_AllocUnaligned(), BG_CanItemBeGrabbed(), BG_EvaluateTrajectory(), BG_EvaluateTrajectoryDelta(), BG_FighterUpdate(), BG_FindItemForAmmo(), BG_FindItemForHoldable(), BG_FindItemForWeapon(), BG_G2PlayerAngles(), BG_GetVehicleModelName(), BG_GetVehicleSkinName(), BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), BG_SiegeGetPairedValue(), BG_SiegeGetValueGroup(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), BG_TempAlloc(), BG_TempFree(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), CG_CreateModelFromSpawnEnt(), CG_DrawActiveFrame(), CG_MiscEnt(), CG_SetLightstyle(), CG_StrPool_Alloc(), COM_MatchToken(), Com_sprintf(), G_AllocateVehicleObject(), G_ClientForShooter(), G_PrecacheSoundsets(), Info_RemoveKey(), Info_RemoveKey_Big(), Info_SetValueForKey(), Info_SetValueForKey_Big(), Info_ValueForKey(), maglock_link(), NAV_WaypointsTooFar(), ParseAnimationEvtBlock(), PM_AnimLength(), Q_strcat(), Q_strncpyz(), SetupGameGhoul2Model(), SP_info_siege_radaricon(), SP_trigger_lightningstrike(), SP_worldspawn(), UI_ParseAnimationFile(), UI_SaberLoadParms(), UI_SetSiegeTeams(), UI_SiegeInit(), UI_UpdateCharacterSkin(), Use_Target_Print(), WP_SaberLoadParms(), and WP_SaberParseParms().

01234                                                           {
01235         va_list         argptr;
01236         char            text[1024];
01237 
01238         va_start (argptr, error);
01239         vsprintf (text, error, argptr);
01240         va_end (argptr);
01241 
01242         CG_Error( "%s", text);
01243 }

int COM_GetCurrentParseLine void   ) 
 

Definition at line 290 of file q_shared.c.

00291 {
00292         return com_lines;
00293 }

void COM_MatchToken const char **  buf_p,
char *  match
 

Definition at line 666 of file q_shared.c.

References Com_Error(), COM_Parse(), ERR_DROP, and strcmp().

Referenced by Parse1DMatrix(), Parse2DMatrix(), and Parse3DMatrix().

00666                                                        {
00667         char    *token;
00668 
00669         token = COM_Parse( buf_p );
00670         if ( strcmp( token, match ) ) {
00671                 Com_Error( ERR_DROP, "MatchToken: %s != %s", token, match );
00672         }
00673 }

void Com_Memcpy void *  dest,
const void *  src,
const size_t  count
 

void Com_Memset void *  dest,
const int  val,
const size_t  count
 

char* COM_Parse const char **  data_p  ) 
 

Definition at line 295 of file q_shared.c.

References COM_ParseExt(), and qtrue.

Referenced by BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), CG_NewParticleArea(), CG_StartMusic(), COM_MatchToken(), G_ParseInfos(), Parse1DMatrix(), ParseAnimationEvtBlock(), UI_ParseAnimationFile(), and UI_ParseInfos().

00296 {
00297         return COM_ParseExt( data_p, qtrue );
00298 }

void COM_ParseError char *  format,
... 
 

Definition at line 300 of file q_shared.c.

References Com_Printf(), va_end, va_list, va_start, and vsprintf().

00301 {
00302         va_list argptr;
00303         static char string[4096];
00304 
00305         va_start (argptr, format);
00306         vsprintf (string, format, argptr);
00307         va_end (argptr);
00308 
00309         Com_Printf("ERROR: %s, line %d: %s\n", com_parsename, com_lines, string);
00310 }

char* COM_ParseExt const char **  data_p,
qboolean  allowLineBreak
 

Definition at line 421 of file q_shared.c.

References MAX_TOKEN_CHARS, NULL, qboolean, qfalse, and SkipWhitespace().

Referenced by Asset_Parse(), BG_ParseAnimationFile(), BG_ParseLiteral(), CG_DrawSkyBoxPortal(), CG_Load_Menu(), CG_LoadMenus(), CG_ParseSurfsFile(), COM_Parse(), COM_ParseFloat(), COM_ParseInt(), COM_ParseString(), Float_Parse(), G_ParseInfos(), Int_Parse(), NPC_ParseParms(), NPC_Precache(), NPC_PrecacheAnimationCFG(), ParseAnimationEvtBlock(), SkipBracedSection(), String_Parse(), UI_ParseInfos(), UI_ParseLiteral(), UI_ParseLiteralSilent(), UI_SaberGetHiltInfo(), UI_SaberParseParm(), VEH_LoadVehicle(), VEH_LoadVehWeapon(), WP_SaberParseParm(), and WP_SaberParseParms().

00422 {
00423         int c = 0, len;
00424         qboolean hasNewLines = qfalse;
00425         const char *data;
00426 
00427         data = *data_p;
00428         len = 0;
00429         com_token[0] = 0;
00430 
00431         // make sure incoming data is valid
00432         if ( !data )
00433         {
00434                 *data_p = NULL;
00435                 return com_token;
00436         }
00437 
00438         while ( 1 )
00439         {
00440                 // skip whitespace
00441                 data = SkipWhitespace( data, &hasNewLines );
00442                 if ( !data )
00443                 {
00444                         *data_p = NULL;
00445                         return com_token;
00446                 }
00447                 if ( hasNewLines && !allowLineBreaks )
00448                 {
00449                         *data_p = data;
00450                         return com_token;
00451                 }
00452 
00453                 c = *data;
00454 
00455                 // skip double slash comments
00456                 if ( c == '/' && data[1] == '/' )
00457                 {
00458                         data += 2;
00459                         while (*data && *data != '\n') {
00460                                 data++;
00461                         }
00462                 }
00463                 // skip /* */ comments
00464                 else if ( c=='/' && data[1] == '*' ) 
00465