Go to the documentation of this file.
186 Com_Printf (
"You must be in a level to record.\n");
211 SZ_Init (&buf, buf_data,
sizeof(buf_data));
244 memset (&nullstate, 0,
sizeof(nullstate));
326 else if (
argc == 2 )
544 Com_Printf (
"You must set 'rcon_password' before\n"
545 "issuing an rcon command.\n");
549 message[0] = (char)255;
550 message[1] = (char)255;
551 message[2] = (char)255;
552 message[3] = (char)255;
557 strcat (message,
"rcon ");
560 strcat (message,
" ");
565 strcat (message,
" ");
575 "or set the 'rcon_address' cvar\n"
576 "to issue rcon commands\n");
602 memset (&
cl, 0,
sizeof(
cl));
649 strcpy ((
char *)
final+1,
"disconnect");
689 Com_Printf (
"packet <destination> <contents>\n");
705 send[0] = send[1] = send[2] = send[3] = (char)0xff;
707 l = (
int)strlen (in);
708 for (
i=0 ;
i<l ;
i++)
710 if (in[
i] ==
'\\' && in[
i+1] ==
'n')
833 for (
i=0 ;
i<16 ;
i++)
837 if (!adrstring || !adrstring[0])
900 if (!strcmp(c,
"client_connect"))
904 Com_Printf (
"Dup connect received. Ignored.\n");
915 if (!strcmp(c,
"info"))
922 if (!strcmp(c,
"cmd"))
926 Com_Printf (
"Command packet from remote host. Ignored.\n");
936 if (!strcmp(c,
"print"))
944 if (!strcmp(c,
"ping"))
951 if (!strcmp(c,
"challenge"))
959 if (!strcmp(c,
"echo"))
1018 Com_DPrintf (
"%s:sequenced packet without connection\n"
1035 Com_Printf (
"\nServer connection timed out.\n");
1067 if ((p = strchr(sk,
'/')) !=
NULL)
1112 #define PLAYER_MULT 5
1115 #define ENV_CNT (CS_PLAYERSKINS + MAX_CLIENTS * PLAYER_MULT)
1116 #define TEXTURE_CNT (ENV_CNT+13)
1118 static const char *
env_suf[6] = {
"rt",
"bk",
"lf",
"ft",
"up",
"dn"};
1122 unsigned map_checksum;
1252 p = strchr(model,
'/');
1254 p = strchr(model,
'\\');
1263 Com_sprintf(fn,
sizeof(fn),
"players/%s/tris.md2", model);
1272 Com_sprintf(fn,
sizeof(fn),
"players/%s/weapon.md2", model);
1281 Com_sprintf(fn,
sizeof(fn),
"players/%s/weapon.pcx", model);
1387 unsigned map_checksum;
1569 f = fopen (path,
"w");
1576 fprintf (f,
"// generated by quake, do not modify\n");
1601 {
"r_drawworld",
"1"},
1602 {
"cl_testlights",
"0"},
1603 {
"r_fullbright",
"0"},
1604 {
"r_drawflat",
"0"},
1607 {
"sw_draworder",
"0"},
1608 {
"gl_lightmap",
"0"},
1609 {
"gl_saturatelighting",
"0"},
1683 static int extratime;
1684 static int lasttimecalled;
1695 if (extratime < 1000/cl_maxfps->
value)
1759 if ( !lasttimecalled )
1771 lasttimecalled = now;
1793 #if defined __linux__ || defined __sgi
1837 printf (
"recursive shutdown\n");
void SCR_EndLoadingPlaque(void)
CONST PIXELFORMATDESCRIPTOR int
void CL_ParseClientinfo(int player)
void CDAudio_Update(void)
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 Miniaudio_Shutdown(void)
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 SV_ShutdownGameProgs(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)
void CDAudio_Shutdown(void)
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)
#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 Miniaudio_Update(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 Miniaudio_Init(void)
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 Cmd_ForwardToServer(void)
void SCR_StopCinematic(void)
float Cvar_VariableValue(char *var_name)