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(),