#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] |
|
|
Definition at line 47 of file q_shared.h. |
|
|
Definition at line 3110 of file q_shared.h. |
|
|
Definition at line 2154 of file q_shared.h. |
|
|
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(). |
|
|
Definition at line 3027 of file q_shared.h. |
|
|
Definition at line 3026 of file q_shared.h. |
|
|
Definition at line 3025 of file q_shared.h. |
|
|
Definition at line 3029 of file q_shared.h. |
|
|
Definition at line 389 of file q_shared.h. Referenced by Info_RemoveKey_Big(), and Info_ValueForKey(). |
|
|
Definition at line 388 of file q_shared.h. Referenced by Info_RemoveKey_Big(), Info_SetValueForKey_Big(), and Info_ValueForKey(). |
|
|
Definition at line 390 of file q_shared.h. Referenced by Info_RemoveKey_Big(), and Info_ValueForKey(). |
|
|
Definition at line 1039 of file q_shared.h. Referenced by CG_DrawBigString(), CG_DrawBigStringColor(), CG_DrawOldScoreboard(), and UI_DrawTextBox(). |
|
|
Definition at line 1038 of file q_shared.h. Referenced by CG_DrawBigString(), CG_DrawBigStringColor(), CG_DrawOldScoreboard(), CG_DrawSiegeMessageNonMenu(), CG_EntityEvent(), and UI_DrawTextBox(). |
|
|
Definition at line 485 of file q_shared.h. Referenced by Item_OwnerDraw_Paint(), and Item_TextColor(). |
|
|
|
Definition at line 2464 of file q_shared.h. |
|
|
|
Definition at line 2470 of file q_shared.h. Referenced by G_ActionButtonPressed(), PmoveSingle(), and WP_ForcePowersUpdate(). |
|
|
Definition at line 2468 of file q_shared.h. Referenced by G_ActionButtonPressed(), PmoveSingle(), and WP_ForcePowersUpdate(). |
|
|
Definition at line 2461 of file q_shared.h. Referenced by G_ActionButtonPressed(), PmoveSingle(), and WP_ForcePowersUpdate(). |
|
|
Definition at line 2466 of file q_shared.h. Referenced by BotInputToUserCommand(), G_ActionButtonPressed(), PmoveSingle(), and WP_ForcePowersUpdate(). |
|
|
Definition at line 2454 of file q_shared.h. Referenced by BotInputToUserCommand(), ClientThink_real(), and G_ActionButtonPressed(). |
|
|
Definition at line 2452 of file q_shared.h. Referenced by CG_PredictPlayerState(), ClientThink_real(), and PmoveSingle(). |
|
|
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(). |
|
|
Definition at line 2453 of file q_shared.h. Referenced by BotInputToUserCommand(), ClientIntermissionThink(), ClientThink_real(), G_ActionButtonPressed(), and PmoveSingle(). |
|
|
|
Definition at line 3069 of file q_shared.h. |
|
|
Definition at line 3068 of file q_shared.h. |
|
|
Definition at line 517 of file q_shared.h. |
|
|
Definition at line 516 of file q_shared.h. Referenced by UI_FeederSelection(). |
|
|
Definition at line 519 of file q_shared.h. |
|
|
Definition at line 518 of file q_shared.h. Referenced by UI_FeederSelection(). |
|
|
Definition at line 515 of file q_shared.h. |
|
|
Definition at line 1150 of file q_shared.h. |
|
|
Definition at line 1154 of file q_shared.h. |
|
|
Definition at line 1155 of file q_shared.h. Referenced by G_Say(). |
|
|
Definition at line 1152 of file q_shared.h. Referenced by CG_BracketEntity(), CG_DrawRadar(), Debug_NPCPrintf(), and G_Say(). |
|
|
Definition at line 1156 of file q_shared.h. Referenced by G_Say(). |
|
|
Definition at line 1151 of file q_shared.h. Referenced by CG_BracketEntity(), CG_DrawRadar(), CG_DrawVehicleAmmo(), CG_DrawVehicleAmmoLower(), CG_DrawVehicleAmmoUpper(), and Debug_NPCPrintf(). |
|
|
Definition at line 1157 of file q_shared.h. Referenced by Debug_NPCPrintf(), and G_Say(). |
|
|
Definition at line 1153 of file q_shared.h. Referenced by Debug_NPCPrintf(). |
|
|
Definition at line 1158 of file q_shared.h. Referenced by CG_BracketEntity(), CG_DrawRadar(), CG_DrawStringExt(), CG_DrawVehicleAmmo(), CG_DrawVehicleAmmoLower(), and CG_DrawVehicleAmmoUpper(). |
|
|
|
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(). |
|
|
Definition at line 2042 of file q_shared.h. Referenced by CG_DrawInformation(). |
|
|
Definition at line 1782 of file q_shared.h. Referenced by _UI_Init(), CG_RegisterCvars(), and UI_GetVideoSetup(). |
|
|
Definition at line 1798 of file q_shared.h. Referenced by BotAISetup(), and LoadPath_ThisLevel(). |
|
|
Definition at line 1788 of file q_shared.h. Referenced by UI_LoadBots(). |
|
|
Definition at line 1800 of file q_shared.h. Referenced by _UI_Init(), CG_RegisterCvars(), and UI_GetVideoSetup(). |
|
|
Definition at line 1790 of file q_shared.h. |
|
|
Definition at line 1799 of file q_shared.h. |
|
|
Definition at line 1801 of file q_shared.h. |
|
|
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(). |
|
|
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(). |
|
|
Definition at line 1787 of file q_shared.h. |
|
|
Definition at line 1797 of file q_shared.h. |
|
|
Definition at line 1796 of file q_shared.h. |
|
|
Definition at line 1785 of file q_shared.h. Referenced by CG_RegisterCvars(). |
|
|
Definition at line 999 of file q_shared.h. Referenced by CalculatePaths(), G_BackwardAttachment(), G_RecursiveConnection(), and G_RMGPathing(). |
|
|
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(). |
|
|
|
Definition at line 2016 of file q_shared.h. Referenced by CG_AdjustPositionForMover(), G_Spawn(), and NPC_Kill_f(). |
|
|
|
|
Definition at line 3153 of file q_shared.h. |
|
|
Definition at line 2148 of file q_shared.h. Referenced by ClientThink_real(). |
|
|
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(). |
|
|
Definition at line 852 of file q_shared.h. |
|
|
Definition at line 853 of file q_shared.h. Referenced by BG_SiegeTranslateForcePowers(). |
|
|
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(). |
|
|
Definition at line 46 of file q_shared.h. |
|
|
Definition at line 1994 of file q_shared.h. |
|
|
Definition at line 1042 of file q_shared.h. |
|
|
Definition at line 1041 of file q_shared.h. Referenced by CG_EntityEvent(). |
|
|
Definition at line 128 of file q_shared.h. |
|
|
Definition at line 134 of file q_shared.h. |
|
|
Definition at line 1184 of file q_shared.h. |
|
|
Definition at line 1939 of file q_shared.h. |
|
|
Definition at line 1936 of file q_shared.h. |
|
|
Definition at line 1938 of file q_shared.h. |
|
|
Definition at line 1937 of file q_shared.h. Referenced by _UI_KeyEvent(), _UI_SetActiveMenu(), CG_EntityEvent(), and UI_ConsoleCommand(). |
|
|
Definition at line 420 of file q_shared.h. Referenced by SP_worldspawn(). |
|
|
Definition at line 422 of file q_shared.h. |
|
|
Definition at line 419 of file q_shared.h. Referenced by SP_worldspawn(). |
|
|
Definition at line 421 of file q_shared.h. |
|
|
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(). |
|
|
Definition at line 1171 of file q_shared.h. Referenced by CG_RegisterWeapon(). |
|
|
Definition at line 1172 of file q_shared.h. |
|
|
Definition at line 2035 of file q_shared.h. Referenced by G_PrecacheSoundsets(), and G_SoundSetIndex(). |
|
|
Definition at line 670 of file q_shared.h. Referenced by NPC_ParseParms(), WP_SaberParseParms(), and WP_SaberSetDefaults(). |
|
|
|
Definition at line 2037 of file q_shared.h. Referenced by CG_ConfigString(). |
|
|
Definition at line 1818 of file q_shared.h. |
|
|
Definition at line 2146 of file q_shared.h. |
|
|
Definition at line 2023 of file q_shared.h. Referenced by G_EffectIndex(). |
|
|
Definition at line 1886 of file q_shared.h. Referenced by CG_G2TraceCollide(). |
|
|
Definition at line 2030 of file q_shared.h. Referenced by G_BoneIndex(). |
|
|
Definition at line 2046 of file q_shared.h. |
|
|
|
Definition at line 3058 of file q_shared.h. |
|
|
Definition at line 2022 of file q_shared.h. Referenced by G_IconIndex(). |
|
|
Definition at line 385 of file q_shared.h. Referenced by Info_RemoveKey(). |
|
|
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(). |
|
|
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(). |
|
|
Definition at line 424 of file q_shared.h. Referenced by CG_ClearLightStyles(), and CG_RunLightStyles(). |
|
|
Definition at line 1989 of file q_shared.h. Referenced by CG_DrawNewTeamInfo(). |
|
|
Definition at line 416 of file q_shared.h. |
|
|
Definition at line 2020 of file q_shared.h. Referenced by G_ModelIndex(). |
|
|
Definition at line 400 of file q_shared.h. Referenced by SanitizeString2(). |
|
|
Definition at line 997 of file q_shared.h. |
|
|
Definition at line 996 of file q_shared.h. Referenced by CalculatePaths(), and CanForceJumpTo(). |
|
|
Definition at line 994 of file q_shared.h. Referenced by CalculatePaths(), and LoadPathData(). |
|
|
Definition at line 397 of file q_shared.h. |
|
|
Definition at line 3059 of file q_shared.h. |
|
|
Definition at line 2135 of file q_shared.h. Referenced by ClientSpawn(). |
|
|
Definition at line 3061 of file q_shared.h. |
|
|
Definition at line 2136 of file q_shared.h. Referenced by BG_PlayerStateToEntityState(), BG_PlayerStateToEntityStateExtraPolate(), ClientEndFrame(), and G_RunFrame(). |
|
|
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(). |
|
|
Definition at line 369 of file q_shared.h. |
|
|
|
Definition at line 1987 of file q_shared.h. |
|
|
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(). |
|
|
Definition at line 402 of file q_shared.h. Referenced by G_Say(). |
|
|
Definition at line 3062 of file q_shared.h. |
|
|
Definition at line 2021 of file q_shared.h. Referenced by G_SoundIndex(). |
|
|
Definition at line 2134 of file q_shared.h. |
|
|
|
Definition at line 381 of file q_shared.h. Referenced by Cmd_CallTeamVote_f(), and Cmd_CallVote_f(). |
|
|
Definition at line 2025 of file q_shared.h. Referenced by G_BSPIndex(). |
|
|
Definition at line 12 of file q_shared.h. |
|
|
Definition at line 1988 of file q_shared.h. |
|
|
|
Definition at line 1650 of file q_shared.h. |
|
|
Definition at line 2137 of file q_shared.h. Referenced by CG_CopyG2WeaponInstance(), CG_EntityEvent(), CG_InitG2Weapons(), CG_ShutDownG2Weapons(), and Cmd_Give_f(). |
|
|
Definition at line 18 of file q_shared.h. |
|
|
Definition at line 993 of file q_shared.h. Referenced by CreateNewWP(), CreateNewWP_FromObject(), CreateNewWP_InsertUnder(), CreateNewWP_InTrail(), and RepairPaths(). |
|
|
Definition at line 1355 of file q_shared.h. |
|
|
Definition at line 370 of file q_shared.h. |
|
|
Definition at line 19 of file q_shared.h. Referenced by NPC_Spawn_Do(). |
|
|
Definition at line 1354 of file q_shared.h. |
|
|
Definition at line 2485 of file q_shared.h. |
|
|
Definition at line 1182 of file q_shared.h. |
|
|
|
Definition at line 1024 of file q_shared.h. Referenced by ByteToDir(), and DirToByte(). |
|
|
|
Definition at line 1847 of file q_shared.h. |
|
|
Definition at line 1844 of file q_shared.h. |
|
|
Definition at line 1845 of file q_shared.h. |
|
|
Definition at line 1846 of file q_shared.h. |
|
|
Definition at line 1856 of file q_shared.h. |
|
|
Definition at line 481 of file q_shared.h. |
|
|
Definition at line 474 of file q_shared.h. |
|
|
Definition at line 482 of file q_shared.h. |
|
|
Definition at line 478 of file q_shared.h. |
|
|
Definition at line 467 of file q_shared.h. |
|
|
Definition at line 475 of file q_shared.h. |
|
|
Definition at line 470 of file q_shared.h. |
|
|
Definition at line 473 of file q_shared.h. |
|
|
Definition at line 483 of file q_shared.h. |
|
|
Definition at line 479 of file q_shared.h. |
|
|
Definition at line 469 of file q_shared.h. |
|
|
Definition at line 477 of file q_shared.h. |
|
|
Definition at line 472 of file q_shared.h. |
|
|
Definition at line 2141 of file q_shared.h. Referenced by Pmove(). |
|
|
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(). |
|
|
Definition at line 10 of file q_shared.h. Referenced by G_ActivateBehavior(), and scriptrunner_run(). |
|
|
Definition at line 1145 of file q_shared.h. Referenced by Debug_NPCPrintf(), G_Say(), and Team_GetLocationMsg(). |
|
|
Definition at line 1147 of file q_shared.h. Referenced by CG_DrawStringExt(), CG_DrawStrlen(), Q_CleanStr(), Q_PrintStrlen(), and RemoveColorEscapeSequences(). |
|
|
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(). |
|
|
Definition at line 1175 of file q_shared.h. Referenced by NormalToLatLong(), and Use_BinaryMover_Go(). |
|
|
|
Definition at line 2044 of file q_shared.h. |
|
|
|
Definition at line 1160 of file q_shared.h. |
|
|
Definition at line 1164 of file q_shared.h. Referenced by G_DebugPrint(), and TeamColorString(). |
|
|
Definition at line 1165 of file q_shared.h. |
|
|
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(). |
|
|
Definition at line 1166 of file q_shared.h. |
|
|
|
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(). |
|
|
|
Definition at line 3064 of file q_shared.h. Referenced by ClientCommand(), and G_Say(). |
|
|
Definition at line 3065 of file q_shared.h. Referenced by ClientCommand(), and G_Say(). |
|
|
Definition at line 3066 of file q_shared.h. Referenced by Cmd_GameCommand_f(), and G_Say(). |
|
|
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(). |
|
|
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(). |
|
|
Definition at line 721 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 731 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 717 of file q_shared.h. Referenced by CG_AddSaberBlade(), and WP_SaberParseParms(). |
|
|
Definition at line 727 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 718 of file q_shared.h. Referenced by CG_EntityEvent(), WP_SaberDoHit(), and WP_SaberParseParms(). |
|
|
Definition at line 728 of file q_shared.h. Referenced by WP_SaberDoHit(), and WP_SaberParseParms(). |
|
|
Definition at line 719 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 729 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 716 of file q_shared.h. Referenced by CG_AddSaberBlade(), and WP_SaberParseParms(). |
|
|
Definition at line 726 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 720 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 730 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 722 of file q_shared.h. Referenced by Cmd_SaberAttackCycle_f(), WP_SaberCanTurnOffSomeBlades(), and WP_SaberParseParms(). |
|
|
Definition at line 732 of file q_shared.h. Referenced by Cmd_SaberAttackCycle_f(), WP_SaberCanTurnOffSomeBlades(), and WP_SaberParseParms(). |
|
|
Definition at line 715 of file q_shared.h. Referenced by CG_AddSaberBlade(), and WP_SaberParseParms(). |
|
|
Definition at line 725 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 723 of file q_shared.h. Referenced by WP_SaberBladeDoTransitionDamage(), and WP_SaberParseParms(). |
|
|
Definition at line 733 of file q_shared.h. Referenced by WP_SaberBladeDoTransitionDamage(), and WP_SaberParseParms(). |
|
|
Definition at line 697 of file q_shared.h. Referenced by G_SaberModelSetup(), and WP_SaberParseParms(). |
|
|
Definition at line 696 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 702 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 709 of file q_shared.h. Referenced by Jedi_CheckFlipEvasions(), PM_SaberAttackForMovement(), and WP_SaberParseParms(). |
|
|
Definition at line 708 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 710 of file q_shared.h. Referenced by PM_CheckAltKickAttack(), and WP_SaberParseParms(). |
|
|
Definition at line 711 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 701 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 712 of file q_shared.h. Referenced by PM_CanDoRollStab(), and WP_SaberParseParms(). |
|
|
Definition at line 707 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 703 of file q_shared.h. Referenced by PM_CheckStabDown(), and WP_SaberParseParms(). |
|
|
Definition at line 705 of file q_shared.h. Referenced by Jedi_CheckFlipEvasions(), and WP_SaberParseParms(). |
|
|
Definition at line 706 of file q_shared.h. Referenced by WP_SaberParseParms(). |
|
|
Definition at line 704 of file q_shared.h. Referenced by Jedi_CheckFlipEvasions(), and WP_SaberParseParms(). |
|
|
Definition at line 690 of file q_shared.h. Referenced by WP_SaberParseParms(), and WP_SaberStartMissileBlockCheck(). |
|
|
Definition at line 689 of file q_shared.h. Referenced by saberKnockOutOfHand(), and WP_SaberParseParms(). |
|
|
Definition at line 687 of file q_shared.h. Referenced by WP_SaberParseParms(), and WP_SabersCheckLock(). |
|
|
Definition at line 688 of file q_shared.h. Referenced by WP_SaberParseParms(), and WP_SaberPositionUpdate(). |
|
|
Definition at line 695 of file q_shared.h. |
|
|
Definition at line 693 of file q_shared.h. Referenced by CG_Player(), saberBackToOwner(), and WP_SaberParseParms(). |
|
|
Definition at line 692 of file q_shared.h. Referenced by WP_SaberParseParms(), and WP_SaberPositionUpdate(). |
|
|
Definition at line 691 of file q_shared.h. Referenced by ClientSpawn(), NPC_ParseParms(), WP_ForcePowerUsable(), WP_SaberParseParms(), and WP_SetSaber(). |
|
|
Definition at line 1973 of file q_shared.h. Referenced by BotAI(), BotUpdateInput(), NPC_FacePosition(), and PM_UpdateViewAngles(). |
|
|
Definition at line 1036 of file q_shared.h. Referenced by CG_DrawSmallString(), and CG_DrawSmallStringColor(). |
|
|
Definition at line 1035 of file q_shared.h. Referenced by CG_DrawSmallString(), and CG_DrawSmallStringColor(). |
|
|
Definition at line 1976 of file q_shared.h. Referenced by CG_DrawActiveFrame(), and CG_ProcessSnapshots(). |
|
|
Definition at line 1975 of file q_shared.h. |
|
|
Definition at line 1977 of file q_shared.h. |
|
|
Definition at line 2642 of file q_shared.h. Referenced by CG_PointContents(), CG_SetEntitySoundPosition(), Jedi_CheckFlipEvasions(), NAV_TestBestNode(), PM_VehicleImpact(), and TryHeal(). |
|
|
Definition at line 1237 of file q_shared.h. |
|
|
Definition at line 3005 of file q_shared.h. |
|
|
Definition at line 3103 of file q_shared.h. |
|
|
Definition at line 1033 of file q_shared.h. |
|
|
Definition at line 1032 of file q_shared.h. |
|
|
Definition at line 2066 of file q_shared.h. |
|
|
Definition at line 1655 of file q_shared.h. |
|
|
Definition at line 1657 of file q_shared.h. |
|
|
Definition at line 1656 of file q_shared.h. Referenced by PC_Float_Parse(), and PC_Int_Parse(). |
|
|
Definition at line 1658 of file q_shared.h. |
|
|
Definition at line 1654 of file q_shared.h. |
|
|
Definition at line 493 of file q_shared.h. |
|
|
Definition at line 496 of file q_shared.h. Referenced by UI_DrawProportionalString(), and UI_DrawScaledProportionalString(). |
|
|
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(). |
|
|
Definition at line 495 of file q_shared.h. Referenced by CG_DrawHUD(), CG_DrawInformation(), CG_DrawOldScoreboard(), UI_DrawProportionalString(), and UI_DrawScaledProportionalString(). |
|
|
Definition at line 491 of file q_shared.h. |
|
|
Definition at line 497 of file q_shared.h. |
|
|
Definition at line 488 of file q_shared.h. Referenced by UI_DrawProportionalString(), and UI_DrawScaledProportionalString(). |
|
|
Definition at line 498 of file q_shared.h. Referenced by UI_DrawProportionalString(), and UI_DrawScaledProportionalString(). |
|
|
Definition at line 490 of file q_shared.h. Referenced by CG_DrawHUD(), UI_DrawProportionalString(), and UI_DrawScaledProportionalString(). |
|
|
Definition at line 492 of file q_shared.h. Referenced by CG_DrawForceSelect(), CG_DrawHUD(), CG_DrawInvenSelect(), CG_DrawWeaponSelect(), and UI_DrawProportionalString(). |
|
|
Definition at line 23 of file q_shared.h. |
|
|
Definition at line 24 of file q_shared.h. |
|
|
Definition at line 27 of file q_shared.h. |
|
|
Definition at line 28 of file q_shared.h. |
|
|
Definition at line 26 of file q_shared.h. |
|
|
Definition at line 30 of file q_shared.h. Referenced by G_ActivateBehavior(), NAV_CheckAhead(), and NAV_TestBestNode(). |
|
|
Definition at line 1401 of file q_shared.h. |
|
|
|
Definition at line 1370 of file q_shared.h. |
|
|
Definition at line 1371 of file q_shared.h. |
|
|
|
|
Definition at line 1364 of file q_shared.h. Referenced by CG_DottedLine(), CG_DrawRadar(), CG_DrawVehicleDamage(), and CG_DrawVehicleDamageHUD(). |
|
|
Definition at line 1367 of file q_shared.h. |
|
|
Definition at line 1366 of file q_shared.h. |
|
|
Definition at line 1368 of file q_shared.h. |
|
|
|
Definition at line 1398 of file q_shared.h. Referenced by CG_ParticleDust(). |
|
|
|
Definition at line 1372 of file q_shared.h. Referenced by CG_CreateModelFromSpawnEnt(), and CG_MiscEnt(). |
|
|
Definition at line 1369 of file q_shared.h. |
|
|
|
Definition at line 1400 of file q_shared.h. |
|
|
|
Definition at line 20 of file q_shared.h. Referenced by NPC_FindNearestEnemy(), and NPC_FindSquadPoint(). |
|
|
|
Referenced by CG_AddLightningBeam(), FX_DisruptorAltMiss(), and trap_FX_AddBezier(). |
|
|
Referenced by CG_CreateSaberMarks(), CG_Cube(), and trap_FX_AddPoly(). |
|
|
Referenced by CG_AddPlayerWeapon(), CG_Player(), and trap_FX_AddSprite(). |
|
|
Definition at line 349 of file q_shared.h. Referenced by BG_ParseField(), CG_ImpactMark(), CG_SpawnCGameEntFromVars(), ColorBytes3(), ColorBytes4(), ConnectTrail(), EWeb_SetBoneAngles(), G2Tur_SetBoneAngles(), G_FilterPacket(), G_Find(), G_SpawnGEntityFromSpawnVars(), LongSwap(), NormalToLatLong(), NPC_SetBoneAngles(), PM_BGEntForNum(), ShortSwap(), SP_worldspawn(), and trap_R_inPVS(). |
|
|
|
Referenced by SetPlaneSignbits(). |
|
|
|
|
|
Definition at line 1820 of file q_shared.h. |
|
|
Definition at line 3041 of file q_shared.h. Referenced by trap_CIN_RunCinematic(), and trap_CIN_StopCinematic(). |
|
|
Referenced by CG_AddSaberBlade(), and trap_FX_AddPrimitive(). |
|
|
|
|
Definition at line 545 of file q_shared.h. |
|
|
Definition at line 543 of file q_shared.h. |
|
|
Definition at line 544 of file q_shared.h. |
|
|
Definition at line 3050 of file q_shared.h. Referenced by Team_SetFlagStatus(). |
|
|
Referenced by BotMindTricked(), ClientSpawn(), G_IsMindTricked(), and WP_AddAsMindtricked(). |
|
|
Definition at line 613 of file q_shared.h. Referenced by BG_CanUseFPNow(), BG_ForcePowerDrain(), DoGripAction(), ForcePowerUsableOn(), WP_DoSpecificPower(), WP_ForcePowerAvailable(), WP_ForcePowerInUse(), WP_ForcePowerStart(), WP_ForcePowerStop(), WP_ForcePowersUpdate(), and WP_ForcePowerUsable(). |
|
|
Definition at line 360 of file q_shared.h. |
|
|
Definition at line 1888 of file q_shared.h. Referenced by CG_G2TraceCollide(). |
|
|
Definition at line 539 of file q_shared.h. |
|
|
Definition at line 540 of file q_shared.h. |
|
|
Definition at line 541 of file q_shared.h. |
|
|
Definition at line 990 of file q_shared.h. Referenced by CG_Chunks(), CG_MiscModelExplosion(), funcBBrushDieGo(), G_Chunks(), and G_MiscModelExplosion(). |
|
|
Definition at line 3107 of file q_shared.h. |
|
|
|
|
|
Referenced by trap_RealTime(). |
|
|
Definition at line 588 of file q_shared.h. Referenced by CG_DoSaber(), NPC_ParseParms(), SaberColorToString(), TranslateSaberColor(), UI_DoSaber(), UI_SaberDrawBlade(), WP_SaberParseParms(), and WPDEBUG_SaberColor(). |
|
|
|
Referenced by trap_SiegePersGet(), and trap_SiegePersSet(). |
|
|
Definition at line 1961 of file q_shared.h. Referenced by CG_PlayerAnimEventDo(), and Q3_PlaySound(). |
|
|
Referenced by CG_AddGhoul2Mark(), and trap_G2API_AddSkinGore(). |
|
|
Referenced by BG_SiegeTranslateGenericTable(), GetIDForString(), and GetStringForID(). |
|
|
Definition at line 359 of file q_shared.h. |
|
|
Definition at line 351 of file q_shared.h. |
|
|
|
Definition at line 531 of file q_shared.h. Referenced by CG_DoGlass(), G_BackwardAttachment(), G_RecursiveConnection(), and Vector2Set(). |
|
|
|
Definition at line 537 of file q_shared.h. |
|
|
|
Definition at line 534 of file q_shared.h. |
|
|
Definition at line 530 of file q_shared.h. Referenced by _DotProduct(), _VectorScale(), DistanceHorizontal(), DistanceHorizontalSquared(), NormalToLatLong(), Vector4Scale(), VectorNormalize(), and VectorNormalize2(). |
|
|
Definition at line 350 of file q_shared.h. |
|
|
|
|
|
|
Definition at line 577 of file q_shared.h.
00578 {
00579 SABER_RED,
00580 SABER_ORANGE,
00581 SABER_YELLOW,
00582 SABER_GREEN,
00583 SABER_BLUE,
00584 SABER_PURPLE,
00585 NUM_SABER_COLORS
00586
00587 };
|
|
|
Definition at line 590 of file q_shared.h.
00591 {
00592 FP_FIRST = 0,//marker
00593 FP_HEAL = 0,//instant
00594 FP_LEVITATION,//hold/duration
00595 FP_SPEED,//duration
00596 FP_PUSH,//hold/duration
00597 FP_PULL,//hold/duration
00598 FP_TELEPATHY,//instant
00599 FP_GRIP,//hold/duration
00600 FP_LIGHTNING,//hold/duration
00601 FP_RAGE,//duration
00602 FP_PROTECT,
00603 FP_ABSORB,
00604 FP_TEAM_HEAL,
00605 FP_TEAM_FORCE,
00606 FP_DRAIN,
00607 FP_SEE,
00608 FP_SABER_OFFENSE,
00609 FP_SABER_DEFENSE,
00610 FP_SABERTHROW,
00611 NUM_FORCE_POWERS
00612 };
|
|
|
Definition at line 843 of file q_shared.h.
00844 {
00845 FORCE_LEVEL_0,
00846 FORCE_LEVEL_1,
00847 FORCE_LEVEL_2,
00848 FORCE_LEVEL_3,
00849 NUM_FORCE_POWER_LEVELS
00850 };
|
|
|
Definition at line 967 of file q_shared.h.
00968 {
00969 MAT_METAL = 0, // scorched blue-grey metal
00970 MAT_GLASS, // not a real chunk type, just plays an effect with glass sprites
00971 MAT_ELECTRICAL, // sparks only
00972 MAT_ELEC_METAL, // sparks/electrical type metal
00973 MAT_DRK_STONE, // brown
00974 MAT_LT_STONE, // tan
00975 MAT_GLASS_METAL,// glass sprites and METAl chunk
00976 MAT_METAL2, // electrical metal type
00977 MAT_NONE, // no chunks
00978 MAT_GREY_STONE, // grey
00979 MAT_METAL3, // METAL and METAL2 chunks
00980 MAT_CRATE1, // yellow multi-colored crate chunks
00981 MAT_GRATE1, // grate chunks
00982 MAT_ROPE, // for yavin trial...no chunks, just wispy bits
00983 MAT_CRATE2, // read multi-colored crate chunks
00984 MAT_WHITE_METAL,// white angular chunks
00985 MAT_SNOWY_ROCK, // gray & brown chunks
00986
00987 NUM_MATERIALS
00988
00989 };
|
|
|
Definition at line 1945 of file q_shared.h.
01945 {
01946 CHAN_AUTO, //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" # Auto-picks an empty channel to play sound on
01947 CHAN_LOCAL, //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" # menu sounds, etc
01948 CHAN_WEAPON,//## %s !!"W:\game\base\!!sound\*.wav;*.mp3"
01949 CHAN_VOICE, //## %s !!"W:\game\base\!!sound\voice\*.wav;*.mp3" # Voice sounds cause mouth animation
01950 CHAN_VOICE_ATTEN, //## %s !!"W:\game\base\!!sound\voice\*.wav;*.mp3" # Causes mouth animation but still use normal sound falloff
01951 CHAN_ITEM, //## %s !!"W:\game\base\!!sound\*.wav;*.mp3"
01952 CHAN_BODY, //## %s !!"W:\game\base\!!sound\*.wav;*.mp3"
01953 CHAN_AMBIENT,//## %s !!"W:\game\base\!!sound\*.wav;*.mp3" # added for ambient sounds
01954 CHAN_LOCAL_SOUND, //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" #chat messages, etc
01955 CHAN_ANNOUNCER, //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" #announcer voices, etc
01956 CHAN_LESS_ATTEN, //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" #attenuates similar to chan_voice, but uses empty channel auto-pick behaviour
01957 CHAN_MENU1, //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" #menu stuff, etc
01958 CHAN_VOICE_GLOBAL, //## %s !!"W:\game\base\!!sound\voice\*.wav;*.mp3" # Causes mouth animation and is broadcast, like announcer
01959 CHAN_MUSIC, //## %s !!"W:\game\base\!!sound\*.wav;*.mp3" #music played as a looping sound - added by BTO (VV)
01960 };
|
|
|
Definition at line 3032 of file q_shared.h.
03032 {
03033 FMV_IDLE,
03034 FMV_PLAY, // play
03035 FMV_EOF, // all other conditions, i.e. stop/EOF/abort
03036 FMV_ID_BLT,
03037 FMV_ID_IDLE,
03038 FMV_LOOPED,
03039 FMV_ID_WAIT
03040 };
|
|
|
Definition at line 3104 of file q_shared.h.
03104 {
03105 #include "../qcommon/tags.h"
03106 };
|
|
|
Definition at line 3176 of file q_shared.h.
03176 {
03177 FONT_NONE,
03178 FONT_SMALL=1,
03179 FONT_MEDIUM,
03180 FONT_LARGE,
03181 FONT_SMALL2
03182 };
|
|
|
Definition at line 3043 of file q_shared.h.
03043 {
03044 FLAG_ATBASE = 0,
03045 FLAG_TAKEN, // CTF
03046 FLAG_TAKEN_RED, // One Flag CTF
03047 FLAG_TAKEN_BLUE, // One Flag CTF
03048 FLAG_DROPPED
03049 };
|
|
|
Definition at line 405 of file q_shared.h.
00405 {
00406 EXEC_NOW, // don't return until completed, a VM should NEVER use this,
00407 // because some commands might cause the VM to be unloaded...
00408 EXEC_INSERT, // insert at current position, but don't run yet
00409 EXEC_APPEND // add to end of the command buffer (normal case)
00410 } cbufExec_t;
|
|
|
Definition at line 2991 of file q_shared.h.
02991 {
02992 CA_UNINITIALIZED,
02993 CA_DISCONNECTED, // not talking to a server
02994 CA_AUTHORIZING, // not used any more, was checking cd key
02995 CA_CONNECTING, // sending request packets to the server
02996 CA_CHALLENGING, // sending challenge packets to the server
02997 CA_CONNECTED, // netchan_t established, getting gamestate
02998 CA_LOADING, // only during cgame initialization, never during main loop
02999 CA_PRIMED, // got gamestate, waiting for first frame
03000 CA_ACTIVE, // game views should be displayed
03001 CA_CINEMATIC // playing a cinematic or a static pic, not connected to a server
03002 } connstate_t;
|
|
|
Definition at line 1044 of file q_shared.h.
01045 {
01046 CT_NONE,
01047 CT_BLACK,
01048 CT_RED,
01049 CT_GREEN,
01050 CT_BLUE,
01051 CT_YELLOW,
01052 CT_MAGENTA,
01053 CT_CYAN,
01054 CT_WHITE,
01055 CT_LTGREY,
01056 CT_MDGREY,
01057 CT_DKGREY,
01058 CT_DKGREY2,
01059
01060 CT_VLTORANGE,
01061 CT_LTORANGE,
01062 CT_DKORANGE,
01063 CT_VDKORANGE,
01064
01065 CT_VLTBLUE1,
01066 CT_LTBLUE1,
01067 CT_DKBLUE1,
01068 CT_VDKBLUE1,
01069
01070 CT_VLTBLUE2,
01071 CT_LTBLUE2,
01072 CT_DKBLUE2,
01073 CT_VDKBLUE2,
01074
01075 CT_VLTBROWN1,
01076 CT_LTBROWN1,
01077 CT_DKBROWN1,
01078 CT_VDKBROWN1,
01079
01080 CT_VLTGOLD1,
01081 CT_LTGOLD1,
01082 CT_DKGOLD1,
01083 CT_VDKGOLD1,
01084
01085 CT_VLTPURPLE1,
01086 CT_LTPURPLE1,
01087 CT_DKPURPLE1,
01088 CT_VDKPURPLE1,
01089
01090 CT_VLTPURPLE2,
01091 CT_LTPURPLE2,
01092 CT_DKPURPLE2,
01093 CT_VDKPURPLE2,
01094
01095 CT_VLTPURPLE3,
01096 CT_LTPURPLE3,
01097 CT_DKPURPLE3,
01098 CT_VDKPURPLE3,
01099
01100 CT_VLTRED1,
01101 CT_LTRED1,
01102 CT_DKRED1,
01103 CT_VDKRED1,
01104 CT_VDKRED,
01105 CT_DKRED,
01106
01107 CT_VLTAQUA,
01108 CT_LTAQUA,
01109 CT_DKAQUA,
01110 CT_VDKAQUA,
01111
01112 CT_LTPINK,
01113 CT_DKPINK,
01114 CT_LTCYAN,
01115 CT_DKCYAN,
01116 CT_LTBLUE3,
01117 CT_BLUE3,
01118 CT_DKBLUE3,
01119
01120 CT_HUD_GREEN,
01121 CT_HUD_RED,
01122 CT_ICON_BLUE,
01123 CT_NO_AMMO_RED,
01124 CT_HUD_ORANGE,
01125
01126 CT_MAX
01127 } ct_table_t;
|
|
|
Definition at line 3086 of file q_shared.h.
03087 {
03088 ORIGIN = 0,
03089 POSITIVE_X,
03090 POSITIVE_Z,
03091 POSITIVE_Y,
03092 NEGATIVE_X,
03093 NEGATIVE_Z,
03094 NEGATIVE_Y
03095 };
|
|
|
Definition at line 451 of file q_shared.h.
00451 {
00452 ERR_FATAL, // exit the entire game with a popup window
00453 ERR_DROP, // print to console and disconnect from game
00454 ERR_SERVERDISCONNECT, // don't kill server
00455 ERR_DISCONNECT, // client disconnected from the server
00456 ERR_NEED_CD // pop up the need-cd dialog
00457 } errorParm_t;
|
|
|
Definition at line 3166 of file q_shared.h.
03167 {
03168 eForceReload_NOTHING,
03169 // eForceReload_BSP, // not used in MP codebase
03170 eForceReload_MODELS,
03171 eForceReload_ALL
03172
03173 } ForceReload_e;
|
|
|
Definition at line 1685 of file q_shared.h.
01685 {
01686 FS_READ,
01687 FS_WRITE,
01688 FS_APPEND,
01689 FS_APPEND_SYNC
01690 } fsMode_t;
|
|
|
Definition at line 1692 of file q_shared.h.
01692 {
01693 FS_SEEK_CUR,
01694 FS_SEEK_END,
01695 FS_SEEK_SET
01696 } fsOrigin_t;
|
|
|
Definition at line 2488 of file q_shared.h.
02489 {
02490 GENCMD_SABERSWITCH = 1,
02491 GENCMD_ENGAGE_DUEL,
02492 GENCMD_FORCE_HEAL,
02493 GENCMD_FORCE_SPEED,
02494 GENCMD_FORCE_THROW,
02495 GENCMD_FORCE_PULL,
02496 GENCMD_FORCE_DISTRACT,
02497 GENCMD_FORCE_RAGE,
02498 GENCMD_FORCE_PROTECT,
02499 GENCMD_FORCE_ABSORB,
02500 GENCMD_FORCE_HEALOTHER,
02501 GENCMD_FORCE_FORCEPOWEROTHER,
02502 GENCMD_FORCE_SEEING,
02503 GENCMD_USE_SEEKER,
02504 GENCMD_USE_FIELD,
02505 GENCMD_USE_BACTA,
02506 GENCMD_USE_ELECTROBINOCULARS,
02507 GENCMD_ZOOM,
02508 GENCMD_USE_SENTRY,
02509 GENCMD_USE_JETPACK,
02510 GENCMD_USE_BACTABIG,
02511 GENCMD_USE_HEALTHDISP,
02512 GENCMD_USE_AMMODISP,
02513 GENCMD_USE_EWEB,
02514 GENCMD_USE_CLOAK,
02515 GENCMD_SABERATTACKCYCLE,
02516 GENCMD_TAUNT,
02517 GENCMD_BOW,
02518 GENCMD_MEDITATE,
02519 GENCMD_FLOURISH,
02520 GENCMD_GLOAT
02521 } genCmds_t;
|
|
|
Definition at line 504 of file q_shared.h.
00504 {
00505 h_high,
00506 h_low,
00507 h_dontcare
00508 } ha_pref;
|
|
|
Definition at line 2126 of file q_shared.h.
02126 {
02127 SENTRY_NOROOM = 1,
02128 SENTRY_ALREADYPLACED,
02129 SHIELD_NOROOM,
02130 SEEKER_ALREADYDEPLOYED
02131 } itemUseFail_t;
|
|
|
Definition at line 438 of file q_shared.h.
00438 {
00439 PRINT_ALL,
00440 PRINT_DEVELOPER, // only print when "developer 1"
00441 PRINT_WARNING,
00442 PRINT_ERROR
00443 } printParm_t;
|
|
|
|
Definition at line 672 of file q_shared.h. Referenced by TranslateSaberStyle().
00673 {
00674 SS_NONE = 0,
00675 SS_FAST,
00676 SS_MEDIUM,
00677 SS_STRONG,
00678 SS_DESANN,
00679 SS_TAVION,
00680 SS_DUAL,
00681 SS_STAFF,
00682 SS_NUM_SABER_STYLES
00683 } saber_styles_t;
|
|
|
Definition at line 558 of file q_shared.h.
00558 {
00559 BLOCKED_NONE,
00560 BLOCKED_BOUNCE_MOVE,
00561 BLOCKED_PARRY_BROKEN,
00562 BLOCKED_ATK_BOUNCE,
00563 BLOCKED_UPPER_RIGHT,
00564 BLOCKED_UPPER_LEFT,
00565 BLOCKED_LOWER_RIGHT,
00566 BLOCKED_LOWER_LEFT,
00567 BLOCKED_TOP,
00568 BLOCKED_UPPER_RIGHT_PROJ,
00569 BLOCKED_UPPER_LEFT_PROJ,
00570 BLOCKED_LOWER_RIGHT_PROJ,
00571 BLOCKED_LOWER_LEFT_PROJ,
00572 BLOCKED_TOP_PROJ
00573 } saberBlockedType_t;
|
|
|
Definition at line 552 of file q_shared.h.
00552 {
00553 BLK_NO,
00554 BLK_TIGHT, // Block only attacks and shots around the saber itself, a bbox of around 12x12x12
00555 BLK_WIDE // Block all attacks in an area around the player in a rough arc of 180 degrees
00556 } saberBlockType_t;
|
|
|
Definition at line 615 of file q_shared.h. Referenced by TranslateSaberType(), UI_GetSaberForMenu(), UI_SaberDrawBlades(), and WP_SaberParseParms().
00616 {
00617 SABER_NONE = 0,
00618 SABER_SINGLE,
00619 SABER_STAFF,
00620 SABER_DAGGER,
00621 SABER_BROAD,
00622 SABER_PRONG,
00623 SABER_ARC,
00624 SABER_SAI,
00625 SABER_CLAW,
00626 SABER_LANCE,
00627 SABER_STAR,
00628 SABER_TRIDENT,
00629 SABER_SITH_SWORD,
00630 NUM_SABERS
00631 } saberType_t;
|
|
|
Definition at line 960 of file q_shared.h.
00961 {
00962 IKS_NONE = 0,
00963 IKS_DYNAMIC
00964 };
|
|
|
Definition at line 867 of file q_shared.h.
00868 {
00869 RE_MODEL_ROOT= 0x00000001, //"model_root"
00870 RE_PELVIS= 0x00000002, //"pelvis"
00871 RE_LOWER_LUMBAR= 0x00000004, //"lower_lumbar"
00872 RE_UPPER_LUMBAR= 0x00000008, //"upper_lumbar"
00873 RE_THORACIC= 0x00000010, //"thoracic"
00874 RE_CRANIUM= 0x00000020, //"cranium"
00875 RE_RHUMEROUS= 0x00000040, //"rhumerus"
00876 RE_LHUMEROUS= 0x00000080, //"lhumerus"
00877 RE_RRADIUS= 0x00000100, //"rradius"
00878 RE_LRADIUS= 0x00000200, //"lradius"
00879 RE_RFEMURYZ= 0x00000400, //"rfemurYZ"
00880 RE_LFEMURYZ= 0x00000800, //"lfemurYZ"
00881 RE_RTIBIA= 0x00001000, //"rtibia"
00882 RE_LTIBIA= 0x00002000, //"ltibia"
00883 RE_RHAND= 0x00004000, //"rhand"
00884 RE_LHAND= 0x00008000, //"lhand"
00885 RE_RTARSAL= 0x00010000, //"rtarsal"
00886 RE_LTARSAL= 0x00020000, //"ltarsal"
00887 RE_RTALUS= 0x00040000, //"rtalus"
00888 RE_LTALUS= 0x00080000, //"ltalus"
00889 RE_RRADIUSX= 0x00100000, //"rradiusX"
00890 RE_LRADIUSX= 0x00200000, //"lradiusX"
00891 RE_RFEMURX= 0x00400000, //"rfemurX"
00892 RE_LFEMURX= 0x00800000, //"lfemurX"
00893 RE_CEYEBROW= 0x01000000 //"ceyebrow"
00894 };
|
|
|
Definition at line 856 of file q_shared.h.
00857 {
00858 RP_START_DEATH_ANIM,
00859 RP_END_DEATH_ANIM,
00860 RP_DEATH_COLLISION,
00861 RP_CORPSE_SHOT,
00862 RP_GET_PELVIS_OFFSET, // this actually does nothing but set the pelvisAnglesOffset, and pelvisPositionOffset
00863 RP_SET_PELVIS_OFFSET, // this actually does nothing but set the pelvisAnglesOffset, and pelvisPositionOffset
00864 RP_DISABLE_EFFECTORS // this removes effectors given by the effectorsToTurnOff member
00865 };
|
|
|
Definition at line 2056 of file q_shared.h.
02056 {
02057 TRACK_CHANNEL_NONE = 50,
02058 TRACK_CHANNEL_1,
02059 TRACK_CHANNEL_2,
02060 TRACK_CHANNEL_3,
02061 TRACK_CHANNEL_4,
02062 TRACK_CHANNEL_5,
02063 NUM_TRACK_CHANNELS
02064 } trackchan_t;
|
|
|
Definition at line 2644 of file q_shared.h.
02644 {
02645 TR_STATIONARY,
02646 TR_INTERPOLATE, // non-parametric, but interpolate between snapshots
02647 TR_LINEAR,
02648 TR_LINEAR_STOP,
02649 TR_NONLINEAR_STOP,
02650 TR_SINE, // value = base + sin( time / duration ) * delta
02651 TR_GRAVITY
02652 } trType_t;
|
|
|
Definition at line 428 of file q_shared.h.
00428 {
00429 WL_ERROR=1,
00430 WL_WARNING,
00431 WL_VERBOSE,
00432 WL_DEBUG
00433 };
|
|
||||||||||||
|
Definition at line 1221 of file q_math.c.
01221 {
01222 return v1[0]*v2[0] + v1[1]*v2[1] + v1[2]*v2[2];
01223 }
|
|
||||||||||||||||
|
Definition at line 1231 of file q_math.c. References vec3_t.
01231 {
01232 out[0] = veca[0]+vecb[0];
01233 out[1] = veca[1]+vecb[1];
01234 out[2] = veca[2]+vecb[2];
01235 }
|
|
||||||||||||
|
Definition at line 1237 of file q_math.c. References vec3_t.
01237 {
01238 out[0] = in[0];
01239 out[1] = in[1];
01240 out[2] = in[2];
01241 }
|
|
||||||||||||||||||||
|
Definition at line 1214 of file q_math.c. References vec3_t.
01214 {
01215 vecc[0] = veca[0] + scale*vecb[0];
01216 vecc[1] = veca[1] + scale*vecb[1];
01217 vecc[2] = veca[2] + scale*vecb[2];
01218 }
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
Definition at line 1225 of file q_math.c. References vec3_t.
01225 {
01226 out[0] = veca[0]-vecb[0];
01227 out[1] = veca[1]-vecb[1];
01228 out[2] = veca[2]-vecb[2];
01229 }
|
|
||||||||||||||||
|
Definition at line 1148 of file q_math.c. References vec3_t. Referenced by Think_SpawnNewDoorTrigger().
01148 {
01149 if ( v[0] < mins[0] ) {
01150 mins[0] = v[0];
01151 }
01152 if ( v[0] > maxs[0]) {
01153 maxs[0] = v[0];
01154 }
01155
01156 if ( v[1] < mins[1] ) {
01157 mins[1] = v[1];
01158 }
01159 if ( v[1] > maxs[1]) {
01160 maxs[1] = v[1];
01161 }
01162
01163 if ( v[2] < mins[2] ) {
01164 mins[2] = v[2];
01165 }
01166 if ( v[2] > maxs[2]) {
01167 maxs[2] = v[2];
01168 }
01169 }
|
|
||||||||||||
|
Definition at line 738 of file q_math.c. References AngleNormalize180(). Referenced by ClientThink_real(), InFOV(), InFOV3(), NPC_BSJump(), NPC_BSPointShoot(), NPC_GetHFOVPercentage(), NPC_GetVFOVPercentage(), NPC_UpdateAngles(), NPC_UpdateFiringAngles(), NPC_UpdateShootAngles(), Q3_Lerp2Pos(), R2D2_TurnAnims(), and WP_SaberPositionUpdate().
00738 {
00739 return AngleNormalize180( angle1 - angle2 );
00740 }
|
|
|
Definition at line 697 of file q_math.c. Referenced by BG_G2PlayerAngles(), BotAI(), BotChangeViewAngle(), BotChangeViewAngles(), BotUpdateInput(), and InFieldOfVision().
00697 {
00698 a = (360.0/65536) * ((int)(a*(65536/360.0)) & 65535);
00699 return a;
00700 }
|
|
|
Definition at line 722 of file q_math.c. References AngleNormalize360(). Referenced by AngleDelta(), BG_G2PlayerAngles(), BG_TouchJumpPad(), BG_UpdateLookAngles(), G_EstimateCamPos(), PM_UpdateViewAngles(), PM_VehFaceHyperspacePoint(), PM_VehForcedTurning(), PM_VehicleImpact(), ProcessOrientCommands(), and VEH_TurretAim().
00722 {
00723 angle = AngleNormalize360( angle );
00724 if ( angle > 180.0 ) {
00725 angle -= 360.0;
00726 }
00727 return angle;
00728 }
|
|
|
Definition at line 710 of file q_math.c. Referenced by AngleNormalize180(), Droid_Patrol(), Droid_Spin(), ImperialProbe_Wait(), Interrogator_PartsMove(), NAV_Bypass(), NAVNEW_SidestepBlocker(), NPC_BSGM_Attack(), NPC_BSJump(), NPC_BSPointShoot(), NPC_BSSearch(), NPC_BSWander(), NPC_FacePosition(), NPC_GetMoveDirection(), NPC_GetMoveDirectionAltRoute(), NPC_MoveToGoal(), pas_think(), PM_VehFaceHyperspacePoint(), R2D2_PartsMove(), and Sniper_FaceEnemy().
00710 {
00711 return (360.0 / 65536) * ((int)(angle * (65536 / 360.0)) & 65535);
00712 }
|
|
||||||||||||||||
|
Definition at line 690 of file q_math.c. References AngleSubtract(), and vec3_t. Referenced by BG_G2PlayerAngles(), CG_CheckPassengerTurretView(), PM_VehicleImpact(), and VEH_TurretAim().
00690 {
00691 v3[0] = AngleSubtract( v1[0], v2[0] );
00692 v3[1] = AngleSubtract( v1[1], v2[1] );
00693 v3[2] = AngleSubtract( v1[2], v2[2] );
00694 }
|
|
||||||||||||
|
Definition at line 530 of file q_math.c. References AngleVectors(), vec3_origin, vec3_t, and VectorSubtract. Referenced by BG_G2PlayerAngles(), BG_VehicleAdjustBBoxForOrientation(), CG_AddFragment(), CG_AddPacketEntities(), CG_AddPlayerWeapon(), CG_AddViewWeapon(), CG_CreateDistortionTrailPart(), CG_CreateModelFromSpawnEnt(), CG_Draw3DModel(), CG_DrawActiveFrame(), CG_DrawAutoMap(), CG_DrawPlayerShield(), CG_DrawPlayerSphere(), CG_EmplacedView(), CG_MiscEnt(), CG_Player(), CG_ScorePlum(), CG_TestModel_f(), G_EstimateCamPos(), Item_Model_Paint(), and WP_SaberPositionUpdate().
00530 {
00531 vec3_t right;
00532
00533 // angle vectors returns "right" instead of "y axis"
00534 AngleVectors( angles, axis[0], right, axis[2] );
00535 VectorSubtract( vec3_origin, right, axis[1] );
00536 }
|
|
||||||||||||
|
Definition at line 675 of file q_math.c. References fmod(). Referenced by AnglesSubtract(), BG_EmplacedView(), BG_G2PlayerAngles(), CanCounterThrow(), CG_PredictPlayerState(), EWebPositionUser(), EWebUpdateBoneAngles(), pas_think(), PM_VehFaceHyperspacePoint(), PM_VehForcedTurning(), ProcessOrientCommands(), and Q3_Lerp2Angles().
00675 {
00676 float a;
00677
00678 a = a1 - a2;
00679 a=fmod(a,360);//chop it down quickly, then level it out
00680 while ( a > 180 ) {
00681 a -= 360;
00682 }
00683 while ( a < -180 ) {
00684 a += 360;
00685 }
00686 return a;
00687 }
|
|
||||||||||||||||||||
|
|
Definition at line 538 of file q_math.c. References vec3_t. Referenced by CG_Beam(), CG_Draw3DModel(), CG_MakeExplosion(), FX_AddOrientedLine(), and Item_Model_Paint().
00538 {
00539 axis[0][0] = 1;
00540 axis[0][1] = 0;
00541 axis[0][2] = 0;
00542 axis[1][0] = 0;
00543 axis[1][1] = 1;
00544 axis[1][2] = 0;
00545 axis[2][0] = 0;
00546 axis[2][1] = 0;
00547 axis[2][2] = 1;
00548 }
|
|
||||||||||||
|
Definition at line 550 of file q_math.c. References vec3_t, and VectorCopy. Referenced by CG_Chunks(), CG_LaunchGib(), and CG_ThrowChunk().
00550 {
00551 VectorCopy( in[0], out[0] );
00552 VectorCopy( in[1], out[1] );
00553 VectorCopy( in[2], out[2] );
00554 }
|
|
||||||||||||||||
|
Definition at line 809 of file q_math.c. References cplane_s::dist, cplane_s::normal, cplane_s::signbits, cplane_s::type, and vec3_t.
00810 {
00811 float dist1, dist2;
00812 int sides;
00813
00814 // fast axial cases
00815 if (p->type < 3)
00816 {
00817 if (p->dist <= emins[p->type])
00818 return 1;
00819 if (p->dist >= emaxs[p->type])
00820 return 2;
00821 return 3;
00822 }
00823
00824 // general case
00825 switch (p->signbits)
00826 {
00827 case 0:
00828 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
00829 dist2 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
00830 break;
00831 case 1:
00832 dist1 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
00833 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
00834 break;
00835 case 2:
00836 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
00837 dist2 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
00838 break;
00839 case 3:
00840 dist1 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
00841 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
00842 break;
00843 case 4:
00844 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
00845 dist2 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
00846 break;
00847 case 5:
00848 dist1 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
00849 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
00850 break;
00851 case 6:
00852 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
00853 dist2 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
00854 break;
00855 case 7:
00856 dist1 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
00857 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
00858 break;
00859 default:
00860 dist1 = dist2 = 0; // shut up compiler
00861 break;
00862 }
00863
00864 sides = 0;
00865 if (dist1 >= p->dist)
00866 sides = 1;
00867 if (dist2 < p->dist)
00868 sides |= 2;
00869
00870 return sides;
00871 }
|
|
||||||||||||
|
Definition at line 324 of file q_math.c. References bytedirs, NUMVERTEXNORMALS, vec3_origin, vec3_t, and VectorCopy. Referenced by CG_EntityEvent(), and CG_VehicleWeaponImpact().
00324 {
00325 if ( b < 0 || b >= NUMVERTEXNORMALS ) {
00326 VectorCopy( vec3_origin, dir );
00327 return;
00328 }
00329 VectorCopy (bytedirs[b], dir);
00330 }
|
|
|
Definition at line 279 of file q_math.c.
00279 {
00280 if ( i < -128 ) {
00281 return -128;
00282 }
00283 if ( i > 127 ) {
00284 return 127;
00285 }
00286 return i;
00287 }
|
|
|
Definition at line 289 of file q_math.c.
00289 {
00290 if ( i < -32768 ) {
00291 return -32768;
00292 }
00293 if ( i > 0x7fff ) {
00294 return 0x7fff;
00295 }
00296 return i;
00297 }
|
|
||||||||||||
|
Definition at line 1129 of file q_math.c. References vec3_t.
01129 {
01130 mins[0] = mins[1] = mins[2] = 99999;
01131 maxs[0] = maxs[1] = maxs[2] = -99999;
01132 }
|
|
||||||||||||||||
|
Definition at line 333 of file q_math.c. References byte.
|
|
||||||||||||||||||||
|
Definition at line 343 of file q_math.c. References byte.
|
|
|
Definition at line 284 of file q_shared.c. References Com_sprintf(), and name. Referenced by NPC_ParseParms(), NPC_Precache(), NPC_PrecacheAnimationCFG(), UI_SaberGetHiltInfo(), UI_SaberParseParm(), VEH_LoadVehicle(), VEH_LoadVehWeapon(), WP_SaberParseParm(), and WP_SaberParseParms().
00285 {
00286 com_lines = 0;
00287 Com_sprintf(com_parsename, sizeof(com_parsename), "%s", name);
00288 }
|
|
||||||||||||||||
|
Definition at line 64 of file q_shared.c. References min.
|
|
||||||||||||||||
|
Definition at line 51 of file q_shared.c. References min.
|
|
|
Definition at line 353 of file q_shared.c. References qboolean, qfalse, and qtrue. Referenced by NPC_LoadParms(), UI_SaberLoadParms(), and WP_SaberLoadParms().
00353 {
00354 char *in, *out;
00355 int c;
00356 qboolean newline = qfalse, whitespace = qfalse;
00357
00358 in = out = data_p;
00359 if (in) {
00360 while ((c = *in) != 0) {
00361 // skip double slash comments
00362 if ( c == '/' && in[1] == '/' ) {
00363 while (*in && *in != '\n') {
00364 in++;
00365 }
00366 // skip /* */ comments
00367 } else if ( c == '/' && in[1] == '*' ) {
00368 while ( *in && ( *in != '*' || in[1] != '/' ) )
00369 in++;
00370 if ( *in )
00371 in += 2;
00372 // record when we hit a newline
00373 } else if ( c == '\n' || c == '\r' ) {
00374 newline = qtrue;
00375 in++;
00376 // record when we hit whitespace
00377 } else if ( c == ' ' || c == '\t') {
00378 whitespace = qtrue;
00379 in++;
00380 // an actual token
00381 } else {
00382 // if we have a pending newline, emit it (and it counts as whitespace)
00383 if (newline) {
00384 *out++ = '\n';
00385 newline = qfalse;
00386 whitespace = qfalse;
00387 } if (whitespace) {
00388 *out++ = ' ';
00389 whitespace = qfalse;
00390 }
00391
00392 // copy quoted strings unmolested
00393 if (c == '"') {
00394 *out++ = c;
00395 in++;
00396 while (1) {
00397 c = *in;
00398 if (c && c != '"') {
00399 *out++ = c;
00400 in++;
00401 } else {
00402 break;
00403 }
00404 }
00405 if (c == '"') {
00406 *out++ = c;
00407 in++;
00408 }
00409 } else {
00410 *out = c;
00411 out++;
00412 in++;
00413 }
00414 }
00415 }
00416 }
00417 *out = 0;
00418 return out - data_p;
00419 }
|
|
||||||||||||||||
|
Definition at line 112 of file q_shared.c. References Com_sprintf(), MAX_QPATH, Q_strncpyz(), and strlen().
00112 {
00113 char oldPath[MAX_QPATH];
00114 char *src;
00115
00116 //
00117 // if path doesn't have a .EXT, append extension
00118 // (extension should include the .)
00119 //
00120 src = path + strlen(path) - 1;
00121
00122 while (*src != '/' && src != path) {
00123 if ( *src == '.' ) {
00124 return; // it has an extension
00125 }
00126 src--;
00127 }
00128
00129 Q_strncpyz( oldPath, path, sizeof( oldPath ) );
00130 Com_sprintf( path, maxSize, "%s%s", oldPath, extension );
00131 }
|
|
||||||||||||||||
|
|
Definition at line 290 of file q_shared.c.
00291 {
00292 return com_lines;
00293 }
|
|
||||||||||||
|
Definition at line 666 of file q_shared.c. References Com_Error(), COM_Parse(), ERR_DROP, and strcmp(). Referenced by Parse1DMatrix(), Parse2DMatrix(), and Parse3DMatrix().
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
Definition at line 295 of file q_shared.c. References COM_ParseExt(), and qtrue. Referenced by BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), CG_NewParticleArea(), CG_StartMusic(), COM_MatchToken(), G_ParseInfos(), Parse1DMatrix(), ParseAnimationEvtBlock(), UI_ParseAnimationFile(), and UI_ParseInfos().
00296 {
00297 return COM_ParseExt( data_p, qtrue );
00298 }
|
|
||||||||||||
|
Definition at line 300 of file q_shared.c. References Com_Printf(), va_end, va_list, va_start, and vsprintf().
00301 {
00302 va_list argptr;
00303 static char string[4096];
00304
00305 va_start (argptr, format);
00306 vsprintf (string, format, argptr);
00307 va_end (argptr);
00308
00309 Com_Printf("ERROR: %s, line %d: %s\n", com_parsename, com_lines, string);
00310 }
|
|
||||||||||||
|
Definition at line 421 of file q_shared.c. References MAX_TOKEN_CHARS, NULL, qboolean, qfalse, and SkipWhitespace(). Referenced by Asset_Parse(), BG_ParseAnimationFile(), BG_ParseLiteral(), CG_DrawSkyBoxPortal(), CG_Load_Menu(), CG_LoadMenus(), CG_ParseSurfsFile(), COM_Parse(), COM_ParseFloat(), COM_ParseInt(), COM_ParseString(), Float_Parse(), G_ParseInfos(), Int_Parse(), NPC_ParseParms(), NPC_Precache(), NPC_PrecacheAnimationCFG(), ParseAnimationEvtBlock(), SkipBracedSection(), String_Parse(), UI_ParseInfos(), UI_ParseLiteral(), UI_ParseLiteralSilent(), UI_SaberGetHiltInfo(), UI_SaberParseParm(), VEH_LoadVehicle(), VEH_LoadVehWeapon(), WP_SaberParseParm(), and WP_SaberParseParms().
00422 {
00423 int c = 0, len;
00424 qboolean hasNewLines = qfalse;
00425 const char *data;
00426
00427 data = *data_p;
00428 len = 0;
00429 com_token[0] = 0;
00430
00431 // make sure incoming data is valid
00432 if ( !data )
00433 {
00434 *data_p = NULL;
00435 return com_token;
00436 }
00437
00438 while ( 1 )
00439 {
00440 // skip whitespace
00441 data = SkipWhitespace( data, &hasNewLines );
00442 if ( !data )
00443 {
00444 *data_p = NULL;
00445 return com_token;
00446 }
00447 if ( hasNewLines && !allowLineBreaks )
00448 {
00449 *data_p = data;
00450 return com_token;
00451 }
00452
00453 c = *data;
00454
00455 // skip double slash comments
00456 if ( c == '/' && data[1] == '/' )
00457 {
00458 data += 2;
00459 while (*data && *data != '\n') {
00460 data++;
00461 }
00462 }
00463 // skip /* */ comments
00464 else if ( c=='/' && data[1] == '*' )
00465 {
00466 data += 2;
00467 while ( *data && ( *data != '*' || data[1] != '/' ) )
00468 {
00469 data++;
00470 }
00471 if ( *data )
00472 {
00473 data += 2;
00474 }
00475 }
00476 else
00477 {
00478 break;
00479 }
00480 }
00481
00482 // handle quoted strings
00483 if (c == '\"')
00484 {
00485 data++;
00486 while (1)
00487 {
00488 c = *data++;
00489 if (c=='\"' || !c)
00490 {
00491 com_token[len] = 0;
00492 *data_p = ( char * ) data;
00493 return com_token;
00494 }
00495 if (len < MAX_TOKEN_CHARS)
00496 {
00497 com_token[len] = c;
00498 len++;
00499 }
00500 }
00501 }
00502
00503 // parse a regular word
00504 do
00505 {
00506 if (len < MAX_TOKEN_CHARS)
00507 {
00508 com_token[len] = c;
00509 len++;
00510 }
00511 data++;
00512 c = *data;
00513 if ( c == '\n' )
00514 com_lines++;
00515 } while (c>32);
00516
00517 if (len == MAX_TOKEN_CHARS)
00518 {
00519 // Com_Printf ("Token exceeded %i chars, discarded.\n", MAX_TOKEN_CHARS);
00520 len = 0;
00521 }
00522 com_token[len] = 0;
00523
00524 *data_p = ( char * ) data;
00525 return com_token;
00526 }
|
|
||||||||||||
|
Definition at line 625 of file q_shared.c. References atof(), COM_ParseExt(), Com_Printf(), qboolean, qfalse, and qtrue. Referenced by COM_ParseVec4(), NPC_ParseParms(), ParseRect(), Script_Transition2(), and WP_SaberParseParms().
00626 {
00627 const char *token;
00628
00629 token = COM_ParseExt( data, qfalse );
00630 if ( token[0] == 0 )
00631 {
00632 Com_Printf( "unexpected EOF\n" );
00633 return qtrue;
00634 }
00635
00636 *f = atof( token );
00637 return qfalse;
00638 }
|
|
||||||||||||
|
Definition at line 605 of file q_shared.c. References atoi(), COM_ParseExt(), Com_Printf(), qboolean, qfalse, and qtrue. Referenced by NPC_ParseParms(), and WP_SaberParseParms().
00606 {
00607 const char *token;
00608
00609 token = COM_ParseExt( data, qfalse );
00610 if ( token[0] == 0 )
00611 {
00612 Com_Printf( "unexpected EOF\n" );
00613 return qtrue;
00614 }
00615
00616 *i = atoi( token );
00617 return qfalse;
00618 }
|
|
||||||||||||
|
Definition at line 588 of file q_shared.c. References COM_ParseExt(), Com_Printf(), qboolean, qfalse, and qtrue. Referenced by CG_ParseSurfsFile(), NPC_ParseParms(), NPC_Precache(), NPC_PrecacheAnimationCFG(), UI_SaberParseParm(), WP_SaberParseParm(), and WP_SaberParseParms().
00589 {
00590 // *s = COM_ParseExt( data, qtrue );
00591 *s = COM_ParseExt( data, qfalse );
00592 if ( s[0] == 0 )
00593 {
00594 Com_Printf("unexpected EOF\n");
00595 return qtrue;
00596 }
00597 return qfalse;
00598 }
|
|
||||||||||||
|
Definition at line 645 of file q_shared.c. References COM_ParseFloat(), qboolean, qfalse, qtrue, and vec4_t.
00646 {
00647 int i;
00648 float f;
00649
00650 for (i = 0; i < 4; i++)
00651 {
00652 if (COM_ParseFloat(buffer, &f))
00653 {
00654 return qtrue;
00655 }
00656 (*c)[i] = f;
00657 }
00658 return qfalse;
00659 }
|
|
||||||||||||
|
Definition at line 312 of file q_shared.c. References Com_Printf(), va_end, va_list, va_start, and vsprintf().
00313 {
00314 va_list argptr;
00315 static char string[4096];
00316
00317 va_start (argptr, format);
00318 vsprintf (string, format, argptr);
00319 va_end (argptr);
00320
00321 Com_Printf("WARNING: %s, line %d: %s\n", com_parsename, com_lines, string);
00322 }
|
|
||||||||||||
|
|
Definition at line 80 of file q_shared.c.
00081 {
00082 char *last;
00083
00084 last = pathname;
00085 while (*pathname)
00086 {
00087 if (*pathname=='/')
00088 last = pathname+1;
00089 pathname++;
00090 }
00091 return last;
00092 }
|
|
||||||||||||||||||||
|
||||||||||||
|
Definition at line 99 of file q_shared.c. Referenced by CG_CustomSound(), CG_LoadCISounds(), CG_RegisterWeapon(), Q3_PlaySound(), and UI_LoadForceConfig_List().
00099 {
00100 while ( *in && *in != '.' ) {
00101 *out++ = *in++;
00102 }
00103 *out = 0;
00104 }
|
|
|
Definition at line 301 of file q_math.c. References bytedirs, DotProduct, NUMVERTEXNORMALS, and vec3_t. Referenced by ForceDrainDamage(), G_Damage(), G_ExplodeMissile(), G_MissileImpact(), locateCamera(), thermalDetonatorExplode(), and WP_DisruptorAltFire().
00301 {
00302 int i, best;
00303 float d, bestd;
00304
00305 if ( !dir ) {
00306 return 0;
00307 }
00308
00309 bestd = 0;
00310 best = 0;
00311 for (i=0 ; i<NUMVERTEXNORMALS ; i++)
00312 {
00313 d = DotProduct (dir, bytedirs[i]);
00314 if (d > bestd)
00315 {
00316 bestd = d;
00317 best = i;
00318 }
00319 }
00320
00321 return best;
00322 }
|
|
||||||||||||
|
Definition at line 1134 of file q_math.c. References sqrt(), vec3_t, vec_t, and VectorSubtract.
01134 {
01135 vec3_t v;
01136
01137 VectorSubtract( p2, p1, v );
01138 return sqrt( v[0]*v[0] + v[1]*v[1] ); //Leave off the z component
01139 }
|
|
||||||||||||
|
Definition at line 1141 of file q_math.c. References vec3_t, vec_t, and VectorSubtract. Referenced by ATST_Attack(), Howler_Combat(), ImperialProbe_AttackDecision(), Interrogator_Attack(), Jedi_CheckAmbushPlayer(), Mark1_AttackDecision(), Mark2_AttackDecision(), MineMonster_Combat(), NPC_BSGM_Attack(), NPC_BSGrenadier_Attack(), NPC_FindCombatPoint(), Remote_Attack(), Seeker_Attack(), Seeker_FindEnemy(), Seeker_FollowOwner(), and Sentry_AttackDecision().
01141 {
01142 vec3_t v;
01143
01144 VectorSubtract( p2, p1, v );
01145 return v[0]*v[0] + v[1]*v[1]; //Leave off the z component
01146 }
|
|
|
Definition at line 220 of file q_shared.c. References _FloatByteUnion::f, _FloatByteUnion::i, and LongSwap().
00220 {
00221 const _FloatByteUnion *in;
00222 _FloatByteUnion out;
00223
00224 in = (_FloatByteUnion *)f;
00225 out.i = LongSwap(in->i);
00226
00227 return out.f;
00228 }
|
|
||||||||||||
|
Definition at line 1441 of file q_math.c. References min. Referenced by asteroid_field_think(), CG_AddGhoul2Mark(), CG_Chunks(), CG_FireWeapon(), CG_G2MarkEvent(), CG_G2PlayerHeadAnims(), CG_RagDoll(), CG_SaberCompWork(), Do_Strike(), G_RunObject(), misc_faller_create(), NPC_AimWiggle(), NPC_BSFlee(), NPC_BSGM_Attack(), NPC_BSSearch(), NPC_BSWander(), NPC_CheckAttack(), NPC_FacePosition(), NPC_UpdateFiringAngles(), Q_flrand(), Rancor_Swing(), Remote_Attack(), Seeker_MaintainHeight(), Sniper_FaceEnemy(), Sniper_UpdateEnemyPos(), and Wampa_Slash().
|
|
||||||||||||
|
Referenced by AngleSubtract(). |
|
||||||||||||
|
Definition at line 13 of file q_shared.c. References stringID_table_s::id, name, stringID_table_s::name, NULL, Q_stricmp(), and stringID_table_t. Referenced by BG_ParseAnimationFile(), G_ActivateBehavior(), NPC_Kill_f(), NPC_ParseParms(), NPC_Precache(), ParseAnimationEvtBlock(), Q3_GetFloat(), Q3_GetString(), Q3_GetVector(), Q3_Set(), SP_misc_weapon_shooter(), UI_ParseAnimationFile(), vmMain(), and WP_SaberParseParms().
|
|
||||||||||||
|
Definition at line 35 of file q_shared.c. References stringID_table_s::id, stringID_table_s::name, NULL, and stringID_table_t. Referenced by G_ActivateBehavior().
|
|
||||||||||||
|
|
|
||||||||||||||||
|
Definition at line 1108 of file q_shared.c.
01108 {
01109 char *o;
01110 const char *s;
01111
01112 s = *head;
01113
01114 if ( *s == '\\' ) {
01115 s++;
01116 }
01117 key[0] = 0;
01118 value[0] = 0;
01119
01120 o = key;
01121 while ( *s != '\\' ) {
01122 if ( !*s ) {
01123 *o = 0;
01124 *head = s;
01125 return;
01126 }
01127 *o++ = *s++;
01128 }
01129 *o = 0;
01130 s++;
01131
01132 o = value;
01133 while ( *s != '\\' && *s ) {
01134 *o++ = *s++;
01135 }
01136 *o = 0;
01137
01138 *head = s;
01139 }
|
|
||||||||||||
|
Definition at line 1147 of file q_shared.c. References Com_Error(), ERR_DROP, MAX_INFO_KEY, MAX_INFO_STRING, MAX_INFO_VALUE, strchr(), strcmp(), strcpy(), and strlen(). Referenced by Info_SetValueForKey().
01147 {
01148 char *start;
01149 char pkey[MAX_INFO_KEY];
01150 char value[MAX_INFO_VALUE];
01151 char *o;
01152
01153 if ( strlen( s ) >= MAX_INFO_STRING ) {
01154 Com_Error( ERR_DROP, "Info_RemoveKey: oversize infostring" );
01155 }
01156
01157 if (strchr (key, '\\')) {
01158 return;
01159 }
01160
01161 while (1)
01162 {
01163 start = s;
01164 if (*s == '\\')
01165 s++;
01166 o = pkey;
01167 while (*s != '\\')
01168 {
01169 if (!*s)
01170 return;
01171 *o++ = *s++;
01172 }
01173 *o = 0;
01174 s++;
01175
01176 o = value;
01177 while (*s != '\\' && *s)
01178 {
01179 if (!*s)
01180 return;
01181 *o++ = *s++;
01182 }
01183 *o = 0;
01184
01185 if (!strcmp (key, pkey) )
01186 {
01187 strcpy (start, s); // remove this part
01188 return;
01189 }
01190
01191 if (!*s)
01192 return;
01193 }
01194
01195 }
|
|
||||||||||||
|
|
|
||||||||||||||||
|
Definition at line 1280 of file q_shared.c. References Com_Error(), Com_Printf(), Com_sprintf(), ERR_DROP, Info_RemoveKey(), MAX_INFO_STRING, strcat(), strchr(), strcpy(), and strlen(). Referenced by ClientBegin(), ClientSpawn(), ClientUserinfoChanged(), Cmd_TeamTask_f(), G_ParseInfos(), SetTeamQuick(), SP_terrain(), and UI_ParseInfos().
01280 {
01281 char newi[MAX_INFO_STRING];
01282
01283 if ( strlen( s ) >= MAX_INFO_STRING ) {
01284 Com_Error( ERR_DROP, "Info_SetValueForKey: oversize infostring" );
01285 }
01286
01287 if (strchr (key, '\\') || strchr (value, '\\'))
01288 {
01289 Com_Printf ("Can't use keys or values with a \\\n");
01290 return;
01291 }
01292
01293 if (strchr (key, ';') || strchr (value, ';'))
01294 {
01295 Com_Printf ("Can't use keys or values with a semicolon\n");
01296 return;
01297 }
01298
01299 if (strchr (key, '\"') || strchr (value, '\"'))
01300 {
01301 Com_Printf ("Can't use keys or values with a \"\n");
01302 return;
01303 }
01304
01305 Info_RemoveKey (s, key);
01306 if (!value || !strlen(value))
01307 return;
01308
01309 Com_sprintf (newi, sizeof(newi), "\\%s\\%s", key, value);
01310
01311 if (strlen(newi) + strlen(s) > MAX_INFO_STRING)
01312 {
01313 Com_Printf ("Info string length exceeded\n");
01314 return;
01315 }
01316
01317 strcat (newi, s);
01318 strcpy (s, newi);
01319 }
|
|
||||||||||||||||
|
Definition at line 1328 of file q_shared.c. References BIG_INFO_STRING, Com_Error(), Com_Printf(), Com_sprintf(), ERR_DROP, Info_RemoveKey_Big(), strcat(), strchr(), and strlen().
01328 {
01329 char newi[BIG_INFO_STRING];
01330
01331 if ( strlen( s ) >= BIG_INFO_STRING ) {
01332 Com_Error( ERR_DROP, "Info_SetValueForKey: oversize infostring" );
01333 }
01334
01335 if (strchr (key, '\\') || strchr (value, '\\'))
01336 {
01337 Com_Printf ("Can't use keys or values with a \\\n");
01338 return;
01339 }
01340
01341 if (strchr (key, ';') || strchr (value, ';'))
01342 {
01343 Com_Printf ("Can't use keys or values with a semicolon\n");
01344 return;
01345 }
01346
01347 if (strchr (key, '\"') || strchr (value, '\"'))
01348 {
01349 Com_Printf ("Can't use keys or values with a \"\n");
01350 return;
01351 }
01352
01353 Info_RemoveKey_Big (s, key);
01354 if (!value || !strlen(value))
01355 return;
01356
01357 Com_sprintf (newi, sizeof(newi), "\\%s\\%s", key, value);
01358
01359 if (strlen(newi) + strlen(s) > BIG_INFO_STRING)
01360 {
01361 Com_Printf ("BIG Info string length exceeded\n");
01362 return;
01363 }
01364
01365 strcat (s, newi);
01366 }
|
|
|
Definition at line 1263 of file q_shared.c. References qboolean, qfalse, qtrue, and strchr(). Referenced by ClientUserinfoChanged().
|
|
||||||||||||
|
Definition at line 1051 of file q_shared.c. References BIG_INFO_KEY, BIG_INFO_STRING, BIG_INFO_VALUE, Com_Error(), ERR_DROP, Q_stricmp(), and strlen(). Referenced by CG_DrawInformation(), CG_DrawSiegeInfo(), CG_LoadingClient(), CG_NewClientInfo(), CG_ParseServerinfo(), ClientBegin(), ClientConnect(), ClientSpawn(), ClientUserinfoChanged(), Cmd_CallVote_f(), G_AddRandomBot(), G_BotConnect(), G_DoesMapSupportGametype(), G_GetArenaInfoByMap(), G_GetBotInfoByName(), G_InitSessionData(), G_LogWeaponOutput(), G_RefreshNextMap(), Svcmd_BotList_f(), UI_DrawConnectScreen(), UI_FeederSelection(), UI_ForceConfigHandle(), UI_ForceSide_HandleKey(), UI_GetBotInfoByName(), UI_GetBotNameByNumber(), UI_HasSetSaberOnly(), UI_LoadArenas(), UI_ParseInfos(), UI_ReadLegalForce(), UI_SetSiegeTeams(), UI_TrueJediEnabled(), UpdateForceStatus(), and WP_InitForcePowers().
01051 {
01052 char pkey[BIG_INFO_KEY];
01053 static char value[2][BIG_INFO_VALUE]; // use two buffers so compares
01054 // work without stomping on each other
01055 static int valueindex = 0;
01056 char *o;
01057
01058 if ( !s || !key ) {
01059 return "";
01060 }
01061
01062 if ( strlen( s ) >= BIG_INFO_STRING ) {
01063 Com_Error( ERR_DROP, "Info_ValueForKey: oversize infostring" );
01064 }
01065
01066 valueindex ^= 1;
01067 if (*s == '\\')
01068 s++;
01069 while (1)
01070 {
01071 o = pkey;
01072 while (*s != '\\')
01073 {
01074 if (!*s)
01075 return "";
01076 *o++ = *s++;
01077 }
01078 *o = 0;
01079 s++;
01080
01081 o = value[valueindex];
01082
01083 while (*s != '\\' && *s)
01084 {
01085 *o++ = *s++;
01086 }
01087 *o = 0;
01088
01089 if (!Q_stricmp (key, pkey) )
01090 return value[valueindex];
01091
01092 if (!*s)
01093 break;
01094 s++;
01095 }
01096
01097 return "";
01098 }
|
|
||||||||||||
|
Definition at line 1458 of file q_math.c. References min. Referenced by Q_irand().
|
|
||||||||||||||||
|
Definition at line 653 of file q_math.c. Referenced by G_SPSaberDamageTraceLerped().
00653 {
00654 float a;
00655
00656 if ( to - from > 180 ) {
00657 to -= 360;
00658 }
00659 if ( to - from < -180 ) {
00660 to += 360;
00661 }
00662 a = from + frac * (to - from);
00663
00664 return a;
00665 }
|
|
|
Definition at line 177 of file q_shared.c. References byte. Referenced by FloatSwap().
00178 {
00179 byte b1,b2,b3,b4;
00180
00181 b1 = l&255;
00182 b2 = (l>>8)&255;
00183 b3 = (l>>16)&255;
00184 b4 = (l>>24)&255;
00185
00186 return ((int)b1<<24) + ((int)b2<<16) + ((int)b3<<8) + b4;
00187 }
|
|
||||||||||||||||
|
Definition at line 587 of file q_math.c. References DotProduct, vec3_t, VectorMA, and VectorNormalize().
00587 {
00588 float d;
00589
00590 // this rotate and negate guarantees a vector
00591 // not colinear with the original
00592 right[1] = -forward[0];
00593 right[2] = forward[1];
00594 right[0] = forward[2];
00595
00596 d = DotProduct (right, forward);
00597 VectorMA (right, -d, forward, right);
00598 VectorNormalize (right);
00599 CrossProduct (right, forward, up);
00600 }
|
|
||||||||||||||||
|
Definition at line 1293 of file q_math.c. Referenced by CG_GetTagWorldPosition(), CG_PositionEntityOnTag(), CG_PositionRotatedEntityOnTag(), and RotatePointAroundVector().
01293 {
01294 out[0][0] = in1[0][0] * in2[0][0] + in1[0][1] * in2[1][0] +
01295 in1[0][2] * in2[2][0];
01296 out[0][1] = in1[0][0] * in2[0][1] + in1[0][1] * in2[1][1] +
01297 in1[0][2] * in2[2][1];
01298 out[0][2] = in1[0][0] * in2[0][2] + in1[0][1] * in2[1][2] +
01299 in1[0][2] * in2[2][2];
01300 out[1][0] = in1[1][0] * in2[0][0] + in1[1][1] * in2[1][0] +
01301 in1[1][2] * in2[2][0];
01302 out[1][1] = in1[1][0] * in2[0][1] + in1[1][1] * in2[1][1] +
01303 in1[1][2] * in2[2][1];
01304 out[1][2] = in1[1][0] * in2[0][2] + in1[1][1] * in2[1][2] +
01305 in1[1][2] * in2[2][2];
01306 out[2][0] = in1[2][0] * in2[0][0] + in1[2][1] * in2[1][0] +
01307 in1[2][2] * in2[2][0];
01308 out[2][1] = in1[2][0] * in2[0][1] + in1[2][1] * in2[1][1] +
01309 in1[2][2] * in2[2][1];
01310 out[2][2] = in1[2][0] * in2[0][2] + in1[2][1] * in2[1][2] +
01311 in1[2][2] * in2[2][2];
01312 }
|
|
||||||||||||
|
Definition at line 354 of file q_math.c. References vec3_t, and VectorClear.
00354 {
00355 float max;
00356
00357 max = in[0];
00358 if ( in[1] > max ) {
00359 max = in[1];
00360 }
00361 if ( in[2] > max ) {
00362 max = in[2];
00363 }
00364
00365 if ( !max ) {
00366 VectorClear( out );
00367 } else {
00368 out[0] = in[0] / max;
00369 out[1] = in[1] / max;
00370 out[2] = in[2] / max;
00371 }
00372 return max;
00373 }
|
|
||||||||||||
|
Definition at line 1394 of file q_math.c. References acos(), atan2(), byte, RAD2DEG, vec3_t, and vec_t.
01395 {
01396 // check for singularities
01397 if (!normal[0] && !normal[1])
01398 {
01399 if ( normal[2] > 0.0f )
01400 {
01401 bytes[0] = 0;
01402 bytes[1] = 0; // lat = 0, long = 0
01403 }
01404 else
01405 {
01406 bytes[0] = 128;
01407 bytes[1] = 0; // lat = 0, long = 128
01408 }
01409 }
01410 else
01411 {
01412 int a, b;
01413
01414 a = (int)(RAD2DEG( (vec_t)atan2( normal[1], normal[0] ) ) * (255.0f / 360.0f ));
01415 a &= 0xff;
01416
01417 b = (int)(RAD2DEG( (vec_t)acos( normal[2] ) ) * ( 255.0f / 360.0f ));
01418 b &= 0xff;
01419
01420 bytes[0] = b; // longitude
01421 bytes[1] = a; // lattitude
01422 }
01423 }
|
|
||||||||||||||||
|
Definition at line 724 of file q_shared.c. References atof(), COM_MatchToken(), and COM_Parse(). Referenced by Parse2DMatrix().
00724 {
00725 char *token;
00726 int i;
00727
00728 COM_MatchToken( buf_p, "(" );
00729
00730 for (i = 0 ; i < x ; i++) {
00731 token = COM_Parse(buf_p);
00732 m[i] = atof(token);
00733 }
00734
00735 COM_MatchToken( buf_p, ")" );
00736 }
|
|
||||||||||||||||||||
|
Definition at line 738 of file q_shared.c. References COM_MatchToken(), and Parse1DMatrix(). Referenced by Parse3DMatrix().
00738 {
00739 int i;
00740
00741 COM_MatchToken( buf_p, "(" );
00742
00743 for (i = 0 ; i < y ; i++) {
00744 Parse1DMatrix (buf_p, x, m + i * x);
00745 }
00746
00747 COM_MatchToken( buf_p, ")" );
00748 }
|
|
||||||||||||||||||||||||
|
Definition at line 750 of file q_shared.c. References COM_MatchToken(), and Parse2DMatrix().
00750 {
00751 int i;
00752
00753 COM_MatchToken( buf_p, "(" );
00754
00755 for (i = 0 ; i < z ; i++) {
00756 Parse2DMatrix (buf_p, y, x, m + i * x*y);
00757 }
00758
00759 COM_MatchToken( buf_p, ")" );
00760 }
|
|
||||||||||||
|
Definition at line 1353 of file q_math.c. References fabs(), ProjectPointOnPlane(), vec3_t, and VectorNormalize(). Referenced by CG_ImpactMark(), NAV_StackedCanyon(), RotateAroundDirection(), RotatePointAroundVector(), and Use_Shooter().
01354 {
01355 int pos;
01356 int i;
01357 float minelem = 1.0F;
01358 vec3_t tempvec;
01359
01360 /*
01361 ** find the smallest magnitude axially aligned vector
01362 */
01363 for ( pos = 0, i = 0; i < 3; i++ )
01364 {
01365 if ( fabs( src[i] ) < minelem )
01366 {
01367 pos = i;
01368 minelem = fabs( src[i] );
01369 }
01370 }
01371 tempvec[0] = tempvec[1] = tempvec[2] = 0.0F;
01372 tempvec[pos] = 1.0F;
01373
01374 /*
01375 ** project the point onto the plane defined by src
01376 */
01377 ProjectPointOnPlane( dst, tempvec, src );
01378
01379 /*
01380 ** normalize the result
01381 */
01382 VectorNormalize( dst );
01383 }
|
|
||||||||||||||||||||
|
Definition at line 384 of file q_math.c. References DotProduct, qboolean, qfalse, qtrue, vec3_t, vec4_t, VectorNormalize(), and VectorSubtract.
00384 {
00385 vec3_t d1, d2;
00386
00387 VectorSubtract( b, a, d1 );
00388 VectorSubtract( c, a, d2 );
00389 CrossProduct( d2, d1, plane );
00390 if ( VectorNormalize( plane ) == 0 ) {
00391 return qfalse;
00392 }
00393
00394 plane[3] = DotProduct( a, plane );
00395 return qtrue;
00396 }
|
|
||||||||||||
|
Definition at line 1476 of file q_math.c.
01477 {
01478 float r = x;
01479 for ( y--; y>0; y-- )
01480 r = r * r;
01481 return r;
01482 }
|
|
||||||||||||||||
|
Definition at line 556 of file q_math.c. References DotProduct, Q_fabs(), and vec3_t. Referenced by PerpendicularVector().
00557 {
00558 float d;
00559 vec3_t n;
00560 float inv_denom;
00561
00562 inv_denom = DotProduct( normal, normal );
00563 #ifndef Q3_VM
00564 assert( Q_fabs(inv_denom) != 0.0f ); // bk010122 - zero vectors get here
00565 #endif
00566 inv_denom = 1.0f / inv_denom;
00567
00568 d = DotProduct( normal, p ) * inv_denom;
00569
00570 n[0] = normal[0] * inv_denom;
00571 n[1] = normal[1] * inv_denom;
00572 n[2] = normal[2] * inv_denom;
00573
00574 dst[0] = p[0] - d * n[0];
00575 dst[1] = p[1] - d * n[1];
00576 dst[2] = p[2] - d * n[2];
00577 }
|
|
|
|
|
|
|
|
|
Definition at line 963 of file q_shared.c. References Q_IsColorString. Referenced by CG_DrawInformation(), CG_LoadingClient(), Cmd_CallTeamVote_f(), G_AddRandomBot(), G_KickAllBots(), and G_RemoveRandomBot().
00963 {
00964 char* d;
00965 char* s;
00966 int c;
00967
00968 s = string;
00969 d = string;
00970 while ((c = *s) != 0 ) {
00971 if ( Q_IsColorString( s ) ) {
00972 s++;
00973 }
00974 else if ( c >= 0x20 && c <= 0x7E ) {
00975 *d++ = c;
00976 }
00977 s++;
00978 }
00979 *d = '\0';
00980
00981 return string;
00982 }
|
|
|
Definition at line 135 of file q_math.c. References Q_random().
00135 {
00136 return 2.0 * ( Q_random( seed ) - 0.5 );
00137 }
|
|
|
Definition at line 638 of file q_math.c. Referenced by pitch_roll_for_slope(), PM_AnglesForSlope(), PM_pitch_roll_for_slope(), and ProjectPointOnPlane().
00638 {
00639 int tmp = * ( int * ) &f;
00640 tmp &= 0x7FFFFFFF;
00641 return * ( float * ) &tmp;
00642 }
|
|
||||||||||||
|
|
Definition at line 792 of file q_shared.c.
00793 {
00794 if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
00795 return ( 1 );
00796 return ( 0 );
00797 }
|
|
|
Definition at line 778 of file q_shared.c.
00779 {
00780 if (c >= 'a' && c <= 'z')
00781 return ( 1 );
00782 return ( 0 );
00783 }
|
|
|
Definition at line 771 of file q_shared.c.
00772 {
00773 if ( c >= 0x20 && c <= 0x7E )
00774 return ( 1 );
00775 return ( 0 );
00776 }
|
|
|
Definition at line 785 of file q_shared.c.
00786 {
00787 if (c >= 'A' && c <= 'Z')
00788 return ( 1 );
00789 return ( 0 );
00790 }
|
|
|
Definition at line 1257 of file q_math.c.
01257 {
01258 int answer;
01259
01260 answer = 0;
01261 while ( ( val>>=1 ) != 0 ) {
01262 answer++;
01263 }
01264 return answer;
01265 }
|
|
|
Definition at line 940 of file q_shared.c. References Q_IsColorString.
00940 {
00941 int len;
00942 const char *p;
00943
00944 if( !string ) {
00945 return 0;
00946 }
00947
00948 len = 0;
00949 p = string;
00950 while( *p ) {
00951 if( Q_IsColorString( p ) ) {
00952 p += 2;
00953 continue;
00954 }
00955 p++;
00956 len++;
00957 }
00958
00959 return len;
00960 }
|
|
|
Definition at line 126 of file q_math.c. Referenced by Q_random().
00126 {
00127 *seed = (69069 * *seed + 1);
00128 return *seed;
00129 }
|
|
|
Definition at line 131 of file q_math.c. References Q_rand(). Referenced by CG_SmokePuff(), PM_irand_timesync(), and Q_crandom().
00131 {
00132 return ( Q_rand( seed ) & 0xffff ) / (float)0x10000;
00133 }
|
|
|
Definition at line 616 of file q_math.c.
00617 {
00618 long i;
00619 float x2, y;
00620 const float threehalfs = 1.5F;
00621
00622 x2 = number * 0.5F;
00623 y = number;
00624 i = * ( long * ) &y; // evil floating point bit level hacking
00625 i = 0x5f3759df - ( i >> 1 ); // what the fuck?
00626 y = * ( float * ) &i;
00627 y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration
00628 // y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed
00629
00630 #ifndef Q3_VM
00631 #ifdef __linux__
00632 assert( !isnan(y) ); // bk010122 - FPE?
00633 #endif
00634 #endif
00635 return y;
00636 }
|
|
||||||||||||||||
|
Definition at line 929 of file q_shared.c. References Com_Error(), ERR_FATAL, Q_strncpyz(), and strlen(). Referenced by BG_LegalizedForcePowers(), BG_ValidateSkinForTeam(), BuildShaderStateConfig(), CG_BuildSpectatorString(), CG_ParseSurfsFile(), CG_PrintCTFMessage(), G_SendG2KillQueue(), G_SiegeClientExData(), InitSiegeMode(), Item_RunScript(), NPC_ParseParms(), PC_Script_Parse(), and WP_SaberLoadParms().
00929 {
00930 int l1;
00931
00932 l1 = strlen( dest );
00933 if ( l1 >= size ) {
00934 Com_Error( ERR_FATAL, "Q_strcat: already overflowed" );
00935 }
00936 Q_strncpyz( dest + l1, src, size - l1 );
00937 }
|
|
||||||||||||
|
||||||||||||||||
|
Definition at line 842 of file q_shared.c. References NULL. Referenced by BG_ValidateSkinForTeam(), CG_PlayerAnimEventDo(), ParseAnimationEvtBlock(), Q_stricmp(), and WP_SaberParseParms().
00842 {
00843 int c1, c2;
00844
00845 // bk001129 - moved in 1.17 fix not in id codebase
00846 if ( s1 == NULL ) {
00847 if ( s2 == NULL )
00848 return 0;
00849 else
00850 return -1;
00851 }
00852 else if ( s2==NULL )
00853 return 1;
00854
00855
00856
00857 do {
00858 c1 = *s1++;
00859 c2 = *s2++;
00860
00861 if (!n--) {
00862 return 0; // strings are equal until end point
00863 }
00864
00865 if (c1 != c2) {
00866 if (c1 >= 'a' && c1 <= 'z') {
00867 c1 -= ('a' - 'A');
00868 }
00869 if (c2 >= 'a' && c2 <= 'z') {
00870 c2 -= ('a' - 'A');
00871 }
00872 if (c1 != c2) {
00873 return c1 < c2 ? -1 : 1;
00874 }
00875 }
00876 } while (c1);
00877
00878 return 0; // strings are equal
00879 }
|
|
|
Definition at line 905 of file q_shared.c. References tolower(). Referenced by NPC_Spawn_Do(), and TAG_Add().
00905 {
00906 char *s;
00907
00908 s = s1;
00909 while ( *s ) {
00910 *s = tolower(*s);
00911 s++;
00912 }
00913 return s1;
00914 }
|
|
||||||||||||||||
|
Definition at line 881 of file q_shared.c. Referenced by BG_ValidateSkinForTeam(), CheckTeamVote(), G_GetHitLocFromSurfName(), G_SpawnGEntityFromSpawnVars(), NPC_SpawnType(), NPC_WeaponsForTeam(), and Q3_Set().
00881 {
00882 int c1, c2;
00883
00884 do {
00885 c1 = *s1++;
00886 c2 = *s2++;
00887
00888 if (!n--) {
00889 return 0; // strings are equal until end point
00890 }
00891
00892 if (c1 != c2) {
00893 return c1 < c2 ? -1 : 1;
00894 }
00895 } while (c1);
00896
00897 return 0; // strings are equal
00898 }
|
|
||||||||||||||||
|
||||||||||||
|
Definition at line 799 of file q_shared.c. Referenced by CG_CacheG2AnimInfo(), CG_G2AnimEntModelLoad(), CG_G2EvIndexForModel(), CG_G2SkelForModel(), CG_HandleAppendedSkin(), ItemParse_asset_model_go(), NPC_VehiclePrecache(), and SetupGameGhoul2Model().
00800 {
00801 char cc = c;
00802 char *s;
00803 char *sp=(char *)0;
00804
00805 s = (char*)string;
00806
00807 while (*s)
00808 {
00809 if (*s == cc)
00810 sp = s;
00811 s++;
00812 }
00813 if (cc == 0)
00814 sp = s;
00815
00816 return sp;
00817 }
|
|
|
Definition at line 916 of file q_shared.c. References toupper(). Referenced by CG_DrawInvenSelect(), CG_DrawWeaponSelect(), CG_LoadingItem(), and Q3_PlaySound().
00916 {
00917 char *s;
00918
00919 s = s1;
00920 while ( *s ) {
00921 *s = toupper(*s);
00922 s++;
00923 }
00924 return s1;
00925 }
|
|
||||||||||||
|
Definition at line 1114 of file q_math.c. References fabs(), and vec3_t. Referenced by G_MoverPush().
|
|
|
Definition at line 1434 of file q_math.c.
01435 {
01436 holdrand = seed;
01437 }
|
|
||||||||||||
|
Definition at line 466 of file q_math.c. References PerpendicularVector(), RotatePointAroundVector(), vec3_t, and VectorCopy. Referenced by CG_MakeExplosion(), and FX_AddOrientedLine().
00466 {
00467
00468 // create an arbitrary axis[1]
00469 PerpendicularVector( axis[1], axis[0] );
00470
00471 // rotate it around axis[0] by yaw
00472 if ( yaw ) {
00473 vec3_t temp;
00474
00475 VectorCopy( axis[1], temp );
00476 RotatePointAroundVector( axis[1], axis[0], temp, yaw );
00477 }
00478
00479 // cross to get axis[2]
00480 CrossProduct( axis[0], axis[1], axis[2] );
00481 }
|
|
||||||||||||||||||||
|
Definition at line 405 of file q_math.c. References cos(), DEG2RAD, MatrixMultiply(), memcpy(), memset(), PerpendicularVector(), sin(), and vec3_t. Referenced by CG_ImpactMark(), and RotateAroundDirection().
00406 {
00407 float m[3][3];
00408 float im[3][3];
00409 float zrot[3][3];
00410 float tmpmat[3][3];
00411 float rot[3][3];
00412 int i;
00413 vec3_t vr, vup, vf;
00414 float rad;
00415
00416 vf[0] = dir[0];
00417 vf[1] = dir[1];
00418 vf[2] = dir[2];
00419
00420 PerpendicularVector( vr, dir );
00421 CrossProduct( vr, vf, vup );
00422
00423 m[0][0] = vr[0];
00424 m[1][0] = vr[1];
00425 m[2][0] = vr[2];
00426
00427 m[0][1] = vup[0];
00428 m[1][1] = vup[1];
00429 m[2][1] = vup[2];
00430
00431 m[0][2] = vf[0];
00432 m[1][2] = vf[1];
00433 m[2][2] = vf[2];
00434
00435 memcpy( im, m, sizeof( im ) );
00436
00437 im[0][1] = m[1][0];
00438 im[0][2] = m[2][0];
00439 im[1][0] = m[0][1];
00440 im[1][2] = m[2][1];
00441 im[2][0] = m[0][2];
00442 im[2][1] = m[1][2];
00443
00444 memset( zrot, 0, sizeof( zrot ) );
00445 zrot[0][0] = zrot[1][1] = zrot[2][2] = 1.0F;
00446
00447 rad = DEG2RAD( degrees );
00448 zrot[0][0] = cos( rad );
00449 zrot[0][1] = sin( rad );
00450 zrot[1][0] = -sin( rad );
00451 zrot[1][1] = cos( rad );
00452
00453 MatrixMultiply( m, zrot, tmpmat );
00454 MatrixMultiply( tmpmat, im, rot );
00455
00456 for ( i = 0; i < 3; i++ ) {
00457 dst[i] = rot[i][0] * point[0] + rot[i][1] * point[1] + rot[i][2] * point[2];
00458 }
00459 }
|
|
|
|
|
|
Definition at line 162 of file q_shared.c. References byte.
00163 {
00164 byte b1,b2;
00165
00166 b1 = l&255;
00167 b2 = (l>>8)&255;
00168
00169 return (b1<<8) + b2;
00170 }
|
|
|
Definition at line 685 of file q_shared.c. References COM_ParseExt(), and qtrue. Referenced by NPC_ParseParms(), NPC_Precache(), NPC_PrecacheAnimationCFG(), UI_SaberGetHiltInfo(), UI_SaberParseParm(), VEH_LoadVehicle(), VEH_LoadVehWeapon(), WP_SaberParseParm(), and WP_SaberParseParms().
00685 {
00686 char *token;
00687 int depth;
00688
00689 depth = 0;
00690 do {
00691 token = COM_ParseExt( program, qtrue );
00692 if( token[1] == 0 ) {
00693 if( token[0] == '{' ) {
00694 depth++;
00695 }
00696 else if( token[0] == '}' ) {
00697 depth--;
00698 }
00699 }
00700 } while( depth && *program );
00701 }
|
|
|
Definition at line 708 of file q_shared.c. Referenced by NPC_ParseParms(), ParseAnimationEvtBlock(), UI_SaberGetHiltInfo(), UI_SaberParseParm(), VEH_LoadVehicle(), VEH_LoadVehWeapon(), WP_SaberParseParm(), and WP_SaberParseParms().
00708 {
00709 const char *p;
00710 int c;
00711
00712 p = *data;
00713 while ( (c = *p++) != 0 ) {
00714 if ( c == '\n' ) {
00715 com_lines++;
00716 break;
00717 }
00718 }
00719
00720 *data = p;
00721 }
|
|
||||||||||||
|
Definition at line 336 of file q_shared.c. Referenced by COM_ParseExt().
|
|
||||||||||||
|
||||||||||||
|
||||||||||||||||
|
Definition at line 1249 of file q_math.c.
01249 {
01250 out[0] = in[0]*scale;
01251 out[1] = in[1]*scale;
01252 out[2] = in[2]*scale;
01253 out[3] = in[3]*scale;
01254 }
|
|
|
||||||||||||
|
Definition at line 1188 of file q_math.c. References sqrt(), vec3_t, vec_t, and VectorClear. Referenced by Boba_StopKnockdown(), CG_ImpactMark(), ClientThink_real(), DotProductNormalize(), FX_BlasterAltFireThink(), FX_BlasterProjectileThink(), FX_BowcasterAltProjectileThink(), FX_BowcasterProjectileThink(), FX_BryarAltProjectileThink(), FX_BryarProjectileThink(), FX_ConcussionProjectileThink(), FX_DEMP2_ProjectileThink(), FX_FlechetteAltProjectileThink(), FX_FlechetteProjectileThink(), FX_RepeaterAltProjectileThink(), FX_RepeaterProjectileThink(), FX_RocketAltProjectileThink(), FX_RocketProjectileThink(), FX_TurretProjectileThink(), Jedi_SaberBlockGo(), NAV_Bypass(), NAV_TrueCollision(), PM_SlideMove(), PM_VehicleImpact(), and WP_SaberStartMissileBlockCheck().
01188 {
01189 float length, ilength;
01190
01191 length = v[0]*v[0] + v[1]*v[1] + v[2]*v[2];
01192 length = sqrt (length);
01193
01194 if (length)
01195 {
01196 #ifndef Q3_VM // bk0101022 - FPE related
01197 // assert( ((Q_fabs(v[0])!=0.0f) || (Q_fabs(v[1])!=0.0f) || (Q_fabs(v[2])!=0.0f)) );
01198 #endif
01199 ilength = 1/length;
01200 out[0] = v[0]*ilength;
01201 out[1] = v[1]*ilength;
01202 out[2] = v[2]*ilength;
01203 } else {
01204 #ifndef Q3_VM // bk0101022 - FPE related
01205 // assert( ((Q_fabs(v[0])==0.0f) && (Q_fabs(v[1])==0.0f) && (Q_fabs(v[2])==0.0f)) );
01206 #endif
01207 VectorClear( out );
01208 }
01209
01210 return length;
01211
01212 }
|
|
||||||||||||||||
|
Definition at line 603 of file q_math.c. References DotProduct, and vec3_t.
00604 {
00605 out[0] = DotProduct( in, matrix[0] );
00606 out[1] = DotProduct( in, matrix[1] );
00607 out[2] = DotProduct( in, matrix[2] );
00608 }
|
|
|
Definition at line 1180 of file q_shared.h. Referenced by CG_Chunks(), CG_LaunchGib(), and CG_ThrowChunk(). |
|
|
Definition at line 1025 of file q_shared.h. Referenced by ByteToDir(), and DirToByte(). |
|
|
Definition at line 1131 of file q_shared.h. Referenced by UI_DrawTextBox(). |
|
|
Definition at line 1134 of file q_shared.h. |
|
|
Definition at line 1137 of file q_shared.h. |
|
|
Definition at line 1143 of file q_shared.h. |
|
|
Definition at line 1141 of file q_shared.h. |
|
|
Definition at line 1133 of file q_shared.h. |
|
|
Definition at line 1142 of file q_shared.h. |
|
|
Definition at line 1139 of file q_shared.h. |
|
|
Definition at line 1136 of file q_shared.h. |
|
|
Definition at line 1140 of file q_shared.h. |
|
|
Definition at line 1132 of file q_shared.h. |
|
|
|
Definition at line 1138 of file q_shared.h. Referenced by CG_DrawInformation(), CG_DrawOldScoreboard(), CG_DrawRadar(), CG_LoadBar(), UI_DrawConnectScreen(), and UI_DrawTextBox(). |
|
|
Definition at line 1135 of file q_shared.h. |
|
|
Definition at line 435 of file q_shared.h. |
|
|
Definition at line 1169 of file q_shared.h. Referenced by CG_BracketEntity(), CG_DrawRadar(), CG_DrawStringExt(), CG_DrawVehicleAmmo(), CG_DrawVehicleAmmoLower(), and CG_DrawVehicleAmmoUpper(). |
|
|
Definition at line 51 of file q_shared.h. |
|
|
Definition at line 50 of file q_shared.h. |
|
|
Definition at line 49 of file q_shared.h. |
|
|
Definition at line 48 of file q_shared.h. |
|