42cvar_t r_fixtrans_auto = {
CF_CLIENT,
"r_fixtrans_auto",
"0",
"automatically fixtrans textures (when set to 2, it also saves the fixed versions to a fixtrans directory)"};
59 Con_Printf(
"Can't \"%s\", not connected\n", s);
78 if (*s ==
'%' && s[1])
110 dpsnprintf(temp,
sizeof(temp),
"I need rockets");
202 const char *cvarname;
358 Con_Printf (
"Usage: user <username / userid>\n");
424 Con_Printf (
"packet <destination> <contents>\n");
436 send[0] = send[1] = send[2] = send[3] = -1;
439 for (
i=0 ;
i<l ;
i++)
441 if (out >= send +
sizeof(send) - 1)
443 if (in[
i] ==
'\\' && in[
i+1] ==
'n')
448 else if (in[
i] ==
'\\' && in[
i+1] ==
'0')
453 else if (in[
i] ==
'\\' && in[
i+1] ==
't')
458 else if (in[
i] ==
'\\' && in[
i+1] ==
'r')
463 else if (in[
i] ==
'\\' && in[
i+1] ==
'"')
500 Con_Printf (
"You must set rcon_password before issuing an pqrcon command, and rcon_secure must be 0.\n");
513 Con_Printf (
"You must either be connected, or set the rcon_address cvar to issue rcon commands\n");
522 unsigned char bufdata[64];
558 Con_Printf (
"You must set rcon_password before issuing an rcon command.\n");
571 Con_Printf (
"You must either be connected, or set the rcon_address cvar to issue rcon commands\n");
607 memcpy(
buf,
"\377\377\377\377srcon HMAC-MD4 TIME ", 24);
618 memcpy(
buf,
"\377\377\377\377", 4);
638 Con_Printf (
"usage: fullserverinfo <complete info string>\n");
663 Con_Printf (
"fullinfo <complete info string>\n");
672 size_t len = strcspn(s,
"\\");
673 if (len >=
sizeof(key)) {
674 len =
sizeof(key) - 1;
685 len = strcspn(s,
"\\");
686 if (len >=
sizeof(
value)) {
687 len =
sizeof(
value) - 1;
718 Con_Printf (
"usage: setinfo [ <key> <value> ]\n");
731 for (
i = 0;
i < l;
i++)
735 if(errbyte && *errbyte ==
',')
775 Cmd_AddCommand(
CF_CLIENT,
"rcon",
CL_Rcon_f,
"sends a command to the server console (if your rcon_password matches the server's rcon_password), or to the address specified by rcon_address when not connected (again rcon_password must match the server's); note: if rcon_secure is set, client and server clocks must be synced e.g. via NTP");
776 Cmd_AddCommand(
CF_CLIENT,
"srcon",
CL_Rcon_f,
"sends a command to the server console (if your rcon_password matches the server's rcon_password), or to the address specified by rcon_address when not connected (again rcon_password must match the server's); this always works as if rcon_secure is set; note: client and server clocks must be synced e.g. via NTP");
777 Cmd_AddCommand(
CF_CLIENT,
"pqrcon",
CL_PQRcon_f,
"sends a command to a proquake server console (if your rcon_password matches the server's rcon_password), or to the address specified by rcon_address when not connected (again rcon_password must match the server's)");
static void CL_PQRcon_f(cmd_state_t *cmd)
static void CL_FullInfo_f(cmd_state_t *cmd)
static void CL_SetInfo_f(cmd_state_t *cmd)
static void CL_Color_c(cvar_t *var)
static void CL_Rcon_f(cmd_state_t *cmd)
void CL_ForwardToServer_f(cmd_state_t *cmd)
adds the current command line as a clc_stringcmd to the client message.
static void CL_PingPLReport_f(cmd_state_t *cmd)
static void CL_SendCvar_f(cmd_state_t *cmd)
static void CL_FullServerinfo_f(cmd_state_t *cmd)
static void CL_Color_f(cmd_state_t *cmd)
cvar_t rcon_secure_challengetimeout
void CL_InitCommands(void)
cvar_t cl_name
User-visible names of these CF_USERINFO cvars must be matched in CL_SetInfo()!
static void CL_Topcolor_c(cvar_t *var)
static void CL_Name_f(cmd_state_t *cmd)
static void CL_Users_f(cmd_state_t *cmd)
void CL_ForwardToServer(const char *s)
adds the string as a clc_stringcmd to the client message.
static void CL_Bottomcolor_c(cvar_t *var)
static void CL_Packet_f(cmd_state_t *cmd)
static void CL_User_f(cmd_state_t *cmd)
void CL_Locs_FindLocationName(char *buffer, size_t buffersize, vec3_t point)
void CL_SetInfo(const char *key, const char *value, qbool send, qbool allowstarkey, qbool allowmodel, qbool quiet)
void Cmd_AddCommand(unsigned flags, const char *cmd_name, xcommand_t function, const char *description)
called by the init functions of other parts of the program to register commands and functions to call...
@ src_local
from the command buffer
#define CF_USERINFO
command or cvar used to communicate userinfo to the server
#define CF_SERVER
cvar/command that only the server can change/execute
static int Cmd_Argc(cmd_state_t *cmd)
static const char * Cmd_Argv(cmd_state_t *cmd, int arg)
Cmd_Argv(cmd, ) will return an empty string (not a NULL) if arg > argc, so string operations are alwa...
#define CF_CLIENT
cvar/command that only the client can change/execute
#define CF_CLIENT_FROM_SERVER
command that the server is allowed to execute on the client
static const char * Cmd_Args(cmd_state_t *cmd)
#define CF_ARCHIVE
cvar should have its set value saved to config.cfg and persist across sessions
#define CF_PRIVATE
cvar should not be $ expanded or sent to the server under any circumstances (rcon_password,...
size_t InfoString_GetValue(const char *buffer, const char *key, char *value, size_t valuesize)
Returns the number of bytes written to *value excluding the \0 terminator.
void InfoString_Print(char *buffer)
void MSG_WriteString(sizebuf_t *sb, const char *s)
void MSG_WriteLong(sizebuf_t *sb, int c)
void MSG_WriteByte(sizebuf_t *sb, int c)
void StoreBigLong(unsigned char *buffer, unsigned int i)
Encode a big endian 32bit int to the given buffer.
void SZ_Clear(sizebuf_t *buf)
char * va(char *buf, size_t buflen, const char *format,...)
void SZ_Write(sizebuf_t *buf, const unsigned char *data, int length)
int dpsnprintf(char *buffer, size_t buffersize, const char *format,...)
Returns the number of printed characters, excluding the final '\0' or returns -1 if the buffer isn't ...
@ PROTOCOL_QUAKEWORLD
quakeworld protocol
#define dp_strlcat(dst, src, dsize)
#define dp_strlcpy(dst, src, dsize)
void Con_Print(const char *msg)
Prints to all appropriate console targets, and adds timestamps.
void Con_Printf(const char *fmt,...)
Prints to all appropriate console targets.
void Cvar_SetValueQuick(cvar_t *var, float value)
void Cvar_SetQuick(cvar_t *var, const char *value)
void Cvar_RegisterVariable(cvar_t *variable)
registers a cvar that already has the name, string, and optionally the archive elements set.
cvar_t * Cvar_FindVar(cvar_state_t *cvars, const char *var_name, unsigned neededflags)
void Cvar_RegisterVirtual(cvar_t *variable, const char *name)
void Cvar_RegisterCallback(cvar_t *variable, void(*callback)(cvar_t *))
static int(ZEXPORT *qz_inflate)(z_stream *strm
GLsizei const GLfloat * value
GLenum GLuint GLenum GLsizei const GLchar * buf
#define HMAC_MDFOUR_16BYTES(out, in, n, key, k)
void Image_FixTransparentPixels_f(cmd_state_t *cmd)
int LHNETADDRESS_ToString(const lhnetaddress_t *vaddress, char *string, int stringbuffersize, int includeport)
Returns the number of bytes written to *string excluding the \0 terminator.
int LHNETADDRESS_FromString(lhnetaddress_t *vaddress, const char *string, int defaultport)
int LHNETADDRESS_Compare(const lhnetaddress_t *vaddress1, const lhnetaddress_t *vaddress2)
int NetConn_Write(lhnetsocket_t *mysocket, const void *data, int length, const lhnetaddress_t *peeraddress)
int NetConn_WriteString(lhnetsocket_t *mysocket, const char *string, const lhnetaddress_t *peeraddress)
lhnetsocket_t * NetConn_ChooseClientSocketForAddress(lhnetaddress_t *address)
lhnetsocket_t * NetConn_ChooseServerSocketForAddress(lhnetaddress_t *address)
#define NETFLAG_LENGTH_MASK
#define MAX_INPUTLINE
maximum size of console commandline, QuakeC strings, and many other text processing buffers
#define MAX_SCOREBOARDNAME
max length of player name in game
#define STAT_ITEMS
FTE, DP.
#define IT_GRENADE_LAUNCHER
#define IT_ROCKET_LAUNCHER
#define IT_INVULNERABILITY
char qw_serverinfo[MAX_SERVERINFO_STRING]
lhnetaddress_t rcon_addresses[MAX_RCONS]
double rcon_timeout[MAX_RCONS]
lhnetaddress_t rcon_address
char rcon_commands[MAX_RCONS][MAX_INPUTLINE]
protocolversion_t protocol
char userinfo[MAX_USERINFO_STRING]
command interpreter state - the tokenizing and execution of commands, as well as pointers to which cv...
void(* callback)(struct cvar_s *var)
void(* CL_SendCvar)(struct cmd_state_s *)
double realtime
the accumulated mainloop time since application started (with filtering), without any slowmo or clamp...
struct host_static_t::@12 hook
lhnetaddress_t peeraddress
sizebuf_t message
writing buffer to send to peer as the next reliable message can be added to at any time,...
char name[MAX_SCOREBOARDNAME]
char qw_userinfo[MAX_USERINFO_STRING]