icculus quake2 doxygen  1.0 dev
q_shared.h File Reference
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>

Go to the source code of this file.

Classes

struct  cvar_s
 
struct  cplane_s
 
struct  cmodel_s
 
struct  csurface_s
 
struct  mapsurface_s
 
struct  trace_t
 
struct  pmove_state_t
 
struct  usercmd_s
 
struct  pmove_t
 
struct  entity_state_s
 
struct  player_state_t
 

Macros

#define vsnprintf   _vsnprintf
 
#define id386   0
 
#define idaxp   0
 
#define NULL   ((void *)0)
 
#define PITCH   0
 
#define YAW   1
 
#define ROLL   2
 
#define MAX_STRING_CHARS   1024
 
#define MAX_STRING_TOKENS   80
 
#define MAX_TOKEN_CHARS   128
 
#define MAX_QPATH   64
 
#define MAX_OSPATH   128
 
#define MAX_CLIENTS   256
 
#define MAX_EDICTS   1024
 
#define MAX_LIGHTSTYLES   256
 
#define MAX_MODELS   256
 
#define MAX_SOUNDS   256
 
#define MAX_IMAGES   256
 
#define MAX_ITEMS   256
 
#define MAX_GENERAL   (MAX_CLIENTS*2)
 
#define PRINT_LOW   0
 
#define PRINT_MEDIUM   1
 
#define PRINT_HIGH   2
 
#define PRINT_CHAT   3
 
#define ERR_FATAL   0
 
#define ERR_DROP   1
 
#define ERR_DISCONNECT   2
 
#define PRINT_ALL   0
 
#define PRINT_DEVELOPER   1
 
#define PRINT_ALERT   2
 
#define M_PI   3.14159265358979323846
 
#define nanmask   (255<<23)
 
#define IS_NAN(x)   (((*(int *)&x)&nanmask)==nanmask)
 
#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 VectorCopy(a, b)   (b[0]=a[0],b[1]=a[1],b[2]=a[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 BOX_ON_PLANE_SIDE(emins, emaxs, p)
 
#define MAX_INFO_KEY   64
 
#define MAX_INFO_VALUE   64
 
#define MAX_INFO_STRING   512
 
#define SFF_ARCH   0x01
 
#define SFF_HIDDEN   0x02
 
#define SFF_RDONLY   0x04
 
#define SFF_SUBDIR   0x08
 
#define SFF_SYSTEM   0x10
 
#define CVAR
 
#define CVAR_ARCHIVE   1
 
#define CVAR_USERINFO   2
 
#define CVAR_SERVERINFO   4
 
#define CVAR_NOSET   8
 
#define CVAR_LATCH   16
 
#define CONTENTS_SOLID   1
 
#define CONTENTS_WINDOW   2
 
#define CONTENTS_AUX   4
 
#define CONTENTS_LAVA   8
 
#define CONTENTS_SLIME   16
 
#define CONTENTS_WATER   32
 
#define CONTENTS_MIST   64
 
#define LAST_VISIBLE_CONTENTS   64
 
#define CONTENTS_AREAPORTAL   0x8000
 
#define CONTENTS_PLAYERCLIP   0x10000
 
#define CONTENTS_MONSTERCLIP   0x20000
 
#define CONTENTS_CURRENT_0   0x40000
 
#define CONTENTS_CURRENT_90   0x80000
 
#define CONTENTS_CURRENT_180   0x100000
 
#define CONTENTS_CURRENT_270   0x200000
 
#define CONTENTS_CURRENT_UP   0x400000
 
#define CONTENTS_CURRENT_DOWN   0x800000
 
#define CONTENTS_ORIGIN   0x1000000
 
#define CONTENTS_MONSTER   0x2000000
 
#define CONTENTS_DEADMONSTER   0x4000000
 
#define CONTENTS_DETAIL   0x8000000
 
#define CONTENTS_TRANSLUCENT   0x10000000
 
#define CONTENTS_LADDER   0x20000000
 
#define SURF_LIGHT   0x1
 
#define SURF_SLICK   0x2
 
#define SURF_SKY   0x4
 
#define SURF_WARP   0x8
 
#define SURF_TRANS33   0x10
 
#define SURF_TRANS66   0x20
 
#define SURF_FLOWING   0x40
 
#define SURF_NODRAW   0x80
 
#define MASK_ALL   (-1)
 
#define MASK_SOLID   (CONTENTS_SOLID|CONTENTS_WINDOW)
 
#define MASK_PLAYERSOLID   (CONTENTS_SOLID|CONTENTS_PLAYERCLIP|CONTENTS_WINDOW|CONTENTS_MONSTER)
 
#define MASK_DEADSOLID   (CONTENTS_SOLID|CONTENTS_PLAYERCLIP|CONTENTS_WINDOW)
 
#define MASK_MONSTERSOLID   (CONTENTS_SOLID|CONTENTS_MONSTERCLIP|CONTENTS_WINDOW|CONTENTS_MONSTER)
 
#define MASK_WATER   (CONTENTS_WATER|CONTENTS_LAVA|CONTENTS_SLIME)
 
#define MASK_OPAQUE   (CONTENTS_SOLID|CONTENTS_SLIME|CONTENTS_LAVA)
 
#define MASK_SHOT   (CONTENTS_SOLID|CONTENTS_MONSTER|CONTENTS_WINDOW|CONTENTS_DEADMONSTER)
 
#define MASK_CURRENT   (CONTENTS_CURRENT_0|CONTENTS_CURRENT_90|CONTENTS_CURRENT_180|CONTENTS_CURRENT_270|CONTENTS_CURRENT_UP|CONTENTS_CURRENT_DOWN)
 
#define AREA_SOLID   1
 
#define AREA_TRIGGERS   2
 
#define CPLANE_NORMAL_X   0
 
#define CPLANE_NORMAL_Y   4
 
#define CPLANE_NORMAL_Z   8
 
#define CPLANE_DIST   12
 
#define CPLANE_TYPE   16
 
#define CPLANE_SIGNBITS   17
 
#define CPLANE_PAD0   18
 
#define CPLANE_PAD1   19
 
#define PMF_DUCKED   1
 
#define PMF_JUMP_HELD   2
 
#define PMF_ON_GROUND   4
 
#define PMF_TIME_WATERJUMP   8
 
#define PMF_TIME_LAND   16
 
#define PMF_TIME_TELEPORT   32
 
#define PMF_NO_PREDICTION   64
 
#define BUTTON_ATTACK   1
 
#define BUTTON_USE   2
 
#define BUTTON_ANY   128
 
#define MAXTOUCH   32
 
#define EF_ROTATE   0x00000001
 
#define EF_GIB   0x00000002
 
#define EF_BLASTER   0x00000008
 
#define EF_ROCKET   0x00000010
 
#define EF_GRENADE   0x00000020
 
#define EF_HYPERBLASTER   0x00000040
 
#define EF_BFG   0x00000080
 
#define EF_COLOR_SHELL   0x00000100
 
#define EF_POWERSCREEN   0x00000200
 
#define EF_ANIM01   0x00000400
 
#define EF_ANIM23   0x00000800
 
#define EF_ANIM_ALL   0x00001000
 
#define EF_ANIM_ALLFAST   0x00002000
 
#define EF_FLIES   0x00004000
 
#define EF_QUAD   0x00008000
 
#define EF_PENT   0x00010000
 
#define EF_TELEPORTER   0x00020000
 
#define EF_FLAG1   0x00040000
 
#define EF_FLAG2   0x00080000
 
#define EF_IONRIPPER   0x00100000
 
#define EF_GREENGIB   0x00200000
 
#define EF_BLUEHYPERBLASTER   0x00400000
 
#define EF_SPINNINGLIGHTS   0x00800000
 
#define EF_PLASMA   0x01000000
 
#define EF_TRAP   0x02000000
 
#define EF_TRACKER   0x04000000
 
#define EF_DOUBLE   0x08000000
 
#define EF_SPHERETRANS   0x10000000
 
#define EF_TAGTRAIL   0x20000000
 
#define EF_HALF_DAMAGE   0x40000000
 
#define EF_TRACKERTRAIL   0x80000000
 
#define RF_MINLIGHT   1
 
#define RF_VIEWERMODEL   2
 
#define RF_WEAPONMODEL   4
 
#define RF_FULLBRIGHT   8
 
#define RF_DEPTHHACK   16
 
#define RF_TRANSLUCENT   32
 
#define RF_FRAMELERP   64
 
#define RF_BEAM   128
 
#define RF_CUSTOMSKIN   256
 
#define RF_GLOW   512
 
#define RF_SHELL_RED   1024
 
#define RF_SHELL_GREEN   2048
 
#define RF_SHELL_BLUE   4096
 
#define RF_NOSHADOW   8192 /* don't draw a shadow */
 
#define RF_IR_VISIBLE   0x00008000
 
#define RF_SHELL_DOUBLE   0x00010000
 
#define RF_SHELL_HALF_DAM   0x00020000
 
#define RF_USE_DISGUISE   0x00040000
 
#define RDF_UNDERWATER   1
 
#define RDF_NOWORLDMODEL   2
 
#define RDF_IRGOGGLES   4
 
#define RDF_UVGOGGLES   8
 
#define MZ_BLASTER   0
 
#define MZ_MACHINEGUN   1
 
#define MZ_SHOTGUN   2
 
#define MZ_CHAINGUN1   3
 
#define MZ_CHAINGUN2   4
 
#define MZ_CHAINGUN3   5
 
#define MZ_RAILGUN   6
 
#define MZ_ROCKET   7
 
#define MZ_GRENADE   8
 
#define MZ_LOGIN   9
 
#define MZ_LOGOUT   10
 
#define MZ_RESPAWN   11
 
#define MZ_BFG   12
 
#define MZ_SSHOTGUN   13
 
#define MZ_HYPERBLASTER   14
 
#define MZ_ITEMRESPAWN   15
 
#define MZ_IONRIPPER   16
 
#define MZ_BLUEHYPERBLASTER   17
 
#define MZ_PHALANX   18
 
#define MZ_SILENCED   128
 
#define MZ_ETF_RIFLE   30
 
#define MZ_UNUSED   31
 
#define MZ_SHOTGUN2   32
 
#define MZ_HEATBEAM   33
 
#define MZ_BLASTER2   34
 
#define MZ_TRACKER   35
 
#define MZ_NUKE1   36
 
#define MZ_NUKE2   37
 
#define MZ_NUKE4   38
 
#define MZ_NUKE8   39
 
#define MZ2_TANK_BLASTER_1   1
 
#define MZ2_TANK_BLASTER_2   2
 
#define MZ2_TANK_BLASTER_3   3
 
#define MZ2_TANK_MACHINEGUN_1   4
 
#define MZ2_TANK_MACHINEGUN_2   5
 
#define MZ2_TANK_MACHINEGUN_3   6
 
#define MZ2_TANK_MACHINEGUN_4   7
 
#define MZ2_TANK_MACHINEGUN_5   8
 
#define MZ2_TANK_MACHINEGUN_6   9
 
#define MZ2_TANK_MACHINEGUN_7   10
 
#define MZ2_TANK_MACHINEGUN_8   11
 
#define MZ2_TANK_MACHINEGUN_9   12
 
#define MZ2_TANK_MACHINEGUN_10   13
 
#define MZ2_TANK_MACHINEGUN_11   14
 
#define MZ2_TANK_MACHINEGUN_12   15
 
#define MZ2_TANK_MACHINEGUN_13   16
 
#define MZ2_TANK_MACHINEGUN_14   17
 
#define MZ2_TANK_MACHINEGUN_15   18
 
#define MZ2_TANK_MACHINEGUN_16   19
 
#define MZ2_TANK_MACHINEGUN_17   20
 
#define MZ2_TANK_MACHINEGUN_18   21
 
#define MZ2_TANK_MACHINEGUN_19   22
 
#define MZ2_TANK_ROCKET_1   23
 
#define MZ2_TANK_ROCKET_2   24
 
#define MZ2_TANK_ROCKET_3   25
 
#define MZ2_INFANTRY_MACHINEGUN_1   26
 
#define MZ2_INFANTRY_MACHINEGUN_2   27
 
#define MZ2_INFANTRY_MACHINEGUN_3   28
 
#define MZ2_INFANTRY_MACHINEGUN_4   29
 
#define MZ2_INFANTRY_MACHINEGUN_5   30
 
#define MZ2_INFANTRY_MACHINEGUN_6   31
 
#define MZ2_INFANTRY_MACHINEGUN_7   32
 
#define MZ2_INFANTRY_MACHINEGUN_8   33
 
#define MZ2_INFANTRY_MACHINEGUN_9   34
 
#define MZ2_INFANTRY_MACHINEGUN_10   35
 
#define MZ2_INFANTRY_MACHINEGUN_11   36
 
#define MZ2_INFANTRY_MACHINEGUN_12   37
 
#define MZ2_INFANTRY_MACHINEGUN_13   38
 
#define MZ2_SOLDIER_BLASTER_1   39
 
#define MZ2_SOLDIER_BLASTER_2   40
 
#define MZ2_SOLDIER_SHOTGUN_1   41
 
#define MZ2_SOLDIER_SHOTGUN_2   42
 
#define MZ2_SOLDIER_MACHINEGUN_1   43
 
#define MZ2_SOLDIER_MACHINEGUN_2   44
 
#define MZ2_GUNNER_MACHINEGUN_1   45
 
#define MZ2_GUNNER_MACHINEGUN_2   46
 
#define MZ2_GUNNER_MACHINEGUN_3   47
 
#define MZ2_GUNNER_MACHINEGUN_4   48
 
#define MZ2_GUNNER_MACHINEGUN_5   49
 
#define MZ2_GUNNER_MACHINEGUN_6   50
 
#define MZ2_GUNNER_MACHINEGUN_7   51
 
#define MZ2_GUNNER_MACHINEGUN_8   52
 
#define MZ2_GUNNER_GRENADE_1   53
 
#define MZ2_GUNNER_GRENADE_2   54
 
#define MZ2_GUNNER_GRENADE_3   55
 
#define MZ2_GUNNER_GRENADE_4   56
 
#define MZ2_CHICK_ROCKET_1   57
 
#define MZ2_FLYER_BLASTER_1   58
 
#define MZ2_FLYER_BLASTER_2   59
 
#define MZ2_MEDIC_BLASTER_1   60
 
#define MZ2_GLADIATOR_RAILGUN_1   61
 
#define MZ2_HOVER_BLASTER_1   62
 
#define MZ2_ACTOR_MACHINEGUN_1   63
 
#define MZ2_SUPERTANK_MACHINEGUN_1   64
 
#define MZ2_SUPERTANK_MACHINEGUN_2   65
 
#define MZ2_SUPERTANK_MACHINEGUN_3   66
 
#define MZ2_SUPERTANK_MACHINEGUN_4   67
 
#define MZ2_SUPERTANK_MACHINEGUN_5   68
 
#define MZ2_SUPERTANK_MACHINEGUN_6   69
 
#define MZ2_SUPERTANK_ROCKET_1   70
 
#define MZ2_SUPERTANK_ROCKET_2   71
 
#define MZ2_SUPERTANK_ROCKET_3   72
 
#define MZ2_BOSS2_MACHINEGUN_L1   73
 
#define MZ2_BOSS2_MACHINEGUN_L2   74
 
#define MZ2_BOSS2_MACHINEGUN_L3   75
 
#define MZ2_BOSS2_MACHINEGUN_L4   76
 
#define MZ2_BOSS2_MACHINEGUN_L5   77
 
#define MZ2_BOSS2_ROCKET_1   78
 
#define MZ2_BOSS2_ROCKET_2   79
 
#define MZ2_BOSS2_ROCKET_3   80
 
#define MZ2_BOSS2_ROCKET_4   81
 
#define MZ2_FLOAT_BLASTER_1   82
 
#define MZ2_SOLDIER_BLASTER_3   83
 
#define MZ2_SOLDIER_SHOTGUN_3   84
 
#define MZ2_SOLDIER_MACHINEGUN_3   85
 
#define MZ2_SOLDIER_BLASTER_4   86
 
#define MZ2_SOLDIER_SHOTGUN_4   87
 
#define MZ2_SOLDIER_MACHINEGUN_4   88
 
#define MZ2_SOLDIER_BLASTER_5   89
 
#define MZ2_SOLDIER_SHOTGUN_5   90
 
#define MZ2_SOLDIER_MACHINEGUN_5   91
 
#define MZ2_SOLDIER_BLASTER_6   92
 
#define MZ2_SOLDIER_SHOTGUN_6   93
 
#define MZ2_SOLDIER_MACHINEGUN_6   94
 
#define MZ2_SOLDIER_BLASTER_7   95
 
#define MZ2_SOLDIER_SHOTGUN_7   96
 
#define MZ2_SOLDIER_MACHINEGUN_7   97
 
#define MZ2_SOLDIER_BLASTER_8   98
 
#define MZ2_SOLDIER_SHOTGUN_8   99
 
#define MZ2_SOLDIER_MACHINEGUN_8   100
 
#define MZ2_MAKRON_BFG   101
 
#define MZ2_MAKRON_BLASTER_1   102
 
#define MZ2_MAKRON_BLASTER_2   103
 
#define MZ2_MAKRON_BLASTER_3   104
 
#define MZ2_MAKRON_BLASTER_4   105
 
#define MZ2_MAKRON_BLASTER_5   106
 
#define MZ2_MAKRON_BLASTER_6   107
 
#define MZ2_MAKRON_BLASTER_7   108
 
#define MZ2_MAKRON_BLASTER_8   109
 
#define MZ2_MAKRON_BLASTER_9   110
 
#define MZ2_MAKRON_BLASTER_10   111
 
#define MZ2_MAKRON_BLASTER_11   112
 
#define MZ2_MAKRON_BLASTER_12   113
 
#define MZ2_MAKRON_BLASTER_13   114
 
#define MZ2_MAKRON_BLASTER_14   115
 
#define MZ2_MAKRON_BLASTER_15   116
 
#define MZ2_MAKRON_BLASTER_16   117
 
#define MZ2_MAKRON_BLASTER_17   118
 
#define MZ2_MAKRON_RAILGUN_1   119
 
#define MZ2_JORG_MACHINEGUN_L1   120
 
#define MZ2_JORG_MACHINEGUN_L2   121
 
#define MZ2_JORG_MACHINEGUN_L3   122
 
#define MZ2_JORG_MACHINEGUN_L4   123
 
#define MZ2_JORG_MACHINEGUN_L5   124
 
#define MZ2_JORG_MACHINEGUN_L6   125
 
#define MZ2_JORG_MACHINEGUN_R1   126
 
#define MZ2_JORG_MACHINEGUN_R2   127
 
#define MZ2_JORG_MACHINEGUN_R3   128
 
#define MZ2_JORG_MACHINEGUN_R4   129
 
#define MZ2_JORG_MACHINEGUN_R5   130
 
#define MZ2_JORG_MACHINEGUN_R6   131
 
#define MZ2_JORG_BFG_1   132
 
#define MZ2_BOSS2_MACHINEGUN_R1   133
 
#define MZ2_BOSS2_MACHINEGUN_R2   134
 
#define MZ2_BOSS2_MACHINEGUN_R3   135
 
#define MZ2_BOSS2_MACHINEGUN_R4   136
 
#define MZ2_BOSS2_MACHINEGUN_R5   137
 
#define MZ2_CARRIER_MACHINEGUN_L1   138
 
#define MZ2_CARRIER_MACHINEGUN_R1   139
 
#define MZ2_CARRIER_GRENADE   140
 
#define MZ2_TURRET_MACHINEGUN   141
 
#define MZ2_TURRET_ROCKET   142
 
#define MZ2_TURRET_BLASTER   143
 
#define MZ2_STALKER_BLASTER   144
 
#define MZ2_DAEDALUS_BLASTER   145
 
#define MZ2_MEDIC_BLASTER_2   146
 
#define MZ2_CARRIER_RAILGUN   147
 
#define MZ2_WIDOW_DISRUPTOR   148
 
#define MZ2_WIDOW_BLASTER   149
 
#define MZ2_WIDOW_RAIL   150
 
#define MZ2_WIDOW_PLASMABEAM   151
 
#define MZ2_CARRIER_MACHINEGUN_L2   152
 
#define MZ2_CARRIER_MACHINEGUN_R2   153
 
#define MZ2_WIDOW_RAIL_LEFT   154
 
#define MZ2_WIDOW_RAIL_RIGHT   155
 
#define MZ2_WIDOW_BLASTER_SWEEP1   156
 
#define MZ2_WIDOW_BLASTER_SWEEP2   157
 
#define MZ2_WIDOW_BLASTER_SWEEP3   158
 
#define MZ2_WIDOW_BLASTER_SWEEP4   159
 
#define MZ2_WIDOW_BLASTER_SWEEP5   160
 
#define MZ2_WIDOW_BLASTER_SWEEP6   161
 
#define MZ2_WIDOW_BLASTER_SWEEP7   162
 
#define MZ2_WIDOW_BLASTER_SWEEP8   163
 
#define MZ2_WIDOW_BLASTER_SWEEP9   164
 
#define MZ2_WIDOW_BLASTER_100   165
 
#define MZ2_WIDOW_BLASTER_90   166
 
#define MZ2_WIDOW_BLASTER_80   167
 
#define MZ2_WIDOW_BLASTER_70   168
 
#define MZ2_WIDOW_BLASTER_60   169
 
#define MZ2_WIDOW_BLASTER_50   170
 
#define MZ2_WIDOW_BLASTER_40   171
 
#define MZ2_WIDOW_BLASTER_30   172
 
#define MZ2_WIDOW_BLASTER_20   173
 
#define MZ2_WIDOW_BLASTER_10   174
 
#define MZ2_WIDOW_BLASTER_0   175
 
#define MZ2_WIDOW_BLASTER_10L   176
 
#define MZ2_WIDOW_BLASTER_20L   177
 
#define MZ2_WIDOW_BLASTER_30L   178
 
#define MZ2_WIDOW_BLASTER_40L   179
 
#define MZ2_WIDOW_BLASTER_50L   180
 
#define MZ2_WIDOW_BLASTER_60L   181
 
#define MZ2_WIDOW_BLASTER_70L   182
 
#define MZ2_WIDOW_RUN_1   183
 
#define MZ2_WIDOW_RUN_2   184
 
#define MZ2_WIDOW_RUN_3   185
 
#define MZ2_WIDOW_RUN_4   186
 
#define MZ2_WIDOW_RUN_5   187
 
#define MZ2_WIDOW_RUN_6   188
 
#define MZ2_WIDOW_RUN_7   189
 
#define MZ2_WIDOW_RUN_8   190
 
#define MZ2_CARRIER_ROCKET_1   191
 
#define MZ2_CARRIER_ROCKET_2   192
 
#define MZ2_CARRIER_ROCKET_3   193
 
#define MZ2_CARRIER_ROCKET_4   194
 
#define MZ2_WIDOW2_BEAMER_1   195
 
#define MZ2_WIDOW2_BEAMER_2   196
 
#define MZ2_WIDOW2_BEAMER_3   197
 
#define MZ2_WIDOW2_BEAMER_4   198
 
#define MZ2_WIDOW2_BEAMER_5   199
 
#define MZ2_WIDOW2_BEAM_SWEEP_1   200
 
#define MZ2_WIDOW2_BEAM_SWEEP_2   201
 
#define MZ2_WIDOW2_BEAM_SWEEP_3   202
 
#define MZ2_WIDOW2_BEAM_SWEEP_4   203
 
#define MZ2_WIDOW2_BEAM_SWEEP_5   204
 
#define MZ2_WIDOW2_BEAM_SWEEP_6   205
 
#define MZ2_WIDOW2_BEAM_SWEEP_7   206
 
#define MZ2_WIDOW2_BEAM_SWEEP_8   207
 
#define MZ2_WIDOW2_BEAM_SWEEP_9   208
 
#define MZ2_WIDOW2_BEAM_SWEEP_10   209
 
#define MZ2_WIDOW2_BEAM_SWEEP_11   210
 
#define SPLASH_UNKNOWN   0
 
#define SPLASH_SPARKS   1
 
#define SPLASH_BLUE_WATER   2
 
#define SPLASH_BROWN_WATER   3
 
#define SPLASH_SLIME   4
 
#define SPLASH_LAVA   5
 
#define SPLASH_BLOOD   6
 
#define CHAN_AUTO   0
 
#define CHAN_WEAPON   1
 
#define CHAN_VOICE   2
 
#define CHAN_ITEM   3
 
#define CHAN_BODY   4
 
#define CHAN_NO_PHS_ADD   8
 
#define CHAN_RELIABLE   16
 
#define ATTN_NONE   0
 
#define ATTN_NORM   1
 
#define ATTN_IDLE   2
 
#define ATTN_STATIC   3
 
#define STAT_HEALTH_ICON   0
 
#define STAT_HEALTH   1
 
#define STAT_AMMO_ICON   2
 
#define STAT_AMMO   3
 
#define STAT_ARMOR_ICON   4
 
#define STAT_ARMOR   5
 
#define STAT_SELECTED_ICON   6
 
#define STAT_PICKUP_ICON   7
 
#define STAT_PICKUP_STRING   8
 
#define STAT_TIMER_ICON   9
 
#define STAT_TIMER   10
 
#define STAT_HELPICON   11
 
#define STAT_SELECTED_ITEM   12
 
#define STAT_LAYOUTS   13
 
#define STAT_FRAGS   14
 
#define STAT_FLASHES   15
 
#define STAT_CHASE   16
 
#define STAT_SPECTATOR   17
 
#define MAX_STATS   32
 
#define DF_NO_HEALTH   0x00000001
 
#define DF_NO_ITEMS   0x00000002
 
#define DF_WEAPONS_STAY   0x00000004
 
#define DF_NO_FALLING   0x00000008
 
#define DF_INSTANT_ITEMS   0x00000010
 
#define DF_SAME_LEVEL   0x00000020
 
#define DF_SKINTEAMS   0x00000040
 
#define DF_MODELTEAMS   0x00000080
 
#define DF_NO_FRIENDLY_FIRE   0x00000100
 
#define DF_SPAWN_FARTHEST   0x00000200
 
#define DF_FORCE_RESPAWN   0x00000400
 
#define DF_NO_ARMOR   0x00000800
 
#define DF_ALLOW_EXIT   0x00001000
 
#define DF_INFINITE_AMMO   0x00002000
 
#define DF_QUAD_DROP   0x00004000
 
#define DF_FIXED_FOV   0x00008000
 
#define DF_QUADFIRE_DROP   0x00010000
 
#define DF_NO_MINES   0x00020000
 
#define DF_NO_STACK_DOUBLE   0x00040000
 
#define DF_NO_NUKES   0x00080000
 
#define DF_NO_SPHERES   0x00100000
 
#define ROGUE_VERSION_ID   1278
 
#define ROGUE_VERSION_STRING   "08/21/1998 Beta 2 for Ensemble"
 
#define ANGLE2SHORT(x)   ((int)((x)*65536/360) & 65535)
 
#define SHORT2ANGLE(x)   ((x)*(360.0/65536))
 
#define CS_NAME   0
 
#define CS_CDTRACK   1
 
#define CS_SKY   2
 
#define CS_SKYAXIS   3
 
#define CS_SKYROTATE   4
 
#define CS_STATUSBAR   5
 
#define CS_AIRACCEL   29
 
#define CS_MAXCLIENTS   30
 
#define CS_MAPCHECKSUM   31
 
#define CS_MODELS   32
 
#define CS_SOUNDS   (CS_MODELS+MAX_MODELS)
 
#define CS_IMAGES   (CS_SOUNDS+MAX_SOUNDS)
 
#define CS_LIGHTS   (CS_IMAGES+MAX_IMAGES)
 
#define CS_ITEMS   (CS_LIGHTS+MAX_LIGHTSTYLES)
 
#define CS_PLAYERSKINS   (CS_ITEMS+MAX_ITEMS)
 
#define CS_GENERAL   (CS_PLAYERSKINS+MAX_CLIENTS)
 
#define MAX_CONFIGSTRINGS   (CS_GENERAL+MAX_GENERAL)
 
#define VIDREF_GL   1
 
#define VIDREF_SOFT   2
 
#define VIDREF_OTHER   3
 

Typedefs

typedef unsigned char byte
 
typedef float vec_t
 
typedef vec_t vec3_t[3]
 
typedef vec_t vec5_t[5]
 
typedef int fixed4_t
 
typedef int fixed8_t
 
typedef int fixed16_t
 
typedef struct cvar_s cvar_t
 
typedef struct cplane_s cplane_t
 
typedef struct cmodel_s cmodel_t
 
typedef struct csurface_s csurface_t
 
typedef struct mapsurface_s mapsurface_t
 
typedef struct usercmd_s usercmd_t
 
typedef struct entity_state_s entity_state_t
 

Enumerations

enum  qboolean { false, true }
 
enum  multicast_t {
  MULTICAST_ALL, MULTICAST_PHS, MULTICAST_PVS, MULTICAST_ALL_R,
  MULTICAST_PHS_R, MULTICAST_PVS_R
}
 
enum  pmtype_t {
  PM_NORMAL, PM_SPECTATOR, PM_DEAD, PM_GIB,
  PM_FREEZE
}
 
enum  temp_event_t {
  TE_GUNSHOT, TE_BLOOD, TE_BLASTER, TE_RAILTRAIL,
  TE_SHOTGUN, TE_EXPLOSION1, TE_EXPLOSION2, TE_ROCKET_EXPLOSION,
  TE_GRENADE_EXPLOSION, TE_SPARKS, TE_SPLASH, TE_BUBBLETRAIL,
  TE_SCREEN_SPARKS, TE_SHIELD_SPARKS, TE_BULLET_SPARKS, TE_LASER_SPARKS,
  TE_PARASITE_ATTACK, TE_ROCKET_EXPLOSION_WATER, TE_GRENADE_EXPLOSION_WATER, TE_MEDIC_CABLE_ATTACK,
  TE_BFG_EXPLOSION, TE_BFG_BIGEXPLOSION, TE_BOSSTPORT, TE_BFG_LASER,
  TE_GRAPPLE_CABLE, TE_WELDING_SPARKS, TE_GREENBLOOD, TE_BLUEHYPERBLASTER,
  TE_PLASMA_EXPLOSION, TE_TUNNEL_SPARKS, TE_BLASTER2, TE_RAILTRAIL2,
  TE_FLAME, TE_LIGHTNING, TE_DEBUGTRAIL, TE_PLAIN_EXPLOSION,
  TE_FLASHLIGHT, TE_FORCEWALL, TE_HEATBEAM, TE_MONSTER_HEATBEAM,
  TE_STEAM, TE_BUBBLETRAIL2, TE_MOREBLOOD, TE_HEATBEAM_SPARKS,
  TE_HEATBEAM_STEAM, TE_CHAINFIST_SMOKE, TE_ELECTRIC_SPARKS, TE_TRACKER_EXPLOSION,
  TE_TELEPORT_EFFECT, TE_DBALL_GOAL, TE_WIDOWBEAMOUT, TE_NUKEBLAST,
  TE_WIDOWSPLASH, TE_EXPLOSION1_BIG, TE_EXPLOSION1_NP, TE_FLECHETTE
}
 
enum  entity_event_t {
  EV_NONE, EV_ITEM_RESPAWN, EV_FOOTSTEP, EV_FALLSHORT,
  EV_FALL, EV_FALLFAR, EV_PLAYER_TELEPORT, EV_OTHER_TELEPORT
}
 

Functions

long Q_ftol (float f)
 
void VectorMA (vec3_t veca, float scale, vec3_t vecb, vec3_t vecc)
 
vec_t _DotProduct (vec3_t v1, vec3_t v2)
 
void _VectorSubtract (vec3_t veca, vec3_t vecb, vec3_t out)
 
void _VectorAdd (vec3_t veca, vec3_t vecb, vec3_t out)
 
void _VectorCopy (vec3_t in, vec3_t out)
 
void ClearBounds (vec3_t mins, vec3_t maxs)
 
void AddPointToBounds (vec3_t v, vec3_t mins, vec3_t maxs)
 
int VectorCompare (vec3_t v1, vec3_t v2)
 
vec_t VectorLength (vec3_t v)
 
void CrossProduct (vec3_t v1, vec3_t v2, vec3_t cross)
 
vec_t VectorNormalize (vec3_t v)
 
vec_t VectorNormalize2 (vec3_t v, vec3_t out)
 
void VectorInverse (vec3_t v)
 
void VectorScale (vec3_t in, vec_t scale, vec3_t out)
 
int Q_log2 (int val)
 
void R_ConcatRotations (float in1[3][3], float in2[3][3], float out[3][3])
 
void R_ConcatTransforms (float in1[3][4], float in2[3][4], float out[3][4])
 
void AngleVectors (vec3_t angles, vec3_t forward, vec3_t right, vec3_t up)
 
int BoxOnPlaneSide (vec3_t emins, vec3_t emaxs, struct cplane_s *plane)
 
float anglemod (float a)
 
float LerpAngle (float a1, float a2, float frac)
 
void ProjectPointOnPlane (vec3_t dst, const vec3_t p, const vec3_t normal)
 
void PerpendicularVector (vec3_t dst, const vec3_t src)
 
void RotatePointAroundVector (vec3_t dst, const vec3_t dir, const vec3_t point, float degrees)
 
char * COM_SkipPath (char *pathname)
 
void COM_StripExtension (char *in, char *out)
 
void COM_FileBase (char *in, char *out)
 
void COM_FilePath (char *in, char *out)
 
void COM_DefaultExtension (char *path, char *extension)
 
char * COM_Parse (char **data_p)
 
void Com_sprintf (char *dest, int size, char *fmt,...)
 
void Com_PageInMemory (byte *buffer, int size)
 
int Q_stricmp (char *s1, char *s2)
 
int Q_strcasecmp (char *s1, char *s2)
 
int Q_strncasecmp (char *s1, char *s2, int n)
 
short BigShort (short l)
 
short LittleShort (short l)
 
int BigLong (int l)
 
int LittleLong (int l)
 
float BigFloat (float l)
 
float LittleFloat (float l)
 
void Swap_Init (void)
 
char * va (char *format,...)
 
char * Info_ValueForKey (char *s, char *key)
 
void Info_RemoveKey (char *s, char *key)
 
void Info_SetValueForKey (char *s, char *key, char *value)
 
qboolean Info_Validate (char *s)
 
int Sys_Milliseconds (void)
 
void Sys_Mkdir (char *path)
 
voidHunk_Begin (int maxsize)
 
voidHunk_Alloc (int size)
 
void Hunk_Free (void *buf)
 
int Hunk_End (void)
 
char * Sys_FindFirst (char *path, unsigned musthave, unsigned canthave)
 
char * Sys_FindNext (unsigned musthave, unsigned canthave)
 
void Sys_FindClose (void)
 
void Sys_Error (char *error,...)
 
void Com_Printf (char *msg,...)
 
size_t verify_fread (void *, size_t, size_t, FILE *)
 
size_t verify_fwrite (void *, size_t, size_t, FILE *)
 

Variables

vec3_t vec3_origin
 
int curtime
 
vec3_t monster_flash_offset []
 
int vidref_val
 

Macro Definition Documentation

◆ ANGLE2SHORT

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

Definition at line 1116 of file q_shared.h.

◆ AREA_SOLID

#define AREA_SOLID   1

Definition at line 403 of file q_shared.h.

◆ AREA_TRIGGERS

#define AREA_TRIGGERS   2

Definition at line 404 of file q_shared.h.

◆ ATTN_IDLE

#define ATTN_IDLE   2

Definition at line 1020 of file q_shared.h.

◆ ATTN_NONE

#define ATTN_NONE   0

Definition at line 1018 of file q_shared.h.

◆ ATTN_NORM

#define ATTN_NORM   1

Definition at line 1019 of file q_shared.h.

◆ ATTN_STATIC

#define ATTN_STATIC   3

Definition at line 1021 of file q_shared.h.

◆ BOX_ON_PLANE_SIDE

#define BOX_ON_PLANE_SIDE (   emins,
  emaxs,
 
)
Value:
(((p)->type < 3)? \
( \
((p)->dist <= (emins)[(p)->type])? \
1 \
: \
( \
((p)->dist >= (emaxs)[(p)->type])?\
2 \
: \
3 \
) \
) \
: \
BoxOnPlaneSide( (emins), (emaxs), (p)))

Definition at line 190 of file q_shared.h.

◆ BUTTON_ANY

#define BUTTON_ANY   128

Definition at line 509 of file q_shared.h.

◆ BUTTON_ATTACK

#define BUTTON_ATTACK   1

Definition at line 507 of file q_shared.h.

◆ BUTTON_USE

#define BUTTON_USE   2

Definition at line 508 of file q_shared.h.

◆ CHAN_AUTO

#define CHAN_AUTO   0

Definition at line 1007 of file q_shared.h.

◆ CHAN_BODY

#define CHAN_BODY   4

Definition at line 1011 of file q_shared.h.

◆ CHAN_ITEM

#define CHAN_ITEM   3

Definition at line 1010 of file q_shared.h.

◆ CHAN_NO_PHS_ADD

#define CHAN_NO_PHS_ADD   8

Definition at line 1013 of file q_shared.h.

◆ CHAN_RELIABLE

#define CHAN_RELIABLE   16

Definition at line 1014 of file q_shared.h.

◆ CHAN_VOICE

#define CHAN_VOICE   2

Definition at line 1009 of file q_shared.h.

◆ CHAN_WEAPON

#define CHAN_WEAPON   1

Definition at line 1008 of file q_shared.h.

◆ CONTENTS_AREAPORTAL

#define CONTENTS_AREAPORTAL   0x8000

Definition at line 350 of file q_shared.h.

◆ CONTENTS_AUX

#define CONTENTS_AUX   4

Definition at line 341 of file q_shared.h.

◆ CONTENTS_CURRENT_0

#define CONTENTS_CURRENT_0   0x40000

Definition at line 356 of file q_shared.h.

◆ CONTENTS_CURRENT_180

#define CONTENTS_CURRENT_180   0x100000

Definition at line 358 of file q_shared.h.

◆ CONTENTS_CURRENT_270

#define CONTENTS_CURRENT_270   0x200000

Definition at line 359 of file q_shared.h.

◆ CONTENTS_CURRENT_90

#define CONTENTS_CURRENT_90   0x80000

Definition at line 357 of file q_shared.h.

◆ CONTENTS_CURRENT_DOWN

#define CONTENTS_CURRENT_DOWN   0x800000

Definition at line 361 of file q_shared.h.

◆ CONTENTS_CURRENT_UP

#define CONTENTS_CURRENT_UP   0x400000

Definition at line 360 of file q_shared.h.

◆ CONTENTS_DEADMONSTER

#define CONTENTS_DEADMONSTER   0x4000000

Definition at line 366 of file q_shared.h.

◆ CONTENTS_DETAIL

#define CONTENTS_DETAIL   0x8000000

Definition at line 367 of file q_shared.h.

◆ CONTENTS_LADDER

#define CONTENTS_LADDER   0x20000000

Definition at line 369 of file q_shared.h.

◆ CONTENTS_LAVA

#define CONTENTS_LAVA   8

Definition at line 342 of file q_shared.h.

◆ CONTENTS_MIST

#define CONTENTS_MIST   64

Definition at line 345 of file q_shared.h.

◆ CONTENTS_MONSTER

#define CONTENTS_MONSTER   0x2000000

Definition at line 365 of file q_shared.h.

◆ CONTENTS_MONSTERCLIP

#define CONTENTS_MONSTERCLIP   0x20000

Definition at line 353 of file q_shared.h.

◆ CONTENTS_ORIGIN

#define CONTENTS_ORIGIN   0x1000000

Definition at line 363 of file q_shared.h.

◆ CONTENTS_PLAYERCLIP

#define CONTENTS_PLAYERCLIP   0x10000

Definition at line 352 of file q_shared.h.

◆ CONTENTS_SLIME

#define CONTENTS_SLIME   16

Definition at line 343 of file q_shared.h.

◆ CONTENTS_SOLID

#define CONTENTS_SOLID   1

Definition at line 339 of file q_shared.h.

◆ CONTENTS_TRANSLUCENT

#define CONTENTS_TRANSLUCENT   0x10000000

Definition at line 368 of file q_shared.h.

◆ CONTENTS_WATER

#define CONTENTS_WATER   32

Definition at line 344 of file q_shared.h.

◆ CONTENTS_WINDOW

#define CONTENTS_WINDOW   2

Definition at line 340 of file q_shared.h.

◆ CPLANE_DIST

#define CPLANE_DIST   12

Definition at line 422 of file q_shared.h.

◆ CPLANE_NORMAL_X

#define CPLANE_NORMAL_X   0

Definition at line 419 of file q_shared.h.

◆ CPLANE_NORMAL_Y

#define CPLANE_NORMAL_Y   4

Definition at line 420 of file q_shared.h.

◆ CPLANE_NORMAL_Z

#define CPLANE_NORMAL_Z   8

Definition at line 421 of file q_shared.h.

◆ CPLANE_PAD0

#define CPLANE_PAD0   18

Definition at line 425 of file q_shared.h.

◆ CPLANE_PAD1

#define CPLANE_PAD1   19

Definition at line 426 of file q_shared.h.

◆ CPLANE_SIGNBITS

#define CPLANE_SIGNBITS   17

Definition at line 424 of file q_shared.h.

◆ CPLANE_TYPE

#define CPLANE_TYPE   16

Definition at line 423 of file q_shared.h.

◆ CS_AIRACCEL

#define CS_AIRACCEL   29

Definition at line 1132 of file q_shared.h.

◆ CS_CDTRACK

#define CS_CDTRACK   1

Definition at line 1126 of file q_shared.h.

◆ CS_GENERAL

#define CS_GENERAL   (CS_PLAYERSKINS+MAX_CLIENTS)

Definition at line 1142 of file q_shared.h.

◆ CS_IMAGES

#define CS_IMAGES   (CS_SOUNDS+MAX_SOUNDS)

Definition at line 1138 of file q_shared.h.

◆ CS_ITEMS

#define CS_ITEMS   (CS_LIGHTS+MAX_LIGHTSTYLES)

Definition at line 1140 of file q_shared.h.

◆ CS_LIGHTS

#define CS_LIGHTS   (CS_IMAGES+MAX_IMAGES)

Definition at line 1139 of file q_shared.h.

◆ CS_MAPCHECKSUM

#define CS_MAPCHECKSUM   31

Definition at line 1134 of file q_shared.h.

◆ CS_MAXCLIENTS

#define CS_MAXCLIENTS   30

Definition at line 1133 of file q_shared.h.

◆ CS_MODELS

#define CS_MODELS   32

Definition at line 1136 of file q_shared.h.

◆ CS_NAME

#define CS_NAME   0

Definition at line 1125 of file q_shared.h.

◆ CS_PLAYERSKINS

#define CS_PLAYERSKINS   (CS_ITEMS+MAX_ITEMS)

Definition at line 1141 of file q_shared.h.

◆ CS_SKY

#define CS_SKY   2

Definition at line 1127 of file q_shared.h.

◆ CS_SKYAXIS

#define CS_SKYAXIS   3

Definition at line 1128 of file q_shared.h.

◆ CS_SKYROTATE

#define CS_SKYROTATE   4

Definition at line 1129 of file q_shared.h.

◆ CS_SOUNDS

#define CS_SOUNDS   (CS_MODELS+MAX_MODELS)

Definition at line 1137 of file q_shared.h.

◆ CS_STATUSBAR

#define CS_STATUSBAR   5

Definition at line 1130 of file q_shared.h.

◆ CVAR

#define CVAR

Definition at line 307 of file q_shared.h.

◆ CVAR_ARCHIVE

#define CVAR_ARCHIVE   1

Definition at line 309 of file q_shared.h.

◆ CVAR_LATCH

#define CVAR_LATCH   16

Definition at line 314 of file q_shared.h.

◆ CVAR_NOSET

#define CVAR_NOSET   8

Definition at line 312 of file q_shared.h.

◆ CVAR_SERVERINFO

#define CVAR_SERVERINFO   4

Definition at line 311 of file q_shared.h.

◆ CVAR_USERINFO

#define CVAR_USERINFO   2

Definition at line 310 of file q_shared.h.

◆ DF_ALLOW_EXIT

#define DF_ALLOW_EXIT   0x00001000

Definition at line 1060 of file q_shared.h.

◆ DF_FIXED_FOV

#define DF_FIXED_FOV   0x00008000

Definition at line 1063 of file q_shared.h.

◆ DF_FORCE_RESPAWN

#define DF_FORCE_RESPAWN   0x00000400

Definition at line 1058 of file q_shared.h.

◆ DF_INFINITE_AMMO

#define DF_INFINITE_AMMO   0x00002000

Definition at line 1061 of file q_shared.h.

◆ DF_INSTANT_ITEMS

#define DF_INSTANT_ITEMS   0x00000010

Definition at line 1052 of file q_shared.h.

◆ DF_MODELTEAMS

#define DF_MODELTEAMS   0x00000080

Definition at line 1055 of file q_shared.h.

◆ DF_NO_ARMOR

#define DF_NO_ARMOR   0x00000800

Definition at line 1059 of file q_shared.h.

◆ DF_NO_FALLING

#define DF_NO_FALLING   0x00000008

Definition at line 1051 of file q_shared.h.

◆ DF_NO_FRIENDLY_FIRE

#define DF_NO_FRIENDLY_FIRE   0x00000100

Definition at line 1056 of file q_shared.h.

◆ DF_NO_HEALTH

#define DF_NO_HEALTH   0x00000001

Definition at line 1048 of file q_shared.h.

◆ DF_NO_ITEMS

#define DF_NO_ITEMS   0x00000002

Definition at line 1049 of file q_shared.h.

◆ DF_NO_MINES

#define DF_NO_MINES   0x00020000

Definition at line 1069 of file q_shared.h.

◆ DF_NO_NUKES

#define DF_NO_NUKES   0x00080000

Definition at line 1071 of file q_shared.h.

◆ DF_NO_SPHERES

#define DF_NO_SPHERES   0x00100000

Definition at line 1072 of file q_shared.h.

◆ DF_NO_STACK_DOUBLE

#define DF_NO_STACK_DOUBLE   0x00040000

Definition at line 1070 of file q_shared.h.

◆ DF_QUAD_DROP

#define DF_QUAD_DROP   0x00004000

Definition at line 1062 of file q_shared.h.

◆ DF_QUADFIRE_DROP

#define DF_QUADFIRE_DROP   0x00010000

Definition at line 1066 of file q_shared.h.

◆ DF_SAME_LEVEL

#define DF_SAME_LEVEL   0x00000020

Definition at line 1053 of file q_shared.h.

◆ DF_SKINTEAMS

#define DF_SKINTEAMS   0x00000040

Definition at line 1054 of file q_shared.h.

◆ DF_SPAWN_FARTHEST

#define DF_SPAWN_FARTHEST   0x00000200

Definition at line 1057 of file q_shared.h.

◆ DF_WEAPONS_STAY

#define DF_WEAPONS_STAY   0x00000004

Definition at line 1050 of file q_shared.h.

◆ DotProduct

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

Definition at line 155 of file q_shared.h.

◆ EF_ANIM01

#define EF_ANIM01   0x00000400

Definition at line 567 of file q_shared.h.

◆ EF_ANIM23

#define EF_ANIM23   0x00000800

Definition at line 568 of file q_shared.h.

◆ EF_ANIM_ALL

#define EF_ANIM_ALL   0x00001000

Definition at line 569 of file q_shared.h.

◆ EF_ANIM_ALLFAST

#define EF_ANIM_ALLFAST   0x00002000

Definition at line 570 of file q_shared.h.

◆ EF_BFG

#define EF_BFG   0x00000080

Definition at line 564 of file q_shared.h.

◆ EF_BLASTER

#define EF_BLASTER   0x00000008

Definition at line 560 of file q_shared.h.

◆ EF_BLUEHYPERBLASTER

#define EF_BLUEHYPERBLASTER   0x00400000

Definition at line 580 of file q_shared.h.

◆ EF_COLOR_SHELL

#define EF_COLOR_SHELL   0x00000100

Definition at line 565 of file q_shared.h.

◆ EF_DOUBLE

#define EF_DOUBLE   0x08000000

Definition at line 587 of file q_shared.h.

◆ EF_FLAG1

#define EF_FLAG1   0x00040000

Definition at line 575 of file q_shared.h.

◆ EF_FLAG2

#define EF_FLAG2   0x00080000

Definition at line 576 of file q_shared.h.

◆ EF_FLIES

#define EF_FLIES   0x00004000

Definition at line 571 of file q_shared.h.

◆ EF_GIB

#define EF_GIB   0x00000002

Definition at line 559 of file q_shared.h.

◆ EF_GREENGIB

#define EF_GREENGIB   0x00200000

Definition at line 579 of file q_shared.h.

◆ EF_GRENADE

#define EF_GRENADE   0x00000020

Definition at line 562 of file q_shared.h.

◆ EF_HALF_DAMAGE

#define EF_HALF_DAMAGE   0x40000000

Definition at line 590 of file q_shared.h.

◆ EF_HYPERBLASTER

#define EF_HYPERBLASTER   0x00000040

Definition at line 563 of file q_shared.h.

◆ EF_IONRIPPER

#define EF_IONRIPPER   0x00100000

Definition at line 578 of file q_shared.h.

◆ EF_PENT

#define EF_PENT   0x00010000

Definition at line 573 of file q_shared.h.

◆ EF_PLASMA

#define EF_PLASMA   0x01000000

Definition at line 582 of file q_shared.h.

◆ EF_POWERSCREEN

#define EF_POWERSCREEN   0x00000200

Definition at line 566 of file q_shared.h.

◆ EF_QUAD

#define EF_QUAD   0x00008000

Definition at line 572 of file q_shared.h.

◆ EF_ROCKET

#define EF_ROCKET   0x00000010

Definition at line 561 of file q_shared.h.

◆ EF_ROTATE

#define EF_ROTATE   0x00000001

Definition at line 558 of file q_shared.h.

◆ EF_SPHERETRANS

#define EF_SPHERETRANS   0x10000000

Definition at line 588 of file q_shared.h.

◆ EF_SPINNINGLIGHTS

#define EF_SPINNINGLIGHTS   0x00800000

Definition at line 581 of file q_shared.h.

◆ EF_TAGTRAIL

#define EF_TAGTRAIL   0x20000000

Definition at line 589 of file q_shared.h.

◆ EF_TELEPORTER

#define EF_TELEPORTER   0x00020000

Definition at line 574 of file q_shared.h.

◆ EF_TRACKER

#define EF_TRACKER   0x04000000

Definition at line 586 of file q_shared.h.

◆ EF_TRACKERTRAIL

#define EF_TRACKERTRAIL   0x80000000

Definition at line 591 of file q_shared.h.

◆ EF_TRAP

#define EF_TRAP   0x02000000

Definition at line 583 of file q_shared.h.

◆ ERR_DISCONNECT

#define ERR_DISCONNECT   2

Definition at line 99 of file q_shared.h.

◆ ERR_DROP

#define ERR_DROP   1

Definition at line 98 of file q_shared.h.

◆ ERR_FATAL

#define ERR_FATAL   0

Definition at line 97 of file q_shared.h.

◆ id386

#define id386   0

Definition at line 46 of file q_shared.h.

◆ idaxp

#define idaxp   0

Definition at line 52 of file q_shared.h.

◆ IS_NAN

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

Definition at line 144 of file q_shared.h.

◆ LAST_VISIBLE_CONTENTS

#define LAST_VISIBLE_CONTENTS   64

Definition at line 346 of file q_shared.h.

◆ M_PI

#define M_PI   3.14159265358979323846

Definition at line 135 of file q_shared.h.

◆ MASK_ALL

#define MASK_ALL   (-1)

Definition at line 390 of file q_shared.h.

◆ MASK_CURRENT

◆ MASK_DEADSOLID

#define MASK_DEADSOLID   (CONTENTS_SOLID|CONTENTS_PLAYERCLIP|CONTENTS_WINDOW)

Definition at line 393 of file q_shared.h.

◆ MASK_MONSTERSOLID

Definition at line 394 of file q_shared.h.

◆ MASK_OPAQUE

#define MASK_OPAQUE   (CONTENTS_SOLID|CONTENTS_SLIME|CONTENTS_LAVA)

Definition at line 396 of file q_shared.h.

◆ MASK_PLAYERSOLID

Definition at line 392 of file q_shared.h.

◆ MASK_SHOT

Definition at line 397 of file q_shared.h.

◆ MASK_SOLID

#define MASK_SOLID   (CONTENTS_SOLID|CONTENTS_WINDOW)

Definition at line 391 of file q_shared.h.

◆ MASK_WATER

#define MASK_WATER   (CONTENTS_WATER|CONTENTS_LAVA|CONTENTS_SLIME)

Definition at line 395 of file q_shared.h.

◆ MAX_CLIENTS

#define MAX_CLIENTS   256

Definition at line 79 of file q_shared.h.

◆ MAX_CONFIGSTRINGS

#define MAX_CONFIGSTRINGS   (CS_GENERAL+MAX_GENERAL)

Definition at line 1143 of file q_shared.h.

◆ MAX_EDICTS

#define MAX_EDICTS   1024

Definition at line 80 of file q_shared.h.

◆ MAX_GENERAL

#define MAX_GENERAL   (MAX_CLIENTS*2)

Definition at line 86 of file q_shared.h.

◆ MAX_IMAGES

#define MAX_IMAGES   256

Definition at line 84 of file q_shared.h.

◆ MAX_INFO_KEY

#define MAX_INFO_KEY   64

Definition at line 250 of file q_shared.h.

◆ MAX_INFO_STRING

#define MAX_INFO_STRING   512

Definition at line 252 of file q_shared.h.

◆ MAX_INFO_VALUE

#define MAX_INFO_VALUE   64

Definition at line 251 of file q_shared.h.

◆ MAX_ITEMS

#define MAX_ITEMS   256

Definition at line 85 of file q_shared.h.

◆ MAX_LIGHTSTYLES

#define MAX_LIGHTSTYLES   256

Definition at line 81 of file q_shared.h.

◆ MAX_MODELS

#define MAX_MODELS   256

Definition at line 82 of file q_shared.h.

◆ MAX_OSPATH

#define MAX_OSPATH   128

Definition at line 74 of file q_shared.h.

◆ MAX_QPATH

#define MAX_QPATH   64

Definition at line 73 of file q_shared.h.

◆ MAX_SOUNDS

#define MAX_SOUNDS   256

Definition at line 83 of file q_shared.h.

◆ MAX_STATS

#define MAX_STATS   32

Definition at line 1044 of file q_shared.h.

◆ MAX_STRING_CHARS

#define MAX_STRING_CHARS   1024

Definition at line 69 of file q_shared.h.

◆ MAX_STRING_TOKENS

#define MAX_STRING_TOKENS   80

Definition at line 70 of file q_shared.h.

◆ MAX_TOKEN_CHARS

#define MAX_TOKEN_CHARS   128

Definition at line 71 of file q_shared.h.

◆ MAXTOUCH

#define MAXTOUCH   32

Definition at line 524 of file q_shared.h.

◆ MZ2_ACTOR_MACHINEGUN_1

#define MZ2_ACTOR_MACHINEGUN_1   63

Definition at line 765 of file q_shared.h.

◆ MZ2_BOSS2_MACHINEGUN_L1

#define MZ2_BOSS2_MACHINEGUN_L1   73

Definition at line 777 of file q_shared.h.

◆ MZ2_BOSS2_MACHINEGUN_L2

#define MZ2_BOSS2_MACHINEGUN_L2   74

Definition at line 778 of file q_shared.h.

◆ MZ2_BOSS2_MACHINEGUN_L3

#define MZ2_BOSS2_MACHINEGUN_L3   75

Definition at line 779 of file q_shared.h.

◆ MZ2_BOSS2_MACHINEGUN_L4

#define MZ2_BOSS2_MACHINEGUN_L4   76

Definition at line 780 of file q_shared.h.

◆ MZ2_BOSS2_MACHINEGUN_L5

#define MZ2_BOSS2_MACHINEGUN_L5   77

Definition at line 781 of file q_shared.h.

◆ MZ2_BOSS2_MACHINEGUN_R1

#define MZ2_BOSS2_MACHINEGUN_R1   133

Definition at line 841 of file q_shared.h.

◆ MZ2_BOSS2_MACHINEGUN_R2

#define MZ2_BOSS2_MACHINEGUN_R2   134

Definition at line 842 of file q_shared.h.

◆ MZ2_BOSS2_MACHINEGUN_R3

#define MZ2_BOSS2_MACHINEGUN_R3   135

Definition at line 843 of file q_shared.h.

◆ MZ2_BOSS2_MACHINEGUN_R4

#define MZ2_BOSS2_MACHINEGUN_R4   136

Definition at line 844 of file q_shared.h.

◆ MZ2_BOSS2_MACHINEGUN_R5

#define MZ2_BOSS2_MACHINEGUN_R5   137

Definition at line 845 of file q_shared.h.

◆ MZ2_BOSS2_ROCKET_1

#define MZ2_BOSS2_ROCKET_1   78

Definition at line 782 of file q_shared.h.

◆ MZ2_BOSS2_ROCKET_2

#define MZ2_BOSS2_ROCKET_2   79

Definition at line 783 of file q_shared.h.

◆ MZ2_BOSS2_ROCKET_3

#define MZ2_BOSS2_ROCKET_3   80

Definition at line 784 of file q_shared.h.

◆ MZ2_BOSS2_ROCKET_4

#define MZ2_BOSS2_ROCKET_4   81

Definition at line 785 of file q_shared.h.

◆ MZ2_CARRIER_GRENADE

#define MZ2_CARRIER_GRENADE   140

Definition at line 850 of file q_shared.h.

◆ MZ2_CARRIER_MACHINEGUN_L1

#define MZ2_CARRIER_MACHINEGUN_L1   138

Definition at line 848 of file q_shared.h.

◆ MZ2_CARRIER_MACHINEGUN_L2

#define MZ2_CARRIER_MACHINEGUN_L2   152

Definition at line 862 of file q_shared.h.

◆ MZ2_CARRIER_MACHINEGUN_R1

#define MZ2_CARRIER_MACHINEGUN_R1   139

Definition at line 849 of file q_shared.h.

◆ MZ2_CARRIER_MACHINEGUN_R2

#define MZ2_CARRIER_MACHINEGUN_R2   153

Definition at line 863 of file q_shared.h.

◆ MZ2_CARRIER_RAILGUN

#define MZ2_CARRIER_RAILGUN   147

Definition at line 857 of file q_shared.h.

◆ MZ2_CARRIER_ROCKET_1

#define MZ2_CARRIER_ROCKET_1   191

Definition at line 901 of file q_shared.h.

◆ MZ2_CARRIER_ROCKET_2

#define MZ2_CARRIER_ROCKET_2   192

Definition at line 902 of file q_shared.h.

◆ MZ2_CARRIER_ROCKET_3

#define MZ2_CARRIER_ROCKET_3   193

Definition at line 903 of file q_shared.h.

◆ MZ2_CARRIER_ROCKET_4

#define MZ2_CARRIER_ROCKET_4   194

Definition at line 904 of file q_shared.h.

◆ MZ2_CHICK_ROCKET_1

#define MZ2_CHICK_ROCKET_1   57

Definition at line 754 of file q_shared.h.

◆ MZ2_DAEDALUS_BLASTER

#define MZ2_DAEDALUS_BLASTER   145

Definition at line 855 of file q_shared.h.

◆ MZ2_FLOAT_BLASTER_1

#define MZ2_FLOAT_BLASTER_1   82

Definition at line 787 of file q_shared.h.

◆ MZ2_FLYER_BLASTER_1

#define MZ2_FLYER_BLASTER_1   58

Definition at line 756 of file q_shared.h.

◆ MZ2_FLYER_BLASTER_2

#define MZ2_FLYER_BLASTER_2   59

Definition at line 757 of file q_shared.h.

◆ MZ2_GLADIATOR_RAILGUN_1

#define MZ2_GLADIATOR_RAILGUN_1   61

Definition at line 761 of file q_shared.h.

◆ MZ2_GUNNER_GRENADE_1

#define MZ2_GUNNER_GRENADE_1   53

Definition at line 749 of file q_shared.h.

◆ MZ2_GUNNER_GRENADE_2

#define MZ2_GUNNER_GRENADE_2   54

Definition at line 750 of file q_shared.h.

◆ MZ2_GUNNER_GRENADE_3

#define MZ2_GUNNER_GRENADE_3   55

Definition at line 751 of file q_shared.h.

◆ MZ2_GUNNER_GRENADE_4

#define MZ2_GUNNER_GRENADE_4   56

Definition at line 752 of file q_shared.h.

◆ MZ2_GUNNER_MACHINEGUN_1

#define MZ2_GUNNER_MACHINEGUN_1   45

Definition at line 741 of file q_shared.h.

◆ MZ2_GUNNER_MACHINEGUN_2

#define MZ2_GUNNER_MACHINEGUN_2   46

Definition at line 742 of file q_shared.h.

◆ MZ2_GUNNER_MACHINEGUN_3

#define MZ2_GUNNER_MACHINEGUN_3   47

Definition at line 743 of file q_shared.h.

◆ MZ2_GUNNER_MACHINEGUN_4

#define MZ2_GUNNER_MACHINEGUN_4   48

Definition at line 744 of file q_shared.h.

◆ MZ2_GUNNER_MACHINEGUN_5

#define MZ2_GUNNER_MACHINEGUN_5   49

Definition at line 745 of file q_shared.h.

◆ MZ2_GUNNER_MACHINEGUN_6

#define MZ2_GUNNER_MACHINEGUN_6   50

Definition at line 746 of file q_shared.h.

◆ MZ2_GUNNER_MACHINEGUN_7

#define MZ2_GUNNER_MACHINEGUN_7   51

Definition at line 747 of file q_shared.h.

◆ MZ2_GUNNER_MACHINEGUN_8

#define MZ2_GUNNER_MACHINEGUN_8   52

Definition at line 748 of file q_shared.h.

◆ MZ2_HOVER_BLASTER_1

#define MZ2_HOVER_BLASTER_1   62

Definition at line 763 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_1

#define MZ2_INFANTRY_MACHINEGUN_1   26

Definition at line 720 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_10

#define MZ2_INFANTRY_MACHINEGUN_10   35

Definition at line 729 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_11

#define MZ2_INFANTRY_MACHINEGUN_11   36

Definition at line 730 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_12

#define MZ2_INFANTRY_MACHINEGUN_12   37

Definition at line 731 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_13

#define MZ2_INFANTRY_MACHINEGUN_13   38

Definition at line 732 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_2

#define MZ2_INFANTRY_MACHINEGUN_2   27

Definition at line 721 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_3

#define MZ2_INFANTRY_MACHINEGUN_3   28

Definition at line 722 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_4

#define MZ2_INFANTRY_MACHINEGUN_4   29

Definition at line 723 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_5

#define MZ2_INFANTRY_MACHINEGUN_5   30

Definition at line 724 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_6

#define MZ2_INFANTRY_MACHINEGUN_6   31

Definition at line 725 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_7

#define MZ2_INFANTRY_MACHINEGUN_7   32

Definition at line 726 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_8

#define MZ2_INFANTRY_MACHINEGUN_8   33

Definition at line 727 of file q_shared.h.

◆ MZ2_INFANTRY_MACHINEGUN_9

#define MZ2_INFANTRY_MACHINEGUN_9   34

Definition at line 728 of file q_shared.h.

◆ MZ2_JORG_BFG_1

#define MZ2_JORG_BFG_1   132

Definition at line 840 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_L1

#define MZ2_JORG_MACHINEGUN_L1   120

Definition at line 828 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_L2

#define MZ2_JORG_MACHINEGUN_L2   121

Definition at line 829 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_L3

#define MZ2_JORG_MACHINEGUN_L3   122

Definition at line 830 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_L4

#define MZ2_JORG_MACHINEGUN_L4   123

Definition at line 831 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_L5

#define MZ2_JORG_MACHINEGUN_L5   124

Definition at line 832 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_L6

#define MZ2_JORG_MACHINEGUN_L6   125

Definition at line 833 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_R1

#define MZ2_JORG_MACHINEGUN_R1   126

Definition at line 834 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_R2

#define MZ2_JORG_MACHINEGUN_R2   127

Definition at line 835 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_R3

#define MZ2_JORG_MACHINEGUN_R3   128

Definition at line 836 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_R4

#define MZ2_JORG_MACHINEGUN_R4   129

Definition at line 837 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_R5

#define MZ2_JORG_MACHINEGUN_R5   130

Definition at line 838 of file q_shared.h.

◆ MZ2_JORG_MACHINEGUN_R6

#define MZ2_JORG_MACHINEGUN_R6   131

Definition at line 839 of file q_shared.h.

◆ MZ2_MAKRON_BFG

#define MZ2_MAKRON_BFG   101

Definition at line 809 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_1

#define MZ2_MAKRON_BLASTER_1   102

Definition at line 810 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_10

#define MZ2_MAKRON_BLASTER_10   111

Definition at line 819 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_11

#define MZ2_MAKRON_BLASTER_11   112

Definition at line 820 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_12

#define MZ2_MAKRON_BLASTER_12   113

Definition at line 821 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_13

#define MZ2_MAKRON_BLASTER_13   114

Definition at line 822 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_14

#define MZ2_MAKRON_BLASTER_14   115

Definition at line 823 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_15

#define MZ2_MAKRON_BLASTER_15   116

Definition at line 824 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_16

#define MZ2_MAKRON_BLASTER_16   117

Definition at line 825 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_17

#define MZ2_MAKRON_BLASTER_17   118

Definition at line 826 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_2

#define MZ2_MAKRON_BLASTER_2   103

Definition at line 811 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_3

#define MZ2_MAKRON_BLASTER_3   104

Definition at line 812 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_4

#define MZ2_MAKRON_BLASTER_4   105

Definition at line 813 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_5

#define MZ2_MAKRON_BLASTER_5   106

Definition at line 814 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_6

#define MZ2_MAKRON_BLASTER_6   107

Definition at line 815 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_7

#define MZ2_MAKRON_BLASTER_7   108

Definition at line 816 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_8

#define MZ2_MAKRON_BLASTER_8   109

Definition at line 817 of file q_shared.h.

◆ MZ2_MAKRON_BLASTER_9

#define MZ2_MAKRON_BLASTER_9   110

Definition at line 818 of file q_shared.h.

◆ MZ2_MAKRON_RAILGUN_1

#define MZ2_MAKRON_RAILGUN_1   119

Definition at line 827 of file q_shared.h.

◆ MZ2_MEDIC_BLASTER_1

#define MZ2_MEDIC_BLASTER_1   60

Definition at line 759 of file q_shared.h.

◆ MZ2_MEDIC_BLASTER_2

#define MZ2_MEDIC_BLASTER_2   146

Definition at line 856 of file q_shared.h.

◆ MZ2_SOLDIER_BLASTER_1

#define MZ2_SOLDIER_BLASTER_1   39

Definition at line 734 of file q_shared.h.

◆ MZ2_SOLDIER_BLASTER_2

#define MZ2_SOLDIER_BLASTER_2   40

Definition at line 735 of file q_shared.h.

◆ MZ2_SOLDIER_BLASTER_3

#define MZ2_SOLDIER_BLASTER_3   83

Definition at line 789 of file q_shared.h.

◆ MZ2_SOLDIER_BLASTER_4

#define MZ2_SOLDIER_BLASTER_4   86

Definition at line 792 of file q_shared.h.

◆ MZ2_SOLDIER_BLASTER_5

#define MZ2_SOLDIER_BLASTER_5   89

Definition at line 795 of file q_shared.h.

◆ MZ2_SOLDIER_BLASTER_6

#define MZ2_SOLDIER_BLASTER_6   92

Definition at line 798 of file q_shared.h.

◆ MZ2_SOLDIER_BLASTER_7

#define MZ2_SOLDIER_BLASTER_7   95

Definition at line 801 of file q_shared.h.

◆ MZ2_SOLDIER_BLASTER_8

#define MZ2_SOLDIER_BLASTER_8   98

Definition at line 804 of file q_shared.h.

◆ MZ2_SOLDIER_MACHINEGUN_1

#define MZ2_SOLDIER_MACHINEGUN_1   43

Definition at line 738 of file q_shared.h.

◆ MZ2_SOLDIER_MACHINEGUN_2

#define MZ2_SOLDIER_MACHINEGUN_2   44

Definition at line 739 of file q_shared.h.

◆ MZ2_SOLDIER_MACHINEGUN_3

#define MZ2_SOLDIER_MACHINEGUN_3   85

Definition at line 791 of file q_shared.h.

◆ MZ2_SOLDIER_MACHINEGUN_4

#define MZ2_SOLDIER_MACHINEGUN_4   88

Definition at line 794 of file q_shared.h.

◆ MZ2_SOLDIER_MACHINEGUN_5

#define MZ2_SOLDIER_MACHINEGUN_5   91

Definition at line 797 of file q_shared.h.

◆ MZ2_SOLDIER_MACHINEGUN_6

#define MZ2_SOLDIER_MACHINEGUN_6   94

Definition at line 800 of file q_shared.h.

◆ MZ2_SOLDIER_MACHINEGUN_7

#define MZ2_SOLDIER_MACHINEGUN_7   97

Definition at line 803 of file q_shared.h.

◆ MZ2_SOLDIER_MACHINEGUN_8

#define MZ2_SOLDIER_MACHINEGUN_8   100

Definition at line 806 of file q_shared.h.

◆ MZ2_SOLDIER_SHOTGUN_1

#define MZ2_SOLDIER_SHOTGUN_1   41

Definition at line 736 of file q_shared.h.

◆ MZ2_SOLDIER_SHOTGUN_2

#define MZ2_SOLDIER_SHOTGUN_2   42

Definition at line 737 of file q_shared.h.

◆ MZ2_SOLDIER_SHOTGUN_3

#define MZ2_SOLDIER_SHOTGUN_3   84

Definition at line 790 of file q_shared.h.

◆ MZ2_SOLDIER_SHOTGUN_4

#define MZ2_SOLDIER_SHOTGUN_4   87

Definition at line 793 of file q_shared.h.

◆ MZ2_SOLDIER_SHOTGUN_5

#define MZ2_SOLDIER_SHOTGUN_5   90

Definition at line 796 of file q_shared.h.

◆ MZ2_SOLDIER_SHOTGUN_6

#define MZ2_SOLDIER_SHOTGUN_6   93

Definition at line 799 of file q_shared.h.

◆ MZ2_SOLDIER_SHOTGUN_7

#define MZ2_SOLDIER_SHOTGUN_7   96

Definition at line 802 of file q_shared.h.

◆ MZ2_SOLDIER_SHOTGUN_8

#define MZ2_SOLDIER_SHOTGUN_8   99

Definition at line 805 of file q_shared.h.

◆ MZ2_STALKER_BLASTER

#define MZ2_STALKER_BLASTER   144

Definition at line 854 of file q_shared.h.

◆ MZ2_SUPERTANK_MACHINEGUN_1

#define MZ2_SUPERTANK_MACHINEGUN_1   64

Definition at line 767 of file q_shared.h.

◆ MZ2_SUPERTANK_MACHINEGUN_2

#define MZ2_SUPERTANK_MACHINEGUN_2   65

Definition at line 768 of file q_shared.h.

◆ MZ2_SUPERTANK_MACHINEGUN_3

#define MZ2_SUPERTANK_MACHINEGUN_3   66

Definition at line 769 of file q_shared.h.

◆ MZ2_SUPERTANK_MACHINEGUN_4

#define MZ2_SUPERTANK_MACHINEGUN_4   67

Definition at line 770 of file q_shared.h.

◆ MZ2_SUPERTANK_MACHINEGUN_5

#define MZ2_SUPERTANK_MACHINEGUN_5   68

Definition at line 771 of file q_shared.h.

◆ MZ2_SUPERTANK_MACHINEGUN_6

#define MZ2_SUPERTANK_MACHINEGUN_6   69

Definition at line 772 of file q_shared.h.

◆ MZ2_SUPERTANK_ROCKET_1

#define MZ2_SUPERTANK_ROCKET_1   70

Definition at line 773 of file q_shared.h.

◆ MZ2_SUPERTANK_ROCKET_2

#define MZ2_SUPERTANK_ROCKET_2   71

Definition at line 774 of file q_shared.h.

◆ MZ2_SUPERTANK_ROCKET_3

#define MZ2_SUPERTANK_ROCKET_3   72

Definition at line 775 of file q_shared.h.

◆ MZ2_TANK_BLASTER_1

#define MZ2_TANK_BLASTER_1   1

Definition at line 694 of file q_shared.h.

◆ MZ2_TANK_BLASTER_2

#define MZ2_TANK_BLASTER_2   2

Definition at line 695 of file q_shared.h.

◆ MZ2_TANK_BLASTER_3

#define MZ2_TANK_BLASTER_3   3

Definition at line 696 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_1

#define MZ2_TANK_MACHINEGUN_1   4

Definition at line 697 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_10

#define MZ2_TANK_MACHINEGUN_10   13

Definition at line 706 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_11

#define MZ2_TANK_MACHINEGUN_11   14

Definition at line 707 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_12

#define MZ2_TANK_MACHINEGUN_12   15

Definition at line 708 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_13

#define MZ2_TANK_MACHINEGUN_13   16

Definition at line 709 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_14

#define MZ2_TANK_MACHINEGUN_14   17

Definition at line 710 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_15

#define MZ2_TANK_MACHINEGUN_15   18

Definition at line 711 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_16

#define MZ2_TANK_MACHINEGUN_16   19

Definition at line 712 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_17

#define MZ2_TANK_MACHINEGUN_17   20

Definition at line 713 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_18

#define MZ2_TANK_MACHINEGUN_18   21

Definition at line 714 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_19

#define MZ2_TANK_MACHINEGUN_19   22

Definition at line 715 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_2

#define MZ2_TANK_MACHINEGUN_2   5

Definition at line 698 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_3

#define MZ2_TANK_MACHINEGUN_3   6

Definition at line 699 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_4

#define MZ2_TANK_MACHINEGUN_4   7

Definition at line 700 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_5

#define MZ2_TANK_MACHINEGUN_5   8

Definition at line 701 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_6

#define MZ2_TANK_MACHINEGUN_6   9

Definition at line 702 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_7

#define MZ2_TANK_MACHINEGUN_7   10

Definition at line 703 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_8

#define MZ2_TANK_MACHINEGUN_8   11

Definition at line 704 of file q_shared.h.

◆ MZ2_TANK_MACHINEGUN_9

#define MZ2_TANK_MACHINEGUN_9   12

Definition at line 705 of file q_shared.h.

◆ MZ2_TANK_ROCKET_1

#define MZ2_TANK_ROCKET_1   23

Definition at line 716 of file q_shared.h.

◆ MZ2_TANK_ROCKET_2

#define MZ2_TANK_ROCKET_2   24

Definition at line 717 of file q_shared.h.

◆ MZ2_TANK_ROCKET_3

#define MZ2_TANK_ROCKET_3   25

Definition at line 718 of file q_shared.h.

◆ MZ2_TURRET_BLASTER

#define MZ2_TURRET_BLASTER   143

Definition at line 853 of file q_shared.h.

◆ MZ2_TURRET_MACHINEGUN

#define MZ2_TURRET_MACHINEGUN   141

Definition at line 851 of file q_shared.h.

◆ MZ2_TURRET_ROCKET

#define MZ2_TURRET_ROCKET   142

Definition at line 852 of file q_shared.h.

◆ MZ2_WIDOW2_BEAM_SWEEP_1

#define MZ2_WIDOW2_BEAM_SWEEP_1   200

Definition at line 910 of file q_shared.h.

◆ MZ2_WIDOW2_BEAM_SWEEP_10

#define MZ2_WIDOW2_BEAM_SWEEP_10   209

Definition at line 919 of file q_shared.h.

◆ MZ2_WIDOW2_BEAM_SWEEP_11

#define MZ2_WIDOW2_BEAM_SWEEP_11   210

Definition at line 920 of file q_shared.h.

◆ MZ2_WIDOW2_BEAM_SWEEP_2

#define MZ2_WIDOW2_BEAM_SWEEP_2   201

Definition at line 911 of file q_shared.h.

◆ MZ2_WIDOW2_BEAM_SWEEP_3

#define MZ2_WIDOW2_BEAM_SWEEP_3   202

Definition at line 912 of file q_shared.h.

◆ MZ2_WIDOW2_BEAM_SWEEP_4

#define MZ2_WIDOW2_BEAM_SWEEP_4   203

Definition at line 913 of file q_shared.h.

◆ MZ2_WIDOW2_BEAM_SWEEP_5

#define MZ2_WIDOW2_BEAM_SWEEP_5   204

Definition at line 914 of file q_shared.h.

◆ MZ2_WIDOW2_BEAM_SWEEP_6

#define MZ2_WIDOW2_BEAM_SWEEP_6   205

Definition at line 915 of file q_shared.h.

◆ MZ2_WIDOW2_BEAM_SWEEP_7

#define MZ2_WIDOW2_BEAM_SWEEP_7   206

Definition at line 916 of file q_shared.h.

◆ MZ2_WIDOW2_BEAM_SWEEP_8

#define MZ2_WIDOW2_BEAM_SWEEP_8   207

Definition at line 917 of file q_shared.h.

◆ MZ2_WIDOW2_BEAM_SWEEP_9

#define MZ2_WIDOW2_BEAM_SWEEP_9   208

Definition at line 918 of file q_shared.h.

◆ MZ2_WIDOW2_BEAMER_1

#define MZ2_WIDOW2_BEAMER_1   195

Definition at line 905 of file q_shared.h.

◆ MZ2_WIDOW2_BEAMER_2

#define MZ2_WIDOW2_BEAMER_2   196

Definition at line 906 of file q_shared.h.

◆ MZ2_WIDOW2_BEAMER_3

#define MZ2_WIDOW2_BEAMER_3   197

Definition at line 907 of file q_shared.h.

◆ MZ2_WIDOW2_BEAMER_4

#define MZ2_WIDOW2_BEAMER_4   198

Definition at line 908 of file q_shared.h.

◆ MZ2_WIDOW2_BEAMER_5

#define MZ2_WIDOW2_BEAMER_5   199

Definition at line 909 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER

#define MZ2_WIDOW_BLASTER   149

Definition at line 859 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_0

#define MZ2_WIDOW_BLASTER_0   175

Definition at line 885 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_10

#define MZ2_WIDOW_BLASTER_10   174

Definition at line 884 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_100

#define MZ2_WIDOW_BLASTER_100   165

Definition at line 875 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_10L

#define MZ2_WIDOW_BLASTER_10L   176

Definition at line 886 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_20

#define MZ2_WIDOW_BLASTER_20   173

Definition at line 883 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_20L

#define MZ2_WIDOW_BLASTER_20L   177

Definition at line 887 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_30

#define MZ2_WIDOW_BLASTER_30   172

Definition at line 882 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_30L

#define MZ2_WIDOW_BLASTER_30L   178

Definition at line 888 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_40

#define MZ2_WIDOW_BLASTER_40   171

Definition at line 881 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_40L

#define MZ2_WIDOW_BLASTER_40L   179

Definition at line 889 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_50

#define MZ2_WIDOW_BLASTER_50   170

Definition at line 880 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_50L

#define MZ2_WIDOW_BLASTER_50L   180

Definition at line 890 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_60

#define MZ2_WIDOW_BLASTER_60   169

Definition at line 879 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_60L

#define MZ2_WIDOW_BLASTER_60L   181

Definition at line 891 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_70

#define MZ2_WIDOW_BLASTER_70   168

Definition at line 878 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_70L

#define MZ2_WIDOW_BLASTER_70L   182

Definition at line 892 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_80

#define MZ2_WIDOW_BLASTER_80   167

Definition at line 877 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_90

#define MZ2_WIDOW_BLASTER_90   166

Definition at line 876 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_SWEEP1

#define MZ2_WIDOW_BLASTER_SWEEP1   156

Definition at line 866 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_SWEEP2

#define MZ2_WIDOW_BLASTER_SWEEP2   157

Definition at line 867 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_SWEEP3

#define MZ2_WIDOW_BLASTER_SWEEP3   158

Definition at line 868 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_SWEEP4

#define MZ2_WIDOW_BLASTER_SWEEP4   159

Definition at line 869 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_SWEEP5

#define MZ2_WIDOW_BLASTER_SWEEP5   160

Definition at line 870 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_SWEEP6

#define MZ2_WIDOW_BLASTER_SWEEP6   161

Definition at line 871 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_SWEEP7

#define MZ2_WIDOW_BLASTER_SWEEP7   162

Definition at line 872 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_SWEEP8

#define MZ2_WIDOW_BLASTER_SWEEP8   163

Definition at line 873 of file q_shared.h.

◆ MZ2_WIDOW_BLASTER_SWEEP9

#define MZ2_WIDOW_BLASTER_SWEEP9   164

Definition at line 874 of file q_shared.h.

◆ MZ2_WIDOW_DISRUPTOR

#define MZ2_WIDOW_DISRUPTOR   148

Definition at line 858 of file q_shared.h.

◆ MZ2_WIDOW_PLASMABEAM

#define MZ2_WIDOW_PLASMABEAM   151

Definition at line 861 of file q_shared.h.

◆ MZ2_WIDOW_RAIL

#define MZ2_WIDOW_RAIL   150

Definition at line 860 of file q_shared.h.

◆ MZ2_WIDOW_RAIL_LEFT

#define MZ2_WIDOW_RAIL_LEFT   154

Definition at line 864 of file q_shared.h.

◆ MZ2_WIDOW_RAIL_RIGHT

#define MZ2_WIDOW_RAIL_RIGHT   155

Definition at line 865 of file q_shared.h.

◆ MZ2_WIDOW_RUN_1

#define MZ2_WIDOW_RUN_1   183

Definition at line 893 of file q_shared.h.

◆ MZ2_WIDOW_RUN_2

#define MZ2_WIDOW_RUN_2   184

Definition at line 894 of file q_shared.h.

◆ MZ2_WIDOW_RUN_3

#define MZ2_WIDOW_RUN_3   185

Definition at line 895 of file q_shared.h.

◆ MZ2_WIDOW_RUN_4

#define MZ2_WIDOW_RUN_4   186

Definition at line 896 of file q_shared.h.

◆ MZ2_WIDOW_RUN_5

#define MZ2_WIDOW_RUN_5   187

Definition at line 897 of file q_shared.h.

◆ MZ2_WIDOW_RUN_6

#define MZ2_WIDOW_RUN_6   188

Definition at line 898 of file q_shared.h.

◆ MZ2_WIDOW_RUN_7

#define MZ2_WIDOW_RUN_7   189

Definition at line 899 of file q_shared.h.

◆ MZ2_WIDOW_RUN_8

#define MZ2_WIDOW_RUN_8   190

Definition at line 900 of file q_shared.h.

◆ MZ_BFG

#define MZ_BFG   12

Definition at line 668 of file q_shared.h.

◆ MZ_BLASTER

#define MZ_BLASTER   0

Definition at line 656 of file q_shared.h.

◆ MZ_BLASTER2

#define MZ_BLASTER2   34

Definition at line 683 of file q_shared.h.

◆ MZ_BLUEHYPERBLASTER

#define MZ_BLUEHYPERBLASTER   17

Definition at line 674 of file q_shared.h.

◆ MZ_CHAINGUN1

#define MZ_CHAINGUN1   3

Definition at line 659 of file q_shared.h.

◆ MZ_CHAINGUN2

#define MZ_CHAINGUN2   4

Definition at line 660 of file q_shared.h.

◆ MZ_CHAINGUN3

#define MZ_CHAINGUN3   5

Definition at line 661 of file q_shared.h.

◆ MZ_ETF_RIFLE

#define MZ_ETF_RIFLE   30

Definition at line 679 of file q_shared.h.

◆ MZ_GRENADE

#define MZ_GRENADE   8

Definition at line 664 of file q_shared.h.

◆ MZ_HEATBEAM

#define MZ_HEATBEAM   33

Definition at line 682 of file q_shared.h.

◆ MZ_HYPERBLASTER

#define MZ_HYPERBLASTER   14

Definition at line 670 of file q_shared.h.

◆ MZ_IONRIPPER

#define MZ_IONRIPPER   16

Definition at line 673 of file q_shared.h.

◆ MZ_ITEMRESPAWN

#define MZ_ITEMRESPAWN   15

Definition at line 671 of file q_shared.h.

◆ MZ_LOGIN

#define MZ_LOGIN   9

Definition at line 665 of file q_shared.h.

◆ MZ_LOGOUT

#define MZ_LOGOUT   10

Definition at line 666 of file q_shared.h.

◆ MZ_MACHINEGUN

#define MZ_MACHINEGUN   1

Definition at line 657 of file q_shared.h.

◆ MZ_NUKE1

#define MZ_NUKE1   36

Definition at line 685 of file q_shared.h.

◆ MZ_NUKE2

#define MZ_NUKE2   37

Definition at line 686 of file q_shared.h.

◆ MZ_NUKE4

#define MZ_NUKE4   38

Definition at line 687 of file q_shared.h.

◆ MZ_NUKE8

#define MZ_NUKE8   39

Definition at line 688 of file q_shared.h.

◆ MZ_PHALANX

#define MZ_PHALANX   18

Definition at line 675 of file q_shared.h.

◆ MZ_RAILGUN

#define MZ_RAILGUN   6

Definition at line 662 of file q_shared.h.

◆ MZ_RESPAWN

#define MZ_RESPAWN   11

Definition at line 667 of file q_shared.h.

◆ MZ_ROCKET

#define MZ_ROCKET   7

Definition at line 663 of file q_shared.h.

◆ MZ_SHOTGUN

#define MZ_SHOTGUN   2

Definition at line 658 of file q_shared.h.

◆ MZ_SHOTGUN2

#define MZ_SHOTGUN2   32

Definition at line 681 of file q_shared.h.

◆ MZ_SILENCED

#define MZ_SILENCED   128

Definition at line 676 of file q_shared.h.

◆ MZ_SSHOTGUN

#define MZ_SSHOTGUN   13

Definition at line 669 of file q_shared.h.

◆ MZ_TRACKER

#define MZ_TRACKER   35

Definition at line 684 of file q_shared.h.

◆ MZ_UNUSED

#define MZ_UNUSED   31

Definition at line 680 of file q_shared.h.

◆ nanmask

#define nanmask   (255<<23)

Definition at line 142 of file q_shared.h.

◆ NULL

#define NULL   ((void *)0)

Definition at line 60 of file q_shared.h.

◆ PITCH

#define PITCH   0

Definition at line 65 of file q_shared.h.

◆ PMF_DUCKED

#define PMF_DUCKED   1

Definition at line 477 of file q_shared.h.

◆ PMF_JUMP_HELD

#define PMF_JUMP_HELD   2

Definition at line 478 of file q_shared.h.

◆ PMF_NO_PREDICTION

#define PMF_NO_PREDICTION   64

Definition at line 483 of file q_shared.h.

◆ PMF_ON_GROUND

#define PMF_ON_GROUND   4

Definition at line 479 of file q_shared.h.

◆ PMF_TIME_LAND

#define PMF_TIME_LAND   16

Definition at line 481 of file q_shared.h.

◆ PMF_TIME_TELEPORT

#define PMF_TIME_TELEPORT   32

Definition at line 482 of file q_shared.h.

◆ PMF_TIME_WATERJUMP

#define PMF_TIME_WATERJUMP   8

Definition at line 480 of file q_shared.h.

◆ PRINT_ALERT

#define PRINT_ALERT   2

Definition at line 103 of file q_shared.h.

◆ PRINT_ALL

#define PRINT_ALL   0

Definition at line 101 of file q_shared.h.

◆ PRINT_CHAT

#define PRINT_CHAT   3

Definition at line 93 of file q_shared.h.

◆ PRINT_DEVELOPER

#define PRINT_DEVELOPER   1

Definition at line 102 of file q_shared.h.

◆ PRINT_HIGH

#define PRINT_HIGH   2

Definition at line 92 of file q_shared.h.

◆ PRINT_LOW

#define PRINT_LOW   0

Definition at line 90 of file q_shared.h.

◆ PRINT_MEDIUM

#define PRINT_MEDIUM   1

Definition at line 91 of file q_shared.h.

◆ RDF_IRGOGGLES

#define RDF_IRGOGGLES   4

Definition at line 649 of file q_shared.h.

◆ RDF_NOWORLDMODEL

#define RDF_NOWORLDMODEL   2

Definition at line 646 of file q_shared.h.

◆ RDF_UNDERWATER

#define RDF_UNDERWATER   1

Definition at line 645 of file q_shared.h.

◆ RDF_UVGOGGLES

#define RDF_UVGOGGLES   8

Definition at line 650 of file q_shared.h.

◆ RF_BEAM

#define RF_BEAM   128

Definition at line 620 of file q_shared.h.

◆ RF_CUSTOMSKIN

#define RF_CUSTOMSKIN   256

Definition at line 621 of file q_shared.h.

◆ RF_DEPTHHACK

#define RF_DEPTHHACK   16

Definition at line 617 of file q_shared.h.

◆ RF_FRAMELERP

#define RF_FRAMELERP   64

Definition at line 619 of file q_shared.h.

◆ RF_FULLBRIGHT

#define RF_FULLBRIGHT   8

Definition at line 616 of file q_shared.h.

◆ RF_GLOW

#define RF_GLOW   512

Definition at line 622 of file q_shared.h.

◆ RF_IR_VISIBLE

#define RF_IR_VISIBLE   0x00008000

Definition at line 629 of file q_shared.h.

◆ RF_MINLIGHT

#define RF_MINLIGHT   1

Definition at line 613 of file q_shared.h.

◆ RF_NOSHADOW

#define RF_NOSHADOW   8192 /* don't draw a shadow */

Definition at line 626 of file q_shared.h.

◆ RF_SHELL_BLUE

#define RF_SHELL_BLUE   4096

Definition at line 625 of file q_shared.h.

◆ RF_SHELL_DOUBLE

#define RF_SHELL_DOUBLE   0x00010000

Definition at line 630 of file q_shared.h.

◆ RF_SHELL_GREEN

#define RF_SHELL_GREEN   2048

Definition at line 624 of file q_shared.h.

◆ RF_SHELL_HALF_DAM

#define RF_SHELL_HALF_DAM   0x00020000

Definition at line 631 of file q_shared.h.

◆ RF_SHELL_RED

#define RF_SHELL_RED   1024

Definition at line 623 of file q_shared.h.

◆ RF_TRANSLUCENT

#define RF_TRANSLUCENT   32

Definition at line 618 of file q_shared.h.

◆ RF_USE_DISGUISE

#define RF_USE_DISGUISE   0x00040000

Definition at line 632 of file q_shared.h.

◆ RF_VIEWERMODEL

#define RF_VIEWERMODEL   2

Definition at line 614 of file q_shared.h.

◆ RF_WEAPONMODEL

#define RF_WEAPONMODEL   4

Definition at line 615 of file q_shared.h.

◆ ROGUE_VERSION_ID

#define ROGUE_VERSION_ID   1278

Definition at line 1103 of file q_shared.h.

◆ ROGUE_VERSION_STRING

#define ROGUE_VERSION_STRING   "08/21/1998 Beta 2 for Ensemble"

Definition at line 1105 of file q_shared.h.

◆ ROLL

#define ROLL   2

Definition at line 67 of file q_shared.h.

◆ SFF_ARCH

#define SFF_ARCH   0x01

Definition at line 279 of file q_shared.h.

◆ SFF_HIDDEN

#define SFF_HIDDEN   0x02

Definition at line 280 of file q_shared.h.

◆ SFF_RDONLY

#define SFF_RDONLY   0x04

Definition at line 281 of file q_shared.h.

◆ SFF_SUBDIR

#define SFF_SUBDIR   0x08

Definition at line 282 of file q_shared.h.

◆ SFF_SYSTEM

#define SFF_SYSTEM   0x10

Definition at line 283 of file q_shared.h.

◆ SHORT2ANGLE

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

Definition at line 1117 of file q_shared.h.

◆ SPLASH_BLOOD

#define SPLASH_BLOOD   6

Definition at line 1001 of file q_shared.h.

◆ SPLASH_BLUE_WATER

#define SPLASH_BLUE_WATER   2

Definition at line 997 of file q_shared.h.

◆ SPLASH_BROWN_WATER

#define SPLASH_BROWN_WATER   3

Definition at line 998 of file q_shared.h.

◆ SPLASH_LAVA

#define SPLASH_LAVA   5

Definition at line 1000 of file q_shared.h.

◆ SPLASH_SLIME

#define SPLASH_SLIME   4

Definition at line 999 of file q_shared.h.

◆ SPLASH_SPARKS

#define SPLASH_SPARKS   1

Definition at line 996 of file q_shared.h.

◆ SPLASH_UNKNOWN

#define SPLASH_UNKNOWN   0

Definition at line 995 of file q_shared.h.

◆ STAT_AMMO

#define STAT_AMMO   3

Definition at line 1028 of file q_shared.h.

◆ STAT_AMMO_ICON

#define STAT_AMMO_ICON   2

Definition at line 1027 of file q_shared.h.

◆ STAT_ARMOR

#define STAT_ARMOR   5

Definition at line 1030 of file q_shared.h.

◆ STAT_ARMOR_ICON

#define STAT_ARMOR_ICON   4

Definition at line 1029 of file q_shared.h.

◆ STAT_CHASE

#define STAT_CHASE   16

Definition at line 1041 of file q_shared.h.

◆ STAT_FLASHES

#define STAT_FLASHES   15

Definition at line 1040 of file q_shared.h.

◆ STAT_FRAGS

#define STAT_FRAGS   14

Definition at line 1039 of file q_shared.h.

◆ STAT_HEALTH

#define STAT_HEALTH   1

Definition at line 1026 of file q_shared.h.

◆ STAT_HEALTH_ICON

#define STAT_HEALTH_ICON   0

Definition at line 1025 of file q_shared.h.

◆ STAT_HELPICON

#define STAT_HELPICON   11

Definition at line 1036 of file q_shared.h.

◆ STAT_LAYOUTS

#define STAT_LAYOUTS   13

Definition at line 1038 of file q_shared.h.

◆ STAT_PICKUP_ICON

#define STAT_PICKUP_ICON   7

Definition at line 1032 of file q_shared.h.

◆ STAT_PICKUP_STRING

#define STAT_PICKUP_STRING   8

Definition at line 1033 of file q_shared.h.

◆ STAT_SELECTED_ICON

#define STAT_SELECTED_ICON   6

Definition at line 1031 of file q_shared.h.

◆ STAT_SELECTED_ITEM

#define STAT_SELECTED_ITEM   12

Definition at line 1037 of file q_shared.h.

◆ STAT_SPECTATOR

#define STAT_SPECTATOR   17

Definition at line 1042 of file q_shared.h.

◆ STAT_TIMER

#define STAT_TIMER   10

Definition at line 1035 of file q_shared.h.

◆ STAT_TIMER_ICON

#define STAT_TIMER_ICON   9

Definition at line 1034 of file q_shared.h.

◆ SURF_FLOWING

#define SURF_FLOWING   0x40

Definition at line 381 of file q_shared.h.

◆ SURF_LIGHT

#define SURF_LIGHT   0x1

Definition at line 373 of file q_shared.h.

◆ SURF_NODRAW

#define SURF_NODRAW   0x80

Definition at line 382 of file q_shared.h.

◆ SURF_SKY

#define SURF_SKY   0x4

Definition at line 377 of file q_shared.h.

◆ SURF_SLICK

#define SURF_SLICK   0x2

Definition at line 375 of file q_shared.h.

◆ SURF_TRANS33

#define SURF_TRANS33   0x10

Definition at line 379 of file q_shared.h.

◆ SURF_TRANS66

#define SURF_TRANS66   0x20

Definition at line 380 of file q_shared.h.

◆ SURF_WARP

#define SURF_WARP   0x8

Definition at line 378 of file q_shared.h.

◆ VectorAdd

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

Definition at line 157 of file q_shared.h.

◆ VectorClear

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

Definition at line 159 of file q_shared.h.

◆ VectorCopy

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

Definition at line 158 of file q_shared.h.

◆ VectorNegate

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

Definition at line 160 of file q_shared.h.

◆ VectorSet

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

Definition at line 161 of file q_shared.h.

◆ VectorSubtract

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

Definition at line 156 of file q_shared.h.

◆ VIDREF_GL

#define VIDREF_GL   1

Definition at line 1226 of file q_shared.h.

◆ VIDREF_OTHER

#define VIDREF_OTHER   3

Definition at line 1228 of file q_shared.h.

◆ VIDREF_SOFT

#define VIDREF_SOFT   2

Definition at line 1227 of file q_shared.h.

◆ vsnprintf

#define vsnprintf   _vsnprintf

Definition at line 32 of file q_shared.h.

◆ YAW

#define YAW   1

Definition at line 66 of file q_shared.h.

Typedef Documentation

◆ byte

typedef unsigned char byte

Definition at line 55 of file q_shared.h.

◆ cmodel_t

typedef struct cmodel_s cmodel_t

◆ cplane_t

typedef struct cplane_s cplane_t

◆ csurface_t

typedef struct csurface_s csurface_t

◆ cvar_t

typedef struct cvar_s cvar_t

◆ entity_state_t

◆ fixed16_t

typedef int fixed16_t

Definition at line 132 of file q_shared.h.

◆ fixed4_t

typedef int fixed4_t

Definition at line 130 of file q_shared.h.

◆ fixed8_t

typedef int fixed8_t

Definition at line 131 of file q_shared.h.

◆ mapsurface_t

typedef struct mapsurface_s mapsurface_t

◆ usercmd_t

typedef struct usercmd_s usercmd_t

◆ vec3_t

typedef vec_t vec3_t[3]

Definition at line 127 of file q_shared.h.

◆ vec5_t

typedef vec_t vec5_t[5]

Definition at line 128 of file q_shared.h.

◆ vec_t

typedef float vec_t

Definition at line 126 of file q_shared.h.

Enumeration Type Documentation

◆ entity_event_t

Enumerator
EV_NONE 
EV_ITEM_RESPAWN 
EV_FOOTSTEP 
EV_FALLSHORT 
EV_FALL 
EV_FALLFAR 
EV_PLAYER_TELEPORT 
EV_OTHER_TELEPORT 

Definition at line 1153 of file q_shared.h.

1154 {
1155  EV_NONE,
1157  EV_FOOTSTEP,
1158  EV_FALLSHORT,
1159  EV_FALL,
1160  EV_FALLFAR,
1163 } entity_event_t;

◆ multicast_t

Enumerator
MULTICAST_ALL 
MULTICAST_PHS 
MULTICAST_PVS 
MULTICAST_ALL_R 
MULTICAST_PHS_R 
MULTICAST_PVS_R 

Definition at line 107 of file q_shared.h.

◆ pmtype_t

enum pmtype_t
Enumerator
PM_NORMAL 
PM_SPECTATOR 
PM_DEAD 
PM_GIB 
PM_FREEZE 

Definition at line 465 of file q_shared.h.

466 {
467  // can accelerate and turn
468  PM_NORMAL,
469  PM_SPECTATOR,
470  // no acceleration or turning
471  PM_DEAD,
472  PM_GIB, // different bounding box
473  PM_FREEZE
474 } pmtype_t;

◆ qboolean

enum qboolean
Enumerator
false 
true 

Definition at line 56 of file q_shared.h.

56 {false, true} qboolean;

◆ temp_event_t

Enumerator
TE_GUNSHOT 
TE_BLOOD 
TE_BLASTER 
TE_RAILTRAIL 
TE_SHOTGUN 
TE_EXPLOSION1 
TE_EXPLOSION2 
TE_ROCKET_EXPLOSION 
TE_GRENADE_EXPLOSION 
TE_SPARKS 
TE_SPLASH 
TE_BUBBLETRAIL 
TE_SCREEN_SPARKS 
TE_SHIELD_SPARKS 
TE_BULLET_SPARKS 
TE_LASER_SPARKS 
TE_PARASITE_ATTACK 
TE_ROCKET_EXPLOSION_WATER 
TE_GRENADE_EXPLOSION_WATER 
TE_MEDIC_CABLE_ATTACK 
TE_BFG_EXPLOSION 
TE_BFG_BIGEXPLOSION 
TE_BOSSTPORT 
TE_BFG_LASER 
TE_GRAPPLE_CABLE 
TE_WELDING_SPARKS 
TE_GREENBLOOD 
TE_BLUEHYPERBLASTER 
TE_PLASMA_EXPLOSION 
TE_TUNNEL_SPARKS 
TE_BLASTER2 
TE_RAILTRAIL2 
TE_FLAME 
TE_LIGHTNING 
TE_DEBUGTRAIL 
TE_PLAIN_EXPLOSION 
TE_FLASHLIGHT 
TE_FORCEWALL 
TE_HEATBEAM 
TE_MONSTER_HEATBEAM 
TE_STEAM 
TE_BUBBLETRAIL2 
TE_MOREBLOOD 
TE_HEATBEAM_SPARKS 
TE_HEATBEAM_STEAM 
TE_CHAINFIST_SMOKE 
TE_ELECTRIC_SPARKS 
TE_TRACKER_EXPLOSION 
TE_TELEPORT_EFFECT 
TE_DBALL_GOAL 
TE_WIDOWBEAMOUT 
TE_NUKEBLAST 
TE_WIDOWSPLASH 
TE_EXPLOSION1_BIG 
TE_EXPLOSION1_NP 
TE_FLECHETTE 

Definition at line 933 of file q_shared.h.

Function Documentation

◆ _DotProduct()

vec_t _DotProduct ( vec3_t  v1,
vec3_t  v2 
)

Definition at line 727 of file q_shared.c.

728 {
729  return v1[0]*v2[0] + v1[1]*v2[1] + v1[2]*v2[2];
730 }

Referenced by Touch_Multi().

◆ _VectorAdd()

void _VectorAdd ( vec3_t  veca,
vec3_t  vecb,
vec3_t  out 
)

Definition at line 739 of file q_shared.c.

740 {
741  out[0] = veca[0]+vecb[0];
742  out[1] = veca[1]+vecb[1];
743  out[2] = veca[2]+vecb[2];
744 }

◆ _VectorCopy()

void _VectorCopy ( vec3_t  in,
vec3_t  out 
)

Definition at line 746 of file q_shared.c.

747 {
748  out[0] = in[0];
749  out[1] = in[1];
750  out[2] = in[2];
751 }

◆ _VectorSubtract()

void _VectorSubtract ( vec3_t  veca,
vec3_t  vecb,
vec3_t  out 
)

Definition at line 732 of file q_shared.c.

733 {
734  out[0] = veca[0]-vecb[0];
735  out[1] = veca[1]-vecb[1];
736  out[2] = veca[2]-vecb[2];
737 }

◆ AddPointToBounds()

void AddPointToBounds ( vec3_t  v,
vec3_t  mins,
vec3_t  maxs 
)

Definition at line 656 of file q_shared.c.

657 {
658  int i;
659  vec_t val;
660 
661  for (i=0 ; i<3 ; i++)
662  {
663  val = v[i];
664  if (val < mins[i])
665  mins[i] = val;
666  if (val > maxs[i])
667  maxs[i] = val;
668  }
669 }

Referenced by Think_SpawnDoorTrigger().

◆ anglemod()

float anglemod ( float  a)

Definition at line 293 of file q_shared.c.

294 {
295 #if 0
296  if (a >= 0)
297  a -= 360*(int)(a/360);
298  else
299  a += 360*( 1 + (int)(-a/360) );
300 #endif
301  a = (360.0/65536) * ((int)(a*(65536/360.0)) & 65535);
302  return a;
303 }

Referenced by CL_AddPacketEntities(), CL_ParseTEnt(), FacingIdeal(), M_ChangeYaw(), pLensFlareThink(), SCR_DrawCrosshair(), and SV_NewChaseDir().

◆ AngleVectors()

void AngleVectors ( vec3_t  angles,
vec3_t  forward,
vec3_t  right,
vec3_t  up 
)

Definition at line 93 of file q_shared.c.

94 {
95  float angle;
96  static float sr, sp, sy, cr, cp, cy;
97  // static to help MS compiler fp bugs
98 
99  angle = angles[YAW] * (M_PI*2 / 360);
100  sy = sin(angle);
101  cy = cos(angle);
102  angle = angles[PITCH] * (M_PI*2 / 360);
103  sp = sin(angle);
104  cp = cos(angle);
105  angle = angles[ROLL] * (M_PI*2 / 360);
106  sr = sin(angle);
107  cr = cos(angle);
108 
109  if (forward)
110  {
111  forward[0] = cp*cy;
112  forward[1] = cp*sy;
113  forward[2] = -sp;
114  }
115  if (right)
116  {
117  right[0] = (-1*sr*sp*cy+-1*cr*-sy);
118  right[1] = (-1*sr*sp*sy+-1*cr*cy);
119  right[2] = -1*sr*cp;
120  }
121  if (up)
122  {
123  up[0] = (cr*sp*cy+-sr*-sy);
124  up[1] = (cr*sp*sy+-sr*cy);
125  up[2] = cr*cp;
126  }
127 }

Referenced by actorMachineGun(), ai_run(), Blaster_Fire(), boss2_firebullet_left(), boss2_firebullet_right(), Boss2Rocket(), Chaingun_Fire(), CheckPowerArmor(), ChickRocket(), CL_AddPacketEntities(), CL_AddPlayerBeams(), CL_BlasterTracer(), CL_CalcViewValues(), CL_LaserStun(), CL_ParseMuzzleFlash(), CL_ParseMuzzleFlash2(), CL_Tracer(), CL_TrackerTrail(), ClientEndServerFrame(), CM_TransformedBoxTrace(), CM_TransformedPointContents(), Drop_Item(), fire_grenade(), fire_grenade2(), fire_hit(), fire_lead(), floater_fire_blaster(), floater_zap(), flyer_fire(), G_SetMovedir(), gib_touch(), GL_DrawAliasFrameLerp(), GladiatorGun(), GunnerFire(), GunnerGrenade(), hover_fire_blaster(), InfantryMachineGun(), infront(), jorg_firebullet_left(), jorg_firebullet_right(), jorgBFG(), Machinegun_Fire(), makronBFG(), MakronHyperblaster(), MakronRailgun(), medic_cable_attack(), medic_fire_blaster(), mutant_jump_takeoff(), parasite_drain_attack(), PM_ClampAngles(), Pmove(), R_AliasSetUpLerpData(), R_AliasSetUpTransform(), R_CullAliasModel(), R_DrawBrushModel(), R_DrawSpriteModel(), R_SetupFrame(), RotatedBBox(), soldier_fire(), SP_func_door_secret(), supertankMachineGun(), supertankRocket(), SV_Push(), TankBlaster(), TankMachineGun(), TankRocket(), Touch_Multi(), turret_breach_fire(), UpdateChaseCam(), weapon_bfg_fire(), weapon_grenade_fire(), weapon_grenadelauncher_fire(), weapon_railgun_fire(), Weapon_RocketLauncher_Fire(), weapon_shotgun_fire(), and weapon_supershotgun_fire().

◆ BigFloat()

float BigFloat ( float  l)

Definition at line 949 of file q_shared.c.

949 {return _BigFloat(l);}

◆ BigLong()

int BigLong ( int  l)

Definition at line 947 of file q_shared.c.

947 {return _BigLong(l);}

◆ BigShort()

short BigShort ( short  l)

Definition at line 945 of file q_shared.c.

945 {return _BigShort(l);}

◆ BoxOnPlaneSide()

int BoxOnPlaneSide ( vec3_t  emins,
vec3_t  emaxs,
struct cplane_s plane 
)

Definition at line 349 of file q_shared.c.

350 {
351  float dist1, dist2;
352  int sides;
353 
354 // fast axial cases
355  if (p->type < 3)
356  {
357  if (p->dist <= emins[p->type])
358  return 1;
359  if (p->dist >= emaxs[p->type])
360  return 2;
361  return 3;
362  }
363 
364 // general case
365  switch (p->signbits)
366  {
367  case 0:
368 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
369 dist2 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
370  break;
371  case 1:
372 dist1 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
373 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
374  break;
375  case 2:
376 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
377 dist2 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
378  break;
379  case 3:
380 dist1 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
381 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
382  break;
383  case 4:
384 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
385 dist2 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
386  break;
387  case 5:
388 dist1 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emins[2];
389 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emaxs[2];
390  break;
391  case 6:
392 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
393 dist2 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
394  break;
395  case 7:
396 dist1 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2];
397 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2];
398  break;
399  default:
400  dist1 = dist2 = 0; // shut up compiler
401  assert( 0 );
402  break;
403  }
404 
405  sides = 0;
406  if (dist1 >= p->dist)
407  sides = 1;
408  if (dist2 < p->dist)
409  sides |= 2;
410 
411  assert( sides != 0 );
412 
413  return sides;
414 }

◆ ClearBounds()

void ClearBounds ( vec3_t  mins,
vec3_t  maxs 
)

Definition at line 650 of file q_shared.c.

651 {
652  mins[0] = mins[1] = mins[2] = 99999;
653  maxs[0] = maxs[1] = maxs[2] = -99999;
654 }

◆ COM_DefaultExtension()

void COM_DefaultExtension ( char *  path,
char *  extension 
)

Definition at line 907 of file q_shared.c.

908 {
909  char *src;
910 //
911 // if path doesn't have a .EXT, append extension
912 // (extension should include the .)
913 //
914  src = path + strlen(path) - 1;
915 
916  while (*src != '/' && src != path)
917  {
918  if (*src == '.')
919  return; // it has an extension
920  src--;
921  }
922 
923  strcat (path, extension);
924 }

◆ COM_FileBase()

void COM_FileBase ( char *  in,
char *  out 
)

Definition at line 859 of file q_shared.c.

860 {
861  char *s, *s2;
862 
863  s = in + strlen(in) - 1;
864 
865  while (s != in && *s != '.')
866  s--;
867 
868  for (s2 = s ; s2 != in && *s2 != '/' ; s2--)
869  ;
870 
871  if (s-s2 < 2)
872  out[0] = 0;
873  else
874  {
875  s--;
876  strncpy (out,s2+1, s-s2);
877  out[s-s2] = 0;
878  }
879 }

◆ COM_FilePath()

void COM_FilePath ( char *  in,
char *  out 
)

Definition at line 888 of file q_shared.c.

889 {
890  char *s;
891 
892  s = in + strlen(in) - 1;
893 
894  while (s != in && *s != '/')
895  s--;
896 
897  strncpy (out,in, s-in);
898  out[s-in] = 0;
899 }

Referenced by Sys_FindFirst().

◆ Com_PageInMemory()

void Com_PageInMemory ( byte buffer,
int  size 
)

Definition at line 1161 of file q_shared.c.

1162 {
1163  int i;
1164 
1165  for (i=size-1 ; i>0 ; i-=4096)
1166  paged_total += buffer[i];
1167 }

Referenced by R_EndRegistration(), R_FreeUnusedImages(), and S_EndRegistration().

◆ COM_Parse()

char* COM_Parse ( char **  data_p)

Definition at line 1072 of file q_shared.c.

1073 {
1074  int c;
1075  int len;
1076  char *data;
1077 
1078  data = *data_p;
1079  len = 0;
1080  com_token[0] = 0;
1081 
1082  if (!data)
1083  {
1084  *data_p = NULL;
1085  return "";
1086  }
1087 
1088 // skip whitespace
1089 skipwhite:
1090  while ( (c = *data) <= ' ')
1091  {
1092  if (c == 0)
1093  {
1094  *data_p = NULL;
1095  return "";
1096  }
1097  data++;
1098  }
1099 
1100 // skip // comments
1101  if (c=='/' && data[1] == '/')
1102  {
1103  while (*data && *data != '\n')
1104  data++;
1105  goto skipwhite;
1106  }
1107 
1108 // handle quoted strings specially
1109  if (c == '\"')
1110  {
1111  data++;
1112  while (1)
1113  {
1114  c = *data++;
1115  if (c=='\"' || !c)
1116  {
1117  com_token[len] = 0;
1118  *data_p = data;
1119  return com_token;
1120  }
1121  if (len < MAX_TOKEN_CHARS)
1122  {
1123  com_token[len] = c;
1124  len++;
1125  }
1126  }
1127  }
1128 
1129 // parse a regular word
1130  do
1131  {
1132  if (len < MAX_TOKEN_CHARS)
1133  {
1134  com_token[len] = c;
1135  len++;
1136  }
1137  data++;
1138  c = *data;
1139  } while (c>32);
1140 
1141  if (len == MAX_TOKEN_CHARS)
1142  {
1143 // Com_Printf ("Token exceeded %i chars, discarded.\n", MAX_TOKEN_CHARS);
1144  len = 0;
1145  }
1146  com_token[len] = 0;
1147 
1148  *data_p = data;
1149  return com_token;
1150 }

Referenced by Cmd_MacroExpandString(), Cmd_TokenizeString(), ED_ParseEdict(), SCR_ExecuteLayoutString(), SpawnEntities(), and StartServer_MenuInit().

◆ Com_Printf()

void Com_Printf ( char *  msg,
  ... 
)

Definition at line 102 of file common.c.

103 {
104  va_list argptr;
105  char msg[MAXPRINTMSG];
106 
107  va_start (argptr,fmt);
108  vsnprintf (msg,MAXPRINTMSG,fmt,argptr);
109  va_end (argptr);
110 
111  if (rd_target)
112  {
113  if ((strlen (msg) + strlen(rd_buffer)) > (rd_buffersize - 1))
114  {
116  *rd_buffer = 0;
117  }
118  strcat (rd_buffer, msg);
119  return;
120  }
121 
122  Con_Print (msg);
123 
124  // also echo to debugging console
126 
127  // logfile
129  {
130  char name[MAX_QPATH];
131 
132  if (!logfile)
133  {
134  Com_sprintf (name, sizeof(name), "%s/qconsole.log", FS_Gamedir ());
135  if (logfile_active->value > 2)
136  logfile = fopen (name, "a");
137  else
138  logfile = fopen (name, "w");
139  }
140  if (logfile)
141  fprintf (logfile, "%s", msg);
142  if (logfile_active->value > 1)
143  fflush (logfile); // force it to save every time
144  }
145 }

Referenced by Cbuf_AddText(), CDAudio_Play2(), CDAudio_RandomPlay(), CL_AddEntities(), CL_Changing_f(), CL_CheckForResend(), CL_CheckOrDownloadFile(), CL_CheckPredictionError(), CL_Connect_f(), CL_ConnectionlessPacket(), CL_Disconnect(), CL_Download_f(), CL_DumpPackets(), CL_ForwardToServer_f(), CL_KeyState(), CL_Packet_f(), CL_ParseBeam(), CL_ParseBeam2(), CL_ParseDownload(), CL_ParseFrame(), CL_ParseLightning(), CL_ParsePacketEntities(), CL_ParsePlayerBeam(), CL_ParseServerData(), CL_ParseServerMessage(), CL_ParseStatusMessage(), CL_PingServers_f(), CL_PredictMovement(), CL_PrepRefresh(), CL_Rcon_f(), CL_ReadPackets(), CL_Reconnect_f(), CL_Record_f(), CL_SendConnectPacket(), CL_Setenv_f(), CL_Skins_f(), CL_Stop_f(), CL_Userinfo_f(), CL_WriteConfiguration(), Cmd_AddCommand(), Cmd_Alias_f(), Cmd_Echo_f(), Cmd_Exec_f(), Cmd_ExecuteString(), Cmd_ForwardToServer(), Cmd_List_f(), Cmd_MacroExpandString(), Cmd_RemoveCommand(), Com_DPrintf(), Com_Error(), Com_MDPrintf(), Com_sprintf(), Con_Dump_f(), Con_Init(), Cvar_Command(), Cvar_Get(), Cvar_List_f(), Cvar_Set2(), Cvar_Set_f(), DS_CreateBuffers(), DumpChunks(), FS_AddHomeAsGameDirectory(), FS_Dir_f(), FS_Link_f(), FS_LoadPackFile(), FS_Path_f(), FS_SetGamedir(), GetWavinfo(), Huff1Decompress(), IN_StartupJoystick(), Info_Print(), Info_SetValueForKey(), Joy_AdvancedUpdate_f(), Key_Bind_f(), Key_Bindlist_f(), Key_Console(), Key_Event(), Key_Unbind_f(), KeyDown(), Master_Heartbeat(), Master_Shutdown(), NET_GetPacket(), NET_Init(), NET_IPSocket(), NET_IPXSocket(), NET_SendPacket(), Netchan_Process(), Netchan_Transmit(), PF_cprintf(), PF_dprintf(), PrintPmove(), Qcommon_Frame(), Qcommon_Init(), S_Init(), S_IssuePlaysound(), S_LoadSound(), S_SoundInfo_f(), S_SoundList(), S_StartLocalSound(), S_Update(), SCR_CenterPrint(), SCR_LoadPCX(), SCR_PlayCinematic(), SCR_RunCinematic(), SCR_Sky_f(), SCR_TimeRefresh_f(), SCR_UpdateScreen(), SHOWNET(), SNDDMA_BeginPainting(), SNDDMA_Init(), SNDDMA_InitDirect(), SNDDMA_InitWav(), SNDDMA_Submit(), SV_AreaEdicts_r(), SV_Baselines_f(), SV_Begin_f(), SV_BroadcastPrintf(), SV_Configstrings_f(), SV_ConnectionlessPacket(), SV_DumpUser_f(), SV_ExecuteClientMessage(), SV_Frame(), SV_GameMap_f(), SV_InitGame(), SV_Kick_f(), SV_Loadgame_f(), SV_Map_f(), SV_New_f(), SV_ReadLevelFile(), SV_ReadPackets(), SV_ReadServerFile(), SV_RunGameFrame(), SV_Savegame_f(), SV_SendClientDatagram(), SV_ServerCommand_f(), SV_Serverinfo_f(), SV_ServerRecord_f(), SV_ServerStop_f(), SV_SetMaster_f(), SV_SetPlayer(), SV_SpawnServer(), SV_Status_f(), SV_WriteLevelFile(), SV_WriteServerFile(), SVC_Ack(), SVC_DirectConnect(), SVC_RemoteCommand(), SVC_Status(), SZ_GetSpace(), V_Gun_Next_f(), V_Gun_Prev_f(), V_RenderView(), V_Viewpos_f(), VID_LoadRefresh(), VID_Printf(), and Z_Stats_f().

◆ COM_SkipPath()

char* COM_SkipPath ( char *  pathname)

Definition at line 807 of file q_shared.c.

808 {
809  char *last;
810 
811  last = pathname;
812  while (*pathname)
813  {
814  if (*pathname=='/')
815  last = pathname+1;
816  pathname++;
817  }
818  return last;
819 }

◆ Com_sprintf()

void Com_sprintf ( char *  dest,
int  size,
char *  fmt,
  ... 
)

Definition at line 1236 of file q_shared.c.

1237 {
1238  int len;
1239  va_list argptr;
1240  static char bigbuffer[0x10000];
1241 
1242  va_start (argptr,fmt);
1243  len = vsnprintf (bigbuffer,0x10000,fmt,argptr);
1244  va_end (argptr);
1245  if (len >= size)
1246  Com_Printf ("Com_sprintf: overflow of %i in %i\n", len, size);
1247  strncpy (dest, bigbuffer, size-1);
1248 }

Referenced by AddressBook_MenuInit(), AddressBook_MenuKey(), ApplyChanges(), CL_Download_f(), CL_DownloadFileName(), CL_DrawInventory(), CL_LoadClientinfo(), CL_ParseMuzzleFlash(), CL_ParseMuzzleFlash2(), CL_PingServers_f(), CL_Record_f(), CL_RegisterTEntSounds(), CL_RequestNextDownload(), CL_WriteConfiguration(), Cmd_PlayerList_f(), Cmd_Players_f(), Cmd_Say_f(), Com_Printf(), Con_DrawConsole(), Con_Dump_f(), Create_Savestrings(), CreateTargetChangeLevel(), Cvar_SetValue(), Cvar_WriteVariables(), DeathmatchScoreboardMessage(), DMFlagCallback(), Draw_FindPic(), ExitLevel(), FS_AddGameDirectory(), FS_Dir_f(), FS_ExecAutoexec(), FS_FOpenFile(), func_clock_format_countdown(), func_clock_think(), GL_ScreenShot_f(), GLimp_EnableLogging(), HelpComputer(), Info_SetValueForKey(), InitGame(), JoinServerFunc(), Key_Event(), Keys_MenuKey(), M_AddToServerList(), M_DrawCursor(), Mod_LoadTexinfo(), NET_AdrToString(), PlayerConfig_MenuDraw(), PlayerConfig_MenuKey(), PlayerConfig_ScanDirectories(), QGL_Init(), R_BeginFrame(), R_BeginRegistration(), R_ScreenShot_f(), R_SetSky(), S_LoadSound(), S_RegisterSexedModel(), S_RegisterSexedSound(), SCR_DrawField(), SCR_PlayCinematic(), SCR_TouchPics(), SP_target_speaker(), StartServer_MenuInit(), SV_BeginDemoserver(), SV_CheckForSavegame(), SV_CopySaveGame(), SV_InitGame(), SV_Loadgame_f(), SV_Map_f(), SV_ReadLevelFile(), SV_ReadServerFile(), SV_ServerRecord_f(), SV_SpawnServer(), SV_StatusString(), SV_WipeSavegame(), SV_WriteLevelFile(), SV_WriteServerFile(), SVC_Info(), Sys_FindFirst(), Sys_FindNext(), Sys_GetGameAPI(), V_Gun_Model_f(), VID_CheckChanges(), and vtos().

◆ COM_StripExtension()

void COM_StripExtension ( char *  in,
char *  out 
)

Definition at line 826 of file q_shared.c.

827 {
828  while (*in && *in != '.')
829  *out++ = *in++;
830  *out = 0;
831 }

◆ CrossProduct()

void CrossProduct ( vec3_t  v1,
vec3_t  v2,
vec3_t  cross 
)

Definition at line 753 of file q_shared.c.

754 {
755  cross[0] = v1[1]*v2[2] - v1[2]*v2[1];
756  cross[1] = v1[2]*v2[0] - v1[0]*v2[2];
757  cross[2] = v1[0]*v2[1] - v1[1]*v2[0];
758 }

Referenced by MakeNormalVectors(), PM_StepSlideMove_(), R_IMFlatShadedQuad(), RotatePointAroundVector(), and SV_FlyMove().

◆ Hunk_Alloc()

void* Hunk_Alloc ( int  size)

Definition at line 57 of file q_shwin.c.

58 {
59  void *buf;
60 
61  // round to cacheline
62  size = (size+31)&~31;
63 
64 #ifdef VIRTUAL_ALLOC
65  // commit pages as needed
66 // buf = VirtualAlloc (membase+cursize, size, MEM_COMMIT, PAGE_READWRITE);
67  buf = VirtualAlloc (membase, cursize+size, MEM_COMMIT, PAGE_READWRITE);
68  if (!buf)
69  {
70  FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &buf, 0, NULL);
71  Sys_Error ("VirtualAlloc commit failed.\n%s", buf);
72  }
73 #endif
74  cursize += size;
75  if (cursize > hunkmaxsize)
76  Sys_Error ("Hunk_Alloc overflow");
77 
78  return (void *)(membase+cursize-size);
79 }

◆ Hunk_Begin()

void* Hunk_Begin ( int  maxsize)

Definition at line 41 of file q_shwin.c.

42 {
43  // reserve a huge chunk of memory, but don't commit any yet
44  cursize = 0;
45  hunkmaxsize = maxsize;
46 #ifdef VIRTUAL_ALLOC
47  membase = VirtualAlloc (NULL, maxsize, MEM_RESERVE, PAGE_NOACCESS);
48 #else
49  membase = malloc (maxsize);
50  memset (membase, 0, maxsize);
51 #endif
52  if (!membase)
53  Sys_Error ("VirtualAlloc reserve failed");
54  return (void *)membase;
55 }

◆ Hunk_End()

int Hunk_End ( void  )

Definition at line 81 of file q_shwin.c.

82 {
83 
84  // free the remaining unused virtual memory
85 #if 0
86  void *buf;
87 
88  // write protect it
89  buf = VirtualAlloc (membase, cursize, MEM_COMMIT, PAGE_READONLY);
90  if (!buf)
91  Sys_Error ("VirtualAlloc commit failed");
92 #endif
93 
94  hunkcount++;
95 //Com_Printf ("hunkcount: %i\n", hunkcount);
96  return cursize;
97 }

◆ Hunk_Free()

void Hunk_Free ( void buf)

Definition at line 99 of file q_shwin.c.

100 {
101  if ( base )
102 #ifdef VIRTUAL_ALLOC
103  VirtualFree (base, 0, MEM_RELEASE);
104 #else
105  free (base);
106 #endif
107 
108  hunkcount--;
109 }

◆ Info_RemoveKey()

void Info_RemoveKey ( char *  s,
char *  key 
)

Definition at line 1308 of file q_shared.c.

1309 {
1310  char *start;
1311  char pkey[512];
1312  char value[512];
1313  char *o;
1314 
1315  if (strstr (key, "\\"))
1316  {
1317 // Com_Printf ("Can't use a key with a \\\n");
1318  return;
1319  }
1320 
1321  while (1)
1322  {
1323  start = s;
1324  if (*s == '\\')
1325  s++;
1326  o = pkey;
1327  while (*s != '\\')
1328  {
1329  if (!*s)
1330  return;
1331  *o++ = *s++;
1332  }
1333  *o = 0;
1334  s++;
1335 
1336  o = value;
1337  while (*s != '\\' && *s)
1338  {
1339  if (!*s)
1340  return;
1341  *o++ = *s++;
1342  }
1343  *o = 0;
1344 
1345  if (!strcmp (key, pkey) )
1346  {
1347  strcpy (start, s); // remove this part
1348  return;
1349  }
1350 
1351  if (!*s)
1352  return;
1353  }
1354 
1355 }

Referenced by Info_SetValueForKey().

◆ Info_SetValueForKey()

void Info_SetValueForKey ( char *  s,
char *  key,
char *  value 
)

Definition at line 1375 of file q_shared.c.

1376 {
1377  char newi[MAX_INFO_STRING], *v;
1378  int c;
1379  int maxsize = MAX_INFO_STRING;
1380 
1381  if (strstr (key, "\\") || strstr (value, "\\") )
1382  {
1383  Com_Printf ("Can't use keys or values with a \\\n");
1384  return;
1385  }
1386 
1387  if (strstr (key, ";") )
1388  {
1389  Com_Printf ("Can't use keys or values with a semicolon\n");
1390  return;
1391  }
1392 
1393  if (strstr (key, "\"") || strstr (value, "\"") )
1394  {
1395  Com_Printf ("Can't use keys or values with a \"\n");
1396  return;
1397  }
1398 
1399  if (strlen(key) > MAX_INFO_KEY-1 || strlen(value) > MAX_INFO_KEY-1)
1400  {
1401  Com_Printf ("Keys and values must be < 64 characters.\n");
1402  return;
1403  }
1404  Info_RemoveKey (s, key);
1405  if (!value || !strlen(value))
1406  return;
1407 
1408  Com_sprintf (newi, sizeof(newi), "\\%s\\%s", key, value);
1409 
1410  if (strlen(newi) + strlen(s) > maxsize)
1411  {
1412  Com_Printf ("Info string length exceeded\n");
1413  return;
1414  }
1415 
1416  // only copy ascii values
1417  s += strlen(s);
1418  v = newi;
1419  while (*v)
1420  {
1421  c = *v++;
1422  c &= 127; // strip high bits
1423  if (c >= 32 && c < 127)
1424  *s++ = c;
1425  }
1426  *s = 0;
1427 }

Referenced by ClientConnect(), Cvar_BitInfo(), and SVC_DirectConnect().

◆ Info_Validate()

qboolean Info_Validate ( char *  s)

Definition at line 1366 of file q_shared.c.

1367 {
1368  if (strstr (s, "\""))
1369  return false;
1370  if (strstr (s, ";"))
1371  return false;
1372  return true;
1373 }

Referenced by ClientUserinfoChanged().

◆ Info_ValueForKey()

char* Info_ValueForKey ( char *  s,
char *  key 
)

Definition at line 1266 of file q_shared.c.

1267 {
1268  char pkey[512];
1269  static char value[2][512]; // use two buffers so compares
1270  // work without stomping on each other
1271  static int valueindex;
1272  char *o;
1273 
1274  valueindex ^= 1;
1275  if (*s == '\\')
1276  s++;
1277  while (1)
1278  {
1279  o = pkey;
1280  while (*s != '\\')
1281  {
1282  if (!*s)
1283  return "";
1284  *o++ = *s++;
1285  }
1286  *o = 0;
1287  s++;
1288 
1289  o = value[valueindex];
1290 
1291  while (*s != '\\' && *s)
1292  {
1293  if (!*s)
1294  return "";
1295  *o++ = *s++;
1296  }
1297  *o = 0;
1298 
1299  if (!strcmp (key, pkey) )
1300  return value[valueindex];
1301 
1302  if (!*s)
1303  return "";
1304  s++;
1305  }
1306 }

Referenced by ClientConnect(), ClientTeam(), ClientUserinfoChanged(), IsFemale(), IsNeutral(), PutClientInServer(), spectator_respawn(), SV_UserinfoChanged(), and SVC_DirectConnect().

◆ LerpAngle()

float LerpAngle ( float  a1,
float  a2,
float  frac 
)

Definition at line 283 of file q_shared.c.

284 {
285  if (a1 - a2 > 180)
286  a1 -= 360;
287  if (a1 - a2 < -180)
288  a1 += 360;
289  return a2 + frac * (a1 - a2);
290 }

Referenced by CL_AddPacketEntities(), CL_AddViewWeapon(), and CL_CalcViewValues().

◆ LittleFloat()

float LittleFloat ( float  l)

Definition at line 950 of file q_shared.c.

950 {return _LittleFloat(l);}

◆ LittleLong()

int LittleLong ( int  l)

Definition at line 948 of file q_shared.c.

948 {return _LittleLong(l);}

◆ LittleShort()

short LittleShort ( short  l)

Definition at line 946 of file q_shared.c.

946 {return _LittleShort(l);}

◆ PerpendicularVector()

void PerpendicularVector ( vec3_t  dst,
const vec3_t  src 
)

Definition at line 152 of file q_shared.c.

153 {
154  int pos;
155  int i;
156  float minelem = 1.0F;
157  vec3_t tempvec;
158 
159  /*
160  ** find the smallest magnitude axially aligned vector
161  */
162  for ( pos = 0, i = 0; i < 3; i++ )
163  {
164  if ( fabs( src[i] ) < minelem )
165  {
166  pos = i;
167  minelem = fabs( src[i] );
168  }
169  }
170  tempvec[0] = tempvec[1] = tempvec[2] = 0.0F;
171  tempvec[pos] = 1.0F;
172 
173  /*
174  ** project the point onto the plane defined by src
175  */
176  ProjectPointOnPlane( dst, tempvec, src );
177 
178  /*
179  ** normalize the result
180  */
181  VectorNormalize( dst );
182 }

Referenced by R_DrawBeam(), and RotatePointAroundVector().

◆ ProjectPointOnPlane()

void ProjectPointOnPlane ( vec3_t  dst,
const vec3_t  p,
const vec3_t  normal 
)

Definition at line 130 of file q_shared.c.

131 {
132  float d;
133  vec3_t n;
134  float inv_denom;
135 
136  inv_denom = 1.0F / DotProduct( normal, normal );
137 
138  d = DotProduct( normal, p ) * inv_denom;
139 
140  n[0] = normal[0] * inv_denom;
141  n[1] = normal[1] * inv_denom;
142  n[2] = normal[2] * inv_denom;
143 
144  dst[0] = p[0] - d * n[0];
145  dst[1] = p[1] - d * n[1];
146  dst[2] = p[2] - d * n[2];
147 }

Referenced by PerpendicularVector().

◆ Q_ftol()

long Q_ftol ( float  f)

◆ Q_log2()

int Q_log2 ( int  val)

Definition at line 790 of file q_shared.c.

791 {
792  int answer=0;
793  while (val>>=1)
794  answer++;
795  return answer;
796 }

◆ Q_strcasecmp()

int Q_strcasecmp ( char *  s1,
char *  s2 
)

Definition at line 1229 of file q_shared.c.

1230 {
1231  return Q_strncasecmp (s1, s2, 99999);
1232 }

Referenced by CDAudio_RandomPlay(), CL_AddPacketEntities(), Cmd_ExecuteString(), FS_FOpenFile(), and Key_StringToKeynum().

◆ Q_stricmp()

◆ Q_strncasecmp()

int Q_strncasecmp ( char *  s1,
char *  s2,
int  n 
)

Definition at line 1202 of file q_shared.c.

1203 {
1204  int c1, c2;
1205 
1206  do
1207  {
1208  c1 = *s1++;
1209  c2 = *s2++;
1210 
1211  if (!n--)
1212  return 0; // strings are equal until end point
1213 
1214  if (c1 != c2)
1215  {
1216  if (c1 >= 'a' && c1 <= 'z')
1217  c1 -= ('a' - 'A');
1218  if (c2 >= 'a' && c2 <= 'z')
1219  c2 -= ('a' - 'A');
1220  if (c1 != c2)
1221  return -1; // strings not equal
1222  }
1223  } while (c1);
1224 
1225  return 0; // strings are equal
1226 }

Referenced by Q_strcasecmp().

◆ R_ConcatRotations()

void R_ConcatRotations ( float  in1[3][3],
float  in2[3][3],
float  out[3][3] 
)

Definition at line 191 of file q_shared.c.

192 {
193  out[0][0] = in1[0][0] * in2[0][0] + in1[0][1] * in2[1][0] +
194  in1[0][2] * in2[2][0];
195  out[0][1] = in1[0][0] * in2[0][1] + in1[0][1] * in2[1][1] +
196  in1[0][2] * in2[2][1];
197  out[0][2] = in1[0][0] * in2[0][2] + in1[0][1] * in2[1][2] +
198  in1[0][2] * in2[2][2];
199  out[1][0] = in1[1][0] * in2[0][0] + in1[1][1] * in2[1][0] +
200  in1[1][2] * in2[2][0];
201  out[1][1] = in1[1][0] * in2[0][1] + in1[1][1] * in2[1][1] +
202  in1[1][2] * in2[2][1];
203  out[1][2] = in1[1][0] * in2[0][2] + in1[1][1] * in2[1][2] +
204  in1[1][2] * in2[2][2];
205  out[2][0] = in1[2][0] * in2[0][0] + in1[2][1] * in2[1][0] +
206  in1[2][2] * in2[2][0];
207  out[2][1] = in1[2][0] * in2[0][1] + in1[2][1] * in2[1][1] +
208  in1[2][2] * in2[2][1];
209  out[2][2] = in1[2][0] * in2[0][2] + in1[2][1] * in2[1][2] +
210  in1[2][2] * in2[2][2];
211 }

Referenced by R_RotateBmodel(), and RotatePointAroundVector().

◆ R_ConcatTransforms()

void R_ConcatTransforms ( float  in1[3][4],
float  in2[3][4],
float  out[3][4] 
)

Definition at line 219 of file q_shared.c.

220 {
221  out[0][0] = in1[0][0] * in2[0][0] + in1[0][1] * in2[1][0] +
222  in1[0][2] * in2[2][0];
223  out[0][1] = in1[0][0] * in2[0][1] + in1[0][1] * in2[1][1] +
224  in1[0][2] * in2[2][1];
225  out[0][2] = in1[0][0] * in2[0][2] + in1[0][1] * in2[1][2] +
226  in1[0][2] * in2[2][2];
227  out[0][3] = in1[0][0] * in2[0][3] + in1[0][1] * in2[1][3] +
228  in1[0][2] * in2[2][3] + in1[0][3];
229  out[1][0] = in1[1][0] * in2[0][0] + in1[1][1] * in2[1][0] +
230  in1[1][2] * in2[2][0];
231  out[1][1] = in1[1][0] * in2[0][1] + in1[1][1] * in2[1][1] +
232  in1[1][2] * in2[2][1];
233  out[1][2] = in1[1][0] * in2[0][2] + in1[1][1] * in2[1][2] +
234  in1[1][2] * in2[2][2];
235  out[1][3] = in1[1][0] * in2[0][3] + in1[1][1] * in2[1][3] +
236  in1[1][2] * in2[2][3] + in1[1][3];
237  out[2][0] = in1[2][0] * in2[0][0] + in1[2][1] * in2[1][0] +
238  in1[2][2] * in2[2][0];
239  out[2][1] = in1[2][0] * in2[0][1] + in1[2][1] * in2[1][1] +
240  in1[2][2] * in2[2][1];
241  out[2][2] = in1[2][0] * in2[0][2] + in1[2][1] * in2[1][2] +
242  in1[2][2] * in2[2][2];
243  out[2][3] = in1[2][0] * in2[0][3] + in1[2][1] * in2[1][3] +
244  in1[2][2] * in2[2][3] + in1[2][3];
245 }

Referenced by R_AliasSetUpTransform().

◆ RotatePointAroundVector()

void RotatePointAroundVector ( vec3_t  dst,
const vec3_t  dir,
const vec3_t  point,
float  degrees 
)

Definition at line 32 of file q_shared.c.

33 {
34  float m[3][3];
35  float im[3][3];
36  float zrot[3][3];
37  float tmpmat[3][3];
38  float rot[3][3];
39  int i;
40  vec3_t vr, vup, vf;
41 
42  vf[0] = dir[0];
43  vf[1] = dir[1];
44  vf[2] = dir[2];
45 
46  PerpendicularVector( vr, dir );
47  CrossProduct( vr, vf, vup );
48 
49  m[0][0] = vr[0];
50  m[1][0] = vr[1];
51  m[2][0] = vr[2];
52 
53  m[0][1] = vup[0];
54  m[1][1] = vup[1];
55  m[2][1] = vup[2];
56 
57  m[0][2] = vf[0];
58  m[1][2] = vf[1];
59  m[2][2] = vf[2];
60 
61  memcpy( im, m, sizeof( im ) );
62 
63  im[0][1] = m[1][0];
64  im[0][2] = m[2][0];
65  im[1][0] = m[0][1];
66  im[1][2] = m[2][1];
67  im[2][0] = m[0][2];
68  im[2][1] = m[1][2];
69 
70  memset( zrot, 0, sizeof( zrot ) );
71  zrot[0][0] = zrot[1][1] = zrot[2][2] = 1.0F;
72 
73  zrot[0][0] = cos( DEG2RAD( degrees ) );
74  zrot[0][1] = sin( DEG2RAD( degrees ) );
75  zrot[1][0] = -sin( DEG2RAD( degrees ) );
76  zrot[1][1] = cos( DEG2RAD( degrees ) );
77 
78  R_ConcatRotations( m, zrot, tmpmat );
79  R_ConcatRotations( tmpmat, im, rot );
80 
81  for ( i = 0; i < 3; i++ )
82  {
83  dst[i] = rot[i][0] * point[0] + rot[i][1] * point[1] + rot[i][2] * point[2];
84  }
85 }

Referenced by R_DrawBeam(), and R_SetFrustum().

◆ Swap_Init()

void Swap_Init ( void  )

Definition at line 1011 of file q_shared.c.

1012 {
1013  byte swaptest[2] = {1,0};
1014 
1015 // set the byte swapping variables in a portable manner
1016  if ( *(short *)swaptest == 1)
1017  {
1018  bigendien = false;
1019  _BigShort = ShortSwap;
1021  _BigLong = LongSwap;
1023  _BigFloat = FloatSwap;
1025  }
1026  else
1027  {
1028  bigendien = true;
1031  _BigLong = LongNoSwap;
1035  }
1036 
1037 }

Referenced by GetRefAPI(), and Qcommon_Init().

◆ Sys_Error()

void Sys_Error ( char *  error,
  ... 
)

Definition at line 67 of file sys_win.c.

68 {
69  va_list argptr;
70  char text[1024];
71 
72  CL_Shutdown ();
74 
75  va_start (argptr, error);
76  vsprintf (text, error, argptr);
77  va_end (argptr);
78 
79  MessageBox(NULL, text, "Error", 0 /* MB_OK */ );
80 
81  if (qwclsemaphore)
82  CloseHandle (qwclsemaphore);
83 
84 // shut down QHOST hooks if necessary
85  DeinitConProc ();
86 
87  exit (1);
88 }

Referenced by Sys_ConsoleInput(), and Sys_Init().

◆ Sys_FindClose()

void Sys_FindClose ( void  )

Definition at line 206 of file q_shwin.c.

207 {
208  if (findhandle != -1)
209  _findclose (findhandle);
210  findhandle = 0;
211 }

Referenced by FS_ExecAutoexec(), FS_ListFiles(), PlayerConfig_ScanDirectories(), SV_CopySaveGame(), and SV_WipeSavegame().

◆ Sys_FindFirst()

char* Sys_FindFirst ( char *  path,
unsigned  musthave,
unsigned  canthave 
)

Definition at line 173 of file q_shwin.c.

174 {
175  struct _finddata_t findinfo;
176 
177  if (findhandle)
178  Sys_Error ("Sys_BeginFind without close");
179  findhandle = 0;
180 
181  COM_FilePath (path, findbase);
182  findhandle = _findfirst (path, &findinfo);
183  if (findhandle == -1)
184  return NULL;
185  if ( !CompareAttributes( findinfo.attrib, musthave, canthave ) )
186  return NULL;
187  Com_sprintf (findpath, sizeof(findpath), "%s/%s", findbase, findinfo.name);
188  return findpath;
189 }

Referenced by FS_ExecAutoexec(), FS_ListFiles(), PlayerConfig_ScanDirectories(), SV_CopySaveGame(), and SV_WipeSavegame().

◆ Sys_FindNext()

char* Sys_FindNext ( unsigned  musthave,
unsigned  canthave 
)

Definition at line 191 of file q_shwin.c.

192 {
193  struct _finddata_t findinfo;
194 
195  if (findhandle == -1)
196  return NULL;
197  if (_findnext (findhandle, &findinfo) == -1)
198  return NULL;
199  if ( !CompareAttributes( findinfo.attrib, musthave, canthave ) )
200  return NULL;
201 
202  Com_sprintf (findpath, sizeof(findpath), "%s/%s", findbase, findinfo.name);
203  return findpath;
204 }

Referenced by FS_ListFiles(), SV_CopySaveGame(), and SV_WipeSavegame().

◆ Sys_Milliseconds()

int Sys_Milliseconds ( void  )

Definition at line 120 of file q_shwin.c.

121 {
122  static int base;
123  static qboolean initialized = false;
124 
125  if (!initialized)
126  { // let base retain 16 bits of effectively random data
127  base = timeGetTime() & 0xffff0000;
128  initialized = true;
129  }
130  curtime = timeGetTime() - base;
131 
132  return curtime;
133 }

Referenced by CL_Disconnect(), CL_Frame(), CL_InitLocal(), Field_Draw(), KeyCursorDrawFunc(), Menu_Draw(), Netchan_Init(), Qcommon_Frame(), R_EdgeDrawing(), R_PrintDSpeeds(), R_PrintTimes(), R_RenderFrame(), SCR_BeginLoadingPlaque(), SCR_PlayCinematic(), SCR_TimeRefresh_f(), SCR_UpdateScreen(), SV_RunGameFrame(), V_RenderView(), and WinMain().

◆ Sys_Mkdir()

void Sys_Mkdir ( char *  path)

Definition at line 135 of file q_shwin.c.

136 {
137  _mkdir (path);
138 }

Referenced by FS_CreatePath(), GL_ScreenShot_f(), and R_ScreenShot_f().

◆ va()

◆ VectorCompare()

int VectorCompare ( vec3_t  v1,
vec3_t  v2 
)

Definition at line 672 of file q_shared.c.

673 {
674  if (v1[0] != v2[0] || v1[1] != v2[1] || v1[2] != v2[2])
675  return 0;
676 
677  return 1;
678 }

Referenced by AngleMove_Final(), CL_AddPlayerBeams(), door_secret_use(), fire_lead(), G_SetMovedir(), InitTrigger(), rotating_use(), SP_trigger_multiple(), SV_FlyMove(), target_laser_think(), and Touch_Multi().

◆ VectorInverse()

void VectorInverse ( vec3_t  v)

Definition at line 775 of file q_shared.c.

776 {
777  v[0] = -v[0];
778  v[1] = -v[1];
779  v[2] = -v[2];
780 }

Referenced by R_AliasSetUpTransform(), and R_DrawSprite().

◆ VectorLength()

◆ VectorMA()

void VectorMA ( vec3_t  veca,
float  scale,
vec3_t  vecb,
vec3_t  vecc 
)

◆ VectorNormalize()

vec_t VectorNormalize ( vec3_t  v)

Definition at line 681 of file q_shared.c.

682 {
683  float length, ilength;
684 
685  length = v[0]*v[0] + v[1]*v[1] + v[2]*v[2];
686  length = sqrt (length); // FIXME
687 
688  if (length)
689  {
690  ilength = 1/length;
691  v[0] *= ilength;
692  v[1] *= ilength;
693  v[2] *= ilength;
694  }
695 
696  return length;
697 
698 }

Referenced by actorMachineGun(), bfg_think(), boss2_firebullet_left(), boss2_firebullet_right(), Boss2Rocket(), CheckPowerArmor(), ChickRocket(), CL_AddBeams(), CL_AddPlayerBeams(), CL_BlasterTrail(), CL_BlasterTrail2(), CL_BlueFlameTrail(), CL_BubbleTrail(), CL_BubbleTrail2(), CL_DebugTrail(), CL_DevRailTrail(), CL_DiminishingTrail(), CL_FlagTrail(), CL_FlameTrail(), CL_ForceTrail(), CL_ForceWall(), CL_Heatbeam(), CL_InfernoTrail(), CL_IonripperTrail(), CL_MakeTeleportParticles(), CL_MonsterPlasma_Shell(), CL_Nukeblast(), CL_QuadTrail(), CL_RailSprial(), CL_RailTrail(), CL_RocketTrail(), CL_SmokeTrail(), CL_SpeedTrail(), CL_TagTrail(), CL_TeleportParticles(), CL_Tracker_Explode(), CL_Tracker_Shell(), CL_TrackerTrail(), CL_TrapParticles(), CL_Widowbeamout(), CL_WidowSplash(), fire_blaster(), fire_hit(), fire_lead(), func_explosive_explode(), GladiatorGun(), GunnerFire(), InfantryMachineGun(), infront(), jorg_firebullet_left(), jorg_firebullet_right(), jorgBFG(), MakeNormalVectors(), makronBFG(), MakronRailgun(), MakronSpawn(), Move_Calc(), mutant_jump_touch(), P_DamageFeedback(), pBloodThink(), PerpendicularVector(), PM_AirMove(), PM_CheckSpecialMovement(), PM_DeadMove(), PM_FlyMove(), PM_StepSlideMove_(), PM_WaterMove(), pWeatherFXThink(), R_DrawAliasModel(), R_DrawBeam(), R_IMFlatShadedQuad(), R_SetFrustum(), R_ViewChanged(), S_SpatializeOrigin(), soldier_fire(), supertankMachineGun(), supertankRocket(), T_Damage(), TankRocket(), target_laser_think(), and UpdateChaseCam().

◆ VectorNormalize2()

vec_t VectorNormalize2 ( vec3_t  v,
vec3_t  out 
)

Definition at line 700 of file q_shared.c.

701 {
702  float length, ilength;
703 
704  length = v[0]*v[0] + v[1]*v[1] + v[2]*v[2];
705  length = sqrt (length); // FIXME
706 
707  if (length)
708  {
709  ilength = 1/length;
710  out[0] = v[0]*ilength;
711  out[1] = v[1]*ilength;
712  out[2] = v[2]*ilength;
713  }
714 
715  return length;
716 
717 }

◆ VectorScale()

void VectorScale ( vec3_t  in,
vec_t  scale,
vec3_t  out 
)

Definition at line 782 of file q_shared.c.

783 {
784  out[0] = in[0]*scale;
785  out[1] = in[1]*scale;
786  out[2] = in[2]*scale;
787 }

Referenced by AngleMove_Begin(), AngleMove_Final(), Blaster_Fire(), CanDamage(), CL_AddPlayerBeams(), CL_BlasterTracer(), CL_BlasterTrail(), CL_BlasterTrail2(), CL_BloodHit(), CL_BlueFlameTrail(), CL_BubbleTrail(), CL_BubbleTrail2(), CL_DebugTrail(), CL_DevRailTrail(), CL_DiminishingTrail(), CL_FlagTrail(), CL_FlameTrail(), CL_ForceTrail(), CL_ForceWall(), CL_Heatbeam(), CL_InfernoTrail(), CL_IonripperTrail(), CL_MakeTeleportParticles(), CL_ParseTEnt(), CL_ParticleBulletDecal(), CL_ParticleSmokeEffect(), CL_ParticleSteamEffect(), CL_ParticleSteamEffect2(), CL_QuadTrail(), CL_RailSprial(), CL_RailTrail(), CL_RocketTrail(), CL_SmokeTrail(), CL_SpeedTrail(), CL_TagTrail(), CL_TeleportParticles(), CL_Tracer(), CL_Tracker_Explode(), CL_TrackerTrail(), CL_TrapParticles(), D_CalcGradients(), Drop_Item(), fire_bfg(), fire_blaster(), fire_grenade(), fire_grenade2(), fire_lead(), fire_rocket(), func_explosive_explode(), GL_DrawParticles(), misc_viper_bomb_prethink(), misc_viper_bomb_use(), Move_Begin(), Move_Final(), mutant_jump_takeoff(), pBloodThink(), PM_AirMove(), PM_CheckSpecialMovement(), PM_DeadMove(), PM_FlyMove(), PM_StepSlideMove_(), PM_WaterMove(), pWeatherFXThink(), R_DrawBeam(), R_DrawParticles(), R_DrawSprite(), R_LightPoint(), RotatedBBox(), rotating_use(), SP_target_spawner(), SubdividePolygon(), SV_FlyMove(), SV_Physics_Pusher(), SV_Physics_Toss(), T_Damage(), Think_AccelMove(), ThrowGib(), trigger_push_touch(), turret_breach_think(), V_RenderView(), VelocityForDamage(), weapon_bfg_fire(), weapon_grenadelauncher_fire(), weapon_railgun_fire(), Weapon_RocketLauncher_Fire(), weapon_shotgun_fire(), and weapon_supershotgun_fire().

◆ verify_fread()

size_t verify_fread ( void ,
size_t  ,
size_t  ,
FILE *   
)

◆ verify_fwrite()

size_t verify_fwrite ( void ,
size_t  ,
size_t  ,
FILE *   
)

Variable Documentation

◆ curtime

◆ monster_flash_offset

◆ vec3_origin

◆ vidref_val

int vidref_val
TE_EXPLOSION1_BIG
@ TE_EXPLOSION1_BIG
Definition: q_shared.h:989
bigendien
qboolean bigendien
Definition: q_shared.c:934
TE_PARASITE_ATTACK
@ TE_PARASITE_ATTACK
Definition: q_shared.h:951
curtime
int curtime
Definition: q_shwin.c:119
hunkcount
int hunkcount
Definition: q_shwin.c:32
value
GLfloat value
Definition: qgl_win.c:63
YAW
#define YAW
Definition: q_shared.h:66
MAX_QPATH
#define MAX_QPATH
Definition: q_shared.h:73
TE_SHIELD_SPARKS
@ TE_SHIELD_SPARKS
Definition: q_shared.h:948
COM_FilePath
void COM_FilePath(char *in, char *out)
Definition: q_shared.c:888
EV_FALL
@ EV_FALL
Definition: q_shared.h:1159
TE_HEATBEAM_STEAM
@ TE_HEATBEAM_STEAM
Definition: q_shared.h:980
hunkmaxsize
int hunkmaxsize
Definition: q_shwin.c:36
TE_GRENADE_EXPLOSION_WATER
@ TE_GRENADE_EXPLOSION_WATER
Definition: q_shared.h:953
int
CONST PIXELFORMATDESCRIPTOR int
Definition: qgl_win.c:35
TE_SHOTGUN
@ TE_SHOTGUN
Definition: q_shared.h:939
TE_CHAINFIST_SMOKE
@ TE_CHAINFIST_SMOKE
Definition: q_shared.h:981
TE_EXPLOSION1
@ TE_EXPLOSION1
Definition: q_shared.h:940
EV_PLAYER_TELEPORT
@ EV_PLAYER_TELEPORT
Definition: q_shared.h:1161
temp_event_t
temp_event_t
Definition: q_shared.h:933
TE_HEATBEAM
@ TE_HEATBEAM
Definition: q_shared.h:974
ShortNoSwap
short ShortNoSwap(short l)
Definition: q_shared.c:962
TE_ROCKET_EXPLOSION_WATER
@ TE_ROCKET_EXPLOSION_WATER
Definition: q_shared.h:952
TE_BLOOD
@ TE_BLOOD
Definition: q_shared.h:936
TE_SPLASH
@ TE_SPLASH
Definition: q_shared.h:945
PM_FREEZE
@ PM_FREEZE
Definition: q_shared.h:473
v
GLdouble v
Definition: qgl_win.c:143
TE_BUBBLETRAIL
@ TE_BUBBLETRAIL
Definition: q_shared.h:946
TE_ELECTRIC_SPARKS
@ TE_ELECTRIC_SPARKS
Definition: q_shared.h:982
FloatNoSwap
float FloatNoSwap(float f)
Definition: q_shared.c:1001
TE_RAILTRAIL
@ TE_RAILTRAIL
Definition: q_shared.h:938
TE_MEDIC_CABLE_ATTACK
@ TE_MEDIC_CABLE_ATTACK
Definition: q_shared.h:954
MAX_INFO_KEY
#define MAX_INFO_KEY
Definition: q_shared.h:250
TE_WIDOWBEAMOUT
@ TE_WIDOWBEAMOUT
Definition: q_shared.h:986
Sys_Error
void Sys_Error(char *error,...)
Definition: sys_win.c:67
data_p
byte * data_p
Definition: snd_mem.c:183
com_token
char com_token[MAX_TOKEN_CHARS]
Definition: q_shared.c:1063
qboolean
qboolean
Definition: q_shared.h:56
EV_FOOTSTEP
@ EV_FOOTSTEP
Definition: q_shared.h:1157
TE_HEATBEAM_SPARKS
@ TE_HEATBEAM_SPARKS
Definition: q_shared.h:979
i
int i
Definition: q_shared.c:305
buffer
GLenum GLfloat * buffer
Definition: qgl_win.c:151
TE_TUNNEL_SPARKS
@ TE_TUNNEL_SPARKS
Definition: q_shared.h:964
PITCH
#define PITCH
Definition: q_shared.h:65
MAX_TOKEN_CHARS
#define MAX_TOKEN_CHARS
Definition: q_shared.h:71
M_PI
#define M_PI
Definition: q_shared.h:135
findhandle
int findhandle
Definition: q_shwin.c:144
type
GLenum type
Definition: qgl_win.c:72
pmtype_t
pmtype_t
Definition: q_shared.h:465
TE_FLAME
@ TE_FLAME
Definition: q_shared.h:968
TE_EXPLOSION1_NP
@ TE_EXPLOSION1_NP
Definition: q_shared.h:990
ProjectPointOnPlane
void ProjectPointOnPlane(vec3_t dst, const vec3_t p, const vec3_t normal)
Definition: q_shared.c:130
TE_FLASHLIGHT
@ TE_FLASHLIGHT
Definition: q_shared.h:972
TE_EXPLOSION2
@ TE_EXPLOSION2
Definition: q_shared.h:941
TE_FORCEWALL
@ TE_FORCEWALL
Definition: q_shared.h:973
membase
byte * membase
Definition: q_shwin.c:35
MAX_INFO_STRING
#define MAX_INFO_STRING
Definition: q_shared.h:252
TE_GRENADE_EXPLOSION
@ TE_GRENADE_EXPLOSION
Definition: q_shared.h:943
TE_BUBBLETRAIL2
@ TE_BUBBLETRAIL2
Definition: q_shared.h:977
vup
vec3_t vup
Definition: r_main.c:66
msg
cvar_t * msg
Definition: cl_main.c:98
MULTICAST_PHS
@ MULTICAST_PHS
Definition: q_shared.h:110
PM_GIB
@ PM_GIB
Definition: q_shared.h:472
TE_BFG_BIGEXPLOSION
@ TE_BFG_BIGEXPLOSION
Definition: q_shared.h:956
CrossProduct
void CrossProduct(vec3_t v1, vec3_t v2, vec3_t cross)
Definition: q_shared.c:753
_LittleFloat
float(* _LittleFloat)(float l)
Definition: q_shared.c:943
TE_BFG_EXPLOSION
@ TE_BFG_EXPLOSION
Definition: q_shared.h:955
Qcommon_Shutdown
void Qcommon_Shutdown(void)
Definition: common.c:1619
v2
GLdouble GLdouble GLint GLint GLdouble GLdouble v2
Definition: qgl_win.c:227
paged_total
int paged_total
Definition: q_shared.c:1159
ROLL
#define ROLL
Definition: q_shared.h:67
forward
static vec3_t forward
Definition: p_view.c:29
PerpendicularVector
void PerpendicularVector(vec3_t dst, const vec3_t src)
Definition: q_shared.c:152
CL_Shutdown
void CL_Shutdown(void)
Definition: cl_main.c:1868
Sys_ConsoleOutput
void Sys_ConsoleOutput(char *string)
Definition: sys_win.c:345
TE_SPARKS
@ TE_SPARKS
Definition: q_shared.h:944
findbase
char findbase[MAX_OSPATH]
Definition: q_shwin.c:142
multicast_t
multicast_t
Definition: q_shared.h:107
TE_GRAPPLE_CABLE
@ TE_GRAPPLE_CABLE
Definition: q_shared.h:959
LongSwap
int LongSwap(int l)
Definition: q_shared.c:967
TE_ROCKET_EXPLOSION
@ TE_ROCKET_EXPLOSION
Definition: q_shared.h:942
FloatSwap
float FloatSwap(float f)
Definition: q_shared.c:984
DotProduct
#define DotProduct(x, y)
Definition: q_shared.h:155
ShortSwap
short ShortSwap(short l)
Definition: q_shared.c:952
MULTICAST_ALL_R
@ MULTICAST_ALL_R
Definition: q_shared.h:112
vsnprintf
#define vsnprintf
Definition: q_shared.h:32
cvar_s::value
float value
Definition: q_shared.h:324
Con_Print
void Con_Print(char *text)
Definition: console.c:359
VectorNormalize
vec_t VectorNormalize(vec3_t v)
Definition: q_shared.c:681
NULL
#define NULL
Definition: q_shared.h:60
EV_OTHER_TELEPORT
@ EV_OTHER_TELEPORT
Definition: q_shared.h:1162
entity_event_t
entity_event_t
Definition: q_shared.h:1153
TE_PLAIN_EXPLOSION
@ TE_PLAIN_EXPLOSION
Definition: q_shared.h:971
TE_NUKEBLAST
@ TE_NUKEBLAST
Definition: q_shared.h:987
rd_target
static int rd_target
Definition: common.c:67
TE_DBALL_GOAL
@ TE_DBALL_GOAL
Definition: q_shared.h:985
PM_DEAD
@ PM_DEAD
Definition: q_shared.h:471
TE_MOREBLOOD
@ TE_MOREBLOOD
Definition: q_shared.h:978
EV_ITEM_RESPAWN
@ EV_ITEM_RESPAWN
Definition: q_shared.h:1156
name
cvar_t * name
Definition: cl_main.c:94
TE_SCREEN_SPARKS
@ TE_SCREEN_SPARKS
Definition: q_shared.h:947
rd_buffersize
static int rd_buffersize
Definition: common.c:69
Q_strncasecmp
int Q_strncasecmp(char *s1, char *s2, int n)
Definition: q_shared.c:1202
TE_PLASMA_EXPLOSION
@ TE_PLASMA_EXPLOSION
Definition: q_shared.h:963
TE_WIDOWSPLASH
@ TE_WIDOWSPLASH
Definition: q_shared.h:988
logfile
FILE * logfile
Definition: common.c:49
vec_t
float vec_t
Definition: q_shared.h:126
logfile_active
cvar_t * logfile_active
Definition: common.c:45
DEG2RAD
#define DEG2RAD(a)
Definition: q_shared.c:22
PM_SPECTATOR
@ PM_SPECTATOR
Definition: q_shared.h:469
TE_LASER_SPARKS
@ TE_LASER_SPARKS
Definition: q_shared.h:950
TE_BOSSTPORT
@ TE_BOSSTPORT
Definition: q_shared.h:957
TE_WELDING_SPARKS
@ TE_WELDING_SPARKS
Definition: q_shared.h:960
_LittleShort
short(* _LittleShort)(short l)
Definition: q_shared.c:939
cursize
int cursize
Definition: q_shwin.c:37
up
static vec3_t up
Definition: p_view.c:29
TE_GREENBLOOD
@ TE_GREENBLOOD
Definition: q_shared.h:961
MULTICAST_PHS_R
@ MULTICAST_PHS_R
Definition: q_shared.h:113
_BigLong
int(* _BigLong)(int l)
Definition: q_shared.c:940
TE_BLUEHYPERBLASTER
@ TE_BLUEHYPERBLASTER
Definition: q_shared.h:962
FS_Gamedir
char * FS_Gamedir(void)
Definition: files.c:590
TE_BFG_LASER
@ TE_BFG_LASER
Definition: q_shared.h:958
findpath
char findpath[MAX_OSPATH]
Definition: q_shwin.c:143
rd_buffer
static char * rd_buffer
Definition: common.c:68
R_ConcatRotations
void R_ConcatRotations(float in1[3][3], float in2[3][3], float out[3][3])
Definition: q_shared.c:191
sqrt
double sqrt(double x)
_BigFloat
float(* _BigFloat)(float l)
Definition: q_shared.c:942
qwclsemaphore
static HANDLE qwclsemaphore
Definition: sys_win.c:51
v1
GLdouble GLdouble GLint GLint GLdouble v1
Definition: qgl_win.c:227
TE_TRACKER_EXPLOSION
@ TE_TRACKER_EXPLOSION
Definition: q_shared.h:983
TE_BLASTER
@ TE_BLASTER
Definition: q_shared.h:937
MULTICAST_PVS_R
@ MULTICAST_PVS_R
Definition: q_shared.h:114
EV_FALLSHORT
@ EV_FALLSHORT
Definition: q_shared.h:1158
TE_DEBUGTRAIL
@ TE_DEBUGTRAIL
Definition: q_shared.h:970
TE_GUNSHOT
@ TE_GUNSHOT
Definition: q_shared.h:935
format
GLsizei GLenum format
Definition: qgl_win.c:131
TE_FLECHETTE
@ TE_FLECHETTE
Definition: q_shared.h:991
EV_FALLFAR
@ EV_FALLFAR
Definition: q_shared.h:1160
rd_flush
static void(* rd_flush)(int target, char *buffer)
Definition: common.c:70
initialized
static qboolean initialized
Definition: cd_win.c:31
TE_TELEPORT_EFFECT
@ TE_TELEPORT_EFFECT
Definition: q_shared.h:984
Com_Printf
void Com_Printf(char *fmt,...)
Definition: common.c:102
MULTICAST_ALL
@ MULTICAST_ALL
Definition: q_shared.h:109
right
GLdouble right
Definition: qgl_win.c:159
_LittleLong
int(* _LittleLong)(int l)
Definition: q_shared.c:941
TE_STEAM
@ TE_STEAM
Definition: q_shared.h:976
PM_NORMAL
@ PM_NORMAL
Definition: q_shared.h:468
TE_LIGHTNING
@ TE_LIGHTNING
Definition: q_shared.h:969
MAXPRINTMSG
#define MAXPRINTMSG
Definition: common.c:24
EV_NONE
@ EV_NONE
Definition: q_shared.h:1155
TE_RAILTRAIL2
@ TE_RAILTRAIL2
Definition: q_shared.h:967
TE_MONSTER_HEATBEAM
@ TE_MONSTER_HEATBEAM
Definition: q_shared.h:975
MULTICAST_PVS
@ MULTICAST_PVS
Definition: q_shared.h:111
_BigShort
short(* _BigShort)(short l)
Definition: q_shared.c:938
CompareAttributes
static qboolean CompareAttributes(unsigned found, unsigned musthave, unsigned canthave)
Definition: q_shwin.c:146
TE_BULLET_SPARKS
@ TE_BULLET_SPARKS
Definition: q_shared.h:949
vec3_t
vec_t vec3_t[3]
Definition: q_shared.h:127
Com_sprintf
void Com_sprintf(char *dest, int size, char *fmt,...)
Definition: q_shared.c:1236
Info_RemoveKey
void Info_RemoveKey(char *s, char *key)
Definition: q_shared.c:1308
TE_BLASTER2
@ TE_BLASTER2
Definition: q_shared.h:966
DeinitConProc
void DeinitConProc(void)
Definition: conproc.c:153
LongNoSwap
int LongNoSwap(int l)
Definition: q_shared.c:979