41#if defined(Q2SERVER) || defined(Q2CLIENT)
81#define Q2GAME_API_VERSION 3
85#define SVF_NOCLIENT 0x00000001
86#define SVF_DEADMONSTER 0x00000002
87#define SVF_MONSTER 0x00000004
108#define Q2MAX_ENT_CLUSTERS 16
126#if defined(Q2SERVER) || defined(Q2CLIENT)
191 void (VARGS *bprintf) (
int printlevel,
const char *
fmt, ...) LIKEPRINTF(2);
232 void (VARGS *WriteChar) (
int c);
233 void (VARGS *WriteByte) (
int c);
234 void (VARGS *WriteShort) (
int c);
235 void (VARGS *WriteLong) (
int c);
236 void (VARGS *WriteFloat) (
float f);
237 void (VARGS *WriteString) (
const char *
s);
240 void (VARGS *WriteAngle) (
float f);
244 void (VARGS *TagFree) (
void *block);
245 void (VARGS *FreeTags) (
int tag);
281 void (VARGS *SpawnEntities) (
const char *mapname,
const char *
entstring,
const char *spawnpoint);
void(QDECL *vgui_frame)(void)
entity_t * ent
Definition: com_mesh.c:717
int num
Definition: com_phys_ode.c:314
char * text
Definition: decomp.c:375
s
Definition: execloop.h:53
char filename[64]
Definition: generatebuiltin.c:8
int error
Definition: gl_vidlinuxglx.c:447
static CONST PIXELFORMATDESCRIPTOR *static int
Definition: gl_vidnt.c:222
GLuint GLcharARB * name
Definition: glquake.h:155
GLint size
Definition: glquake.h:157
GLsizei GLboolean const GLfloat * value
Definition: glquake.h:164
static png_size_t start
Definition: image.c:1419
keynum_t pos
Definition: in_sdl.c:105
playermove_t pmove
Definition: pmove.c:24
struct q2pmove_s q2pmove_t
game_export_t * ge
Definition: svq2_game.c:11
game_export_t * GetGameApi(game_import_t *import)
void VARGS Q2_Pmove(q2pmove_t *pmove)
Definition: q2pmove.c:1247
enum multicast_e multicast_t
q2solid_t
Definition: q2game.h:92
@ Q2SOLID_BSP
Definition: q2game.h:96
@ Q2SOLID_BBOX
Definition: q2game.h:95
@ Q2SOLID_NOT
Definition: q2game.h:93
@ Q2SOLID_TRIGGER
Definition: q2game.h:94
struct gclient_s gclient_t
Definition: q2game.h:112
float pm_q2stepheight
Definition: q2pmove.c:22
int svq2_maxclients
Definition: svq2_game.c:12
struct q2entity_state_s q2entity_state_t
multicast_e
Definition: q2game.h:24
@ MULTICAST_ONE_SPECS
Definition: q2game.h:32
@ MULTICAST_PHS
Definition: q2game.h:26
@ MULTICAST_ALL_R
Definition: q2game.h:28
@ MULTICAST_PVS
Definition: q2game.h:27
@ MULTICAST_ONE_NOSPECS
Definition: q2game.h:35
@ MULTICAST_ONE_R_NOSPECS
Definition: q2game.h:36
@ MULTICAST_ALL
Definition: q2game.h:25
@ MULTICAST_ONE_R_SPECS
Definition: q2game.h:33
@ MULTICAST_INIT
Definition: q2game.h:34
@ MULTICAST_PVS_R
Definition: q2game.h:30
@ MULTICAST_PHS_R
Definition: q2game.h:29
uploadfmt_t fmt
Definition: r_2d.c:48
vec3_t end
Definition: r_d3.c:692
static AL_API ALsizei n
Definition: snd_al.c:161
cvar_t volume
Definition: snd_dma.c:85
int apiversion
Definition: q2game.h:272
qboolean(VARGS *ClientConnect)(q2edict_t *ent
void(VARGS *ClientBegin)(q2edict_t *ent)
qboolean autosave
Definition: q2game.h:287
int edict_size
Definition: q2game.h:319
q2usercmd_t * cmd
Definition: q2game.h:300
int max_edicts
Definition: q2game.h:321
void(VARGS *ClientDisconnect)(q2edict_t *ent)
void(VARGS *ClientCommand)(q2edict_t *ent)
int num_edicts
Definition: q2game.h:320
void(VARGS *ReadGame)(const char *filename)
void(VARGS *ClientUserinfoChanged)(q2edict_t *ent
void(VARGS *ServerCommand)(void)
const char * entstring
Definition: q2game.h:281
void(VARGS *Shutdown)(void)
void(VARGS *ReadLevel)(const char *filename)
struct q2edict_s * edicts
Definition: q2game.h:318
void(VARGS *RunFrame)(void)
void(VARGS *WriteLevel)(const char *filename)
void(VARGS *linkentity)(q2edict_t *ent)
qboolean(VARGS *inPHS)(vec3_t p1
void(VARGS *WritePosition)(vec3_t pos)
int(VARGS *modelindex)(const char *name)
vec3_t p2
Definition: q2game.h:216
const char * name
Definition: q2game.h:211
cvar_t *VARGS * cvar_set(const char *var_name, const char *value)
void(VARGS *WriteByte)(int c)
void(VARGS *TagFree)(void *block)
void *VARGS * TagMalloc(int size, int tag)
vec3_t vec3_t vec3_t q2edict_t int contentmask
Definition: q2game.h:214
const char * fmt
Definition: q2game.h:191
cvar_t *VARGS * cvar(const char *var_name, const char *value, int flags)
qboolean reliable
Definition: q2game.h:231
void(VARGS *WriteDir)(vec3_t pos)
qboolean open
Definition: q2game.h:218
void(VARGS *WriteShort)(int c)
void(VARGS *FreeTags)(int tag)
void(VARGS *WriteChar)(int c)
void(VARGS *WriteAngle)(float f)
void(VARGS *AddCommandString)(const char *text)
int color
Definition: q2game.h:261
int int float float attenuation
Definition: q2game.h:195
int(VARGS *imageindex)(const char *name)
q2edict_t int int float float attenuation
Definition: q2game.h:196
vec3_t q2edict_t int int areatype
Definition: q2game.h:226
int const char * fmt
Definition: q2game.h:193
unsigned int area2
Definition: q2game.h:219
void(VARGS *WriteLong)(int c)
void(VARGS *Pmove)(q2pmove_t *pmove)
void(VARGS *unlinkentity)(q2edict_t *ent)
int(VARGS *pointcontents)(vec3_t point)
void(VARGS *WriteFloat)(float f)
multicast_t to
Definition: q2game.h:230
void(VARGS *WriteString)(const char *s)
const char * string
Definition: q2game.h:202
char *VARGS * argv(int n)
int(VARGS *soundindex)(const char *name)
cvar_t *VARGS * cvar_forceset(const char *var_name, const char *value)
int clusternums[Q2MAX_ENT_CLUSTERS]
Definition: q2game.h:163
vec3_t mins
Definition: q2game.h:170
q2entity_state_t s
Definition: q2game.h:154
int headnode
Definition: q2game.h:164
q2solid_t solid
Definition: q2game.h:172
int svflags
Definition: q2game.h:169
int areanum
Definition: q2game.h:165
vec3_t absmax
Definition: q2game.h:171
link_t area
Definition: q2game.h:160
vec3_t absmin
Definition: q2game.h:171
vec3_t maxs
Definition: q2game.h:170
qboolean inuse
Definition: q2game.h:156
vec3_t size
Definition: q2game.h:171
int areanum2
Definition: q2game.h:165
int linkcount
Definition: q2game.h:157
q2edict_t * owner
Definition: q2game.h:174
int num_clusters
Definition: q2game.h:162
int clipmask
Definition: q2game.h:173
struct q2gclient_s * client
Definition: q2game.h:155
int event
Definition: q2game.h:144
int number
Definition: q2game.h:129
int renderfx
Definition: q2game.h:139
int modelindex2
Definition: q2game.h:135
int solid
Definition: q2game.h:140
int modelindex3
Definition: q2game.h:135
int modelindex4
Definition: q2game.h:135
vec3_t old_origin
Definition: q2game.h:133
vec3_t origin
Definition: q2game.h:131
int skinnum
Definition: q2game.h:137
int frame
Definition: q2game.h:136
unsigned int effects
Definition: q2game.h:138
int sound
Definition: q2game.h:143
vec3_t angles
Definition: q2game.h:132
int modelindex
Definition: q2game.h:134
int ping
Definition: q2game.h:120
q2player_state_t ps
Definition: q2game.h:119
vec3_t vec3_t vec3_t end
Definition: q2game.h:72
vec3_t viewangles
Definition: q2game.h:62
int watertype
Definition: q2game.h:68
int numtouch
Definition: q2game.h:59
float viewheight
Definition: q2game.h:63
struct edict_s * touchents[MAXTOUCH]
Definition: q2game.h:60
struct edict_s * groundentity
Definition: q2game.h:67
int waterlevel
Definition: q2game.h:69
int(VARGS *pointcontents)(vec3_t point)
qboolean snapinitial
Definition: q2game.h:56
q2trace_t(VARGS *trace)(vec3_t start
q2usercmd_t cmd
Definition: q2game.h:55
q2pmove_state_t s
Definition: q2game.h:52
vec3_t maxs
Definition: q2game.h:65
vec3_t mins
Definition: q2game.h:65
Definition: protocol.h:1310
unsigned int flags
Definition: valid.c:313
struct q2trace_s q2trace_t