QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
server.h File Reference

Data Structures

struct  challenge_t
 
struct  client_frame_t
 
struct  client_s
 
struct  delta_t
 
struct  flood_t
 
struct  server_static_t
 
struct  server_t
 
struct  svstats_t
 

Macros

#define DAMAGE_AIM   2
 
#define DAMAGE_NO   0
 
#define DAMAGE_YES   1
 
#define DEAD_DEAD   2
 
#define DEAD_DYING   1
 
#define DEAD_NO   0
 
#define DOSFLOODCMDS   6
 
#define DOSFLOODIP   64
 
#define EF_BRIGHTLIGHT   4
 
#define EF_DIMLIGHT   8
 
#define FL_CLIENT   (1<<3)
 
#define FL_FINALIZED   (1<<13)
 
#define FL_FINDABLE_NONSOLID   (1<<14)
 
#define FL_FLY   (1<<0)
 
#define FL_GLIMPSE   (1<<2)
 
#define FL_GODMODE   (1<<6)
 
#define FL_INWATER   (1<<4)
 
#define FL_ITEM   (1<<8)
 
#define FL_MONSTER   (1<<5)
 
#define FL_NOTARGET   (1<<7)
 
#define FL_ONGROUND   (1<<9)
 
#define FL_PARTIALGROUND   (1<<10)
 
#define FL_SWIM   (1<<1)
 
#define FL_WATERJUMP   (1<<11)
 
#define FLQW_LAGGEDMOVE   (1<<16)
 
#define MAX_BACK_BUFFERS   8
 
#define MAX_CHALLENGES   1024
 
#define MAX_MASTERS   32
 
#define MAX_NAME   32
 
#define MAX_SIGNON_BUFFERS   8
 
#define MAX_STUFFTEXT   512
 
#define MOVETYPE_ANGLECLIP   2
 
#define MOVETYPE_ANGLENOCLIP   1
 
#define MOVETYPE_BOUNCE   10
 
#define MOVETYPE_FLY   5
 
#define MOVETYPE_FLYMISSILE   9
 
#define MOVETYPE_NOCLIP   8
 
#define MOVETYPE_NONE   0
 
#define MOVETYPE_PPUSH   13
 
#define MOVETYPE_PUSH   7
 
#define MOVETYPE_STEP   4
 
#define MOVETYPE_TOSS   6
 
#define MOVETYPE_WALK   3
 
#define MULTICAST_ALL   0
 
#define MULTICAST_ALL_R   3
 
#define MULTICAST_PHS   1
 
#define MULTICAST_PHS_R   4
 
#define MULTICAST_PVS   2
 
#define MULTICAST_PVS_R   5
 
#define NUM_SPAWN_PARMS   16
 
#define QW_SERVER
 
#define SOLID_BBOX   2
 
#define SOLID_BSP   4
 
#define SOLID_NOT   0
 
#define SOLID_SLIDEBOX   3
 
#define SOLID_TRIGGER   1
 
#define SPAWNFLAG_NOT_DEATHMATCH   2048
 
#define SPAWNFLAG_NOT_EASY   256
 
#define SPAWNFLAG_NOT_HARD   1024
 
#define SPAWNFLAG_NOT_MEDIUM   512
 
#define STATFRAMES   100
 
#define STOP_EPSILON   0.1
 
#define UCMD_NO_REDIRECT   1
 
#define UCMD_OVERRIDABLE   2
 

Typedefs

typedef struct client_s client_t
 

Enumerations

enum  delta_pvs_t { dt_pvs_normal, dt_pvs_fat, dt_pvs_none }
 
enum  delta_type_t { dt_tp_normal, dt_tp_demo, dt_tp_qtv }
 
enum  filtertype_t { ft_ban, ft_mute, ft_cuff }
 
enum  flood_enum_t {
  FLOOD_PING, FLOOD_LOG, FLOOD_CONNECT, FLOOD_STATUS,
  FLOOD_RCON, FLOOD_BAN
}
 
enum  redirect_t {
  RD_NONE, RD_CLIENT, RD_PACKET, RD_NONE,
  RD_CLIENT, RD_PACKET, RD_MOD
}
 
enum  server_state_t {
  ss_loading, ss_active, ss_dead, ss_loading,
  ss_active
}
 
enum  sv_client_state_t {
  cs_free, cs_server, cs_zombie, cs_connected,
  cs_spawned
}
 

Functions

void Con_DPrintf (const char *fmt,...)
 
void Con_Printf (const char *fmt,...)
 
void Cvar_Info (struct cvar_s *var)
 
void Master_Heartbeat (void)
 
void Master_Packet (void)
 
void SV_AddGravity (struct edict_s *ent)
 
void * SV_AddUserCommand (const char *name, void(*func)(void *userdata), int flags, void *userdata, void(*on_free)(void *userdata))
 
client_tSV_AllocClient (int spectator, int server)
 
void SV_BeginRedirect (redirect_t rd)
 
void SV_BroadcastCommand (const char *fmt,...)
 
void SV_BroadcastPrintf (int level, const char *fmt,...)
 
int SV_CalcPing (client_t *cl)
 
qboolean SV_CheckBottom (struct edict_s *ent)
 
void SV_CheckVelocity (struct edict_s *ent)
 
void SV_ClientPrintf (int recorder, client_t *cl, int level, const char *fmt,...)
 
const char * SV_Current_Map (void)
 
void SV_DropClient (client_t *drop)
 
void SV_EndRedirect (void)
 
int SV_EntCanSupportJump (struct edict_s *ent)
 
void SV_ExecuteClientMessage (client_t *cl)
 
void SV_ExecuteUserCommand (const char *s)
 
void SV_ExtractFromUserinfo (client_t *cl)
 
void SV_FinalMessage (const char *message)
 
void SV_FindModelNumbers (void)
 
void SV_FinishGravity (struct edict_s *ent, vec3_t move)
 
void SV_FlushSignon (void)
 
int SV_FlyMove (struct edict_s *ent, float time, struct trace_s *steptrace)
 
void SV_Frame (float time)
 
void SV_FullClientUpdate (client_t *client, sizebuf_t *buf)
 
void SV_FullClientUpdateToClient (client_t *client, backbuf_t *backbuf)
 
void SV_GetStats (struct edict_s *ent, int spectator, int stats[])
 
void SV_GIB_Init (void)
 
void SV_Init (void)
 
void SV_InitOperatorCommands (void)
 
void SV_LoadProgs (void)
 
int SV_ModelIndex (const char *name)
 
qboolean SV_movestep (struct edict_s *ent, const vec3_t move, qboolean relink)
 
void SV_MoveToGoal (struct progs_s *pr)
 
void SV_Multicast (const vec3_t origin, int to)
 
void SV_Physics (void)
 
void SV_Physics_Client (struct edict_s *ent)
 
void SV_Physics_Toss (struct edict_s *ent)
 
void SV_PostRunCmd (void)
 
void SV_PR_Cmds_Init (void)
 
void SV_PreRunCmd (void)
 
void SV_Print (const char *fmt, va_list args)
 
void SV_Printf (const char *fmt,...)
 
void SV_Progs_Init (void)
 
void SV_Progs_Init_Cvars (void)
 
void SV_ProgStartFrame (void)
 
struct trace_s SV_PushEntity (struct edict_s *ent, vec3_t push, unsigned traceflags)
 
int SV_RemoveUserCommand (void *cmd)
 
double SV_RestorePenaltyFilter (client_t *cl, filtertype_t type)
 
void SV_RunCmd (usercmd_t *ucmd, qboolean inside)
 
void SV_RunNewmis (void)
 
qboolean SV_RunThink (struct edict_s *ent)
 
void SV_SavePenaltyFilter (client_t *cl, filtertype_t type, double pentime)
 
void SV_SaveSpawnparms (void)
 
void SV_Sbar_Init (void)
 
void SV_SendClientMessages (void)
 
void SV_SendMessagesToAll (void)
 
void SV_SendServerinfo (client_t *client)
 
void SV_SetLocalinfo (const char *key, const char *value)
 
void SV_SetMoveVars (void)
 
void SV_SetupUserCommands (void)
 
void SV_SetUserinfo (client_t *client, const char *key, const char *value)
 
void SV_Shutdown (void)
 
void SV_Spawn (client_t *client)
 
void SV_SpawnServer (const char *server)
 
void SV_StartSound (struct edict_s *entity, int channel, const char *sample, int volume, float attenuation)
 
void SV_Status_f (void)
 
void SV_TogglePause (const char *msg)
 
void SV_UserInit (void)
 
void SV_WriteClientdataToMessage (client_t *client, sizebuf_t *msg)
 
void SV_WriteEntitiesToClient (delta_t *delta, sizebuf_t *msg)
 
void SV_WriteModellist (netchan_t *netchan, int n)
 
void SV_WriteSoundlist (netchan_t *netchan, int n)
 
void SV_WriteSpawn1 (backbuf_t *backbuf, int n)
 
void SV_WriteSpawn2 (backbuf_t *backbuf)
 
void SV_WriteWorldVars (netchan_t *netchan)
 

Variables

struct cvar_sallow_download
 
struct cvar_sallow_download_maps
 
struct cvar_sallow_download_models
 
struct cvar_sallow_download_skins
 
struct cvar_sallow_download_sounds
 
const char * client_info_filters []
 
int con_printf_no_log
 
struct cvar_sdeathmatch
 
int fp_messages
 
char fp_msg [255]
 
int fp_persecond
 
int fp_secondsdead
 
struct cvar_sfraglimit
 
client_thost_client
 
int host_hunklevel
 
struct info_s * localinfo
 
char localmodels [MAX_MODELS][5]
 
netadr_t master_adr [MAX_MASTERS]
 
qboolean nouse
 
struct dstring_s outputbuf
 
struct cvar_spausable
 
struct clip_hull_spf_hull_list []
 
struct cvar_spr_double_remove
 
qboolean rcon_from_user
 
double realtime
 
struct cvar_sspawn
 
server_t sv
 
struct cvar_ssv_accelerate
 
struct cvar_ssv_aim
 
struct cvar_ssv_airaccelerate
 
struct cvar_ssv_antilag
 
struct cvar_ssv_antilag_frac
 
struct cbuf_args_ssv_args
 
struct cbuf_ssv_cbuf
 
QFilesv_fraglogfile
 
double sv_frametime
 
struct cvar_ssv_friction
 
struct cvar_ssv_gravity
 
struct cvar_ssv_hide_version_info
 
struct cvar_ssv_highchars
 
struct cvar_ssv_jump_any
 
QFilesv_logfile
 
struct cvar_ssv_maxrate
 
struct cvar_ssv_maxspeed
 
struct cvar_ssv_maxtic
 
struct cvar_ssv_maxvelocity
 
struct cvar_ssv_mintic
 
int sv_nailmodel
 
struct cvar_ssv_phs
 
struct edict_ssv_player
 
int sv_playermodel
 
redirect_t sv_redirected
 
struct cvar_ssv_spectatormaxspeed
 
struct cvar_ssv_stopspeed
 
int sv_supernailmodel
 
struct cvar_ssv_timecheck_decay
 
struct cvar_ssv_timecheck_fuzz
 
struct cvar_ssv_timefmt
 
struct cvar_ssv_timeout
 
struct cvar_ssv_timestamps
 
struct cvar_ssv_wateraccelerate
 
struct cvar_ssv_waterfriction
 
server_static_t svs
 
struct cvar_steamplay
 
struct cvar_stimelimit
 
int(* ucmd_unknown )(void)
 

Macro Definition Documentation

#define DAMAGE_AIM   2
#define DAMAGE_NO   0
#define DAMAGE_YES   1
#define DEAD_DEAD   2
#define DEAD_DYING   1
#define DEAD_NO   0
#define DOSFLOODCMDS   6
#define DOSFLOODIP   64
#define EF_BRIGHTLIGHT   4
#define EF_DIMLIGHT   8
#define FL_CLIENT   (1<<3)
#define FL_FINALIZED   (1<<13)
#define FL_FINDABLE_NONSOLID   (1<<14)
#define FL_FLY   (1<<0)
#define FL_GLIMPSE   (1<<2)
#define FL_GODMODE   (1<<6)
#define FL_INWATER   (1<<4)
#define FL_ITEM   (1<<8)
#define FL_MONSTER   (1<<5)
#define FL_NOTARGET   (1<<7)
#define FL_ONGROUND   (1<<9)
#define FL_PARTIALGROUND   (1<<10)
#define FL_SWIM   (1<<1)
#define FL_WATERJUMP   (1<<11)
#define FLQW_LAGGEDMOVE   (1<<16)
#define MAX_BACK_BUFFERS   8
#define MAX_CHALLENGES   1024
#define MAX_MASTERS   32
#define MAX_NAME   32
#define MAX_SIGNON_BUFFERS   8
#define MAX_STUFFTEXT   512
#define MOVETYPE_ANGLECLIP   2
#define MOVETYPE_ANGLENOCLIP   1
#define MOVETYPE_BOUNCE   10
#define MOVETYPE_FLY   5
#define MOVETYPE_FLYMISSILE   9
#define MOVETYPE_NOCLIP   8
#define MOVETYPE_NONE   0
#define MOVETYPE_PPUSH   13
#define MOVETYPE_PUSH   7
#define MOVETYPE_STEP   4
#define MOVETYPE_TOSS   6
#define MOVETYPE_WALK   3
#define MULTICAST_ALL   0
#define MULTICAST_ALL_R   3
#define MULTICAST_PHS   1
#define MULTICAST_PHS_R   4
#define MULTICAST_PVS   2
#define MULTICAST_PVS_R   5
#define NUM_SPAWN_PARMS   16
#define QW_SERVER
#define SOLID_BBOX   2
#define SOLID_BSP   4
#define SOLID_NOT   0
#define SOLID_SLIDEBOX   3
#define SOLID_TRIGGER   1
#define SPAWNFLAG_NOT_DEATHMATCH   2048
#define SPAWNFLAG_NOT_EASY   256
#define SPAWNFLAG_NOT_HARD   1024
#define SPAWNFLAG_NOT_MEDIUM   512
#define STATFRAMES   100
#define STOP_EPSILON   0.1
#define UCMD_NO_REDIRECT   1
#define UCMD_OVERRIDABLE   2

Typedef Documentation

typedef struct client_s client_t

Enumeration Type Documentation

Enumerator
dt_pvs_normal 
dt_pvs_fat 
dt_pvs_none 
Enumerator
dt_tp_normal 
dt_tp_demo 
dt_tp_qtv 
Enumerator
ft_ban 
ft_mute 
ft_cuff 
Enumerator
FLOOD_PING 
FLOOD_LOG 
FLOOD_CONNECT 
FLOOD_STATUS 
FLOOD_RCON 
FLOOD_BAN 
enum redirect_t
Enumerator
RD_NONE 

No redirection. Default state.

RD_CLIENT 

Output is sent to a specific client connection.

RD_PACKET 

Output is sent as a connectionless packet.

RD_NONE 
RD_CLIENT 
RD_PACKET 
RD_MOD 
Enumerator
ss_loading 
ss_active 
ss_dead 
ss_loading 
ss_active 
Enumerator
cs_free 
cs_server 
cs_zombie 
cs_connected 
cs_spawned 

Function Documentation

void Con_DPrintf ( const char *  fmt,
  ... 
)
void Con_Printf ( const char *  fmt,
  ... 
)
void Cvar_Info ( struct cvar_s var)
void Master_Heartbeat ( void  )
void Master_Packet ( void  )
void SV_AddGravity ( struct edict_s ent)
void* SV_AddUserCommand ( const char *  name,
void(*)(void *userdata)  func,
int  flags,
void *  userdata,
void(*)(void *userdata)  on_free 
)
client_t* SV_AllocClient ( int  spectator,
int  server 
)
void SV_BeginRedirect ( redirect_t  rd)
void SV_BroadcastCommand ( const char *  fmt,
  ... 
)
void SV_BroadcastPrintf ( int  level,
const char *  fmt,
  ... 
)
int SV_CalcPing ( client_t cl)
qboolean SV_CheckBottom ( struct edict_s ent)
void SV_CheckVelocity ( struct edict_s ent)
void SV_ClientPrintf ( int  recorder,
client_t cl,
int  level,
const char *  fmt,
  ... 
)
const char* SV_Current_Map ( void  )
void SV_DropClient ( client_t drop)
void SV_EndRedirect ( void  )
int SV_EntCanSupportJump ( struct edict_s ent)
void SV_ExecuteClientMessage ( client_t cl)
void SV_ExecuteUserCommand ( const char *  s)
void SV_ExtractFromUserinfo ( client_t cl)
void SV_FinalMessage ( const char *  message)
void SV_FindModelNumbers ( void  )
void SV_FinishGravity ( struct edict_s ent,
vec3_t  move 
)
void SV_FlushSignon ( void  )
int SV_FlyMove ( struct edict_s ent,
float  time,
struct trace_s steptrace 
)
void SV_Frame ( float  time)
void SV_FullClientUpdate ( client_t client,
sizebuf_t buf 
)
void SV_FullClientUpdateToClient ( client_t client,
backbuf_t backbuf 
)
void SV_GetStats ( struct edict_s ent,
int  spectator,
int  stats[] 
)
void SV_GIB_Init ( void  )
void SV_Init ( void  )
void SV_InitOperatorCommands ( void  )
void SV_LoadProgs ( void  )
int SV_ModelIndex ( const char *  name)
qboolean SV_movestep ( struct edict_s ent,
const vec3_t  move,
qboolean  relink 
)
void SV_MoveToGoal ( struct progs_s pr)
void SV_Multicast ( const vec3_t  origin,
int  to 
)
void SV_Physics ( void  )
void SV_Physics_Client ( struct edict_s ent)
void SV_Physics_Toss ( struct edict_s ent)
void SV_PostRunCmd ( void  )
void SV_PR_Cmds_Init ( void  )
void SV_PreRunCmd ( void  )
void SV_Print ( const char *  fmt,
va_list  args 
)
void SV_Printf ( const char *  fmt,
  ... 
)
void SV_Progs_Init ( void  )
void SV_Progs_Init_Cvars ( void  )
void SV_ProgStartFrame ( void  )
struct trace_s SV_PushEntity ( struct edict_s ent,
vec3_t  push,
unsigned  traceflags 
)
int SV_RemoveUserCommand ( void *  cmd)
double SV_RestorePenaltyFilter ( client_t cl,
filtertype_t  type 
)
void SV_RunCmd ( usercmd_t ucmd,
qboolean  inside 
)
void SV_RunNewmis ( void  )
qboolean SV_RunThink ( struct edict_s ent)
void SV_SavePenaltyFilter ( client_t cl,
filtertype_t  type,
double  pentime 
)
void SV_SaveSpawnparms ( void  )
void SV_Sbar_Init ( void  )
void SV_SendClientMessages ( void  )
void SV_SendMessagesToAll ( void  )
void SV_SendServerinfo ( client_t client)
void SV_SetLocalinfo ( const char *  key,
const char *  value 
)
void SV_SetMoveVars ( void  )
void SV_SetupUserCommands ( void  )
void SV_SetUserinfo ( client_t client,
const char *  key,
const char *  value 
)
void SV_Shutdown ( void  )
void SV_Spawn ( client_t client)
void SV_SpawnServer ( const char *  server)
void SV_StartSound ( struct edict_s entity,
int  channel,
const char *  sample,
int  volume,
float  attenuation 
)
void SV_Status_f ( void  )
void SV_TogglePause ( const char *  msg)
void SV_UserInit ( void  )
void SV_WriteClientdataToMessage ( client_t client,
sizebuf_t msg 
)
void SV_WriteEntitiesToClient ( delta_t delta,
sizebuf_t msg 
)
void SV_WriteModellist ( netchan_t netchan,
int  n 
)
void SV_WriteSoundlist ( netchan_t netchan,
int  n 
)
void SV_WriteSpawn1 ( backbuf_t backbuf,
int  n 
)
void SV_WriteSpawn2 ( backbuf_t backbuf)
void SV_WriteWorldVars ( netchan_t netchan)

Variable Documentation

struct cvar_s* allow_download
struct cvar_s* allow_download_maps
struct cvar_s* allow_download_models
struct cvar_s* allow_download_skins
struct cvar_s* allow_download_sounds
const char* client_info_filters[]
int con_printf_no_log
struct cvar_s* deathmatch
int fp_messages
char fp_msg[255]
int fp_persecond
int fp_secondsdead
struct cvar_s* fraglimit
client_t* host_client
int host_hunklevel
struct info_s* localinfo
char localmodels[MAX_MODELS][5]
netadr_t master_adr[MAX_MASTERS]
qboolean nouse
struct dstring_s outputbuf
struct cvar_s* pausable
struct clip_hull_s* pf_hull_list[]
struct cvar_s* pr_double_remove
qboolean rcon_from_user
struct cvar_s* spawn
struct cvar_s* sv_accelerate
struct cvar_s* sv_aim
struct cvar_s* sv_airaccelerate
struct cvar_s* sv_antilag
struct cvar_s* sv_antilag_frac
struct cbuf_args_s* sv_args
struct cbuf_s* sv_cbuf
QFile* sv_fraglogfile
double sv_frametime
struct cvar_s* sv_friction
struct cvar_s* sv_gravity
struct cvar_s* sv_hide_version_info
struct cvar_s* sv_highchars
struct cvar_s* sv_jump_any
QFile* sv_logfile
struct cvar_s* sv_maxrate
struct cvar_s* sv_maxspeed
struct cvar_s * sv_maxtic
struct cvar_s* sv_maxvelocity
struct cvar_s* sv_mintic
int sv_nailmodel
struct cvar_s* sv_phs
struct edict_s* sv_player
int sv_playermodel
redirect_t sv_redirected
struct cvar_s* sv_spectatormaxspeed
struct cvar_s* sv_stopspeed
int sv_supernailmodel
struct cvar_s* sv_timecheck_decay
struct cvar_s* sv_timecheck_fuzz
struct cvar_s* sv_timefmt
struct cvar_s* sv_timestamps
struct cvar_s* sv_wateraccelerate
struct cvar_s* sv_waterfriction
struct cvar_s* teamplay
struct cvar_s* timelimit
int(* ucmd_unknown)(void)