icculus quake2 doxygen
1.0 dev
|
|
Go to the documentation of this file.
199 Com_Printf (
"You must be in a level to record.\n");
224 SZ_Init (&buf, buf_data,
sizeof(buf_data));
257 memset (&nullstate, 0,
sizeof(nullstate));
339 else if (
argc == 2 )
440 memset(&adr, 0,
sizeof(adr));
558 Com_Printf (
"You must set 'rcon_password' before\n"
559 "issuing an rcon command.\n");
563 memset(&to, 0,
sizeof(to));
564 message[0] = (char)255;
565 message[1] = (char)255;
566 message[2] = (char)255;
567 message[3] = (char)255;
572 strcat (message,
"rcon ");
575 strcat (message,
" ");
580 strcat (message,
" ");
590 "or set the 'rcon_address' cvar\n"
591 "to issue rcon commands\n");
617 memset (&
cl, 0,
sizeof(
cl));
664 strcpy ((
char *)
final+1,
"disconnect");
704 Com_Printf (
"packet <destination> <contents>\n");
720 send[0] = send[1] = send[2] = send[3] = (char)0xff;
723 for (
i=0 ;
i<l ;
i++)
725 if (in[
i] ==
'\\' && in[
i+1] ==
'n')
839 adr.
type = NA_MULTICAST6;
854 for (
i=0 ;
i<16 ;
i++)
858 if (!adrstring || !adrstring[0])
921 if (!strcmp(c,
"client_connect"))
925 Com_Printf (
"Dup connect received. Ignored.\n");
936 if (!strcmp(c,
"info"))
943 if (!strcmp(c,
"cmd"))
947 Com_Printf (
"Command packet from remote host. Ignored.\n");
957 if (!strcmp(c,
"print"))
965 if (!strcmp(c,
"ping"))
972 if (!strcmp(c,
"challenge"))
980 if (!strcmp(c,
"echo"))
1039 Com_DPrintf (
"%s:sequenced packet without connection\n"
1056 Com_Printf (
"\nServer connection timed out.\n");
1088 if ((p = strchr(sk,
'/')) !=
NULL)
1133 #define PLAYER_MULT 5
1136 #define ENV_CNT (CS_PLAYERSKINS + MAX_CLIENTS * PLAYER_MULT)
1137 #define TEXTURE_CNT (ENV_CNT+13)
1139 static const char *
env_suf[6] = {
"rt",
"bk",
"lf",
"ft",
"up",
"dn"};
1143 unsigned map_checksum;
1273 p = strchr(model,
'/');
1275 p = strchr(model,
'\\');
1284 Com_sprintf(fn,
sizeof(fn),
"players/%s/tris.md2", model);
1293 Com_sprintf(fn,
sizeof(fn),
"players/%s/weapon.md2", model);
1302 Com_sprintf(fn,
sizeof(fn),
"players/%s/weapon.pcx", model);
1408 unsigned map_checksum;
1467 cl_blood =
Cvar_Get (
"cl_blood",
"1", 0);
1608 f = fopen (path,
"w");
1615 fprintf (f,
"// generated by quake, do not modify\n");
1640 {
"r_drawworld",
"1"},
1641 {
"cl_testlights",
"0"},
1642 {
"r_fullbright",
"0"},
1643 {
"r_drawflat",
"0"},
1646 {
"sw_draworder",
"0"},
1647 {
"gl_lightmap",
"0"},
1648 {
"gl_saturatelighting",
"0"},
1722 static int extratime;
1723 static int lasttimecalled;
1734 if (extratime < 1000/cl_maxfps->
value)
1797 if ( !lasttimecalled )
1809 lasttimecalled = now;
1831 #if defined __linux__ || defined __FreeBSD__ || defined __sgi
1874 printf (
"recursive shutdown\n");
void SCR_EndLoadingPlaque(void)
void CL_ParseClientinfo(int player)
void Key_WriteBindings(FILE *f)
void CL_RegisterSounds(void)
qboolean CL_CheckOrDownloadFile(char *filename)
void CL_PingServers_f(void)
void CL_WriteDemoMessage(void)
mapsurface_t map_surfaces[MAX_MAP_TEXINFO]
char * Cvar_Userinfo(void)
cvar_t * allow_download_maps
cvar_t * rcon_client_password
void Cvar_WriteVariables(char *path)
void MSG_WriteLong(sizebuf_t *sb, int c)
char * NET_AdrToString(netadr_t a)
void CL_PredictMovement(void)
void CL_ReadPackets(void)
void SZ_Init(sizebuf_t *buf, byte *data, int length)
void SCR_BeginLoadingPlaque(void)
cvar_t * Cvar_Get(char *var_name, char *var_value, int flags)
void FS_CreatePath(char *path)
void CL_RequestNextDownload(void)
void SZ_Clear(sizebuf_t *buf)
void Cmd_TokenizeString(char *text, qboolean macroExpand)
qboolean NET_StringToAdr(char *s, netadr_t *a)
char * va(char *format,...)
void CL_ForwardToServer_f(void)
void SCR_RunConsole(void)
void SCR_UpdateScreen(void)
void SZ_Print(sizebuf_t *buf, char *data)
qboolean userinfo_modified
void CL_SendConnectPacket(void)
void CL_Snd_Restart_f(void)
void CL_Disconnect_f(void)
void NET_SendPacket(netsrc_t sock, int length, void *data, netadr_t to)
char servername[MAX_OSPATH]
void CL_PrepRefresh(void)
void CL_RunLightStyles(void)
void Sys_SendKeyEvents(void)
void CL_WriteConfiguration(void)
void FS_ExecAutoexec(void)
void Cmd_AddCommand(char *cmd_name, xcommand_t function)
int FS_LoadFile(char *path, void **buffer)
cvar_t * cl_stereo_separation
void Cbuf_AddText(char *text)
void Cvar_SetValue(char *var_name, float value)
cvar_t * allow_download_players
void CL_ParseStatusMessage(void)
cvar_t * cl_add_particles
void Sys_AppActivate(void)
void MSG_WriteString(sizebuf_t *sb, char *s)
void(* CinematicSetPalette)(const unsigned char *palette)
void MSG_WriteShort(sizebuf_t *sb, int c)
void MSG_WriteByte(sizebuf_t *sb, int c)
char * MSG_ReadStringLine(sizebuf_t *msg_read)
void Com_Error(int code, char *fmt,...)
void CL_ConnectionlessPacket(void)
void CL_ParseServerMessage(void)
qboolean Netchan_Process(netchan_t *chan, sizebuf_t *msg)
cvar_t * allow_download_models
int Q_stricmp(char *s1, char *s2)
void MSG_WriteChar(sizebuf_t *sb, int c)
#define MAX_CONFIGSTRINGS
void NET_Config(qboolean multiplayer)
void CL_ClearEffects(void)
void CL_FixUpGender(void)
void CL_CheckForResend(void)
void Netchan_Setup(netsrc_t sock, netchan_t *chan, netadr_t adr, int qport)
void SV_Shutdown(char *finalmsg, qboolean reconnect)
void CDAudio_Update(void)
#define MAX_PARSE_ENTITIES
entity_state_t cl_parse_entities[MAX_PARSE_ENTITIES]
qboolean NET_IsLocalAddress(netadr_t adr)
cmodel_t * CM_LoadMap(char *name, qboolean clientload, unsigned *checksum)
int MSG_ReadLong(sizebuf_t *msg_read)
void CL_Reconnect_f(void)
void VID_CheckChanges(void)
char * MSG_ReadString(sizebuf_t *msg_read)
qboolean NET_GetPacket(netsrc_t sock, netadr_t *net_from, sizebuf_t *net_message)
void CL_FixCvarCheats(void)
int Com_ServerState(void)
static const char * env_suf[6]
char configstrings[MAX_CONFIGSTRINGS][MAX_QPATH]
void Netchan_Transmit(netchan_t *chan, int length, byte *data)
byte net_message_buffer[MAX_MSGLEN]
void SCR_RunCinematic(void)
void Netchan_OutOfBandPrint(int net_socket, netadr_t adr, char *format,...)
cvar_t * Cvar_Set(char *var_name, char *value)
void Com_DPrintf(char *fmt,...)
void S_StopAllSounds(void)
void FS_FreeFile(void *buffer)
void M_AddToServerList(netadr_t adr, char *info)
void Com_Printf(char *fmt,...)
qboolean NET_CompareAdr(netadr_t a, netadr_t b)
int Sys_Milliseconds(void)
cvar_t * allow_download_sounds
char * Cvar_VariableString(char *var_name)
void MSG_WriteDeltaEntity(entity_state_t *from, entity_state_t *to, sizebuf_t *msg, qboolean force, qboolean newentity)
void CL_DumpPackets(void)
centity_t cl_entities[MAX_EDICTS]
void MSG_BeginReading(sizebuf_t *msg)
void CL_SendCommand(void)
void Com_sprintf(char *dest, int size, char *fmt,...)
void S_Update(vec3_t origin, vec3_t forward, vec3_t right, vec3_t up)
void CDAudio_Shutdown(void)
void Cmd_ForwardToServer(void)
void SCR_StopCinematic(void)
float Cvar_VariableValue(char *var_name)