![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "quakedef.h"
#include "hmac.h"
#include "mdfour.h"
#include "image.h"
#include <time.h>
#include "cl_collision.h"
Go to the source code of this file.
Functions | |
static void | CL_Bottomcolor_c (cvar_t *var) |
static void | CL_Color_c (cvar_t *var) |
static void | CL_Color_f (cmd_state_t *cmd) |
void | CL_ForwardToServer (const char *s) |
adds the string as a clc_stringcmd to the client message. | |
void | CL_ForwardToServer_f (cmd_state_t *cmd) |
adds the current command line as a clc_stringcmd to the client message. | |
static void | CL_FullInfo_f (cmd_state_t *cmd) |
static void | CL_FullServerinfo_f (cmd_state_t *cmd) |
void | CL_InitCommands (void) |
static void | CL_Name_f (cmd_state_t *cmd) |
static void | CL_Packet_f (cmd_state_t *cmd) |
static void | CL_PingPLReport_f (cmd_state_t *cmd) |
static void | CL_PQRcon_f (cmd_state_t *cmd) |
static void | CL_Rcon_f (cmd_state_t *cmd) |
static void | CL_SendCvar_f (cmd_state_t *cmd) |
static void | CL_SetInfo_f (cmd_state_t *cmd) |
static void | CL_Topcolor_c (cvar_t *var) |
static void | CL_User_f (cmd_state_t *cmd) |
static void | CL_Users_f (cmd_state_t *cmd) |
Variables | |
cvar_t | cl_bottomcolor = {CF_CLIENT | CF_ARCHIVE | CF_USERINFO, "bottomcolor", "0", "color of your pants"} |
cvar_t | cl_color = {CF_CLIENT | CF_ARCHIVE, "_cl_color", "0", "internal storage cvar for current player colors (changed by color command)"} |
cvar_t | cl_name = {CF_CLIENT | CF_ARCHIVE | CF_USERINFO, "_cl_name", "player", "player name"} |
User-visible names of these CF_USERINFO cvars must be matched in CL_SetInfo()! | |
cvar_t | cl_noaim = {CF_CLIENT | CF_USERINFO | CF_ARCHIVE, "noaim", "1", "QW option to disable vertical autoaim"} |
cvar_t | cl_pmodel = {CF_CLIENT | CF_USERINFO | CF_ARCHIVE, "pmodel", "0", "current player model number in nehahra"} |
cvar_t | cl_rate = {CF_CLIENT | CF_ARCHIVE | CF_USERINFO, "rate", "20000", "connection speed"} |
cvar_t | cl_rate_burstsize = {CF_CLIENT | CF_ARCHIVE | CF_USERINFO, "rate_burstsize", "1024", "rate control burst size"} |
cvar_t | cl_skin = {CF_CLIENT | CF_USERINFO | CF_ARCHIVE, "skin", "", "QW player skin name (example: base)"} |
cvar_t | cl_team = {CF_CLIENT | CF_USERINFO | CF_ARCHIVE, "team", "none", "QW team (4 character limit, example: blue)"} |
cvar_t | cl_topcolor = {CF_CLIENT | CF_ARCHIVE | CF_USERINFO, "topcolor", "0", "color of your shirt"} |
cvar_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)"} |
cvar_t | rcon_secure |
cvar_t | rcon_secure_challengetimeout |
Definition at line 282 of file cl_cmd.c.
References cvar_t::callback, cl_color, cl_topcolor, Cvar_SetQuick(), cvar_t::integer, NULL, va(), and void().
Referenced by CL_InitCommands().
Definition at line 255 of file cl_cmd.c.
References cvar_t::callback, cl_bottomcolor, cl_topcolor, Cvar_SetQuick(), cvar_t::integer, NULL, va(), and void().
Referenced by CL_InitCommands().
|
static |
Definition at line 293 of file cl_cmd.c.
References cl_bottomcolor, cl_topcolor, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Print(), Con_Printf(), Cvar_SetValueQuick(), cvar_t::integer, and src_local.
Referenced by CL_InitCommands().
void CL_ForwardToServer | ( | const char * | s | ) |
adds the string as a clc_stringcmd to the client message.
(used when there is no reason to generate a local command to do it)
Definition at line 54 of file cl_cmd.c.
References ca_connected, cl, cl_locs_enable, CL_Locs_FindLocationName(), clc_stringcmd, cls, Con_Printf(), dp_strlcat, dpsnprintf(), floor(), cvar_t::integer, IT_GRENADE_LAUNCHER, IT_INVISIBILITY, IT_INVULNERABILITY, IT_LIGHTNING, IT_NAILGUN, IT_QUAD, IT_ROCKET_LAUNCHER, IT_SUPER_NAILGUN, IT_SUPER_SHOTGUN, client_state_t::lastdeathorigin, netconn_t::message, client_state_t::movement_origin, MSG_WriteByte(), client_static_t::netcon, client_static_t::protocol, PROTOCOL_QUAKEWORLD, qw_clc_stringcmd, STAT_ARMOR, STAT_CELLS, STAT_HEALTH, STAT_ITEMS, STAT_ROCKETS, client_static_t::state, client_state_t::stats, strlen(), SZ_Write(), and client_state_t::time.
Referenced by CL_BeginDownloads(), CL_DownloadBegin_f(), CL_ForwardToServer_f(), CL_SendCvar_f(), Key_Message(), and NetConn_ConnectionEstablished().
void CL_ForwardToServer_f | ( | cmd_state_t * | cmd | ) |
adds the current command line as a clc_stringcmd to the client message.
things like godmode, noclip, etc, are commands directed to the server, so when they are typed in at the console, they will need to be forwarded.
Definition at line 174 of file cl_cmd.c.
References CL_ForwardToServer(), cmd(), Cmd_Argc(), Cmd_Args(), Cmd_Argv(), dpsnprintf(), i, and MAX_INPUTLINE.
Referenced by CL_InitCommands(), and Cmd_CL_Callback().
|
static |
Definition at line 655 of file cl_cmd.c.
References CL_SetInfo(), cmd(), Cmd_Argc(), Cmd_Argv(), Con_Printf(), dp_strlcpy, and value.
Referenced by CL_InitCommands().
|
static |
Definition at line 633 of file cl_cmd.c.
References cl, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Printf(), dp_strlcpy, InfoString_GetValue(), client_state_t::qw_serverinfo, and client_state_t::qw_teamplay.
Referenced by CL_InitCommands().
Definition at line 742 of file cl_cmd.c.
References CF_CLIENT, CF_CLIENT_FROM_SERVER, CF_SHARED, cl_bottomcolor, CL_Bottomcolor_c(), cl_color, CL_Color_c(), CL_Color_f(), CL_ForwardToServer_f(), CL_FullInfo_f(), CL_FullServerinfo_f(), cl_name, CL_Name_f(), cl_noaim, CL_Packet_f(), CL_PingPLReport_f(), cl_pmodel, CL_PQRcon_f(), cl_rate, cl_rate_burstsize, CL_Rcon_f(), host_static_t::CL_SendCvar, CL_SendCvar_f(), CL_SetInfo_f(), cl_skin, cl_team, cl_topcolor, CL_Topcolor_c(), CL_User_f(), CL_Users_f(), cls, Cmd_AddCommand(), Cvar_RegisterCallback(), Cvar_RegisterVariable(), Cvar_RegisterVirtual(), dpsnprintf(), host_static_t::hook, host, Image_FixTransparentPixels_f(), r_fixtrans_auto, and client_static_t::userinfo.
Referenced by CL_Init().
|
static |
Definition at line 228 of file cl_cmd.c.
References cl_name, cmd(), Cmd_Argc(), Cmd_Args(), Cmd_Argv(), Con_Printf(), Cvar_SetQuick(), MAX_SCOREBOARDNAME, cvar_t::string, and strlen().
Referenced by CL_InitCommands().
|
static |
Definition at line 413 of file cl_cmd.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), Con_Printf(), i, int(), cvar_t::integer, LHNETADDRESS_FromString(), NetConn_ChooseClientSocketForAddress(), NetConn_ChooseServerSocketForAddress(), NetConn_Write(), strlen(), and sv_netport.
Referenced by CL_InitCommands().
|
static |
Definition at line 724 of file cl_cmd.c.
References cl, cmd(), Cmd_Argc(), Cmd_Argv(), i, client_state_t::maxclients, scoreboard_t::qw_movementloss, scoreboard_t::qw_packetloss, scoreboard_t::qw_ping, and client_state_t::scores.
Referenced by CL_InitCommands().
|
static |
Definition at line 486 of file cl_cmd.c.
References buf, CCREQ_RCON, cls, cmd(), Cmd_Argc(), Cmd_Args(), Cmd_Argv(), Con_Printf(), int(), cvar_t::integer, LHNETADDRESS_FromString(), MSG_WriteByte(), MSG_WriteLong(), MSG_WriteString(), n, client_static_t::netcon, NetConn_ChooseClientSocketForAddress(), NetConn_Write(), NETFLAG_CTL, NETFLAG_LENGTH_MASK, netconn_t::peeraddress, client_static_t::rcon_address, rcon_address, rcon_password, rcon_secure, StoreBigLong(), cvar_t::string, strlen(), sv_netport, SZ_Clear(), and SZ_Write().
Referenced by CL_InitCommands().
|
static |
Definition at line 544 of file cl_cmd.c.
References buf, cls, cmd(), Cmd_Argc(), Cmd_Args(), Cmd_Argv(), Con_Printf(), dp_strlcpy, dpsnprintf(), HMAC_MDFOUR_16BYTES, host, i, int(), cvar_t::integer, LHNETADDRESS_Compare(), LHNETADDRESS_FromString(), LHNETADDRESS_ToString(), MAX_RCONS, n, client_static_t::netcon, NetConn_ChooseClientSocketForAddress(), NetConn_Write(), NetConn_WriteString(), NULL, netconn_t::peeraddress, client_static_t::rcon_address, rcon_address, client_static_t::rcon_addresses, client_static_t::rcon_commands, rcon_password, client_static_t::rcon_ringpos, rcon_secure, rcon_secure_challengetimeout, client_static_t::rcon_timeout, client_static_t::rcon_trying, host_static_t::realtime, cvar_t::string, strlen(), sv_netport, time, and cvar_t::value.
Referenced by CL_InitCommands().
|
static |
Definition at line 199 of file cl_cmd.c.
References ca_connected, CF_CLIENT, CF_PRIVATE, CF_SERVER, CL_ForwardToServer(), cls, cmd(), Cmd_Argc(), Cmd_Argv(), Cvar_FindVar(), cvars_all, cvar_t::flags, cvar_t::name, client_static_t::state, cvar_t::string, and va().
Referenced by CL_InitCommands().
|
static |
Definition at line 709 of file cl_cmd.c.
References CL_SetInfo(), cls, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Printf(), InfoString_Print(), and client_static_t::userinfo.
Referenced by CL_InitCommands().
Definition at line 271 of file cl_cmd.c.
References cvar_t::callback, cl_bottomcolor, cl_color, Cvar_SetQuick(), cvar_t::integer, NULL, va(), and void().
Referenced by CL_InitCommands().
|
static |
Definition at line 351 of file cl_cmd.c.
References cl, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Printf(), i, InfoString_Print(), client_state_t::maxclients, scoreboard_t::name, scoreboard_t::qw_userid, scoreboard_t::qw_userinfo, and client_state_t::scores.
Referenced by CL_InitCommands().
|
static |
Definition at line 384 of file cl_cmd.c.
References cl, Con_Printf(), scoreboard_t::frags, i, client_state_t::maxclients, scoreboard_t::name, scoreboard_t::qw_userid, and client_state_t::scores.
Referenced by CL_InitCommands().
cvar_t cl_bottomcolor = {CF_CLIENT | CF_ARCHIVE | CF_USERINFO, "bottomcolor", "0", "color of your pants"} |
Definition at line 36 of file cl_cmd.c.
Referenced by CL_Color_c(), CL_Color_f(), CL_InitCommands(), CL_SendPlayerInfo(), CL_SetInfo(), CL_Topcolor_c(), and M_Menu_Setup_f().
cvar_t cl_color = {CF_CLIENT | CF_ARCHIVE, "_cl_color", "0", "internal storage cvar for current player colors (changed by color command)"} |
Definition at line 252 of file cl_cmd.c.
Referenced by CL_Bottomcolor_c(), CL_InitCommands(), and CL_Topcolor_c().
cvar_t cl_name = {CF_CLIENT | CF_ARCHIVE | CF_USERINFO, "_cl_name", "player", "player name"} |
User-visible names of these CF_USERINFO cvars must be matched in CL_SetInfo()!
Definition at line 32 of file cl_cmd.c.
Referenced by CL_InitCommands(), CL_Name_f(), CL_SendPlayerInfo(), M_Menu_Setup_f(), M_Setup_Key(), and SV_Kick_f().
cvar_t cl_noaim = {CF_CLIENT | CF_USERINFO | CF_ARCHIVE, "noaim", "1", "QW option to disable vertical autoaim"} |
cvar_t cl_pmodel = {CF_CLIENT | CF_USERINFO | CF_ARCHIVE, "pmodel", "0", "current player model number in nehahra"} |
cvar_t cl_rate = {CF_CLIENT | CF_ARCHIVE | CF_USERINFO, "rate", "20000", "connection speed"} |
Definition at line 33 of file cl_cmd.c.
Referenced by CL_InitCommands(), CL_SendMove(), CL_SendPlayerInfo(), M_Menu_Setup_f(), NetConn_ReceivedMessage(), and SCR_DrawNetGraph().
cvar_t cl_rate_burstsize = {CF_CLIENT | CF_ARCHIVE | CF_USERINFO, "rate_burstsize", "1024", "rate control burst size"} |
Definition at line 34 of file cl_cmd.c.
Referenced by CL_InitCommands(), CL_SendMove(), CL_SendPlayerInfo(), and NetConn_ReceivedMessage().
cvar_t cl_skin = {CF_CLIENT | CF_USERINFO | CF_ARCHIVE, "skin", "", "QW player skin name (example: base)"} |
cvar_t cl_team = {CF_CLIENT | CF_USERINFO | CF_ARCHIVE, "team", "none", "QW team (4 character limit, example: blue)"} |
Definition at line 37 of file cl_cmd.c.
Referenced by CL_InitCommands().
cvar_t cl_topcolor = {CF_CLIENT | CF_ARCHIVE | CF_USERINFO, "topcolor", "0", "color of your shirt"} |
Definition at line 35 of file cl_cmd.c.
Referenced by CL_Bottomcolor_c(), CL_Color_c(), CL_Color_f(), CL_InitCommands(), CL_SendPlayerInfo(), CL_SetInfo(), and M_Menu_Setup_f().
cvar_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)"} |
Definition at line 42 of file cl_cmd.c.
Referenced by CL_InitCommands(), and loadimagepixelsbgra().
|
extern |
|
extern |
Definition at line 91 of file console.c.
Referenced by CL_Rcon_f().