Go to the documentation of this file.
25 #include "../qcommon/qcommon.h"
26 #include "../game/game.h"
30 #define MAX_MASTERS 8 // max recipients for heartbeat packets
69 #define EDICT_NUM(n) ((edict_t *)((byte *)ge->edicts + ge->edict_size*(n)))
70 #define NUM_FOR_EDICT(e) ( ((byte *)(e)-(byte *)ge->edicts ) / ge->edict_size)
92 #define LATENCY_COUNTS 16
93 #define RATE_MESSAGES 10
148 #define MAX_CHALLENGES 1024
243 #define SV_OUTPUTBUF_LENGTH (MAX_MSGLEN - 16)
254 int soundindex,
float volume,
255 float attenuation,
float timeofs);
void SV_DemoCompleted(void)
int message_size[RATE_MESSAGES]
void SV_SendServerinfo(client_t *client)
void SV_FlushRedirect(int sv_redirected, char *outputbuf)
int frame_latency[LATENCY_COUNTS]
void SV_LinkEdict(edict_t *ent)
void SV_InitEdict(edict_t *e)
void SV_ReadLevelFile(void)
void SV_ExecuteUserCommand(char *s)
void SV_BroadcastPrintf(int level, char *fmt,...)
void SV_BroadcastCommand(char *fmt,...)
entity_state_t * client_entities
char sv_outputbuf[SV_OUTPUTBUF_LENGTH]
int SV_AreaEdicts(vec3_t mins, vec3_t maxs, edict_t **list, int maxcount, int areatype)
void SV_Error(char *error,...)
void SV_UnlinkEdict(edict_t *ent)
void SV_BuildClientFrame(client_t *client)
void SV_InitGameProgs(void)
client_frame_t frames[UPDATE_BACKUP]
void SV_StartSound(vec3_t origin, edict_t *entity, int channel, int soundindex, float volume, float attenuation, float timeofs)
trace_t SV_Trace(vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, edict_t *passedict, int contentmask)
void SV_DropClient(client_t *drop)
void SV_ExecuteClientMessage(client_t *cl)
void SV_FinalMessage(char *message, qboolean reconnect)
static int error(vorb *f, enum STBVorbisError e)
netadr_t master_adr[MAX_MASTERS]
#define MAX_CONFIGSTRINGS
void SV_Multicast(vec3_t origin, multicast_t to)
#define SV_OUTPUTBUF_LENGTH
void SV_SendClientMessages(void)
void SV_ClientPrintf(client_t *cl, int level, char *fmt,...)
void SV_UserinfoChanged(client_t *cl)
void SV_PrepWorldFrame(void)
int SV_PointContents(vec3_t p)
void SV_RecordDemoMessage(void)
void SV_WriteFrameToClient(client_t *client, sizebuf_t *msg)
void SV_ShutdownGameProgs(void)
byte datagram_buf[MAX_MSGLEN]
void SV_WriteClientdataToMessage(client_t *client, sizebuf_t *msg)
int SV_SoundIndex(char *name)
int SV_ImageIndex(char *name)
void Master_Heartbeat(void)
void SV_InitOperatorCommands(void)
void SV_Map(qboolean attractloop, char *levelstring, qboolean loadgame)
char userinfo[MAX_INFO_STRING]
int SV_ModelIndex(char *name)
cvar_t * sv_airaccelerate