mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
cvars now sport a callback function that gets called whenever the cvar changes
or on initial get.
This commit is contained in:
parent
4162243287
commit
e939ccc40a
101 changed files with 680 additions and 669 deletions
|
@ -37,6 +37,7 @@ typedef struct cvar_s
|
|||
char *name;
|
||||
char *string;
|
||||
int flags;
|
||||
void (*callback)(struct cvar_s *var);
|
||||
char *description; // for "help" command
|
||||
float value;
|
||||
int int_val;
|
||||
|
@ -73,7 +74,8 @@ typedef struct cvar_alias_s
|
|||
|
||||
// Returns the Cvar if found, creates it with value if not. Description and
|
||||
// flags are always updated.
|
||||
cvar_t *Cvar_Get (char *name, char *value, int cvarflags, char *description);
|
||||
cvar_t *Cvar_Get (char *name, char *value, int cvarflags,
|
||||
void (*callback)(cvar_t*), char *description);
|
||||
|
||||
cvar_t *Cvar_FindAlias (char *alias_name);
|
||||
|
||||
|
|
|
@ -1205,7 +1205,7 @@ void
|
|||
PR_Init_Cvars (void)
|
||||
{
|
||||
pr_boundscheck =
|
||||
Cvar_Get ("pr_boundscheck", "1", CVAR_NONE,
|
||||
Cvar_Get ("pr_boundscheck", "1", CVAR_NONE, 0,
|
||||
"Server progs bounds checking");
|
||||
}
|
||||
|
||||
|
|
|
@ -176,8 +176,6 @@ Cvar_CompleteVariable (char *partial)
|
|||
}
|
||||
|
||||
|
||||
void Cvar_Info (cvar_t *var);
|
||||
|
||||
/*
|
||||
Cvar_Set
|
||||
*/
|
||||
|
@ -202,8 +200,8 @@ Cvar_Set (cvar_t *var, char *value)
|
|||
var->int_val = atoi (var->string);
|
||||
sscanf (var->string, "%f %f %f", &var->vec[0], &var->vec[1], &var->vec[2]);
|
||||
|
||||
if (changed)
|
||||
Cvar_Info (var);
|
||||
if (changed && var->callback)
|
||||
var->callback (var);
|
||||
}
|
||||
|
||||
|
||||
|
@ -228,8 +226,8 @@ Cvar_SetROM (cvar_t *var, char *value)
|
|||
var->int_val = atoi (var->string);
|
||||
sscanf (var->string, "%f %f %f", &var->vec[0], &var->vec[1], &var->vec[2]);
|
||||
|
||||
if (changed)
|
||||
Cvar_Info (var);
|
||||
if (changed && var->callback)
|
||||
var->callback (var);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -318,7 +316,7 @@ Cvar_Set_f (void)
|
|||
Cvar_Set (var, value);
|
||||
}
|
||||
} else {
|
||||
var = Cvar_Get (var_name, value, CVAR_USER_CREATED,
|
||||
var = Cvar_Get (var_name, value, CVAR_USER_CREATED, 0,
|
||||
"User-created cvar");
|
||||
}
|
||||
}
|
||||
|
@ -349,7 +347,7 @@ Cvar_Setrom_f (void)
|
|||
Cvar_SetFlags (var, var->flags | CVAR_ROM);
|
||||
}
|
||||
} else {
|
||||
var = Cvar_Get (var_name, value, CVAR_USER_CREATED | CVAR_ROM,
|
||||
var = Cvar_Get (var_name, value, CVAR_USER_CREATED | CVAR_ROM, 0,
|
||||
"User-created READ-ONLY Cvar");
|
||||
}
|
||||
}
|
||||
|
@ -462,7 +460,7 @@ Cvar_Init_Hash (void)
|
|||
void
|
||||
Cvar_Init (void)
|
||||
{
|
||||
developer = Cvar_Get ("developer", "0", 0, "set to enable extra debugging information");
|
||||
developer = Cvar_Get ("developer", "0", CVAR_NONE, 0, "set to enable extra debugging information");
|
||||
|
||||
Cmd_AddCommand ("set", Cvar_Set_f, "Set the selected variable, useful on the command line (+set variablename setting)");
|
||||
Cmd_AddCommand ("setrom", Cvar_Setrom_f, "Set the selected variable and make it read only, useful on the command line.\n"
|
||||
|
@ -499,7 +497,8 @@ Cvar_Shutdown (void)
|
|||
|
||||
|
||||
cvar_t *
|
||||
Cvar_Get (char *name, char *string, int cvarflags, char *description)
|
||||
Cvar_Get (char *name, char *string, int cvarflags, void (*callback)(cvar_t*),
|
||||
char *description)
|
||||
{
|
||||
|
||||
cvar_t *var;
|
||||
|
@ -517,6 +516,7 @@ Cvar_Get (char *name, char *string, int cvarflags, char *description)
|
|||
var->name = strdup (name);
|
||||
var->string = strdup (string);
|
||||
var->flags = cvarflags;
|
||||
var->callback = callback;
|
||||
var->description = description;
|
||||
var->value = atof (var->string);
|
||||
var->int_val = atoi (var->string);
|
||||
|
@ -533,9 +533,11 @@ Cvar_Get (char *name, char *string, int cvarflags, char *description)
|
|||
// Cvar does exist, so we update the flags and return.
|
||||
var->flags &= ~CVAR_USER_CREATED;
|
||||
var->flags |= cvarflags;
|
||||
var->callback = callback;
|
||||
var->description = description;
|
||||
}
|
||||
Cvar_Info (var);
|
||||
if (var->callback)
|
||||
var->callback (var);
|
||||
|
||||
return var;
|
||||
}
|
||||
|
|
|
@ -1037,11 +1037,11 @@ COM_Filesystem_Init (void)
|
|||
void
|
||||
COM_Filesystem_Init_Cvars (void)
|
||||
{
|
||||
fs_sharepath = Cvar_Get ("fs_sharepath", FS_SHAREPATH, CVAR_ROM,
|
||||
fs_sharepath = Cvar_Get ("fs_sharepath", FS_SHAREPATH, CVAR_ROM, 0,
|
||||
"location of shared (read only) game directories");
|
||||
fs_userpath = Cvar_Get ("fs_userpath", FS_USERPATH, CVAR_ROM,
|
||||
fs_userpath = Cvar_Get ("fs_userpath", FS_USERPATH, CVAR_ROM, 0,
|
||||
"location of your game directories");
|
||||
fs_basegame = Cvar_Get ("fs_basegame", "id1", CVAR_ROM,
|
||||
fs_basegame = Cvar_Get ("fs_basegame", "id1", CVAR_ROM, 0,
|
||||
"game to use by default");
|
||||
}
|
||||
|
||||
|
|
|
@ -408,4 +408,6 @@ void V_SetContentsColor (int contents);
|
|||
void CL_InitTEnts (void);
|
||||
void CL_SignonReply (void);
|
||||
|
||||
void Cvar_Info (struct cvar_s *var);
|
||||
|
||||
#endif // __client_h
|
||||
|
|
|
@ -299,4 +299,6 @@ void SV_LoadProgs (void);
|
|||
void SV_Progs_Init (void);
|
||||
void SV_Progs_Init_Cvars (void);
|
||||
|
||||
void Cvar_Info (struct cvar_s *var);
|
||||
|
||||
#endif // __server_h
|
||||
|
|
|
@ -52,10 +52,10 @@ vec3_t chase_dest_angles;
|
|||
void
|
||||
Chase_Init (void)
|
||||
{
|
||||
chase_back = Cvar_Get ("chase_back", "100", CVAR_NONE, "None");
|
||||
chase_up = Cvar_Get ("chase_up", "16", CVAR_NONE, "None");
|
||||
chase_right = Cvar_Get ("chase_right", "0", CVAR_NONE, "None");
|
||||
chase_active = Cvar_Get ("chase_active", "0", CVAR_NONE, "None");
|
||||
chase_back = Cvar_Get ("chase_back", "100", CVAR_NONE, 0, "None");
|
||||
chase_up = Cvar_Get ("chase_up", "16", CVAR_NONE, 0, "None");
|
||||
chase_right = Cvar_Get ("chase_right", "0", CVAR_NONE, 0, "None");
|
||||
chase_active = Cvar_Get ("chase_active", "0", CVAR_NONE, 0, "None");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -89,59 +89,59 @@ void
|
|||
CL_InitCvars (void)
|
||||
{
|
||||
show_fps =
|
||||
Cvar_Get ("show_fps", "0", CVAR_NONE,
|
||||
Cvar_Get ("show_fps", "0", CVAR_NONE, 0,
|
||||
"display realtime frames per second");
|
||||
// Misty: I like to be able to see the time when I play
|
||||
show_time = Cvar_Get ("show_time", "0", CVAR_NONE,
|
||||
show_time = Cvar_Get ("show_time", "0", CVAR_NONE, 0,
|
||||
"display the current time");
|
||||
cl_warncmd =
|
||||
Cvar_Get ("cl_warncmd", "0", CVAR_NONE,
|
||||
Cvar_Get ("cl_warncmd", "0", CVAR_NONE, 0,
|
||||
"inform when execing a command");
|
||||
cl_name = Cvar_Get ("_cl_name", "player", CVAR_ARCHIVE, "Player name");
|
||||
cl_color = Cvar_Get ("_cl_color", "0", CVAR_ARCHIVE, "Player color");
|
||||
cl_name = Cvar_Get ("_cl_name", "player", CVAR_ARCHIVE, 0, "Player name");
|
||||
cl_color = Cvar_Get ("_cl_color", "0", CVAR_ARCHIVE, 0, "Player color");
|
||||
cl_upspeed =
|
||||
Cvar_Get ("cl_upspeed", "200", CVAR_NONE, "swim/fly up/down speed");
|
||||
Cvar_Get ("cl_upspeed", "200", CVAR_NONE, 0, "swim/fly up/down speed");
|
||||
cl_forwardspeed =
|
||||
Cvar_Get ("cl_forwardspeed", "200", CVAR_ARCHIVE, "forward speed");
|
||||
Cvar_Get ("cl_forwardspeed", "200", CVAR_ARCHIVE, 0, "forward speed");
|
||||
cl_backspeed =
|
||||
Cvar_Get ("cl_backspeed", "200", CVAR_ARCHIVE, "backward speed");
|
||||
cl_sidespeed = Cvar_Get ("cl_sidespeed", "350", CVAR_NONE, "strafe speed");
|
||||
Cvar_Get ("cl_backspeed", "200", CVAR_ARCHIVE, 0, "backward speed");
|
||||
cl_sidespeed = Cvar_Get ("cl_sidespeed", "350", CVAR_NONE, 0, "strafe speed");
|
||||
cl_movespeedkey =
|
||||
Cvar_Get ("cl_movespeedkey", "2.0", CVAR_NONE,
|
||||
Cvar_Get ("cl_movespeedkey", "2.0", CVAR_NONE, 0,
|
||||
"move `run' speed multiplier");
|
||||
cl_yawspeed = Cvar_Get ("cl_yawspeed", "140", CVAR_NONE, "turning speed");
|
||||
cl_yawspeed = Cvar_Get ("cl_yawspeed", "140", CVAR_NONE, 0, "turning speed");
|
||||
cl_pitchspeed =
|
||||
Cvar_Get ("cl_pitchspeed", "150", CVAR_NONE, "look up/down speed");
|
||||
Cvar_Get ("cl_pitchspeed", "150", CVAR_NONE, 0, "look up/down speed");
|
||||
cl_anglespeedkey =
|
||||
Cvar_Get ("cl_anglespeedkey", "1.5", CVAR_NONE,
|
||||
Cvar_Get ("cl_anglespeedkey", "1.5", CVAR_NONE, 0,
|
||||
"turn `run' speed multiplier");
|
||||
cl_shownet =
|
||||
Cvar_Get ("cl_shownet", "0", CVAR_NONE,
|
||||
Cvar_Get ("cl_shownet", "0", CVAR_NONE, 0,
|
||||
"show network packets. 0=off, 1=basic, 2=verbose");
|
||||
cl_nolerp =
|
||||
Cvar_Get ("cl_nolerp", "0", CVAR_NONE, "linear motion interpolation");
|
||||
cl_sbar = Cvar_Get ("cl_sbar", "0", CVAR_ARCHIVE, "status bar mode");
|
||||
Cvar_Get ("cl_nolerp", "0", CVAR_NONE, 0, "linear motion interpolation");
|
||||
cl_sbar = Cvar_Get ("cl_sbar", "0", CVAR_ARCHIVE, 0, "status bar mode");
|
||||
cl_hudswap =
|
||||
Cvar_Get ("cl_hudswap", "0", CVAR_ARCHIVE, "new HUD on left side?");
|
||||
cl_freelook = Cvar_Get ("freelook", "0", CVAR_ARCHIVE, "force +mlook");
|
||||
Cvar_Get ("cl_hudswap", "0", CVAR_ARCHIVE, 0, "new HUD on left side?");
|
||||
cl_freelook = Cvar_Get ("freelook", "0", CVAR_ARCHIVE, 0, "force +mlook");
|
||||
lookspring =
|
||||
Cvar_Get ("lookspring", "0", CVAR_ARCHIVE,
|
||||
Cvar_Get ("lookspring", "0", CVAR_ARCHIVE, 0,
|
||||
"Snap view to center when moving and no mlook/klook");
|
||||
lookstrafe =
|
||||
Cvar_Get ("lookstrafe", "0", CVAR_ARCHIVE,
|
||||
Cvar_Get ("lookstrafe", "0", CVAR_ARCHIVE, 0,
|
||||
"when mlook/klook on player will strafe");
|
||||
sensitivity =
|
||||
Cvar_Get ("sensitivity", "3", CVAR_ARCHIVE,
|
||||
Cvar_Get ("sensitivity", "3", CVAR_ARCHIVE, 0,
|
||||
"mouse sensitivity multiplier");
|
||||
m_pitch =
|
||||
Cvar_Get ("m_pitch", "0.022", CVAR_ARCHIVE,
|
||||
Cvar_Get ("m_pitch", "0.022", CVAR_ARCHIVE, 0,
|
||||
"mouse pitch (up/down) multipier");
|
||||
m_yaw =
|
||||
Cvar_Get ("m_yaw", "0.022", CVAR_ARCHIVE,
|
||||
Cvar_Get ("m_yaw", "0.022", CVAR_ARCHIVE, 0,
|
||||
"mouse yaw (left/right) multipiler");
|
||||
m_forward =
|
||||
Cvar_Get ("m_forward", "1", CVAR_ARCHIVE, "mouse forward/back speed");
|
||||
m_side = Cvar_Get ("m_side", "0.8", CVAR_ARCHIVE, "mouse strafe speed");
|
||||
Cvar_Get ("m_forward", "1", CVAR_ARCHIVE, 0, "mouse forward/back speed");
|
||||
m_side = Cvar_Get ("m_side", "0.8", CVAR_ARCHIVE, 0, "mouse strafe speed");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
#include "game.h"
|
||||
#include "QF/cmd.h"
|
||||
|
||||
void Cvar_Info (struct cvar_s *var);
|
||||
|
||||
cvar_t *registered;
|
||||
cvar_t *cmdline;
|
||||
int static_registered = 1;
|
||||
|
@ -80,8 +82,8 @@ COM_Init
|
|||
void
|
||||
COM_Init ()
|
||||
{
|
||||
registered = Cvar_Get ("registered", "0", CVAR_NONE, "None");
|
||||
cmdline = Cvar_Get ("cmdline", "0", CVAR_SERVERINFO, "None");
|
||||
registered = Cvar_Get ("registered", "0", CVAR_NONE, 0, "None");
|
||||
cmdline = Cvar_Get ("cmdline", "0", CVAR_SERVERINFO, Cvar_Info, "None");
|
||||
Cmd_AddCommand ("path", COM_Path_f, "No Description");
|
||||
|
||||
COM_Filesystem_Init_Cvars ();
|
||||
|
|
|
@ -271,7 +271,7 @@ void
|
|||
Con_Init_Cvars (void)
|
||||
{
|
||||
con_notifytime =
|
||||
Cvar_Get ("con_notifytime", "3", CVAR_NONE,
|
||||
Cvar_Get ("con_notifytime", "3", CVAR_NONE, 0,
|
||||
"How long in seconds messages are displayed on screen");
|
||||
}
|
||||
|
||||
|
|
|
@ -292,7 +292,7 @@ x11_set_vidmode (int width, int height)
|
|||
void
|
||||
x11_Init_Cvars ()
|
||||
{
|
||||
vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", CVAR_ROM,
|
||||
vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, 0,
|
||||
"Toggles fullscreen game mode");
|
||||
}
|
||||
|
||||
|
|
|
@ -62,9 +62,9 @@ D_Init (void)
|
|||
|
||||
r_skydirect = 1;
|
||||
|
||||
d_subdiv16 = Cvar_Get ("d_subdiv16", "1", CVAR_NONE, "None");
|
||||
d_mipcap = Cvar_Get ("d_mipcap", "0", CVAR_NONE, "None");
|
||||
d_mipscale = Cvar_Get ("d_mipscale", "1", CVAR_NONE, "None");
|
||||
d_subdiv16 = Cvar_Get ("d_subdiv16", "1", CVAR_NONE, 0, "None");
|
||||
d_mipcap = Cvar_Get ("d_mipcap", "0", CVAR_NONE, 0, "None");
|
||||
d_mipscale = Cvar_Get ("d_mipscale", "1", CVAR_NONE, 0, "None");
|
||||
|
||||
r_drawpolys = false;
|
||||
r_worldpolysbacktofront = false;
|
||||
|
|
|
@ -415,32 +415,32 @@ Draw_Init (void)
|
|||
int i;
|
||||
|
||||
// LordHavoc: lighting mode
|
||||
gl_lightmode = Cvar_Get ("gl_lightmode", "0", CVAR_ARCHIVE,
|
||||
gl_lightmode = Cvar_Get ("gl_lightmode", "0", CVAR_ARCHIVE, 0,
|
||||
"Lighting mode (0 = GLQuake style, 1 = new style)");
|
||||
gl_nobind = Cvar_Get ("gl_nobind", "0", CVAR_NONE,
|
||||
gl_nobind = Cvar_Get ("gl_nobind", "0", CVAR_NONE, 0,
|
||||
"whether or not to inhibit texture binding");
|
||||
gl_max_size = Cvar_Get ("gl_max_size", "1024", CVAR_NONE, "None"); // CVAR_FIXME
|
||||
gl_max_size = Cvar_Get ("gl_max_size", "1024", CVAR_NONE, 0, "None"); // CVAR_FIXME
|
||||
//
|
||||
//
|
||||
// -
|
||||
// set
|
||||
// a
|
||||
// description
|
||||
gl_picmip = Cvar_Get ("gl_picmip", "0", CVAR_NONE, "None"); // CVAR_FIXME
|
||||
gl_picmip = Cvar_Get ("gl_picmip", "0", CVAR_NONE, 0, "None"); // CVAR_FIXME
|
||||
//
|
||||
//
|
||||
// - set a
|
||||
// description
|
||||
|
||||
// Console effects --KB
|
||||
gl_constretch = Cvar_Get ("gl_constretch", "0", CVAR_ARCHIVE,
|
||||
gl_constretch = Cvar_Get ("gl_constretch", "0", CVAR_ARCHIVE, 0,
|
||||
"whether slide the console or stretch it");
|
||||
gl_conalpha = Cvar_Get ("gl_conalpha", "0.6", CVAR_ARCHIVE,
|
||||
gl_conalpha = Cvar_Get ("gl_conalpha", "0.6", CVAR_ARCHIVE, 0,
|
||||
"alpha value for the console background");
|
||||
gl_conspin = Cvar_Get ("gl_conspin", "0", CVAR_ARCHIVE,
|
||||
gl_conspin = Cvar_Get ("gl_conspin", "0", CVAR_ARCHIVE, 0,
|
||||
"speed at which the console spins");
|
||||
|
||||
cl_verstring = Cvar_Get ("cl_verstring", PROGRAM " " VERSION, CVAR_NONE,
|
||||
cl_verstring = Cvar_Get ("cl_verstring", PROGRAM " " VERSION, CVAR_NONE, 0,
|
||||
"client version string");
|
||||
|
||||
// 3dfx can only handle 256 wide textures
|
||||
|
|
|
@ -246,50 +246,50 @@ R_Init (void)
|
|||
|
||||
Cmd_AddCommand ("r_firecolor", R_FireColor_f, "No Description");
|
||||
|
||||
r_norefresh = Cvar_Get ("r_norefresh", "0", CVAR_NONE, "None");
|
||||
r_lightmap = Cvar_Get ("r_lightmap", "0", CVAR_NONE, "None");
|
||||
r_fullbright = Cvar_Get ("r_fullbright", "0", CVAR_NONE, "None");
|
||||
r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, "None");
|
||||
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_NONE, "None");
|
||||
r_shadows = Cvar_Get ("r_shadows", "0", CVAR_NONE, "None");
|
||||
r_mirroralpha = Cvar_Get ("r_mirroralpha", "1", CVAR_NONE, "None");
|
||||
r_wateralpha = Cvar_Get ("r_wateralpha", "1", CVAR_NONE, "None");
|
||||
r_waterripple = Cvar_Get ("r_waterripple", "0", CVAR_NONE, "None");
|
||||
r_dynamic = Cvar_Get ("r_dynamic", "1", CVAR_NONE, "None");
|
||||
r_novis = Cvar_Get ("r_novis", "0", CVAR_NONE, "None");
|
||||
r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, "None");
|
||||
r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, "None");
|
||||
r_norefresh = Cvar_Get ("r_norefresh", "0", CVAR_NONE, 0, "None");
|
||||
r_lightmap = Cvar_Get ("r_lightmap", "0", CVAR_NONE, 0, "None");
|
||||
r_fullbright = Cvar_Get ("r_fullbright", "0", CVAR_NONE, 0, "None");
|
||||
r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, 0, "None");
|
||||
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_NONE, 0, "None");
|
||||
r_shadows = Cvar_Get ("r_shadows", "0", CVAR_NONE, 0, "None");
|
||||
r_mirroralpha = Cvar_Get ("r_mirroralpha", "1", CVAR_NONE, 0, "None");
|
||||
r_wateralpha = Cvar_Get ("r_wateralpha", "1", CVAR_NONE, 0, "None");
|
||||
r_waterripple = Cvar_Get ("r_waterripple", "0", CVAR_NONE, 0, "None");
|
||||
r_dynamic = Cvar_Get ("r_dynamic", "1", CVAR_NONE, 0, "None");
|
||||
r_novis = Cvar_Get ("r_novis", "0", CVAR_NONE, 0, "None");
|
||||
r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, 0, "None");
|
||||
r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, 0, "None");
|
||||
|
||||
gl_clear = Cvar_Get ("gl_clear", "0", CVAR_NONE, "None");
|
||||
gl_texsort = Cvar_Get ("gl_texsort", "1", CVAR_NONE, "None");
|
||||
gl_clear = Cvar_Get ("gl_clear", "0", CVAR_NONE, 0, "None");
|
||||
gl_texsort = Cvar_Get ("gl_texsort", "1", CVAR_NONE, 0, "None");
|
||||
|
||||
gl_cull = Cvar_Get ("gl_cull", "1", CVAR_NONE, "None");
|
||||
gl_smoothmodels = Cvar_Get ("gl_smoothmodels", "1", CVAR_NONE, "None");
|
||||
gl_affinemodels = Cvar_Get ("gl_affinemodels", "0", CVAR_NONE, "None");
|
||||
gl_polyblend = Cvar_Get ("gl_polyblend", "1", CVAR_NONE, "None");
|
||||
gl_flashblend = Cvar_Get ("gl_flashblend", "0", CVAR_NONE, "None");
|
||||
gl_playermip = Cvar_Get ("gl_playermip", "0", CVAR_NONE, "None");
|
||||
gl_nocolors = Cvar_Get ("gl_nocolors", "0", CVAR_NONE, "None");
|
||||
gl_cull = Cvar_Get ("gl_cull", "1", CVAR_NONE, 0, "None");
|
||||
gl_smoothmodels = Cvar_Get ("gl_smoothmodels", "1", CVAR_NONE, 0, "None");
|
||||
gl_affinemodels = Cvar_Get ("gl_affinemodels", "0", CVAR_NONE, 0, "None");
|
||||
gl_polyblend = Cvar_Get ("gl_polyblend", "1", CVAR_NONE, 0, "None");
|
||||
gl_flashblend = Cvar_Get ("gl_flashblend", "0", CVAR_NONE, 0, "None");
|
||||
gl_playermip = Cvar_Get ("gl_playermip", "0", CVAR_NONE, 0, "None");
|
||||
gl_nocolors = Cvar_Get ("gl_nocolors", "0", CVAR_NONE, 0, "None");
|
||||
|
||||
gl_fires = Cvar_Get ("gl_fires", "0", CVAR_ARCHIVE,
|
||||
gl_fires = Cvar_Get ("gl_fires", "0", CVAR_ARCHIVE, 0,
|
||||
"Toggles lavaball and rocket fireballs");
|
||||
|
||||
gl_particles = Cvar_Get ("gl_particles", "1", CVAR_ARCHIVE,
|
||||
gl_particles = Cvar_Get ("gl_particles", "1", CVAR_ARCHIVE, 0,
|
||||
"whether or not to draw particles");
|
||||
|
||||
gl_fb_models = Cvar_Get ("gl_fb_models", "1", CVAR_ARCHIVE,
|
||||
gl_fb_models = Cvar_Get ("gl_fb_models", "1", CVAR_ARCHIVE, 0,
|
||||
"Toggles fullbright color support for models.. "
|
||||
"This is very handy, but costs me 2 FPS.. (=:]");
|
||||
gl_fb_bmodels = Cvar_Get ("gl_fb_bmodels", "1", CVAR_ARCHIVE,
|
||||
gl_fb_bmodels = Cvar_Get ("gl_fb_bmodels", "1", CVAR_ARCHIVE, 0,
|
||||
"Toggles fullbright color support for bmodels");
|
||||
|
||||
gl_keeptjunctions = Cvar_Get ("gl_keeptjunctions", "1", CVAR_NONE, "None");
|
||||
gl_keeptjunctions = Cvar_Get ("gl_keeptjunctions", "1", CVAR_NONE, 0, "None");
|
||||
gl_reporttjunctions =
|
||||
Cvar_Get ("gl_reporttjunctions", "0", CVAR_NONE, "None");
|
||||
Cvar_Get ("gl_reporttjunctions", "0", CVAR_NONE, 0, "None");
|
||||
|
||||
r_skyname = Cvar_Get ("r_skyname", "none", CVAR_NONE,
|
||||
r_skyname = Cvar_Get ("r_skyname", "none", CVAR_NONE, 0,
|
||||
"name of the current skybox");
|
||||
gl_skymultipass = Cvar_Get ("gl_skymultipass", "1", CVAR_NONE,
|
||||
gl_skymultipass = Cvar_Get ("gl_skymultipass", "1", CVAR_NONE, 0,
|
||||
"controls wether the skydome is single or double pass");
|
||||
|
||||
R_InitBubble ();
|
||||
|
|
|
@ -1281,7 +1281,7 @@ GL_BuildLightmaps (void)
|
|||
texture_extension_number += MAX_LIGHTMAPS;
|
||||
}
|
||||
|
||||
gl_colorlights = Cvar_Get ("gl_colorlights", "1", CVAR_ROM,
|
||||
gl_colorlights = Cvar_Get ("gl_colorlights", "1", CVAR_ROM, 0,
|
||||
"Whether to use RGB lightmaps or not");
|
||||
|
||||
if (gl_colorlights->int_val) {
|
||||
|
|
|
@ -418,16 +418,16 @@ SCR_Init
|
|||
void
|
||||
SCR_InitCvars (void)
|
||||
{
|
||||
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, "10 - 170");
|
||||
scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, "None");
|
||||
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, "None");
|
||||
scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, "None");
|
||||
scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, "None");
|
||||
scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, "None");
|
||||
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, "None");
|
||||
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, "None");
|
||||
scr_allowsnap = Cvar_Get ("scr_allowsnap", "1", CVAR_NONE, "None");
|
||||
gl_triplebuffer = Cvar_Get ("gl_triplebuffer", "1", CVAR_ARCHIVE, "None");
|
||||
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, 0, "10 - 170");
|
||||
scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, 0, "None");
|
||||
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, 0, "None");
|
||||
scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, 0, "None");
|
||||
scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, 0, "None");
|
||||
scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, 0, "None");
|
||||
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, 0, "None");
|
||||
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, 0, "None");
|
||||
scr_allowsnap = Cvar_Get ("scr_allowsnap", "1", CVAR_NONE, 0, "None");
|
||||
gl_triplebuffer = Cvar_Get ("gl_triplebuffer", "1", CVAR_ARCHIVE, 0, "None");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -241,25 +241,25 @@ Host_InitLocal (void)
|
|||
Host_InitCommands ();
|
||||
|
||||
host_framerate =
|
||||
Cvar_Get ("host_framerate", "0", CVAR_NONE, "set for slow motion");
|
||||
Cvar_Get ("host_framerate", "0", CVAR_NONE, 0, "set for slow motion");
|
||||
host_speeds =
|
||||
Cvar_Get ("host_speeds", "0", CVAR_NONE, "set for running times");
|
||||
Cvar_Get ("host_speeds", "0", CVAR_NONE, 0, "set for running times");
|
||||
|
||||
sys_ticrate = Cvar_Get ("sys_ticrate", "0.05", CVAR_NONE, "None");
|
||||
serverprofile = Cvar_Get ("serverprofile", "0", CVAR_NONE, "None");
|
||||
sys_ticrate = Cvar_Get ("sys_ticrate", "0.05", CVAR_NONE, 0, "None");
|
||||
serverprofile = Cvar_Get ("serverprofile", "0", CVAR_NONE, 0, "None");
|
||||
|
||||
fraglimit = Cvar_Get ("fraglimit", "0", CVAR_SERVERINFO, "None");
|
||||
timelimit = Cvar_Get ("timelimit", "0", CVAR_SERVERINFO, "None");
|
||||
teamplay = Cvar_Get ("teamplay", "0", CVAR_SERVERINFO, "None");
|
||||
samelevel = Cvar_Get ("samelevel", "0", CVAR_NONE, "None");
|
||||
noexit = Cvar_Get ("noexit", "0", CVAR_SERVERINFO, "None");
|
||||
skill = Cvar_Get ("skill", "1", CVAR_NONE, "0 - 3");
|
||||
deathmatch = Cvar_Get ("deathmatch", "0", CVAR_NONE, "0, 1, or 2");
|
||||
coop = Cvar_Get ("coop", "0", CVAR_NONE, "0 or 1");
|
||||
fraglimit = Cvar_Get ("fraglimit", "0", CVAR_SERVERINFO, Cvar_Info, "None");
|
||||
timelimit = Cvar_Get ("timelimit", "0", CVAR_SERVERINFO, Cvar_Info, "None");
|
||||
teamplay = Cvar_Get ("teamplay", "0", CVAR_SERVERINFO, Cvar_Info, "None");
|
||||
samelevel = Cvar_Get ("samelevel", "0", CVAR_NONE, 0, "None");
|
||||
noexit = Cvar_Get ("noexit", "0", CVAR_SERVERINFO, Cvar_Info, "None");
|
||||
skill = Cvar_Get ("skill", "1", CVAR_NONE, 0, "0 - 3");
|
||||
deathmatch = Cvar_Get ("deathmatch", "0", CVAR_NONE, 0, "0, 1, or 2");
|
||||
coop = Cvar_Get ("coop", "0", CVAR_NONE, 0, "0 or 1");
|
||||
|
||||
pausable = Cvar_Get ("pausable", "1", CVAR_NONE, "None");
|
||||
pausable = Cvar_Get ("pausable", "1", CVAR_NONE, 0, "None");
|
||||
|
||||
temp1 = Cvar_Get ("temp1", "0", CVAR_NONE, "None");
|
||||
temp1 = Cvar_Get ("temp1", "0", CVAR_NONE, 0, "None");
|
||||
|
||||
Host_FindMaxClients ();
|
||||
|
||||
|
@ -912,7 +912,7 @@ Host_Init (quakeparms_t *parms)
|
|||
// only reads from within the quake file system, and changing that is
|
||||
// probably Not A Good Thing (tm).
|
||||
fs_globalcfg = Cvar_Get ("fs_globalcfg", FS_GLOBALCFG,
|
||||
CVAR_ROM, "global configuration file");
|
||||
CVAR_ROM, 0, "global configuration file");
|
||||
Cmd_Exec_File (fs_globalcfg->string);
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
|
|
|
@ -173,10 +173,10 @@ IN_Init (void)
|
|||
{
|
||||
int i;
|
||||
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, "None");
|
||||
in_joystick = Cvar_Get ("joystick", "0", CVAR_ARCHIVE, "None");
|
||||
joy_numbuttons = Cvar_Get ("joybuttons", "4", CVAR_ARCHIVE, "None");
|
||||
aux_look = Cvar_Get ("auxlook", "1", CVAR_ARCHIVE, "None");
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, 0, "None");
|
||||
in_joystick = Cvar_Get ("joystick", "0", CVAR_ARCHIVE, 0, "None");
|
||||
joy_numbuttons = Cvar_Get ("joybuttons", "4", CVAR_ARCHIVE, 0, "None");
|
||||
aux_look = Cvar_Get ("auxlook", "1", CVAR_ARCHIVE, 0, "None");
|
||||
Cmd_AddCommand ("toggle_auxlook", Toggle_AuxLook_f, "No Description");
|
||||
Cmd_AddCommand ("force_centerview", Force_CenterView_f, "No Description");
|
||||
|
||||
|
|
|
@ -358,9 +358,9 @@ IN_Init_Cvars (void)
|
|||
JOY_Init_Cvars ();
|
||||
|
||||
_windowed_mouse =
|
||||
Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE,
|
||||
Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0,
|
||||
"If set to 1, quake will grab the mouse in X");
|
||||
// m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, "Toggle mouse
|
||||
// m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, 0, "Toggle mouse
|
||||
// input filtering");
|
||||
}
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ IN_Init (void)
|
|||
if (!x_disp)
|
||||
Sys_Error ("X display not open!\n");
|
||||
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "None");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "None");
|
||||
|
||||
// we really really want to clean these up...
|
||||
atexit (IN_Shutdown);
|
||||
|
|
|
@ -135,7 +135,7 @@ void
|
|||
IN_Init_Cvars (void)
|
||||
{
|
||||
JOY_Init_Cvars ();
|
||||
m_filter = Cvar_Get ("m_filter", "0", 0, "Toggle mouse input filtering.");
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_NONE, 0, "Toggle mouse input filtering.");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -503,35 +503,35 @@ void
|
|||
IN_Init_Cvars (void)
|
||||
{
|
||||
// mouse variables
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_NONE, "None");
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_NONE, 0, "None");
|
||||
|
||||
// joystick variables
|
||||
in_joystick = Cvar_Get ("joystick", "0", CVAR_ARCHIVE, "None");
|
||||
joy_name = Cvar_Get ("joyname", "joystick", CVAR_NONE, "None");
|
||||
joy_advanced = Cvar_Get ("joyadvanced", "0", CVAR_NONE, "None");
|
||||
joy_advaxisx = Cvar_Get ("joyadvaxisx", "0", CVAR_NONE, "None");
|
||||
joy_advaxisy = Cvar_Get ("joyadvaxisy", "0", CVAR_NONE, "None");
|
||||
joy_advaxisz = Cvar_Get ("joyadvaxisz", "0", CVAR_NONE, "None");
|
||||
joy_advaxisr = Cvar_Get ("joyadvaxisr", "0", CVAR_NONE, "None");
|
||||
joy_advaxisu = Cvar_Get ("joyadvaxisu", "0", CVAR_NONE, "None");
|
||||
joy_advaxisv = Cvar_Get ("joyadvaxisv", "0", CVAR_NONE, "None");
|
||||
in_joystick = Cvar_Get ("joystick", "0", CVAR_ARCHIVE, 0, "None");
|
||||
joy_name = Cvar_Get ("joyname", "joystick", CVAR_NONE, 0, "None");
|
||||
joy_advanced = Cvar_Get ("joyadvanced", "0", CVAR_NONE, 0, "None");
|
||||
joy_advaxisx = Cvar_Get ("joyadvaxisx", "0", CVAR_NONE, 0, "None");
|
||||
joy_advaxisy = Cvar_Get ("joyadvaxisy", "0", CVAR_NONE, 0, "None");
|
||||
joy_advaxisz = Cvar_Get ("joyadvaxisz", "0", CVAR_NONE, 0, "None");
|
||||
joy_advaxisr = Cvar_Get ("joyadvaxisr", "0", CVAR_NONE, 0, "None");
|
||||
joy_advaxisu = Cvar_Get ("joyadvaxisu", "0", CVAR_NONE, 0, "None");
|
||||
joy_advaxisv = Cvar_Get ("joyadvaxisv", "0", CVAR_NONE, 0, "None");
|
||||
joy_forwardthreshold =
|
||||
Cvar_Get ("joyforwardthreshold", "0.15", CVAR_NONE, "None");
|
||||
Cvar_Get ("joyforwardthreshold", "0.15", CVAR_NONE, 0, "None");
|
||||
joy_sidethreshold =
|
||||
Cvar_Get ("joysidethreshold", "0.15", CVAR_NONE, "None");
|
||||
Cvar_Get ("joysidethreshold", "0.15", CVAR_NONE, 0, "None");
|
||||
joy_pitchthreshold =
|
||||
Cvar_Get ("joypitchthreshold", "0.15", CVAR_NONE, "None");
|
||||
joy_yawthreshold = Cvar_Get ("joyyawthreshold", "0.15", CVAR_NONE, "None");
|
||||
Cvar_Get ("joypitchthreshold", "0.15", CVAR_NONE, 0, "None");
|
||||
joy_yawthreshold = Cvar_Get ("joyyawthreshold", "0.15", CVAR_NONE, 0, "None");
|
||||
joy_forwardsensitivity =
|
||||
Cvar_Get ("joyforwardsensitivity", "-1.0", CVAR_NONE, "None");
|
||||
Cvar_Get ("joyforwardsensitivity", "-1.0", CVAR_NONE, 0, "None");
|
||||
joy_sidesensitivity =
|
||||
Cvar_Get ("joysidesensitivity", "-1.0", CVAR_NONE, "None");
|
||||
Cvar_Get ("joysidesensitivity", "-1.0", CVAR_NONE, 0, "None");
|
||||
joy_pitchsensitivity =
|
||||
Cvar_Get ("joypitchsensitivity", "1.0", CVAR_NONE, "None");
|
||||
Cvar_Get ("joypitchsensitivity", "1.0", CVAR_NONE, 0, "None");
|
||||
joy_yawsensitivity =
|
||||
Cvar_Get ("joyyawsensitivity", "-1.0", CVAR_NONE, "None");
|
||||
joy_wwhack1 = Cvar_Get ("joywwhack1", "0.0", CVAR_NONE, "None");
|
||||
joy_wwhack2 = Cvar_Get ("joywwhack2", "0.0", CVAR_NONE, "None");
|
||||
Cvar_Get ("joyyawsensitivity", "-1.0", CVAR_NONE, 0, "None");
|
||||
joy_wwhack1 = Cvar_Get ("joywwhack1", "0.0", CVAR_NONE, 0, "None");
|
||||
joy_wwhack2 = Cvar_Get ("joywwhack2", "0.0", CVAR_NONE, 0, "None");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -552,13 +552,13 @@ IN_Init_Cvars (void)
|
|||
{
|
||||
JOY_Init_Cvars ();
|
||||
_windowed_mouse =
|
||||
Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE,
|
||||
Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0,
|
||||
"With this set to 1, quake will grab the mouse from X");
|
||||
m_filter =
|
||||
Cvar_Get ("m_filter", "0", CVAR_ARCHIVE,
|
||||
Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, 0,
|
||||
"Toggle mouse input filtering.");
|
||||
in_dga = Cvar_Get ("in_dga", "1", CVAR_ARCHIVE, "DGA Input support");
|
||||
in_dga_mouseaccel = Cvar_Get ("in_dga_mouseaccel", "1", CVAR_ARCHIVE,
|
||||
in_dga = Cvar_Get ("in_dga", "1", CVAR_ARCHIVE, 0, "DGA Input support");
|
||||
in_dga_mouseaccel = Cvar_Get ("in_dga_mouseaccel", "1", CVAR_ARCHIVE, 0,
|
||||
"DGA Mouse accelleration multiplier");
|
||||
}
|
||||
|
||||
|
|
|
@ -196,19 +196,19 @@ JOY_Init_Cvars (void)
|
|||
int i;
|
||||
|
||||
joy_device =
|
||||
Cvar_Get ("joy_device", "/dev/js0", CVAR_NONE | CVAR_ROM,
|
||||
Cvar_Get ("joy_device", "/dev/js0", CVAR_NONE | CVAR_ROM, 0,
|
||||
"Joystick device");
|
||||
joy_enable =
|
||||
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE,
|
||||
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
|
||||
"Joystick enable flag");
|
||||
joy_sensitivity =
|
||||
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE,
|
||||
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
|
||||
"Joystick sensitivity");
|
||||
|
||||
for (i = 0; i < JOY_MAX_AXES; i++) {
|
||||
joy_axes[i].axis = Cvar_Get (joy_axes[i].var.name,
|
||||
joy_axes[i].var.string,
|
||||
CVAR_ARCHIVE, "Set joystick axes");
|
||||
CVAR_ARCHIVE, 0, "Set joystick axes");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -64,13 +64,13 @@ void
|
|||
JOY_Init_Cvars (void)
|
||||
{
|
||||
joy_device =
|
||||
Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM,
|
||||
Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM, 0,
|
||||
"Joystick device");
|
||||
joy_enable =
|
||||
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE,
|
||||
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
|
||||
"Joystick enable flag");
|
||||
joy_sensitivity =
|
||||
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE,
|
||||
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
|
||||
"Joystick sensitivity");
|
||||
}
|
||||
|
||||
|
|
|
@ -747,7 +747,7 @@ Key_Init (void)
|
|||
void
|
||||
Key_Init_Cvars (void)
|
||||
{
|
||||
cl_chatmode = Cvar_Get ("cl_chatmode", "2", 0,
|
||||
cl_chatmode = Cvar_Get ("cl_chatmode", "2", CVAR_NONE, 0,
|
||||
"Controls when console text will be treated as a chat message: 0 - never, 1 - always, 2 - smart");
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ void
|
|||
Mod_Init (void)
|
||||
{
|
||||
gl_subdivide_size =
|
||||
Cvar_Get ("gl_subdivide_size", "128", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("gl_subdivide_size", "128", CVAR_ARCHIVE, 0, "None");
|
||||
memset (mod_novis, 0xff, sizeof (mod_novis));
|
||||
}
|
||||
|
||||
|
|
|
@ -844,23 +844,23 @@ NET_Init (void)
|
|||
SZ_Alloc (&_net_message_message, NET_MAXMESSAGE);
|
||||
|
||||
net_messagetimeout =
|
||||
Cvar_Get ("net_messagetimeout", "300", CVAR_NONE, "None");
|
||||
hostname = Cvar_Get ("hostname", "UNNAMED", CVAR_NONE, "None");
|
||||
Cvar_Get ("net_messagetimeout", "300", CVAR_NONE, 0, "None");
|
||||
hostname = Cvar_Get ("hostname", "UNNAMED", CVAR_NONE, 0, "None");
|
||||
config_com_port =
|
||||
Cvar_Get ("_config_com_port", "0x3f8", CVAR_ARCHIVE, "None");
|
||||
config_com_irq = Cvar_Get ("_config_com_irq", "4", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_config_com_port", "0x3f8", CVAR_ARCHIVE, 0, "None");
|
||||
config_com_irq = Cvar_Get ("_config_com_irq", "4", CVAR_ARCHIVE, 0, "None");
|
||||
config_com_baud =
|
||||
Cvar_Get ("_config_com_baud", "57600", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_config_com_baud", "57600", CVAR_ARCHIVE, 0, "None");
|
||||
config_com_modem =
|
||||
Cvar_Get ("_config_com_modem", "1", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_config_com_modem", "1", CVAR_ARCHIVE, 0, "None");
|
||||
config_modem_dialtype =
|
||||
Cvar_Get ("_config_modem_dialtype", "T", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_config_modem_dialtype", "T", CVAR_ARCHIVE, 0, "None");
|
||||
config_modem_clear =
|
||||
Cvar_Get ("_config_modem_clear", "ATZ", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_config_modem_clear", "ATZ", CVAR_ARCHIVE, 0, "None");
|
||||
config_modem_init =
|
||||
Cvar_Get ("_config_modem_init", "", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_config_modem_init", "", CVAR_ARCHIVE, 0, "None");
|
||||
config_modem_hangup =
|
||||
Cvar_Get ("_config_modem_hangup", "AT H", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_config_modem_hangup", "AT H", CVAR_ARCHIVE, 0, "None");
|
||||
|
||||
Cmd_AddCommand ("slist", NET_Slist_f, "No Description");
|
||||
Cmd_AddCommand ("listen", NET_Listen_f, "No Description");
|
||||
|
|
|
@ -215,30 +215,30 @@ R_Init (void)
|
|||
Cmd_AddCommand ("timerefresh", R_TimeRefresh_f, "No Description");
|
||||
Cmd_AddCommand ("pointfile", R_ReadPointFile_f, "No Description");
|
||||
|
||||
gl_particles = Cvar_Get ("gl_particles", "1", CVAR_ARCHIVE | CVAR_ROM,
|
||||
gl_particles = Cvar_Get ("gl_particles", "1", CVAR_ARCHIVE | CVAR_ROM, 0,
|
||||
"whether or not to draw particles");
|
||||
|
||||
r_draworder = Cvar_Get ("r_draworder", "0", CVAR_NONE, "None");
|
||||
r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, "None");
|
||||
r_timegraph = Cvar_Get ("r_timegraph", "0", CVAR_NONE, "None");
|
||||
r_graphheight = Cvar_Get ("r_graphheight", "10", CVAR_NONE, "None");
|
||||
r_drawflat = Cvar_Get ("r_drawflat", "0", CVAR_NONE, "None");
|
||||
r_ambient = Cvar_Get ("r_ambient", "0", CVAR_NONE, "None");
|
||||
r_clearcolor = Cvar_Get ("r_clearcolor", "2", CVAR_NONE, "None");
|
||||
r_waterwarp = Cvar_Get ("r_waterwarp", "1", CVAR_NONE, "None");
|
||||
r_fullbright = Cvar_Get ("r_fullbright", "0", CVAR_NONE, "None");
|
||||
r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, "None");
|
||||
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_NONE, "None");
|
||||
r_aliasstats = Cvar_Get ("r_polymodelstats", "0", CVAR_NONE, "None");
|
||||
r_dspeeds = Cvar_Get ("r_dspeeds", "0", CVAR_NONE, "None");
|
||||
r_reportsurfout = Cvar_Get ("r_reportsurfout", "0", CVAR_NONE, "None");
|
||||
r_maxsurfs = Cvar_Get ("r_maxsurfs", "0", CVAR_NONE, "None");
|
||||
r_numsurfs = Cvar_Get ("r_numsurfs", "0", CVAR_NONE, "None");
|
||||
r_reportedgeout = Cvar_Get ("r_reportedgeout", "0", CVAR_NONE, "None");
|
||||
r_maxedges = Cvar_Get ("r_maxedges", "0", CVAR_NONE, "None");
|
||||
r_numedges = Cvar_Get ("r_numedges", "0", CVAR_NONE, "None");
|
||||
r_aliastransbase = Cvar_Get ("r_aliastransbase", "200", CVAR_NONE, "None");
|
||||
r_aliastransadj = Cvar_Get ("r_aliastransadj", "100", CVAR_NONE, "None");
|
||||
r_draworder = Cvar_Get ("r_draworder", "0", CVAR_NONE, 0, "None");
|
||||
r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, 0, "None");
|
||||
r_timegraph = Cvar_Get ("r_timegraph", "0", CVAR_NONE, 0, "None");
|
||||
r_graphheight = Cvar_Get ("r_graphheight", "10", CVAR_NONE, 0, "None");
|
||||
r_drawflat = Cvar_Get ("r_drawflat", "0", CVAR_NONE, 0, "None");
|
||||
r_ambient = Cvar_Get ("r_ambient", "0", CVAR_NONE, 0, "None");
|
||||
r_clearcolor = Cvar_Get ("r_clearcolor", "2", CVAR_NONE, 0, "None");
|
||||
r_waterwarp = Cvar_Get ("r_waterwarp", "1", CVAR_NONE, 0, "None");
|
||||
r_fullbright = Cvar_Get ("r_fullbright", "0", CVAR_NONE, 0, "None");
|
||||
r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, 0, "None");
|
||||
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_NONE, 0, "None");
|
||||
r_aliasstats = Cvar_Get ("r_polymodelstats", "0", CVAR_NONE, 0, "None");
|
||||
r_dspeeds = Cvar_Get ("r_dspeeds", "0", CVAR_NONE, 0, "None");
|
||||
r_reportsurfout = Cvar_Get ("r_reportsurfout", "0", CVAR_NONE, 0, "None");
|
||||
r_maxsurfs = Cvar_Get ("r_maxsurfs", "0", CVAR_NONE, 0, "None");
|
||||
r_numsurfs = Cvar_Get ("r_numsurfs", "0", CVAR_NONE, 0, "None");
|
||||
r_reportedgeout = Cvar_Get ("r_reportedgeout", "0", CVAR_NONE, 0, "None");
|
||||
r_maxedges = Cvar_Get ("r_maxedges", "0", CVAR_NONE, 0, "None");
|
||||
r_numedges = Cvar_Get ("r_numedges", "0", CVAR_NONE, 0, "None");
|
||||
r_aliastransbase = Cvar_Get ("r_aliastransbase", "200", CVAR_NONE, 0, "None");
|
||||
r_aliastransadj = Cvar_Get ("r_aliastransadj", "100", CVAR_NONE, 0, "None");
|
||||
|
||||
Cvar_SetValue (r_maxedges, (float) NUMSTACKEDGES);
|
||||
Cvar_SetValue (r_maxsurfs, (float) NUMSTACKSURFACES);
|
||||
|
|
|
@ -768,37 +768,37 @@ V_Init (void)
|
|||
Cmd_AddCommand ("bf", V_BonusFlash_f, "No Description");
|
||||
Cmd_AddCommand ("centerview", V_StartPitchDrift, "No Description");
|
||||
|
||||
v_centermove = Cvar_Get ("v_centermove", "0.15", CVAR_NONE, "None");
|
||||
v_centerspeed = Cvar_Get ("v_centerspeed", "500", CVAR_NONE, "None");
|
||||
v_centermove = Cvar_Get ("v_centermove", "0.15", CVAR_NONE, 0, "None");
|
||||
v_centerspeed = Cvar_Get ("v_centerspeed", "500", CVAR_NONE, 0, "None");
|
||||
|
||||
v_iyaw_cycle = Cvar_Get ("v_iyaw_cycle", "2", CVAR_NONE, "None");
|
||||
v_iroll_cycle = Cvar_Get ("v_iroll_cycle", "0.5", CVAR_NONE, "None");
|
||||
v_ipitch_cycle = Cvar_Get ("v_ipitch_cycle", "1", CVAR_NONE, "None");
|
||||
v_iyaw_level = Cvar_Get ("v_iyaw_level", "0.3", CVAR_NONE, "None");
|
||||
v_iroll_level = Cvar_Get ("v_iroll_level", "0.1", CVAR_NONE, "None");
|
||||
v_ipitch_level = Cvar_Get ("v_ipitch_level", "0.3", CVAR_NONE, "None");
|
||||
v_iyaw_cycle = Cvar_Get ("v_iyaw_cycle", "2", CVAR_NONE, 0, "None");
|
||||
v_iroll_cycle = Cvar_Get ("v_iroll_cycle", "0.5", CVAR_NONE, 0, "None");
|
||||
v_ipitch_cycle = Cvar_Get ("v_ipitch_cycle", "1", CVAR_NONE, 0, "None");
|
||||
v_iyaw_level = Cvar_Get ("v_iyaw_level", "0.3", CVAR_NONE, 0, "None");
|
||||
v_iroll_level = Cvar_Get ("v_iroll_level", "0.1", CVAR_NONE, 0, "None");
|
||||
v_ipitch_level = Cvar_Get ("v_ipitch_level", "0.3", CVAR_NONE, 0, "None");
|
||||
|
||||
v_idlescale = Cvar_Get ("v_idlescale", "0", CVAR_NONE, "None");
|
||||
crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE, "None");
|
||||
crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE, "None");
|
||||
cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_NONE, "None");
|
||||
cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_NONE, "None");
|
||||
gl_cshiftpercent = Cvar_Get ("gl_cshiftpercent", "100", CVAR_NONE, "None");
|
||||
v_idlescale = Cvar_Get ("v_idlescale", "0", CVAR_NONE, 0, "None");
|
||||
crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE, 0, "None");
|
||||
crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE, 0, "None");
|
||||
cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_NONE, 0, "None");
|
||||
cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_NONE, 0, "None");
|
||||
gl_cshiftpercent = Cvar_Get ("gl_cshiftpercent", "100", CVAR_NONE, 0, "None");
|
||||
|
||||
scr_ofsx = Cvar_Get ("scr_ofsx", "0", CVAR_NONE, "None");
|
||||
scr_ofsy = Cvar_Get ("scr_ofsy", "0", CVAR_NONE, "None");
|
||||
scr_ofsz = Cvar_Get ("scr_ofsz", "0", CVAR_NONE, "None");
|
||||
cl_rollspeed = Cvar_Get ("cl_rollspeed", "200", CVAR_NONE, "None");
|
||||
cl_rollangle = Cvar_Get ("cl_rollangle", "2.0", CVAR_NONE, "None");
|
||||
cl_bob = Cvar_Get ("cl_bob", "0.02", CVAR_NONE, "None");
|
||||
cl_bobcycle = Cvar_Get ("cl_bobcycle", "0.6", CVAR_NONE, "None");
|
||||
cl_bobup = Cvar_Get ("cl_bobup", "0.5", CVAR_NONE, "None");
|
||||
scr_ofsx = Cvar_Get ("scr_ofsx", "0", CVAR_NONE, 0, "None");
|
||||
scr_ofsy = Cvar_Get ("scr_ofsy", "0", CVAR_NONE, 0, "None");
|
||||
scr_ofsz = Cvar_Get ("scr_ofsz", "0", CVAR_NONE, 0, "None");
|
||||
cl_rollspeed = Cvar_Get ("cl_rollspeed", "200", CVAR_NONE, 0, "None");
|
||||
cl_rollangle = Cvar_Get ("cl_rollangle", "2.0", CVAR_NONE, 0, "None");
|
||||
cl_bob = Cvar_Get ("cl_bob", "0.02", CVAR_NONE, 0, "None");
|
||||
cl_bobcycle = Cvar_Get ("cl_bobcycle", "0.6", CVAR_NONE, 0, "None");
|
||||
cl_bobup = Cvar_Get ("cl_bobup", "0.5", CVAR_NONE, 0, "None");
|
||||
|
||||
v_kicktime = Cvar_Get ("v_kicktime", "0.5", CVAR_NONE, "None");
|
||||
v_kickroll = Cvar_Get ("v_kickroll", "0.6", CVAR_NONE, "None");
|
||||
v_kickpitch = Cvar_Get ("v_kickpitch", "0.6", CVAR_NONE, "None");
|
||||
v_kicktime = Cvar_Get ("v_kicktime", "0.5", CVAR_NONE, 0, "None");
|
||||
v_kickroll = Cvar_Get ("v_kickroll", "0.6", CVAR_NONE, 0, "None");
|
||||
v_kickpitch = Cvar_Get ("v_kickpitch", "0.6", CVAR_NONE, 0, "None");
|
||||
|
||||
BuildGammaTable (1.0, 1.0); // no gamma yet
|
||||
brightness = Cvar_Get ("brightness", "1", CVAR_ARCHIVE, "None");
|
||||
contrast = Cvar_Get ("contrast", "1", CVAR_ARCHIVE, "None");
|
||||
brightness = Cvar_Get ("brightness", "1", CVAR_ARCHIVE, 0, "None");
|
||||
contrast = Cvar_Get ("contrast", "1", CVAR_ARCHIVE, 0, "None");
|
||||
}
|
||||
|
|
|
@ -349,14 +349,14 @@ SCR_Init
|
|||
void
|
||||
SCR_Init (void)
|
||||
{
|
||||
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, "10 - 170");
|
||||
scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, "None");
|
||||
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, "None");
|
||||
scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, "None");
|
||||
scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, "None");
|
||||
scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, "None");
|
||||
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, "None");
|
||||
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, "None");
|
||||
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, 0, "10 - 170");
|
||||
scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, 0, "None");
|
||||
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, 0, "None");
|
||||
scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, 0, "None");
|
||||
scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, 0, "None");
|
||||
scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, 0, "None");
|
||||
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, 0, "None");
|
||||
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, 0, "None");
|
||||
|
||||
//
|
||||
// register our commands
|
||||
|
|
|
@ -270,46 +270,46 @@ S_Init (void)
|
|||
void
|
||||
S_Init_Cvars (void)
|
||||
{
|
||||
snd_device = Cvar_Get ("snd_device", "", CVAR_ROM,
|
||||
snd_device = Cvar_Get ("snd_device", "", CVAR_ROM, 0,
|
||||
"sound device. \"\" is system default");
|
||||
snd_rate = Cvar_Get ("snd_rate", "0", CVAR_ROM,
|
||||
snd_rate = Cvar_Get ("snd_rate", "0", CVAR_ROM, 0,
|
||||
"sound playback rate. 0 is system default");
|
||||
snd_bits = Cvar_Get ("snd_bits", "0", CVAR_ROM,
|
||||
snd_bits = Cvar_Get ("snd_bits", "0", CVAR_ROM, 0,
|
||||
"sound sample depth. 0 is system default");
|
||||
snd_stereo = Cvar_Get ("snd_stereo", "1", CVAR_ROM,
|
||||
snd_stereo = Cvar_Get ("snd_stereo", "1", CVAR_ROM, 0,
|
||||
"sound stereo output");
|
||||
nosound = Cvar_Get ("nosound", "0", CVAR_NONE, "Set to turn sound off");
|
||||
nosound = Cvar_Get ("nosound", "0", CVAR_NONE, 0, "Set to turn sound off");
|
||||
volume =
|
||||
Cvar_Get ("volume", "0.7", CVAR_ARCHIVE,
|
||||
Cvar_Get ("volume", "0.7", CVAR_ARCHIVE, 0,
|
||||
"Set the volume for sound playback");
|
||||
precache =
|
||||
Cvar_Get ("precache", "1", CVAR_NONE, "Toggle the use of a precache");
|
||||
Cvar_Get ("precache", "1", CVAR_NONE, 0, "Toggle the use of a precache");
|
||||
loadas8bit =
|
||||
Cvar_Get ("loadas8bit", "0", CVAR_NONE,
|
||||
Cvar_Get ("loadas8bit", "0", CVAR_NONE, 0,
|
||||
"Toggles if sounds are loaded as 8-bit samples");
|
||||
bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, "Volume of CD music");
|
||||
bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, 0, "Volume of CD music");
|
||||
ambient_level =
|
||||
Cvar_Get ("ambient_level", "0.3", CVAR_NONE, "Ambient sounds' volume");
|
||||
Cvar_Get ("ambient_level", "0.3", CVAR_NONE, 0, "Ambient sounds' volume");
|
||||
ambient_fade =
|
||||
Cvar_Get ("ambient_fade", "100", CVAR_NONE,
|
||||
Cvar_Get ("ambient_fade", "100", CVAR_NONE, 0,
|
||||
"How quickly ambient sounds fade in or out");
|
||||
snd_noextraupdate =
|
||||
Cvar_Get ("snd_noextraupdate", "0", CVAR_NONE,
|
||||
Cvar_Get ("snd_noextraupdate", "0", CVAR_NONE, 0,
|
||||
"Toggles the correct value display in host_speeds. Usually messes up sound playback when in effect");
|
||||
snd_show =
|
||||
Cvar_Get ("snd_show", "0", CVAR_NONE,
|
||||
Cvar_Get ("snd_show", "0", CVAR_NONE, 0,
|
||||
"Toggles the display of sounds currently being played");
|
||||
snd_interp =
|
||||
Cvar_Get ("snd_interp", "1", CVAR_ARCHIVE,
|
||||
Cvar_Get ("snd_interp", "1", CVAR_ARCHIVE, 0,
|
||||
"control sample interpolation");
|
||||
snd_phasesep =
|
||||
Cvar_Get ("snd_phasesep", "0.0", CVAR_ARCHIVE,
|
||||
Cvar_Get ("snd_phasesep", "0.0", CVAR_ARCHIVE, 0,
|
||||
"max stereo phase separation in ms. 0.6 is for 20cm head");
|
||||
snd_volumesep =
|
||||
Cvar_Get ("snd_volumesep", "1.0", CVAR_ARCHIVE,
|
||||
Cvar_Get ("snd_volumesep", "1.0", CVAR_ARCHIVE, 0,
|
||||
"max stereo volume separation in ms. 1.0 is max");
|
||||
_snd_mixahead =
|
||||
Cvar_Get ("_snd_mixahead", "0.1", CVAR_ARCHIVE,
|
||||
Cvar_Get ("_snd_mixahead", "0.1", CVAR_ARCHIVE, 0,
|
||||
"Delay time for sounds");
|
||||
}
|
||||
|
||||
|
|
|
@ -56,10 +56,10 @@ S_Init (void)
|
|||
void
|
||||
S_Init_Cvars (void)
|
||||
{
|
||||
volume = Cvar_Get ("volume", "0.7", CVAR_ARCHIVE, "Volume level of sounds");
|
||||
volume = Cvar_Get ("volume", "0.7", CVAR_ARCHIVE, 0, "Volume level of sounds");
|
||||
loadas8bit =
|
||||
Cvar_Get ("loadas8bit", "0", CVAR_NONE, "Load samples as 8-bit");
|
||||
bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, "CD music volume");
|
||||
Cvar_Get ("loadas8bit", "0", CVAR_NONE, 0, "Load samples as 8-bit");
|
||||
bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, 0, "CD music volume");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -59,17 +59,17 @@ SV_Init (void)
|
|||
{
|
||||
int i;
|
||||
|
||||
sv_maxvelocity = Cvar_Get ("sv_maxvelocity", "2000", CVAR_NONE, "None");
|
||||
sv_gravity = Cvar_Get ("sv_gravity", "800", CVAR_SERVERINFO, "None");
|
||||
sv_friction = Cvar_Get ("sv_friction", "4", CVAR_SERVERINFO, "None");
|
||||
sv_edgefriction = Cvar_Get ("edgefriction", "2", CVAR_NONE, "None");
|
||||
sv_stopspeed = Cvar_Get ("sv_stopspeed", "100", CVAR_NONE, "None");
|
||||
sv_maxspeed = Cvar_Get ("sv_maxspeed", "320", CVAR_SERVERINFO, "None");
|
||||
sv_accelerate = Cvar_Get ("sv_accelerate", "10", CVAR_NONE, "None");
|
||||
sv_maxvelocity = Cvar_Get ("sv_maxvelocity", "2000", CVAR_NONE, 0, "None");
|
||||
sv_gravity = Cvar_Get ("sv_gravity", "800", CVAR_SERVERINFO, Cvar_Info, "None");
|
||||
sv_friction = Cvar_Get ("sv_friction", "4", CVAR_SERVERINFO, Cvar_Info, "None");
|
||||
sv_edgefriction = Cvar_Get ("edgefriction", "2", CVAR_NONE, 0, "None");
|
||||
sv_stopspeed = Cvar_Get ("sv_stopspeed", "100", CVAR_NONE, 0, "None");
|
||||
sv_maxspeed = Cvar_Get ("sv_maxspeed", "320", CVAR_SERVERINFO, Cvar_Info, "None");
|
||||
sv_accelerate = Cvar_Get ("sv_accelerate", "10", CVAR_NONE, 0, "None");
|
||||
sv_idealpitchscale =
|
||||
Cvar_Get ("sv_idealpitchscale", "0.8", CVAR_NONE, "None");
|
||||
sv_aim = Cvar_Get ("sv_aim", "0.93", CVAR_NONE, "None");
|
||||
sv_nostep = Cvar_Get ("sv_nostep", "0", CVAR_NONE, "None");
|
||||
Cvar_Get ("sv_idealpitchscale", "0.8", CVAR_NONE, 0, "None");
|
||||
sv_aim = Cvar_Get ("sv_aim", "0.93", CVAR_NONE, 0, "None");
|
||||
sv_nostep = Cvar_Get ("sv_nostep", "0", CVAR_NONE, 0, "None");
|
||||
|
||||
for (i = 0; i < MAX_MODELS; i++)
|
||||
snprintf (localmodels[i], sizeof (localmodels[i]), "*%i", i);
|
||||
|
|
|
@ -305,23 +305,23 @@ SV_Progs_Init (void)
|
|||
void
|
||||
SV_Progs_Init_Cvars (void)
|
||||
{
|
||||
r_skyname = Cvar_Get ("r_skyname", "", CVAR_SERVERINFO, "name of skybox");
|
||||
sv_progs = Cvar_Get ("sv_progs", "progs.dat", CVAR_ROM,
|
||||
r_skyname = Cvar_Get ("r_skyname", "", CVAR_SERVERINFO, Cvar_Info, "name of skybox");
|
||||
sv_progs = Cvar_Get ("sv_progs", "progs.dat", CVAR_ROM, 0,
|
||||
"Allows selectable game progs if you have several "
|
||||
"of them in the gamedir");
|
||||
pr_checkextentions = Cvar_Get ("sv_progs", "1", CVAR_ROM,
|
||||
pr_checkextentions = Cvar_Get ("sv_progs", "1", CVAR_ROM, 0,
|
||||
"indicate the presence of the "
|
||||
"checkextentions qc function");
|
||||
|
||||
nomonsters = Cvar_Get ("nomonsters", "0", CVAR_NONE, "No Description");
|
||||
gamecfg = Cvar_Get ("gamecfg", "0", CVAR_NONE, "No Description");
|
||||
scratch1 = Cvar_Get ("scratch1", "0", CVAR_NONE, "No Description");
|
||||
scratch2 = Cvar_Get ("scratch2", "0", CVAR_NONE, "No Description");
|
||||
scratch3 = Cvar_Get ("scratch3", "0", CVAR_NONE, "No Description");
|
||||
scratch4 = Cvar_Get ("scratch4", "0", CVAR_NONE, "No Description");
|
||||
savedgamecfg = Cvar_Get ("savedgamecfg", "0", CVAR_ARCHIVE, "No Description");
|
||||
saved1 = Cvar_Get ("saved1", "0", CVAR_ARCHIVE, "No Description");
|
||||
saved2 = Cvar_Get ("saved2", "0", CVAR_ARCHIVE, "No Description");
|
||||
saved3 = Cvar_Get ("saved3", "0", CVAR_ARCHIVE, "No Description");
|
||||
saved4 = Cvar_Get ("saved4", "0", CVAR_ARCHIVE, "No Description");
|
||||
nomonsters = Cvar_Get ("nomonsters", "0", CVAR_NONE, 0, "No Description");
|
||||
gamecfg = Cvar_Get ("gamecfg", "0", CVAR_NONE, 0, "No Description");
|
||||
scratch1 = Cvar_Get ("scratch1", "0", CVAR_NONE, 0, "No Description");
|
||||
scratch2 = Cvar_Get ("scratch2", "0", CVAR_NONE, 0, "No Description");
|
||||
scratch3 = Cvar_Get ("scratch3", "0", CVAR_NONE, 0, "No Description");
|
||||
scratch4 = Cvar_Get ("scratch4", "0", CVAR_NONE, 0, "No Description");
|
||||
savedgamecfg = Cvar_Get ("savedgamecfg", "0", CVAR_ARCHIVE, 0, "No Description");
|
||||
saved1 = Cvar_Get ("saved1", "0", CVAR_ARCHIVE, 0, "No Description");
|
||||
saved2 = Cvar_Get ("saved2", "0", CVAR_ARCHIVE, 0, "No Description");
|
||||
saved3 = Cvar_Get ("saved3", "0", CVAR_ARCHIVE, 0, "No Description");
|
||||
saved4 = Cvar_Get ("saved4", "0", CVAR_ARCHIVE, 0, "No Description");
|
||||
}
|
||||
|
|
|
@ -274,7 +274,7 @@ main (int c, char **v)
|
|||
|
||||
Sys_Init ();
|
||||
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, "set to disable std out");
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, 0, "set to disable std out");
|
||||
if (COM_CheckParm ("-nostdout"))
|
||||
Cvar_Set (sys_nostdout, "1");
|
||||
else {
|
||||
|
|
|
@ -48,9 +48,9 @@ VID_GetWindowSize (int def_w, int def_h)
|
|||
int pnum;
|
||||
|
||||
vid_width =
|
||||
Cvar_Get ("vid_width", va ("%d", def_w), CVAR_ROM, "screen width");
|
||||
Cvar_Get ("vid_width", va ("%d", def_w), CVAR_ROM, 0, "screen width");
|
||||
vid_height =
|
||||
Cvar_Get ("vid_height", va ("%d", def_h), CVAR_ROM, "screen height");
|
||||
Cvar_Get ("vid_height", va ("%d", def_h), CVAR_ROM, 0, "screen height");
|
||||
|
||||
if ((pnum = COM_CheckParm ("-width"))) {
|
||||
if (pnum >= com_argc - 1)
|
||||
|
|
|
@ -377,7 +377,7 @@ VID_Init8bitPalette (void)
|
|||
Con_Printf ("disabled.\n");
|
||||
return;
|
||||
}
|
||||
vid_use8bit = Cvar_Get ("vid_use8bit", "0", CVAR_ROM,
|
||||
vid_use8bit = Cvar_Get ("vid_use8bit", "0", CVAR_ROM, 0,
|
||||
"Whether to use Shared Palettes.");
|
||||
if (vid_use8bit->value) {
|
||||
#ifdef HAVE_TDFXGL
|
||||
|
|
|
@ -104,24 +104,24 @@ VID_Init
|
|||
void
|
||||
VID_Init (unsigned char *palette)
|
||||
{
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "None");
|
||||
vid_wait = Cvar_Get ("vid_wait", "0", CVAR_NONE, "None");
|
||||
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, "None");
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "None");
|
||||
vid_wait = Cvar_Get ("vid_wait", "0", CVAR_NONE, 0, "None");
|
||||
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, 0, "None");
|
||||
_vid_wait_override =
|
||||
Cvar_Get ("_vid_wait_override", "0", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_vid_wait_override", "0", CVAR_ARCHIVE, 0, "None");
|
||||
_vid_default_mode =
|
||||
Cvar_Get ("_vid_default_mode", "0", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_vid_default_mode", "0", CVAR_ARCHIVE, 0, "None");
|
||||
_vid_default_mode_win =
|
||||
Cvar_Get ("_vid_default_mode_win", "3", CVAR_ARCHIVE, "None");
|
||||
vid_config_x = Cvar_Get ("vid_config_x", "800", CVAR_ARCHIVE, "None");
|
||||
vid_config_y = Cvar_Get ("vid_config_y", "600", CVAR_ARCHIVE, "None");
|
||||
vid_stretch_by_2 = Cvar_Get ("vid_stretch_by_2", "1", CVAR_ARCHIVE, "None");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_vid_default_mode_win", "3", CVAR_ARCHIVE, 0, "None");
|
||||
vid_config_x = Cvar_Get ("vid_config_x", "800", CVAR_ARCHIVE, 0, "None");
|
||||
vid_config_y = Cvar_Get ("vid_config_y", "600", CVAR_ARCHIVE, 0, "None");
|
||||
vid_stretch_by_2 = Cvar_Get ("vid_stretch_by_2", "1", CVAR_ARCHIVE, 0, "None");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "None");
|
||||
vid_fullscreen_mode =
|
||||
Cvar_Get ("vid_fullscreen_mode", "3", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("vid_fullscreen_mode", "3", CVAR_ARCHIVE, 0, "None");
|
||||
vid_windowed_mode =
|
||||
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, "None");
|
||||
block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, 0, "None");
|
||||
block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, 0, "None");
|
||||
|
||||
Cmd_AddCommand ("vid_testmode", VID_TestMode_f, "No Description");
|
||||
Cmd_AddCommand ("vid_nummodes", VID_NumModes_f, "No Description");
|
||||
|
|
|
@ -625,10 +625,10 @@ VID_Init (unsigned char *palette)
|
|||
void
|
||||
VID_Init_Cvars ()
|
||||
{
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "Sets the video mode");
|
||||
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE,
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "Sets the video mode");
|
||||
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE, 0,
|
||||
"Redraw entire screen each frame instead of just dirty areas");
|
||||
vid_waitforrefresh = Cvar_Get ("vid_waitforrefresh", "0", CVAR_ARCHIVE,
|
||||
vid_waitforrefresh = Cvar_Get ("vid_waitforrefresh", "0", CVAR_ARCHIVE, 0,
|
||||
"Wait for vertical retrace before drawing next frame");
|
||||
}
|
||||
|
||||
|
|
|
@ -2114,21 +2114,21 @@ VID_Init (unsigned char *palette)
|
|||
void
|
||||
VID_Init_Cvars ()
|
||||
{
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "None");
|
||||
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, "None");
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "None");
|
||||
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, 0, "None");
|
||||
_vid_default_mode_win =
|
||||
Cvar_Get ("_vid_default_mode_win", "3", CVAR_ARCHIVE, "None");
|
||||
vid_config_x = Cvar_Get ("vid_config_x", "800", CVAR_ARCHIVE, "None");
|
||||
vid_config_y = Cvar_Get ("vid_config_y", "600", CVAR_ARCHIVE, "None");
|
||||
vid_stretch_by_2 = Cvar_Get ("vid_stretch_by_2", "1", CVAR_ARCHIVE, "None");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_vid_default_mode_win", "3", CVAR_ARCHIVE, 0, "None");
|
||||
vid_config_x = Cvar_Get ("vid_config_x", "800", CVAR_ARCHIVE, 0, "None");
|
||||
vid_config_y = Cvar_Get ("vid_config_y", "600", CVAR_ARCHIVE, 0, "None");
|
||||
vid_stretch_by_2 = Cvar_Get ("vid_stretch_by_2", "1", CVAR_ARCHIVE, 0, "None");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "None");
|
||||
vid_fullscreen_mode =
|
||||
Cvar_Get ("vid_fullscreen_mode", "3", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("vid_fullscreen_mode", "3", CVAR_ARCHIVE, 0, "None");
|
||||
vid_windowed_mode =
|
||||
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, "None");
|
||||
block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, "None");
|
||||
vid_window_x = Cvar_Get ("vid_window_x", "0", CVAR_ARCHIVE, "None");
|
||||
vid_window_y = Cvar_Get ("vid_window_y", "0", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, 0, "None");
|
||||
block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, 0, "None");
|
||||
vid_window_x = Cvar_Get ("vid_window_x", "0", CVAR_ARCHIVE, 0, "None");
|
||||
vid_window_y = Cvar_Get ("vid_window_y", "0", CVAR_ARCHIVE, 0, "None");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -187,7 +187,7 @@ void
|
|||
VID_Init_Cvars ()
|
||||
{
|
||||
vid_fullscreen =
|
||||
Cvar_Get ("vid_fullscreen", "0", CVAR_ROM,
|
||||
Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, 0,
|
||||
"Toggles fullscreen game mode");
|
||||
}
|
||||
|
||||
|
|
|
@ -222,7 +222,7 @@ VID_Init (unsigned char *palette)
|
|||
void
|
||||
VID_Init_Cvars ()
|
||||
{
|
||||
vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", 0, "None");
|
||||
vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", CVAR_NONE, 0, "None");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1312,7 +1312,7 @@ Sys_ConsoleInput (void)
|
|||
void
|
||||
IN_Init (void)
|
||||
{
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, "None");
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, 0, "None");
|
||||
if (COM_CheckParm ("-nomouse"))
|
||||
return;
|
||||
mouse_x = mouse_y = 0.0;
|
||||
|
|
|
@ -419,7 +419,7 @@ VID_Init (unsigned char *palette)
|
|||
|
||||
Cmd_AddCommand ("gamma", VID_Gamma_f, "No Description");
|
||||
|
||||
pixel_multiply = Cvar_Get ("pixel_multiply", "2", CVAR_ARCHIVE, "None");
|
||||
pixel_multiply = Cvar_Get ("pixel_multiply", "2", CVAR_ARCHIVE, 0, "None");
|
||||
|
||||
if (pipe (render_pipeline) < 0)
|
||||
Sys_Error ("VID_Init: pipe");
|
||||
|
@ -1339,8 +1339,8 @@ IN_SendKeyEvents (void)
|
|||
void
|
||||
IN_Init (void)
|
||||
{
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "None");
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, "None");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "None");
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, 0, "None");
|
||||
if (COM_CheckParm ("-nomouse"))
|
||||
return;
|
||||
mouse_x = mouse_y = 0.0;
|
||||
|
|
|
@ -598,10 +598,10 @@ VID_Init (unsigned char *palette)
|
|||
void
|
||||
VID_Init_Cvars ()
|
||||
{
|
||||
vid_mode = Cvar_Get ("vid_mode", "5", 0, "None");
|
||||
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", 0, "None");
|
||||
vid_mode = Cvar_Get ("vid_mode", "5", CVAR_NONE, 0, "None");
|
||||
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE, 0, "None");
|
||||
vid_waitforrefresh = Cvar_Get ("vid_waitforrefresh", "0",
|
||||
CVAR_ARCHIVE, "None");
|
||||
CVAR_ARCHIVE, 0, "None");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1764,7 +1764,7 @@ VID_Init (unsigned char *palette)
|
|||
void
|
||||
VID_Init_Cvars ()
|
||||
{
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "None");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "None");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1986,26 +1986,26 @@ VID_Init (unsigned char *palette)
|
|||
int basenummodes;
|
||||
byte *ptmp;
|
||||
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "None");
|
||||
vid_wait = Cvar_Get ("vid_wait", "0", CVAR_NONE, "None");
|
||||
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, "None");
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "None");
|
||||
vid_wait = Cvar_Get ("vid_wait", "0", CVAR_NONE, 0, "None");
|
||||
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, 0, "None");
|
||||
_vid_wait_override =
|
||||
Cvar_Get ("_vid_wait_override", "0", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_vid_wait_override", "0", CVAR_ARCHIVE, 0, "None");
|
||||
_vid_default_mode =
|
||||
Cvar_Get ("_vid_default_mode", "0", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_vid_default_mode", "0", CVAR_ARCHIVE, 0, "None");
|
||||
_vid_default_mode_win =
|
||||
Cvar_Get ("_vid_default_mode_win", "3", CVAR_ARCHIVE, "None");
|
||||
vid_config_x = Cvar_Get ("vid_config_x", "800", CVAR_ARCHIVE, "None");
|
||||
vid_config_y = Cvar_Get ("vid_config_y", "600", CVAR_ARCHIVE, "None");
|
||||
vid_stretch_by_2 = Cvar_Get ("vid_stretch_by_2", "1", CVAR_ARCHIVE, "None");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("_vid_default_mode_win", "3", CVAR_ARCHIVE, 0, "None");
|
||||
vid_config_x = Cvar_Get ("vid_config_x", "800", CVAR_ARCHIVE, 0, "None");
|
||||
vid_config_y = Cvar_Get ("vid_config_y", "600", CVAR_ARCHIVE, 0, "None");
|
||||
vid_stretch_by_2 = Cvar_Get ("vid_stretch_by_2", "1", CVAR_ARCHIVE, 0, "None");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "None");
|
||||
vid_fullscreen_mode =
|
||||
Cvar_Get ("vid_fullscreen_mode", "3", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("vid_fullscreen_mode", "3", CVAR_ARCHIVE, 0, "None");
|
||||
vid_windowed_mode =
|
||||
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, "None");
|
||||
block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, "None");
|
||||
vid_window_x = Cvar_Get ("vid_window_x", "0", CVAR_ARCHIVE, "None");
|
||||
vid_window_y = Cvar_Get ("vid_window_y", "0", CVAR_ARCHIVE, "None");
|
||||
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, 0, "None");
|
||||
block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, 0, "None");
|
||||
vid_window_x = Cvar_Get ("vid_window_x", "0", CVAR_ARCHIVE, 0, "None");
|
||||
vid_window_y = Cvar_Get ("vid_window_y", "0", CVAR_ARCHIVE, 0, "None");
|
||||
|
||||
Cmd_AddCommand ("vid_testmode", VID_TestMode_f, "No Description");
|
||||
Cmd_AddCommand ("vid_nummodes", VID_NumModes_f, "No Description");
|
||||
|
|
|
@ -357,6 +357,6 @@ extern qboolean allowskybox;
|
|||
//=============================================================================
|
||||
|
||||
|
||||
|
||||
void Cvar_Info (struct cvar_s *var);
|
||||
|
||||
#endif // _CLIENT_H
|
||||
|
|
|
@ -521,4 +521,5 @@ void ClientReliableWrite_Short(client_t *cl, int c);
|
|||
void ClientReliableWrite_String(client_t *cl, char *s);
|
||||
void ClientReliableWrite_SZ(client_t *cl, void *data, int len);
|
||||
|
||||
void Cvar_Info (struct cvar_s *var);
|
||||
#endif // _SERVER_H
|
||||
|
|
|
@ -603,9 +603,9 @@ Cam_Reset (void)
|
|||
void
|
||||
CL_Cam_Init_Cvars (void)
|
||||
{
|
||||
cl_hightrack = Cvar_Get ("cl_hightrack", "0", CVAR_NONE, "view the player with the highest frags while in spectator mode.");
|
||||
cl_chasecam = Cvar_Get ("cl_chasecam", "0", CVAR_NONE, "get first person view of the person you are tracking in spectator mode");
|
||||
cl_hightrack = Cvar_Get ("cl_hightrack", "0", CVAR_NONE, 0, "view the player with the highest frags while in spectator mode.");
|
||||
cl_chasecam = Cvar_Get ("cl_chasecam", "0", CVAR_NONE, 0, "get first person view of the person you are tracking in spectator mode");
|
||||
cl_camera_maxpitch =
|
||||
Cvar_Get ("cl_camera_maxpitch", "10", CVAR_NONE, "highest camera pitch in spectator mode");
|
||||
cl_camera_maxyaw = Cvar_Get ("cl_camera_maxyaw", "30", CVAR_NONE, "highest camera yaw in spectator mode");
|
||||
Cvar_Get ("cl_camera_maxpitch", "10", CVAR_NONE, 0, "highest camera pitch in spectator mode");
|
||||
cl_camera_maxyaw = Cvar_Get ("cl_camera_maxyaw", "30", CVAR_NONE, 0, "highest camera yaw in spectator mode");
|
||||
}
|
||||
|
|
|
@ -1108,6 +1108,6 @@ CL_EmitEntities (void)
|
|||
void
|
||||
CL_Ents_Init (void)
|
||||
{
|
||||
r_firecolor = Cvar_Get ("r_firecolor", "0.9 0.4 0", CVAR_ARCHIVE,
|
||||
r_firecolor = Cvar_Get ("r_firecolor", "0.9 0.4 0", CVAR_ARCHIVE, 0,
|
||||
"color of rocket and lava ball fires");
|
||||
}
|
||||
|
|
|
@ -732,7 +732,7 @@ CL_Input_Init (void)
|
|||
void
|
||||
CL_Input_Init_Cvars (void)
|
||||
{
|
||||
cl_nodelta = Cvar_Get ("cl_nodelta", "0", CVAR_NONE, "disable player delta compression."
|
||||
cl_nodelta = Cvar_Get ("cl_nodelta", "0", CVAR_NONE, 0, "disable player delta compression."
|
||||
"set to 1 if you have a poor ISP and get a lot of U_REMOVE warnings.");
|
||||
}
|
||||
|
||||
|
|
|
@ -1197,105 +1197,105 @@ CL_Init_Cvars (void)
|
|||
{
|
||||
// LordHavoc: some people like it asking on quit, others don't...
|
||||
confirm_quit =
|
||||
Cvar_Get ("confirm_quit", "1", CVAR_ARCHIVE, "confirm quit command");
|
||||
cl_allow_cmd_pkt = Cvar_Get ("cl_allow_cmd_pkt", "1", CVAR_NONE,
|
||||
Cvar_Get ("confirm_quit", "1", CVAR_ARCHIVE, 0, "confirm quit command");
|
||||
cl_allow_cmd_pkt = Cvar_Get ("cl_allow_cmd_pkt", "1", CVAR_NONE, 0,
|
||||
"enables packets from the likes of gamespy");
|
||||
show_fps = Cvar_Get ("show_fps", "0", CVAR_NONE,
|
||||
show_fps = Cvar_Get ("show_fps", "0", CVAR_NONE, 0,
|
||||
"display realtime frames per second");
|
||||
// Misty: I like to be able to see the time when I play
|
||||
show_time = Cvar_Get ("show_time", "0", CVAR_NONE,
|
||||
show_time = Cvar_Get ("show_time", "0", CVAR_NONE, 0,
|
||||
"display the current time");
|
||||
host_speeds = Cvar_Get ("host_speeds", "0", CVAR_NONE,
|
||||
host_speeds = Cvar_Get ("host_speeds", "0", CVAR_NONE, 0,
|
||||
"display host processing times");
|
||||
cl_demospeed = Cvar_Get ("cl_demospeed", "1.0", CVAR_NONE,
|
||||
cl_demospeed = Cvar_Get ("cl_demospeed", "1.0", CVAR_NONE, 0,
|
||||
"adjust demo playback speed. 1.0 = normal, < 1 slow-mo, > 1 timelaps");
|
||||
// Misty: Turn on or off screen filling colors for powerups among other things.
|
||||
cl_cshift_bonus = Cvar_Get ("cl_cshift_bonus", "1", CVAR_ARCHIVE,
|
||||
cl_cshift_bonus = Cvar_Get ("cl_cshift_bonus", "1", CVAR_ARCHIVE, 0,
|
||||
"Show bonus flash on item pickup");
|
||||
cl_cshift_contents = Cvar_Get ("cl_cshift_content", "1", CVAR_ARCHIVE,
|
||||
cl_cshift_contents = Cvar_Get ("cl_cshift_content", "1", CVAR_ARCHIVE, 0,
|
||||
"Shift view colors for contents (water, slime, etc)");
|
||||
cl_cshift_damage = Cvar_Get ("cl_cshift_damage", "1", CVAR_ARCHIVE,
|
||||
cl_cshift_damage = Cvar_Get ("cl_cshift_damage", "1", CVAR_ARCHIVE, 0,
|
||||
"Shift view colors on damage");
|
||||
cl_cshift_powerup = Cvar_Get ("cl_cshift_powerup", "1", CVAR_ARCHIVE,
|
||||
cl_cshift_powerup = Cvar_Get ("cl_cshift_powerup", "1", CVAR_ARCHIVE, 0,
|
||||
"Shift view colors for powerups");
|
||||
cl_autoexec = Cvar_Get ("cl_autoexec", "0", CVAR_ROM,
|
||||
cl_autoexec = Cvar_Get ("cl_autoexec", "0", CVAR_ROM, 0,
|
||||
"exec autoexec.cfg on gamedir change");
|
||||
cl_warncmd = Cvar_Get ("cl_warncmd", "0", CVAR_NONE,
|
||||
cl_warncmd = Cvar_Get ("cl_warncmd", "0", CVAR_NONE, 0,
|
||||
"inform when execing a command");
|
||||
cl_upspeed = Cvar_Get ("cl_upspeed", "200", CVAR_NONE,
|
||||
cl_upspeed = Cvar_Get ("cl_upspeed", "200", CVAR_NONE, 0,
|
||||
"swim/fly up/down speed");
|
||||
cl_forwardspeed = Cvar_Get ("cl_forwardspeed", "200", CVAR_ARCHIVE,
|
||||
cl_forwardspeed = Cvar_Get ("cl_forwardspeed", "200", CVAR_ARCHIVE, 0,
|
||||
"forward speed");
|
||||
cl_backspeed = Cvar_Get ("cl_backspeed", "200", CVAR_ARCHIVE,
|
||||
cl_backspeed = Cvar_Get ("cl_backspeed", "200", CVAR_ARCHIVE, 0,
|
||||
"backward speed");
|
||||
cl_sidespeed = Cvar_Get ("cl_sidespeed", "350", CVAR_NONE, "strafe speed");
|
||||
cl_movespeedkey = Cvar_Get ("cl_movespeedkey", "2.0", CVAR_NONE,
|
||||
cl_sidespeed = Cvar_Get ("cl_sidespeed", "350", CVAR_NONE, 0, "strafe speed");
|
||||
cl_movespeedkey = Cvar_Get ("cl_movespeedkey", "2.0", CVAR_NONE, 0,
|
||||
"move `run' speed multiplier");
|
||||
cl_yawspeed = Cvar_Get ("cl_yawspeed", "140", CVAR_NONE, "turning speed");
|
||||
cl_pitchspeed = Cvar_Get ("cl_pitchspeed", "150", CVAR_NONE,
|
||||
cl_yawspeed = Cvar_Get ("cl_yawspeed", "140", CVAR_NONE, 0, "turning speed");
|
||||
cl_pitchspeed = Cvar_Get ("cl_pitchspeed", "150", CVAR_NONE, 0,
|
||||
"look up/down speed");
|
||||
cl_anglespeedkey = Cvar_Get ("cl_anglespeedkey", "1.5", CVAR_NONE,
|
||||
cl_anglespeedkey = Cvar_Get ("cl_anglespeedkey", "1.5", CVAR_NONE, 0,
|
||||
"turn `run' speed multiplier");
|
||||
cl_shownet = Cvar_Get ("cl_shownet", "0", CVAR_NONE,
|
||||
cl_shownet = Cvar_Get ("cl_shownet", "0", CVAR_NONE, 0,
|
||||
"show network packets. 0=off, 1=basic, 2=verbose");
|
||||
cl_sbar = Cvar_Get ("cl_sbar", "0", CVAR_ARCHIVE, "status bar mode");
|
||||
cl_sbar_separator = Cvar_Get ("cl_sbar_separator", "0", CVAR_ARCHIVE,
|
||||
cl_sbar = Cvar_Get ("cl_sbar", "0", CVAR_ARCHIVE, 0, "status bar mode");
|
||||
cl_sbar_separator = Cvar_Get ("cl_sbar_separator", "0", CVAR_ARCHIVE, 0,
|
||||
"turns on status bar separator");
|
||||
cl_hudswap = Cvar_Get ("cl_hudswap", "0", CVAR_ARCHIVE,
|
||||
cl_hudswap = Cvar_Get ("cl_hudswap", "0", CVAR_ARCHIVE, 0,
|
||||
"new HUD on left side?");
|
||||
cl_maxfps = Cvar_Get ("cl_maxfps", "0", CVAR_ARCHIVE,
|
||||
cl_maxfps = Cvar_Get ("cl_maxfps", "0", CVAR_ARCHIVE, 0,
|
||||
"maximum frames rendered in one second. 0 == 32");
|
||||
cl_timeout = Cvar_Get ("cl_timeout", "60", CVAR_ARCHIVE,
|
||||
cl_timeout = Cvar_Get ("cl_timeout", "60", CVAR_ARCHIVE, 0,
|
||||
"server connection timeout (since last packet received)");
|
||||
lookspring = Cvar_Get ("lookspring", "0", CVAR_ARCHIVE,
|
||||
lookspring = Cvar_Get ("lookspring", "0", CVAR_ARCHIVE, 0,
|
||||
"Snap view to center when moving and no mlook/klook");
|
||||
lookstrafe = Cvar_Get ("lookstrafe", "0", CVAR_ARCHIVE,
|
||||
lookstrafe = Cvar_Get ("lookstrafe", "0", CVAR_ARCHIVE, 0,
|
||||
"when mlook/klook on player will strafe");
|
||||
sensitivity = Cvar_Get ("sensitivity", "3", CVAR_ARCHIVE,
|
||||
sensitivity = Cvar_Get ("sensitivity", "3", CVAR_ARCHIVE, 0,
|
||||
"mouse sensitivity multiplier");
|
||||
cl_freelook = Cvar_Get ("freelook", "0", CVAR_ARCHIVE, "force +mlook");
|
||||
cl_freelook = Cvar_Get ("freelook", "0", CVAR_ARCHIVE, 0, "force +mlook");
|
||||
|
||||
m_pitch = Cvar_Get ("m_pitch", "0.022", CVAR_ARCHIVE,
|
||||
m_pitch = Cvar_Get ("m_pitch", "0.022", CVAR_ARCHIVE, 0,
|
||||
"mouse pitch (up/down) multipier");
|
||||
m_yaw = Cvar_Get ("m_yaw", "0.022", CVAR_NONE,
|
||||
m_yaw = Cvar_Get ("m_yaw", "0.022", CVAR_NONE, 0,
|
||||
"mouse yaw (left/right) multiplier");
|
||||
m_forward = Cvar_Get ("m_forward", "1", CVAR_NONE,
|
||||
m_forward = Cvar_Get ("m_forward", "1", CVAR_NONE, 0,
|
||||
"mouse forward/back speed");
|
||||
m_side = Cvar_Get ("m_side", "0.8", CVAR_NONE, "mouse strafe speed");
|
||||
m_side = Cvar_Get ("m_side", "0.8", CVAR_NONE, 0, "mouse strafe speed");
|
||||
|
||||
rcon_password = Cvar_Get ("rcon_password", "", CVAR_NONE,
|
||||
rcon_password = Cvar_Get ("rcon_password", "", CVAR_NONE, 0,
|
||||
"remote control password");
|
||||
rcon_address = Cvar_Get ("rcon_address", "", CVAR_NONE,
|
||||
rcon_address = Cvar_Get ("rcon_address", "", CVAR_NONE, 0,
|
||||
"server IP address when client not connected - for sending rcon commands");
|
||||
|
||||
cl_writecfg = Cvar_Get ("cl_writecfg", "1", CVAR_NONE, "write config files?");
|
||||
cl_writecfg = Cvar_Get ("cl_writecfg", "1", CVAR_NONE, 0, "write config files?");
|
||||
|
||||
cl_predict_players2 = Cvar_Get ("cl_predict_players2", "1", CVAR_NONE,
|
||||
cl_predict_players2 = Cvar_Get ("cl_predict_players2", "1", CVAR_NONE, 0,
|
||||
"If this and cl_predict_players is 0, no player prediction is done");
|
||||
cl_predict_players = Cvar_Get ("cl_predict_players", "1", CVAR_NONE,
|
||||
cl_predict_players = Cvar_Get ("cl_predict_players", "1", CVAR_NONE, 0,
|
||||
"If this and cl_predict_players2 is 0, no player prediction is done");
|
||||
cl_solid_players = Cvar_Get ("cl_solid_players", "1", CVAR_NONE,
|
||||
cl_solid_players = Cvar_Get ("cl_solid_players", "1", CVAR_NONE, 0,
|
||||
"Are players solid? If off, you can walk through them with difficulty");
|
||||
|
||||
localid = Cvar_Get ("localid", "", CVAR_NONE,
|
||||
localid = Cvar_Get ("localid", "", CVAR_NONE, 0,
|
||||
"FIXME: This has something to do with client authentication. No Description");
|
||||
|
||||
//
|
||||
// info mirrors
|
||||
//
|
||||
name = Cvar_Get ("name", "unnamed", CVAR_ARCHIVE | CVAR_USERINFO,
|
||||
name = Cvar_Get ("name", "unnamed", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info,
|
||||
"Player name");
|
||||
password = Cvar_Get ("password", "", CVAR_USERINFO, "Server password");
|
||||
spectator = Cvar_Get ("spectator", "", CVAR_USERINFO,
|
||||
password = Cvar_Get ("password", "", CVAR_USERINFO, Cvar_Info, "Server password");
|
||||
spectator = Cvar_Get ("spectator", "", CVAR_USERINFO, Cvar_Info,
|
||||
"Set to 1 before connecting to become a spectator");
|
||||
team = Cvar_Get ("team", "", CVAR_ARCHIVE | CVAR_USERINFO,
|
||||
team = Cvar_Get ("team", "", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info,
|
||||
"Team player is on.");
|
||||
rate = Cvar_Get ("rate", "2500", CVAR_ARCHIVE | CVAR_USERINFO,
|
||||
rate = Cvar_Get ("rate", "2500", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info,
|
||||
"Amount of bytes per second server will send/download to you");
|
||||
msg = Cvar_Get ("msg", "1", CVAR_ARCHIVE | CVAR_USERINFO, "Determines the type of messages reported 0 is maximum, 4 is none");
|
||||
noaim = Cvar_Get ("noaim", "0", CVAR_ARCHIVE | CVAR_USERINFO,
|
||||
msg = Cvar_Get ("msg", "1", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info, "Determines the type of messages reported 0 is maximum, 4 is none");
|
||||
noaim = Cvar_Get ("noaim", "0", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info,
|
||||
"Auto aim off switch. Set to 1 to turn off.");
|
||||
cl_max_particles = Cvar_Get ("cl_max_particles", "2048", CVAR_ARCHIVE,
|
||||
cl_max_particles = Cvar_Get ("cl_max_particles", "2048", CVAR_ARCHIVE, 0,
|
||||
"Maximum amount of particles to display");
|
||||
}
|
||||
|
||||
|
@ -1560,7 +1560,7 @@ Host_Init (void)
|
|||
// only reads from within the quake file system, and changing that is
|
||||
// probably Not A Good Thing (tm).
|
||||
fs_globalcfg = Cvar_Get ("fs_globalcfg", FS_GLOBALCFG,
|
||||
CVAR_ROM, "global configuration file");
|
||||
CVAR_ROM, 0, "global configuration file");
|
||||
Cmd_Exec_File (fs_globalcfg->string);
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
|
@ -1569,7 +1569,7 @@ Host_Init (void)
|
|||
Cbuf_Execute_Sets ();
|
||||
|
||||
fs_usercfg = Cvar_Get ("fs_usercfg", FS_USERCFG,
|
||||
CVAR_ROM, "user configuration file");
|
||||
CVAR_ROM, 0, "user configuration file");
|
||||
Cmd_Exec_File (fs_usercfg->string);
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ void
|
|||
CL_Prediction_Init_Cvars (void)
|
||||
{
|
||||
/* I'm not totally sure what cl_pushlatency is for. Or if it is SUPPOSED TO BE SETTABLE. */
|
||||
cl_pushlatency = Cvar_Get ("pushlatency", "-999", CVAR_NONE, "How much prediction should the client make");
|
||||
cl_nopred = Cvar_Get ("cl_nopred", "0", CVAR_NONE, "Set to turn off client prediction");
|
||||
cl_nostatpred = Cvar_Get ("cl_nostatpred", "0", CVAR_NONE, "Set to turn off static player prediction");
|
||||
cl_pushlatency = Cvar_Get ("pushlatency", "-999", CVAR_NONE, 0, "How much prediction should the client make");
|
||||
cl_nopred = Cvar_Get ("cl_nopred", "0", CVAR_NONE, 0, "Set to turn off client prediction");
|
||||
cl_nostatpred = Cvar_Get ("cl_nostatpred", "0", CVAR_NONE, 0, "Set to turn off static player prediction");
|
||||
}
|
||||
|
|
|
@ -230,7 +230,7 @@ Sys_Sleep (void)
|
|||
void
|
||||
Sys_Init_Cvars (void)
|
||||
{
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, "Set to disable std out");
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, 0, "Set to disable std out");
|
||||
if (COM_CheckParm ("-nostdout"))
|
||||
Cvar_Set (sys_nostdout, "1");
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ Sys_Quit (void)
|
|||
void
|
||||
Sys_Init_Cvars (void)
|
||||
{
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, "set to disable std out");
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, 0, "set to disable std out");
|
||||
if (COM_CheckParm ("-nostdout"))
|
||||
Cvar_Set (sys_nostdout, "1");
|
||||
}
|
||||
|
|
|
@ -163,7 +163,7 @@ Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)
|
|||
void
|
||||
Sys_Init_Cvars (void)
|
||||
{
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "1", CVAR_NONE, "unset to enable std out - windows does NOT support this");
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "1", CVAR_NONE, 0, "unset to enable std out - windows does NOT support this");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -93,5 +93,5 @@ COM_Init (void)
|
|||
void
|
||||
COM_Init_Cvars (void)
|
||||
{
|
||||
registered = Cvar_Get ("registered", "0", CVAR_NONE, "Is the game the registered version. 1 yes 0 no");
|
||||
registered = Cvar_Get ("registered", "0", CVAR_NONE, 0, "Is the game the registered version. 1 yes 0 no");
|
||||
}
|
||||
|
|
|
@ -271,7 +271,7 @@ void
|
|||
Con_Init_Cvars (void)
|
||||
{
|
||||
con_notifytime =
|
||||
Cvar_Get ("con_notifytime", "3", CVAR_NONE,
|
||||
Cvar_Get ("con_notifytime", "3", CVAR_NONE, 0,
|
||||
"How long in seconds messages are displayed on screen");
|
||||
}
|
||||
|
||||
|
|
|
@ -313,7 +313,7 @@ x11_set_vidmode (int width, int height)
|
|||
void
|
||||
x11_Init_Cvars (void)
|
||||
{
|
||||
vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", CVAR_ROM,
|
||||
vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, 0,
|
||||
"Toggles fullscreen game mode");
|
||||
}
|
||||
|
||||
|
|
|
@ -70,9 +70,9 @@ D_Init (void)
|
|||
void
|
||||
D_Init_Cvars (void)
|
||||
{
|
||||
d_subdiv16 = Cvar_Get ("d_subdiv16", "1", CVAR_NONE, "Set to enable extreme perspective correction");
|
||||
d_mipcap = Cvar_Get ("d_mipcap", "0", CVAR_NONE, "Detail level. 0 is highest, 3 is lowest.");
|
||||
d_mipscale = Cvar_Get ("d_mipscale", "1", CVAR_NONE, "Detail level of objects. 0 is highest, 3 is lowest.");
|
||||
d_subdiv16 = Cvar_Get ("d_subdiv16", "1", CVAR_NONE, 0, "Set to enable extreme perspective correction");
|
||||
d_mipcap = Cvar_Get ("d_mipcap", "0", CVAR_NONE, 0, "Detail level. 0 is highest, 3 is lowest.");
|
||||
d_mipscale = Cvar_Get ("d_mipscale", "1", CVAR_NONE, 0, "Detail level of objects. 0 is highest, 3 is lowest.");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -198,7 +198,7 @@ Draw_Init (void)
|
|||
r_rectdesc.rowbytes = draw_backtile->width;
|
||||
|
||||
cl_verstring =
|
||||
Cvar_Get ("cl_verstring", PROGRAM " " VERSION, CVAR_NONE, "Client version string");
|
||||
Cvar_Get ("cl_verstring", PROGRAM " " VERSION, CVAR_NONE, 0, "Client version string");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -99,6 +99,6 @@ Game_Init (void)
|
|||
void
|
||||
Game_Init_Cvars (void)
|
||||
{
|
||||
fs_skinbase = Cvar_Get ("fs_skinbase", "qw", CVAR_ROM,
|
||||
fs_skinbase = Cvar_Get ("fs_skinbase", "qw", CVAR_ROM, 0,
|
||||
"location of skins dir for downloads");
|
||||
}
|
||||
|
|
|
@ -309,18 +309,18 @@ Draw_Init (void)
|
|||
void
|
||||
Draw_Init_Cvars (void)
|
||||
{
|
||||
gl_lightmode = Cvar_Get ("gl_lightmode", "1", CVAR_ARCHIVE,
|
||||
gl_lightmode = Cvar_Get ("gl_lightmode", "1", CVAR_ARCHIVE, 0,
|
||||
"Lighting mode (0 = GLQuake style, 1 = new style)");
|
||||
gl_max_size = Cvar_Get ("gl_max_size", "1024", CVAR_NONE, "Texture dimension");
|
||||
gl_picmip = Cvar_Get ("gl_picmip", "0", CVAR_NONE, "Dimensions of displayed textures. 0 is normal, 1 is half, 2 is 1/4");
|
||||
gl_constretch = Cvar_Get ("gl_constretch", "0", CVAR_ARCHIVE,
|
||||
gl_max_size = Cvar_Get ("gl_max_size", "1024", CVAR_NONE, 0, "Texture dimension");
|
||||
gl_picmip = Cvar_Get ("gl_picmip", "0", CVAR_NONE, 0, "Dimensions of displayed textures. 0 is normal, 1 is half, 2 is 1/4");
|
||||
gl_constretch = Cvar_Get ("gl_constretch", "0", CVAR_ARCHIVE, 0,
|
||||
"whether slide the console or stretch it");
|
||||
gl_conalpha = Cvar_Get ("gl_conalpha", "0.6", CVAR_ARCHIVE,
|
||||
gl_conalpha = Cvar_Get ("gl_conalpha", "0.6", CVAR_ARCHIVE, 0,
|
||||
"alpha value for the console background");
|
||||
gl_conspin = Cvar_Get ("gl_conspin", "0", CVAR_ARCHIVE,
|
||||
gl_conspin = Cvar_Get ("gl_conspin", "0", CVAR_ARCHIVE, 0,
|
||||
"speed at which the console spins");
|
||||
gl_lightmap_components = Cvar_Get ("gl_lightmap_components", "4", CVAR_ROM, "Lightmap texture components. 1 is greyscale, 3 is RGB, 4 is RGBA.");
|
||||
cl_verstring = Cvar_Get ("cl_verstring", PROGRAM " " VERSION, CVAR_NONE,
|
||||
gl_lightmap_components = Cvar_Get ("gl_lightmap_components", "4", CVAR_ROM, 0, "Lightmap texture components. 1 is greyscale, 3 is RGB, 4 is RGBA.");
|
||||
cl_verstring = Cvar_Get ("cl_verstring", PROGRAM " " VERSION, CVAR_NONE, 0,
|
||||
"Client version string");
|
||||
}
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@ GL_CheckBrightness (unsigned char *pal)
|
|||
int i, inf;
|
||||
float brightness;
|
||||
|
||||
brighten = Cvar_Get ("brighten", "1", CVAR_NONE,
|
||||
brighten = Cvar_Get ("brighten", "1", CVAR_NONE, 0,
|
||||
"Palette hack equivalent to brightness");
|
||||
|
||||
if ((i = COM_CheckParm ("-brighten"))) {
|
||||
|
|
|
@ -205,38 +205,38 @@ R_Init (void)
|
|||
void
|
||||
R_Init_Cvars (void)
|
||||
{
|
||||
r_norefresh = Cvar_Get ("r_norefresh", "0", CVAR_NONE, "Set to 1 to disable display refresh");
|
||||
r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, "Toggles drawing of entities (almost everything but the world)");
|
||||
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_ARCHIVE, "Toggles drawing of view models (your weapons)");
|
||||
r_shadows = Cvar_Get ("r_shadows", "0", CVAR_ARCHIVE, "Set to 1 to enable shadows for entities");
|
||||
r_wateralpha = Cvar_Get ("r_wateralpha", "1", CVAR_NONE, "Determine opacity of liquids. 1 = solid, 0 = transparent, otherwise translucent.");
|
||||
r_norefresh = Cvar_Get ("r_norefresh", "0", CVAR_NONE, 0, "Set to 1 to disable display refresh");
|
||||
r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, 0, "Toggles drawing of entities (almost everything but the world)");
|
||||
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_ARCHIVE, 0, "Toggles drawing of view models (your weapons)");
|
||||
r_shadows = Cvar_Get ("r_shadows", "0", CVAR_ARCHIVE, 0, "Set to 1 to enable shadows for entities");
|
||||
r_wateralpha = Cvar_Get ("r_wateralpha", "1", CVAR_NONE, 0, "Determine opacity of liquids. 1 = solid, 0 = transparent, otherwise translucent.");
|
||||
/* FIXME what does r_waterripple use for units? */
|
||||
r_waterripple = Cvar_Get ("r_waterripple", "0", CVAR_NONE, "Set to make liquids ripple, a good setting is 5");
|
||||
r_dynamic = Cvar_Get ("r_dynamic", "1", CVAR_NONE, "Set to 0 to disable lightmap changes");
|
||||
r_novis = Cvar_Get ("r_novis", "0", CVAR_NONE, "Set to 1 to enable runtime visibility checking (SLOW)");
|
||||
r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, "Display drawing time and statistics of what is being viewed");
|
||||
r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_ARCHIVE, "Graph network stats");
|
||||
r_netgraph_alpha = Cvar_Get ("r_netgraph_alpha", "0.5", CVAR_ARCHIVE, "Net graph translucency");
|
||||
r_netgraph_box = Cvar_Get ("r_netgraph_box", "1", CVAR_ARCHIVE, "Draw box around net graph");
|
||||
r_particles = Cvar_Get ("r_particles", "1", CVAR_ARCHIVE, "whether or not to draw particles");
|
||||
r_skyname = Cvar_Get ("r_skyname", "none", CVAR_NONE, "name of the current skybox");
|
||||
r_waterripple = Cvar_Get ("r_waterripple", "0", CVAR_NONE, 0, "Set to make liquids ripple, a good setting is 5");
|
||||
r_dynamic = Cvar_Get ("r_dynamic", "1", CVAR_NONE, 0, "Set to 0 to disable lightmap changes");
|
||||
r_novis = Cvar_Get ("r_novis", "0", CVAR_NONE, 0, "Set to 1 to enable runtime visibility checking (SLOW)");
|
||||
r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, 0, "Display drawing time and statistics of what is being viewed");
|
||||
r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_ARCHIVE, 0, "Graph network stats");
|
||||
r_netgraph_alpha = Cvar_Get ("r_netgraph_alpha", "0.5", CVAR_ARCHIVE, 0, "Net graph translucency");
|
||||
r_netgraph_box = Cvar_Get ("r_netgraph_box", "1", CVAR_ARCHIVE, 0, "Draw box around net graph");
|
||||
r_particles = Cvar_Get ("r_particles", "1", CVAR_ARCHIVE, 0, "whether or not to draw particles");
|
||||
r_skyname = Cvar_Get ("r_skyname", "none", CVAR_NONE, 0, "name of the current skybox");
|
||||
|
||||
gl_affinemodels = Cvar_Get ("gl_affinemodels", "0", CVAR_ARCHIVE, "Makes texture rendering quality better if set to 1");
|
||||
gl_clear = Cvar_Get ("gl_clear", "0", CVAR_NONE, "Set to 1 to make background black. Useful for removing HOM effect");
|
||||
gl_dlight_lightmap = Cvar_Get ("gl_dlight_lightmap", "1", CVAR_ARCHIVE, "Set to 1 for high quality dynamic lighting.");
|
||||
gl_dlight_polyblend = Cvar_Get ("gl_dlight_polyblend", "0", CVAR_ARCHIVE, "Set to 1 to use a dynamic light effect faster on GL");
|
||||
gl_dlight_smooth = Cvar_Get ("gl_dlight_smooth", "1", CVAR_ARCHIVE, "Smooth dynamic vertex lighting");
|
||||
gl_fb_bmodels = Cvar_Get ("gl_fb_bmodels", "1", CVAR_ARCHIVE, "Toggles fullbright color support for bmodels");
|
||||
gl_fb_models = Cvar_Get ("gl_fb_models", "1", CVAR_ARCHIVE, "Toggles fullbright color support for models");
|
||||
gl_fires = Cvar_Get ("gl_fires", "0", CVAR_ARCHIVE, "Toggles lavaball and rocket fireballs");
|
||||
gl_keeptjunctions = Cvar_Get ("gl_keeptjunctions", "1", CVAR_ARCHIVE, "Set to 0 to turn off colinear vertexes upon level load");
|
||||
gl_lerp_anim = Cvar_Get ("gl_lerp_anim", "1", CVAR_ARCHIVE, "Toggles model animation interpolation");
|
||||
gl_multitexture = Cvar_Get ("gl_multitexture", "0", CVAR_ARCHIVE, "Use multitexture when available");
|
||||
gl_nocolors = Cvar_Get ("gl_nocolors", "0", CVAR_NONE, "Set to 1, turns off all player colors");
|
||||
gl_playermip = Cvar_Get ("gl_playermip", "0", CVAR_NONE, "Detail of player skins. 0 best, 4 worst.");
|
||||
gl_sky_clip = Cvar_Get ("gl_sky_clip", "0", CVAR_ARCHIVE, "controls whether sky is drawn first (0) or later (1)");
|
||||
gl_sky_divide = Cvar_Get ("gl_sky_divide", "1", CVAR_ARCHIVE, "subdivide sky polys");
|
||||
gl_skymultipass = Cvar_Get ("gl_skymultipass", "1", CVAR_ARCHIVE, "controls whether the skydome is single or double pass");
|
||||
gl_affinemodels = Cvar_Get ("gl_affinemodels", "0", CVAR_ARCHIVE, 0, "Makes texture rendering quality better if set to 1");
|
||||
gl_clear = Cvar_Get ("gl_clear", "0", CVAR_NONE, 0, "Set to 1 to make background black. Useful for removing HOM effect");
|
||||
gl_dlight_lightmap = Cvar_Get ("gl_dlight_lightmap", "1", CVAR_ARCHIVE, 0, "Set to 1 for high quality dynamic lighting.");
|
||||
gl_dlight_polyblend = Cvar_Get ("gl_dlight_polyblend", "0", CVAR_ARCHIVE, 0, "Set to 1 to use a dynamic light effect faster on GL");
|
||||
gl_dlight_smooth = Cvar_Get ("gl_dlight_smooth", "1", CVAR_ARCHIVE, 0, "Smooth dynamic vertex lighting");
|
||||
gl_fb_bmodels = Cvar_Get ("gl_fb_bmodels", "1", CVAR_ARCHIVE, 0, "Toggles fullbright color support for bmodels");
|
||||
gl_fb_models = Cvar_Get ("gl_fb_models", "1", CVAR_ARCHIVE, 0, "Toggles fullbright color support for models");
|
||||
gl_fires = Cvar_Get ("gl_fires", "0", CVAR_ARCHIVE, 0, "Toggles lavaball and rocket fireballs");
|
||||
gl_keeptjunctions = Cvar_Get ("gl_keeptjunctions", "1", CVAR_ARCHIVE, 0, "Set to 0 to turn off colinear vertexes upon level load");
|
||||
gl_lerp_anim = Cvar_Get ("gl_lerp_anim", "1", CVAR_ARCHIVE, 0, "Toggles model animation interpolation");
|
||||
gl_multitexture = Cvar_Get ("gl_multitexture", "0", CVAR_ARCHIVE, 0, "Use multitexture when available");
|
||||
gl_nocolors = Cvar_Get ("gl_nocolors", "0", CVAR_NONE, 0, "Set to 1, turns off all player colors");
|
||||
gl_playermip = Cvar_Get ("gl_playermip", "0", CVAR_NONE, 0, "Detail of player skins. 0 best, 4 worst.");
|
||||
gl_sky_clip = Cvar_Get ("gl_sky_clip", "0", CVAR_ARCHIVE, 0, "controls whether sky is drawn first (0) or later (1)");
|
||||
gl_sky_divide = Cvar_Get ("gl_sky_divide", "1", CVAR_ARCHIVE, 0, "subdivide sky polys");
|
||||
gl_skymultipass = Cvar_Get ("gl_skymultipass", "1", CVAR_ARCHIVE, 0, "controls whether the skydome is single or double pass");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -384,21 +384,21 @@ SCR_SizeDown_f (void)
|
|||
void
|
||||
SCR_Init_Cvars (void)
|
||||
{
|
||||
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, "Your point of view in degrees. Smaller than 90 zooms in.");
|
||||
scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, "Set the screen size 30 minimum, 120 maximum");
|
||||
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, "How quickly console scrolls up or down");
|
||||
scr_consize = Cvar_Get ("scr_consize", "0.5", CVAR_ARCHIVE, "fraction of the screen the console covers when down");
|
||||
scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, "Show RAM icon if game is running low on memory");
|
||||
scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, "Show a turtle icon if your fps is slower than 10");
|
||||
scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, "Toggles display of pause graphic");
|
||||
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, "How long in seconds screen hints are displayed");
|
||||
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, "How fast the text is displayed at the end of the single player episodes");
|
||||
gl_triplebuffer = Cvar_Get ("gl_triplebuffer", "1", CVAR_ARCHIVE, "Set to 1 by default. Fixes status bar flicker on some hardware");
|
||||
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, 0, "Your point of view in degrees. Smaller than 90 zooms in.");
|
||||
scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, 0, "Set the screen size 30 minimum, 120 maximum");
|
||||
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, 0, "How quickly console scrolls up or down");
|
||||
scr_consize = Cvar_Get ("scr_consize", "0.5", CVAR_ARCHIVE, 0, "fraction of the screen the console covers when down");
|
||||
scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, 0, "Show RAM icon if game is running low on memory");
|
||||
scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, 0, "Show a turtle icon if your fps is slower than 10");
|
||||
scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, 0, "Toggles display of pause graphic");
|
||||
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, 0, "How long in seconds screen hints are displayed");
|
||||
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, 0, "How fast the text is displayed at the end of the single player episodes");
|
||||
gl_triplebuffer = Cvar_Get ("gl_triplebuffer", "1", CVAR_ARCHIVE, 0, "Set to 1 by default. Fixes status bar flicker on some hardware");
|
||||
|
||||
crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE, "Color of the new crosshair");
|
||||
crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE, "Crosshair type. 0 off, 1 old without color, 2 new with colors");
|
||||
cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_ARCHIVE, "Sets the position of the crosshair on the X-axis.");
|
||||
cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_ARCHIVE, "Sets the position of the crosshair on the Y-axis.");
|
||||
crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE, 0, "Color of the new crosshair");
|
||||
crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE, 0, "Crosshair type. 0 off, 1 old without color, 2 new with colors");
|
||||
cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_ARCHIVE, 0, "Sets the position of the crosshair on the X-axis.");
|
||||
cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_ARCHIVE, 0, "Sets the position of the crosshair on the Y-axis.");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -362,8 +362,8 @@ IN_Init_Cvars (void)
|
|||
{
|
||||
JOY_Init_Cvars ();
|
||||
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "If set to 1, quake will grab the mouse in X");
|
||||
// m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, "Toggle mouse input filtering");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "If set to 1, quake will grab the mouse in X");
|
||||
// m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, 0, "Toggle mouse input filtering");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -134,7 +134,7 @@ void
|
|||
IN_Init_Cvars (void)
|
||||
{
|
||||
JOY_Init_Cvars ();
|
||||
m_filter = Cvar_Get ("m_filter", "0", 0, "Toggle mouse input filtering.");
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_NONE, 0, "Toggle mouse input filtering.");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -424,7 +424,7 @@ void
|
|||
IN_Init_Cvars (void)
|
||||
{
|
||||
// mouse variables
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_NONE, "Toggle mouse input filtering.");
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_NONE, 0, "Toggle mouse input filtering.");
|
||||
|
||||
JOY_Init_Cvars();
|
||||
}
|
||||
|
|
|
@ -550,9 +550,9 @@ void
|
|||
IN_Init_Cvars (void)
|
||||
{
|
||||
JOY_Init_Cvars ();
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "With this set to 1, quake will grab the mouse from X");
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, "Toggle mouse input filtering.");
|
||||
in_dga = Cvar_Get ("in_dga", "1", CVAR_ARCHIVE, "DGA Input support");
|
||||
in_dga_mouseaccel = Cvar_Get ("in_dga_mouseaccel", "1", CVAR_ARCHIVE,
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "With this set to 1, quake will grab the mouse from X");
|
||||
m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, 0, "Toggle mouse input filtering.");
|
||||
in_dga = Cvar_Get ("in_dga", "1", CVAR_ARCHIVE, 0, "DGA Input support");
|
||||
in_dga_mouseaccel = Cvar_Get ("in_dga_mouseaccel", "1", CVAR_ARCHIVE, 0,
|
||||
"DGA Mouse accelleration multiplier");
|
||||
}
|
||||
|
|
|
@ -199,19 +199,19 @@ JOY_Init_Cvars (void)
|
|||
int i;
|
||||
|
||||
joy_device =
|
||||
Cvar_Get ("joy_device", "/dev/js0", CVAR_NONE | CVAR_ROM,
|
||||
Cvar_Get ("joy_device", "/dev/js0", CVAR_NONE | CVAR_ROM, 0,
|
||||
"Joystick device");
|
||||
joy_enable =
|
||||
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE,
|
||||
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
|
||||
"Joystick enable flag");
|
||||
joy_sensitivity =
|
||||
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE,
|
||||
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
|
||||
"Joystick sensitivity");
|
||||
|
||||
for (i = 0; i < JOY_MAX_AXES; i++) {
|
||||
joy_axes[i].axis = Cvar_Get (joy_axes[i].var.name,
|
||||
joy_axes[i].var.string,
|
||||
CVAR_ARCHIVE, "Set joystick axes");
|
||||
CVAR_ARCHIVE, 0, "Set joystick axes");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -63,13 +63,13 @@ void
|
|||
JOY_Init_Cvars (void)
|
||||
{
|
||||
joy_device =
|
||||
Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM,
|
||||
Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM, 0,
|
||||
"Joystick device");
|
||||
joy_enable =
|
||||
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE,
|
||||
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
|
||||
"Joystick enable flag");
|
||||
joy_sensitivity =
|
||||
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE,
|
||||
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
|
||||
"Joystick sensitivity");
|
||||
}
|
||||
|
||||
|
|
|
@ -554,54 +554,54 @@ void
|
|||
JOY_Init_Cvars(void)
|
||||
{
|
||||
joy_device =
|
||||
Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM,
|
||||
Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM, 0,
|
||||
"Joystick device");
|
||||
joy_enable =
|
||||
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE,
|
||||
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
|
||||
"Joystick enable flag");
|
||||
joy_sensitivity =
|
||||
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE,
|
||||
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
|
||||
"Joystick sensitivity");
|
||||
|
||||
// joystick variables
|
||||
|
||||
in_joystick =
|
||||
Cvar_Get ("joystick", "0", CVAR_ARCHIVE, "FIXME: No Description");
|
||||
Cvar_Get ("joystick", "0", CVAR_ARCHIVE, 0, "FIXME: No Description");
|
||||
joy_name =
|
||||
Cvar_Get ("joyname", "joystick", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joyname", "joystick", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_advanced =
|
||||
Cvar_Get ("joyadvanced", "0", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joyadvanced", "0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_advaxisx =
|
||||
Cvar_Get ("joyadvaxisx", "0", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joyadvaxisx", "0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_advaxisy =
|
||||
Cvar_Get ("joyadvaxisy", "0", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joyadvaxisy", "0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_advaxisz =
|
||||
Cvar_Get ("joyadvaxisz", "0", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joyadvaxisz", "0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_advaxisr =
|
||||
Cvar_Get ("joyadvaxisr", "0", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joyadvaxisr", "0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_advaxisu =
|
||||
Cvar_Get ("joyadvaxisu", "0", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joyadvaxisu", "0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_advaxisv =
|
||||
Cvar_Get ("joyadvaxisv", "0", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joyadvaxisv", "0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_forwardthreshold =
|
||||
Cvar_Get ("joyforwardthreshold", "0.15", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joyforwardthreshold", "0.15", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_sidethreshold =
|
||||
Cvar_Get ("joysidethreshold", "0.15", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joysidethreshold", "0.15", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_pitchthreshold =
|
||||
Cvar_Get ("joypitchthreshold", "0.15", CVAR_NONE, "FIXME: No Description");
|
||||
joy_yawthreshold = Cvar_Get ("joyyawthreshold", "0.15", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joypitchthreshold", "0.15", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_yawthreshold = Cvar_Get ("joyyawthreshold", "0.15", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_forwardsensitivity =
|
||||
Cvar_Get ("joyforwardsensitivity", "-1.0", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joyforwardsensitivity", "-1.0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_sidesensitivity =
|
||||
Cvar_Get ("joysidesensitivity", "-1.0", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joysidesensitivity", "-1.0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_pitchsensitivity =
|
||||
Cvar_Get ("joypitchsensitivity", "1.0", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joypitchsensitivity", "1.0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_yawsensitivity =
|
||||
Cvar_Get ("joyyawsensitivity", "-1.0", CVAR_NONE, "FIXME: No Description");
|
||||
joy_wwhack1 = Cvar_Get ("joywwhack1", "0.0", CVAR_NONE, "FIXME: No Description");
|
||||
joy_wwhack2 = Cvar_Get ("joywwhack2", "0.0", CVAR_NONE, "FIXME: No Description");
|
||||
Cvar_Get ("joyyawsensitivity", "-1.0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_wwhack1 = Cvar_Get ("joywwhack1", "0.0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
joy_wwhack2 = Cvar_Get ("joywwhack2", "0.0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
|
||||
joy_debug = Cvar_Get ("joy_debug", "0.0", CVAR_NONE, "FIXME: No Description");
|
||||
joy_debug = Cvar_Get ("joy_debug", "0.0", CVAR_NONE, 0, "FIXME: No Description");
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -747,7 +747,7 @@ Key_Init (void)
|
|||
void
|
||||
Key_Init_Cvars (void)
|
||||
{
|
||||
cl_chatmode = Cvar_Get ("cl_chatmode", "2", 0,
|
||||
cl_chatmode = Cvar_Get ("cl_chatmode", "2", CVAR_NONE, 0,
|
||||
"Controls when console text will be treated as a chat message: 0 - never, 1 - always, 2 - smart");
|
||||
}
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ void
|
|||
Mod_Init_Cvars (void)
|
||||
{
|
||||
gl_subdivide_size =
|
||||
Cvar_Get ("gl_subdivide_size", "128", CVAR_ARCHIVE, "Sets the division value for the sky brushes.");
|
||||
Cvar_Get ("gl_subdivide_size", "128", CVAR_ARCHIVE, 0, "Sets the division value for the sky brushes.");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -129,9 +129,9 @@ Netchan_Init (void)
|
|||
void
|
||||
Netchan_Init_Cvars (void)
|
||||
{
|
||||
showpackets = Cvar_Get ("showpackets", "0", CVAR_NONE, "Show all network packets");
|
||||
showdrop = Cvar_Get ("showdrop", "0", CVAR_NONE, "Toggle the display of how many packets you are dropping");
|
||||
qport = Cvar_Get ("qport", "0", CVAR_NONE, "The internal port number for the game networking code."
|
||||
showpackets = Cvar_Get ("showpackets", "0", CVAR_NONE, 0, "Show all network packets");
|
||||
showdrop = Cvar_Get ("showdrop", "0", CVAR_NONE, 0, "Toggle the display of how many packets you are dropping");
|
||||
qport = Cvar_Get ("qport", "0", CVAR_NONE, 0, "The internal port number for the game networking code."
|
||||
"Useful for clients who use multiple connections through one IP address (NAT/IP-MASQ) because default port is random.");
|
||||
}
|
||||
|
||||
|
|
|
@ -961,7 +961,7 @@ int
|
|||
Net_Log_Init (void)
|
||||
{
|
||||
netlogger =
|
||||
Cvar_Get ("net_logger", "1", CVAR_NONE, "Packet logging/parsing");
|
||||
Cvar_Get ("net_logger", "1", CVAR_NONE, 0, "Packet logging/parsing");
|
||||
|
||||
// 0 = no logging
|
||||
// 1 = hex dump only
|
||||
|
@ -970,7 +970,7 @@ Net_Log_Init (void)
|
|||
// 4 = parse/hexdump, skip movement/empty messages
|
||||
|
||||
netloglevel =
|
||||
Cvar_Get ("net_loglevel", "2", CVAR_NONE, "Packet logging/parsing");
|
||||
Cvar_Get ("net_loglevel", "2", CVAR_NONE, 0, "Packet logging/parsing");
|
||||
|
||||
Net_LogStart ("qfpacket.log");
|
||||
return 0;
|
||||
|
|
|
@ -66,7 +66,7 @@ Pmove_Init (void)
|
|||
void
|
||||
Pmove_Init_Cvars (void)
|
||||
{
|
||||
no_pogo_stick = Cvar_Get ("no_pogo_stick", "0", CVAR_SERVERINFO,
|
||||
no_pogo_stick = Cvar_Get ("no_pogo_stick", "0", CVAR_SERVERINFO, Cvar_Info,
|
||||
"disable the ability to pogo stick");
|
||||
}
|
||||
|
||||
|
|
|
@ -267,31 +267,31 @@ R_Init_Cvars (void)
|
|||
{
|
||||
D_Init_Cvars ();
|
||||
|
||||
r_draworder = Cvar_Get ("r_draworder", "0", CVAR_NONE, "Toggles drawing order");
|
||||
r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, "Toggles the displaying of drawing time and"
|
||||
r_draworder = Cvar_Get ("r_draworder", "0", CVAR_NONE, 0, "Toggles drawing order");
|
||||
r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, 0, "Toggles the displaying of drawing time and"
|
||||
"statistics of what is currently being viewed");
|
||||
r_timegraph = Cvar_Get ("r_timegraph", "0", CVAR_NONE, "Toggle the display of a performance graph");
|
||||
r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, "Toggle the display of a graph showing network performance");
|
||||
r_zgraph = Cvar_Get ("r_zgraph", "0", CVAR_NONE, "Toggle the graph that reports the changes of z-axis position");
|
||||
r_graphheight = Cvar_Get ("r_graphheight", "32", CVAR_NONE, "Set the number of lines displayed in the various graphs");
|
||||
r_drawflat = Cvar_Get ("r_drawflat", "0", CVAR_NONE, "Toggles the drawing of textures");
|
||||
r_ambient = Cvar_Get ("r_ambient", "0", CVAR_NONE, "Determines the ambient lighting for a level");
|
||||
r_clearcolor = Cvar_Get ("r_clearcolor", "2", CVAR_NONE, "This sets the color for areas outside of the current map");
|
||||
r_waterwarp = Cvar_Get ("r_waterwarp", "1", CVAR_NONE, "Toggles whether surfaces are warped in a liquid.");
|
||||
r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, "Toggles the drawing of entities.");
|
||||
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_ARCHIVE, "Toggles the drawing of your weapon");
|
||||
r_particles = Cvar_Get ("r_particles", "1", CVAR_ARCHIVE, "Toggles drawing of particles.");
|
||||
r_aliasstats = Cvar_Get ("r_polymodelstats", "0", CVAR_NONE, "Toggles the displays of number of polygon models current being viewed");
|
||||
r_dspeeds = Cvar_Get ("r_dspeeds", "0", CVAR_NONE, "Toggles the display of drawing speed information");
|
||||
r_reportsurfout = Cvar_Get ("r_reportsurfout", "0", CVAR_NONE, "Toggle the display of how many surfaces where not displayed");
|
||||
r_maxsurfs = Cvar_Get ("r_maxsurfs", "0", CVAR_NONE, "Sets the maximum number of surfaces");
|
||||
r_numsurfs = Cvar_Get ("r_numsurfs", "0", CVAR_NONE, "Toggles the displaying of number of surfaces currently being viewed");
|
||||
r_reportedgeout = Cvar_Get ("r_reportedgeout", "0", CVAR_NONE, "Toggle the display of how many edges where not displayed");
|
||||
r_maxedges = Cvar_Get ("r_maxedges", "0", CVAR_NONE, "Sets the maximum number of surfaces");
|
||||
r_numedges = Cvar_Get ("r_numedges", "0", CVAR_NONE, "Toggles the displaying of number of edges currently being viewed");
|
||||
r_aliastransbase = Cvar_Get ("r_aliastransbase", "200", CVAR_NONE, "Determines how much of an alias model is clipped away and how much is viewable");
|
||||
r_aliastransadj = Cvar_Get ("r_aliastransadj", "100", CVAR_NONE, "Determines how much of an alias model is clipped away and how much is viewable.");
|
||||
gl_sky_divide = Cvar_Get ("gl_sky_divide", "1", CVAR_ARCHIVE,
|
||||
r_timegraph = Cvar_Get ("r_timegraph", "0", CVAR_NONE, 0, "Toggle the display of a performance graph");
|
||||
r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, 0, "Toggle the display of a graph showing network performance");
|
||||
r_zgraph = Cvar_Get ("r_zgraph", "0", CVAR_NONE, 0, "Toggle the graph that reports the changes of z-axis position");
|
||||
r_graphheight = Cvar_Get ("r_graphheight", "32", CVAR_NONE, 0, "Set the number of lines displayed in the various graphs");
|
||||
r_drawflat = Cvar_Get ("r_drawflat", "0", CVAR_NONE, 0, "Toggles the drawing of textures");
|
||||
r_ambient = Cvar_Get ("r_ambient", "0", CVAR_NONE, 0, "Determines the ambient lighting for a level");
|
||||
r_clearcolor = Cvar_Get ("r_clearcolor", "2", CVAR_NONE, 0, "This sets the color for areas outside of the current map");
|
||||
r_waterwarp = Cvar_Get ("r_waterwarp", "1", CVAR_NONE, 0, "Toggles whether surfaces are warped in a liquid.");
|
||||
r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, 0, "Toggles the drawing of entities.");
|
||||
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_ARCHIVE, 0, "Toggles the drawing of your weapon");
|
||||
r_particles = Cvar_Get ("r_particles", "1", CVAR_ARCHIVE, 0, "Toggles drawing of particles.");
|
||||
r_aliasstats = Cvar_Get ("r_polymodelstats", "0", CVAR_NONE, 0, "Toggles the displays of number of polygon models current being viewed");
|
||||
r_dspeeds = Cvar_Get ("r_dspeeds", "0", CVAR_NONE, 0, "Toggles the display of drawing speed information");
|
||||
r_reportsurfout = Cvar_Get ("r_reportsurfout", "0", CVAR_NONE, 0, "Toggle the display of how many surfaces where not displayed");
|
||||
r_maxsurfs = Cvar_Get ("r_maxsurfs", "0", CVAR_NONE, 0, "Sets the maximum number of surfaces");
|
||||
r_numsurfs = Cvar_Get ("r_numsurfs", "0", CVAR_NONE, 0, "Toggles the displaying of number of surfaces currently being viewed");
|
||||
r_reportedgeout = Cvar_Get ("r_reportedgeout", "0", CVAR_NONE, 0, "Toggle the display of how many edges where not displayed");
|
||||
r_maxedges = Cvar_Get ("r_maxedges", "0", CVAR_NONE, 0, "Sets the maximum number of surfaces");
|
||||
r_numedges = Cvar_Get ("r_numedges", "0", CVAR_NONE, 0, "Toggles the displaying of number of edges currently being viewed");
|
||||
r_aliastransbase = Cvar_Get ("r_aliastransbase", "200", CVAR_NONE, 0, "Determines how much of an alias model is clipped away and how much is viewable");
|
||||
r_aliastransadj = Cvar_Get ("r_aliastransadj", "100", CVAR_NONE, 0, "Determines how much of an alias model is clipped away and how much is viewable.");
|
||||
gl_sky_divide = Cvar_Get ("gl_sky_divide", "1", CVAR_ARCHIVE, 0,
|
||||
"subdivide sky polys");
|
||||
}
|
||||
|
||||
|
|
|
@ -745,29 +745,29 @@ V_Init (void)
|
|||
void
|
||||
V_Init_Cvars (void)
|
||||
{
|
||||
v_centermove = Cvar_Get ("v_centermove", "0.15", CVAR_NONE, "How far the player must move forward before the view re-centers");
|
||||
v_centerspeed = Cvar_Get ("v_centerspeed", "500", CVAR_NONE, "How quickly you return to a center view after a lookup or lookdown");
|
||||
v_centermove = Cvar_Get ("v_centermove", "0.15", CVAR_NONE, 0, "How far the player must move forward before the view re-centers");
|
||||
v_centerspeed = Cvar_Get ("v_centerspeed", "500", CVAR_NONE, 0, "How quickly you return to a center view after a lookup or lookdown");
|
||||
|
||||
v_iyaw_cycle = Cvar_Get ("v_iyaw_cycle", "2", CVAR_NONE, "How far you tilt right and left when v_idlescale is enabled");
|
||||
v_iroll_cycle = Cvar_Get ("v_iroll_cycle", "0.5", CVAR_NONE, "How quickly you tilt right and left when v_idlescale is enabled");
|
||||
v_ipitch_cycle = Cvar_Get ("v_ipitch_cycle", "1", CVAR_NONE, "How quickly you lean forwards and backwards when v_idlescale is enabled");
|
||||
v_iyaw_level = Cvar_Get ("v_iyaw_level", "0.3", CVAR_NONE, "How far you tilt right and left when v_idlescale is enabled");
|
||||
v_iroll_level = Cvar_Get ("v_iroll_level", "0.1", CVAR_NONE, "How far you tilt right and left when v_idlescale is enabled");
|
||||
v_ipitch_level = Cvar_Get ("v_ipitch_level", "0.3", CVAR_NONE, "How far you lean forwards and backwards when v_idlescale is enabled");
|
||||
v_iyaw_cycle = Cvar_Get ("v_iyaw_cycle", "2", CVAR_NONE, 0, "How far you tilt right and left when v_idlescale is enabled");
|
||||
v_iroll_cycle = Cvar_Get ("v_iroll_cycle", "0.5", CVAR_NONE, 0, "How quickly you tilt right and left when v_idlescale is enabled");
|
||||
v_ipitch_cycle = Cvar_Get ("v_ipitch_cycle", "1", CVAR_NONE, 0, "How quickly you lean forwards and backwards when v_idlescale is enabled");
|
||||
v_iyaw_level = Cvar_Get ("v_iyaw_level", "0.3", CVAR_NONE, 0, "How far you tilt right and left when v_idlescale is enabled");
|
||||
v_iroll_level = Cvar_Get ("v_iroll_level", "0.1", CVAR_NONE, 0, "How far you tilt right and left when v_idlescale is enabled");
|
||||
v_ipitch_level = Cvar_Get ("v_ipitch_level", "0.3", CVAR_NONE, 0, "How far you lean forwards and backwards when v_idlescale is enabled");
|
||||
|
||||
v_idlescale = Cvar_Get ("v_idlescale", "0", CVAR_NONE, "Toggles whether the view remains idle");
|
||||
v_idlescale = Cvar_Get ("v_idlescale", "0", CVAR_NONE, 0, "Toggles whether the view remains idle");
|
||||
|
||||
cl_rollspeed = Cvar_Get ("cl_rollspeed", "200", CVAR_NONE, "How quickly you straighten out after strafing");
|
||||
cl_rollangle = Cvar_Get ("cl_rollangle", "2.0", CVAR_NONE, "How much your screen tilts when strafing");
|
||||
cl_rollspeed = Cvar_Get ("cl_rollspeed", "200", CVAR_NONE, 0, "How quickly you straighten out after strafing");
|
||||
cl_rollangle = Cvar_Get ("cl_rollangle", "2.0", CVAR_NONE, 0, "How much your screen tilts when strafing");
|
||||
|
||||
cl_bob = Cvar_Get ("cl_bob", "0.02", CVAR_NONE, "How much your weapon moves up and down when walking");
|
||||
cl_bobcycle = Cvar_Get ("cl_bobcycle", "0.6", CVAR_NONE, "How quickly your weapon moves up and down when walking");
|
||||
cl_bobup = Cvar_Get ("cl_bobup", "0.5", CVAR_NONE, "How long your weapon stays up before cycling when walking");
|
||||
cl_bob = Cvar_Get ("cl_bob", "0.02", CVAR_NONE, 0, "How much your weapon moves up and down when walking");
|
||||
cl_bobcycle = Cvar_Get ("cl_bobcycle", "0.6", CVAR_NONE, 0, "How quickly your weapon moves up and down when walking");
|
||||
cl_bobup = Cvar_Get ("cl_bobup", "0.5", CVAR_NONE, 0, "How long your weapon stays up before cycling when walking");
|
||||
|
||||
v_kicktime = Cvar_Get ("v_kicktime", "0.5", CVAR_NONE, "How long the kick from an attack lasts");
|
||||
v_kickroll = Cvar_Get ("v_kickroll", "0.6", CVAR_NONE, "How much you lean when hit");
|
||||
v_kickpitch = Cvar_Get ("v_kickpitch", "0.6", CVAR_NONE, "How much you look up when hit");
|
||||
v_kicktime = Cvar_Get ("v_kicktime", "0.5", CVAR_NONE, 0, "How long the kick from an attack lasts");
|
||||
v_kickroll = Cvar_Get ("v_kickroll", "0.6", CVAR_NONE, 0, "How much you lean when hit");
|
||||
v_kickpitch = Cvar_Get ("v_kickpitch", "0.6", CVAR_NONE, 0, "How much you look up when hit");
|
||||
|
||||
brightness = Cvar_Get ("brightness", "1", CVAR_ARCHIVE, "Brightness level");
|
||||
contrast = Cvar_Get ("contrast", "1", CVAR_ARCHIVE, "Contrast level");
|
||||
brightness = Cvar_Get ("brightness", "1", CVAR_ARCHIVE, 0, "Brightness level");
|
||||
contrast = Cvar_Get ("contrast", "1", CVAR_ARCHIVE, 0, "Contrast level");
|
||||
}
|
||||
|
|
|
@ -402,20 +402,20 @@ SCR_SizeDown_f (void)
|
|||
void
|
||||
SCR_Init_Cvars (void)
|
||||
{
|
||||
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, "field of view. 90 is normal, smaller numbers zoom");
|
||||
scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, "Set the screen size 30 minimum, 120 maximum");
|
||||
scr_consize = Cvar_Get ("scr_consize", "0.5", CVAR_ARCHIVE, "fraction of the screen the console covers when down");
|
||||
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, "How quickly in the console screen scrolls up and down");
|
||||
scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, "Show ram icon when low on ram in game");
|
||||
scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, "Show turtle icon when fps is lower than 10");
|
||||
scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, "Show paused graphic when paused");
|
||||
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, "How long in seconds the screen hints are displayed on the screen");
|
||||
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, "How fast the text is displayed at the end of the single player episodes");
|
||||
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, 0, "field of view. 90 is normal, smaller numbers zoom");
|
||||
scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, 0, "Set the screen size 30 minimum, 120 maximum");
|
||||
scr_consize = Cvar_Get ("scr_consize", "0.5", CVAR_ARCHIVE, 0, "fraction of the screen the console covers when down");
|
||||
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, 0, "How quickly in the console screen scrolls up and down");
|
||||
scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, 0, "Show ram icon when low on ram in game");
|
||||
scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, 0, "Show turtle icon when fps is lower than 10");
|
||||
scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, 0, "Show paused graphic when paused");
|
||||
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, 0, "How long in seconds the screen hints are displayed on the screen");
|
||||
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, 0, "How fast the text is displayed at the end of the single player episodes");
|
||||
|
||||
crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE, "Crosshair 2's color");
|
||||
crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE, "Crosshair type. 0 off, 1 old, 2 new with color");
|
||||
cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_ARCHIVE, "Sets the position of the crosshair on the X-axis");
|
||||
cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_ARCHIVE, "Sets the position of the crosshair on the Y-axis");
|
||||
crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE, 0, "Crosshair 2's color");
|
||||
crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE, 0, "Crosshair type. 0 off, 1 old, 2 new with color");
|
||||
cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_ARCHIVE, 0, "Sets the position of the crosshair on the X-axis");
|
||||
cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_ARCHIVE, 0, "Sets the position of the crosshair on the Y-axis");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -312,14 +312,14 @@ Skin_Init (void)
|
|||
void
|
||||
Skin_Init_Cvars (void)
|
||||
{
|
||||
baseskin = Cvar_Get ("baseskin", "base", CVAR_NONE,
|
||||
baseskin = Cvar_Get ("baseskin", "base", CVAR_NONE, 0,
|
||||
"default base skin name");
|
||||
noskins = Cvar_Get ("noskins", "0", CVAR_NONE,
|
||||
noskins = Cvar_Get ("noskins", "0", CVAR_NONE, 0,
|
||||
"set to 1 to not download new skins");
|
||||
skin = Cvar_Get ("skin", "", CVAR_ARCHIVE | CVAR_USERINFO, "Players skin");
|
||||
topcolor = Cvar_Get ("topcolor", "0", CVAR_ARCHIVE | CVAR_USERINFO,
|
||||
skin = Cvar_Get ("skin", "", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info, "Players skin");
|
||||
topcolor = Cvar_Get ("topcolor", "0", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info,
|
||||
"Players color on top");
|
||||
bottomcolor = Cvar_Get ("bottomcolor", "0", CVAR_ARCHIVE | CVAR_USERINFO,
|
||||
bottomcolor = Cvar_Get ("bottomcolor", "0", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info,
|
||||
"Players color on bottom");
|
||||
}
|
||||
|
||||
|
|
|
@ -270,46 +270,46 @@ S_Init (void)
|
|||
void
|
||||
S_Init_Cvars (void)
|
||||
{
|
||||
snd_device = Cvar_Get ("snd_device", "", CVAR_ROM,
|
||||
snd_device = Cvar_Get ("snd_device", "", CVAR_ROM, 0,
|
||||
"sound device. \"\" is system default");
|
||||
snd_rate = Cvar_Get ("snd_rate", "0", CVAR_ROM,
|
||||
snd_rate = Cvar_Get ("snd_rate", "0", CVAR_ROM, 0,
|
||||
"sound playback rate. 0 is system default");
|
||||
snd_bits = Cvar_Get ("snd_bits", "0", CVAR_ROM,
|
||||
snd_bits = Cvar_Get ("snd_bits", "0", CVAR_ROM, 0,
|
||||
"sound sample depth. 0 is system default");
|
||||
snd_stereo = Cvar_Get ("snd_stereo", "1", CVAR_ROM,
|
||||
snd_stereo = Cvar_Get ("snd_stereo", "1", CVAR_ROM, 0,
|
||||
"sound stereo output");
|
||||
nosound = Cvar_Get ("nosound", "0", CVAR_NONE, "Set to turn sound off");
|
||||
nosound = Cvar_Get ("nosound", "0", CVAR_NONE, 0, "Set to turn sound off");
|
||||
volume =
|
||||
Cvar_Get ("volume", "0.7", CVAR_ARCHIVE,
|
||||
Cvar_Get ("volume", "0.7", CVAR_ARCHIVE, 0,
|
||||
"Set the volume for sound playback");
|
||||
precache =
|
||||
Cvar_Get ("precache", "1", CVAR_NONE, "Toggle the use of a precache");
|
||||
Cvar_Get ("precache", "1", CVAR_NONE, 0, "Toggle the use of a precache");
|
||||
loadas8bit =
|
||||
Cvar_Get ("loadas8bit", "0", CVAR_NONE,
|
||||
Cvar_Get ("loadas8bit", "0", CVAR_NONE, 0,
|
||||
"Toggles if sounds are loaded as 8-bit samples");
|
||||
bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, "Volume of CD music");
|
||||
bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, 0, "Volume of CD music");
|
||||
ambient_level =
|
||||
Cvar_Get ("ambient_level", "0.3", CVAR_NONE, "Ambient sounds' volume");
|
||||
Cvar_Get ("ambient_level", "0.3", CVAR_NONE, 0, "Ambient sounds' volume");
|
||||
ambient_fade =
|
||||
Cvar_Get ("ambient_fade", "100", CVAR_NONE,
|
||||
Cvar_Get ("ambient_fade", "100", CVAR_NONE, 0,
|
||||
"How quickly ambient sounds fade in or out");
|
||||
snd_noextraupdate =
|
||||
Cvar_Get ("snd_noextraupdate", "0", CVAR_NONE,
|
||||
Cvar_Get ("snd_noextraupdate", "0", CVAR_NONE, 0,
|
||||
"Toggles the correct value display in host_speeds. Usually messes up sound playback when in effect");
|
||||
snd_show =
|
||||
Cvar_Get ("snd_show", "0", CVAR_NONE,
|
||||
Cvar_Get ("snd_show", "0", CVAR_NONE, 0,
|
||||
"Toggles the display of sounds currently being played");
|
||||
snd_interp =
|
||||
Cvar_Get ("snd_interp", "1", CVAR_ARCHIVE,
|
||||
Cvar_Get ("snd_interp", "1", CVAR_ARCHIVE, 0,
|
||||
"control sample interpolation");
|
||||
snd_phasesep =
|
||||
Cvar_Get ("snd_phasesep", "0.0", CVAR_ARCHIVE,
|
||||
Cvar_Get ("snd_phasesep", "0.0", CVAR_ARCHIVE, 0,
|
||||
"max stereo phase separation in ms. 0.6 is for 20cm head");
|
||||
snd_volumesep =
|
||||
Cvar_Get ("snd_volumesep", "1.0", CVAR_ARCHIVE,
|
||||
Cvar_Get ("snd_volumesep", "1.0", CVAR_ARCHIVE, 0,
|
||||
"max stereo volume separation in ms. 1.0 is max");
|
||||
_snd_mixahead =
|
||||
Cvar_Get ("_snd_mixahead", "0.1", CVAR_ARCHIVE,
|
||||
Cvar_Get ("_snd_mixahead", "0.1", CVAR_ARCHIVE, 0,
|
||||
"Delay time for sounds");
|
||||
}
|
||||
|
||||
|
|
|
@ -56,10 +56,10 @@ S_Init (void)
|
|||
void
|
||||
S_Init_Cvars (void)
|
||||
{
|
||||
volume = Cvar_Get ("volume", "0.7", CVAR_ARCHIVE, "Volume level of sounds");
|
||||
volume = Cvar_Get ("volume", "0.7", CVAR_ARCHIVE, 0, "Volume level of sounds");
|
||||
loadas8bit =
|
||||
Cvar_Get ("loadas8bit", "0", CVAR_NONE, "Load samples as 8-bit");
|
||||
bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, "CD music volume");
|
||||
Cvar_Get ("loadas8bit", "0", CVAR_NONE, 0, "Load samples as 8-bit");
|
||||
bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, 0, "CD music volume");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -877,7 +877,7 @@ SV_InitOperatorCommands (void)
|
|||
Cmd_AddCommand ("maplist", COM_Maplist_f, "List all maps on the server");
|
||||
|
||||
cl_warncmd =
|
||||
Cvar_Get ("cl_warncmd", "1", CVAR_NONE, "Toggles the display of error messages for unknown commands");
|
||||
Cvar_Get ("cl_warncmd", "1", CVAR_NONE, 0, "Toggles the display of error messages for unknown commands");
|
||||
// poor
|
||||
// description
|
||||
}
|
||||
|
|
|
@ -1490,117 +1490,117 @@ SV_InitLocal (void)
|
|||
|
||||
SV_UserInit ();
|
||||
|
||||
rcon_password = Cvar_Get ("rcon_password", "", CVAR_NONE, "Set the password for rcon commands");
|
||||
password = Cvar_Get ("password", "", CVAR_NONE, "Set the server password for players");
|
||||
spectator_password = Cvar_Get ("spectator_password", "", CVAR_NONE, "Set the spectator password");
|
||||
rcon_password = Cvar_Get ("rcon_password", "", CVAR_NONE, 0, "Set the password for rcon commands");
|
||||
password = Cvar_Get ("password", "", CVAR_NONE, 0, "Set the server password for players");
|
||||
spectator_password = Cvar_Get ("spectator_password", "", CVAR_NONE, 0, "Set the spectator password");
|
||||
|
||||
sv_mintic = Cvar_Get ("sv_mintic", "0.03", CVAR_NONE,
|
||||
sv_mintic = Cvar_Get ("sv_mintic", "0.03", CVAR_NONE, 0,
|
||||
"The minimum amount of time the server will wait before sending packets to a client. Set to .5 to make modem users happy");
|
||||
sv_maxtic = Cvar_Get ("sv_maxtic", "0.1", CVAR_NONE,
|
||||
sv_maxtic = Cvar_Get ("sv_maxtic", "0.1", CVAR_NONE, 0,
|
||||
"The maximum amount of time in seconds before a client a receives an update from the server");
|
||||
fraglimit = Cvar_Get ("fraglimit", "0", CVAR_SERVERINFO, "Amount of frags a player must attain in order to exit the level");
|
||||
timelimit = Cvar_Get ("timelimit", "0", CVAR_SERVERINFO,
|
||||
fraglimit = Cvar_Get ("fraglimit", "0", CVAR_SERVERINFO, Cvar_Info, "Amount of frags a player must attain in order to exit the level");
|
||||
timelimit = Cvar_Get ("timelimit", "0", CVAR_SERVERINFO, Cvar_Info,
|
||||
"Sets the amount of time in minutes that is needed before advancing to the next level");
|
||||
teamplay = Cvar_Get ("teamplay", "0", CVAR_SERVERINFO,
|
||||
teamplay = Cvar_Get ("teamplay", "0", CVAR_SERVERINFO, Cvar_Info,
|
||||
"Determines teamplay rules. 0 off, 1 You cannot hurt yourself nor your teammates, "
|
||||
"2 You can hurt yourself, your teammates, and you will lose one frag for killing a teammate"
|
||||
"3 You can hurt yourself but you cannot hurt your teammates");
|
||||
samelevel = Cvar_Get ("samelevel", "0", CVAR_SERVERINFO,
|
||||
samelevel = Cvar_Get ("samelevel", "0", CVAR_SERVERINFO, Cvar_Info,
|
||||
"Determines the rules for level changing and exiting. 0 Allows advancing to the next level,"
|
||||
"1 The same level will be played until someone exits,"
|
||||
"2 The same level will be played and the exit will kill anybody that tries to exit,"
|
||||
"3 The same level will be played and the exit will kill anybody that tries to exit, except on the Start map.");
|
||||
maxclients = Cvar_Get ("maxclients", "8", CVAR_SERVERINFO,
|
||||
maxclients = Cvar_Get ("maxclients", "8", CVAR_SERVERINFO, Cvar_Info,
|
||||
"Sets how many clients can connect to your server, this includes spectators and players");
|
||||
maxspectators = Cvar_Get ("maxspectators", "8", CVAR_SERVERINFO,
|
||||
maxspectators = Cvar_Get ("maxspectators", "8", CVAR_SERVERINFO, Cvar_Info,
|
||||
"Sets how many spectators can connect to your server. The maxclients value takes precidence over this value so this"
|
||||
" value should always be equal-to or less-then the maxclients value");
|
||||
hostname = Cvar_Get ("hostname", "unnamed", CVAR_SERVERINFO, "Report or sets the server name");
|
||||
deathmatch = Cvar_Get ("deathmatch", "1", CVAR_SERVERINFO,
|
||||
hostname = Cvar_Get ("hostname", "unnamed", CVAR_SERVERINFO, Cvar_Info, "Report or sets the server name");
|
||||
deathmatch = Cvar_Get ("deathmatch", "1", CVAR_SERVERINFO, Cvar_Info,
|
||||
"Sets the rules for weapon and item respawning. "
|
||||
"1 Does not leave weapons on the map. You can pickup weapons and items and they will respawn,"
|
||||
"2 Leaves weapons on the map. You can only pick up a weapon once. Picked up items will not respawn,"
|
||||
"3 Leaves weapons on the map. You can only pick up a weapon once. Picked up items will respawn.");
|
||||
spawn = Cvar_Get ("spawn", "0", CVAR_SERVERINFO, "Spawn the player entity");
|
||||
watervis = Cvar_Get ("watervis", "0", CVAR_SERVERINFO, "Toggle the use of r_watervis by OpenGL clients");
|
||||
spawn = Cvar_Get ("spawn", "0", CVAR_SERVERINFO, Cvar_Info, "Spawn the player entity");
|
||||
watervis = Cvar_Get ("watervis", "0", CVAR_SERVERINFO, Cvar_Info, "Toggle the use of r_watervis by OpenGL clients");
|
||||
|
||||
timeout = Cvar_Get ("timeout", "65", CVAR_NONE,
|
||||
timeout = Cvar_Get ("timeout", "65", CVAR_NONE, 0,
|
||||
"Sets the amount of time in seconds before a client is considered disconnected if the server does not receive a packet");
|
||||
zombietime = Cvar_Get ("zombietime", "2", CVAR_NONE,
|
||||
zombietime = Cvar_Get ("zombietime", "2", CVAR_NONE, 0,
|
||||
"The number of seconds that the server will keep the character of a player on the map who seems to have disconnected");
|
||||
|
||||
sv_maxvelocity = Cvar_Get ("sv_maxvelocity", "2000", CVAR_NONE, "Sets the maximum velocity an object can travel");
|
||||
sv_gravity = Cvar_Get ("sv_gravity", "800", CVAR_NONE, "Sets the global value for the amount of gravity");
|
||||
sv_stopspeed = Cvar_Get ("sv_stopspeed", "100", CVAR_NONE,
|
||||
sv_maxvelocity = Cvar_Get ("sv_maxvelocity", "2000", CVAR_NONE, 0, "Sets the maximum velocity an object can travel");
|
||||
sv_gravity = Cvar_Get ("sv_gravity", "800", CVAR_NONE, 0, "Sets the global value for the amount of gravity");
|
||||
sv_stopspeed = Cvar_Get ("sv_stopspeed", "100", CVAR_NONE, 0,
|
||||
"Sets the value that determines how fast the player should come to a complete stop");
|
||||
sv_maxspeed = Cvar_Get ("sv_maxspeed", "320", CVAR_NONE, "Sets the maximum speed a player can move");
|
||||
sv_maxspeed = Cvar_Get ("sv_maxspeed", "320", CVAR_NONE, 0, "Sets the maximum speed a player can move");
|
||||
sv_spectatormaxspeed =
|
||||
Cvar_Get ("sv_spectatormaxspeed", "500", CVAR_NONE, "Sets the maximum speed a spectator can move");
|
||||
sv_accelerate = Cvar_Get ("sv_accelerate", "10", CVAR_NONE, "Sets the acceleration value for the players");
|
||||
sv_airaccelerate = Cvar_Get ("sv_airaccelerate", "0.7", CVAR_NONE, "Sets how quickly the players accelerate in air");
|
||||
Cvar_Get ("sv_spectatormaxspeed", "500", CVAR_NONE, 0, "Sets the maximum speed a spectator can move");
|
||||
sv_accelerate = Cvar_Get ("sv_accelerate", "10", CVAR_NONE, 0, "Sets the acceleration value for the players");
|
||||
sv_airaccelerate = Cvar_Get ("sv_airaccelerate", "0.7", CVAR_NONE, 0, "Sets how quickly the players accelerate in air");
|
||||
sv_wateraccelerate =
|
||||
Cvar_Get ("sv_wateraccelerate", "10", CVAR_NONE, "Sets the water acceleration value");
|
||||
sv_friction = Cvar_Get ("sv_friction", "4", CVAR_NONE, "Sets the friction value for the players");
|
||||
sv_waterfriction = Cvar_Get ("sv_waterfriction", "4", CVAR_NONE, "Sets the water friction value");
|
||||
Cvar_Get ("sv_wateraccelerate", "10", CVAR_NONE, 0, "Sets the water acceleration value");
|
||||
sv_friction = Cvar_Get ("sv_friction", "4", CVAR_NONE, 0, "Sets the friction value for the players");
|
||||
sv_waterfriction = Cvar_Get ("sv_waterfriction", "4", CVAR_NONE, 0, "Sets the water friction value");
|
||||
|
||||
sv_aim = Cvar_Get ("sv_aim", "2", CVAR_NONE, "Sets the value for auto-aiming leniency");
|
||||
sv_aim = Cvar_Get ("sv_aim", "2", CVAR_NONE, 0, "Sets the value for auto-aiming leniency");
|
||||
|
||||
sv_timekick =
|
||||
Cvar_Get ("sv_timekick", "3", CVAR_SERVERINFO, "Time cheat protection");
|
||||
Cvar_Get ("sv_timekick", "3", CVAR_SERVERINFO, Cvar_Info, "Time cheat protection");
|
||||
sv_timekick_fuzz =
|
||||
Cvar_Get ("sv_timekick_fuzz", "15", CVAR_NONE,
|
||||
Cvar_Get ("sv_timekick_fuzz", "15", CVAR_NONE, 0,
|
||||
"Time cheat \"fuzz factor\"");
|
||||
sv_timekick_interval =
|
||||
Cvar_Get ("sv_timekick_interval", "30", CVAR_NONE,
|
||||
Cvar_Get ("sv_timekick_interval", "30", CVAR_NONE, 0,
|
||||
"Time cheat check interval");
|
||||
|
||||
sv_minqfversion =
|
||||
Cvar_Get ("sv_minqfversion", "0", CVAR_SERVERINFO,
|
||||
Cvar_Get ("sv_minqfversion", "0", CVAR_SERVERINFO, Cvar_Info,
|
||||
"Minimum QF version on client");
|
||||
|
||||
sv_maxrate =
|
||||
Cvar_Get ("sv_maxrate", "0", CVAR_SERVERINFO, "Maximum allowable rate");
|
||||
Cvar_Get ("sv_maxrate", "0", CVAR_SERVERINFO, Cvar_Info, "Maximum allowable rate");
|
||||
|
||||
sv_allow_log =
|
||||
Cvar_Get ("sv_allow_log", "1", CVAR_NONE, "Allow remote logging");
|
||||
Cvar_Get ("sv_allow_log", "1", CVAR_NONE, 0, "Allow remote logging");
|
||||
sv_allow_status =
|
||||
Cvar_Get ("sv_allow_status", "1", CVAR_NONE,
|
||||
Cvar_Get ("sv_allow_status", "1", CVAR_NONE, 0,
|
||||
"Allow remote status queries (qstat etc)");
|
||||
sv_allow_ping =
|
||||
Cvar_Get ("sv_allow_pings", "1", CVAR_NONE,
|
||||
Cvar_Get ("sv_allow_pings", "1", CVAR_NONE, 0,
|
||||
"Allow remote pings (qstat etc)");
|
||||
sv_netdosprotect =
|
||||
Cvar_Get ("sv_netdosprotect", "0", CVAR_NONE,
|
||||
Cvar_Get ("sv_netdosprotect", "0", CVAR_NONE, 0,
|
||||
"DoS flood attack protection");
|
||||
|
||||
sv_timestamps =
|
||||
Cvar_Get ("sv_timestamps", "0", CVAR_NONE,
|
||||
Cvar_Get ("sv_timestamps", "0", CVAR_NONE, 0,
|
||||
"Time/date stamps in log entries");
|
||||
sv_timefmt =
|
||||
Cvar_Get ("sv_timefmt", "[%b %e %X] ", CVAR_NONE,
|
||||
Cvar_Get ("sv_timefmt", "[%b %e %X] ", CVAR_NONE, 0,
|
||||
"Time/date format to use");
|
||||
|
||||
filterban = Cvar_Get ("filterban", "1", CVAR_NONE,
|
||||
filterban = Cvar_Get ("filterban", "1", CVAR_NONE, 0,
|
||||
"Determines the rules for the IP list "
|
||||
"0 Only IP addresses on the Ban list will be allowed onto the server, "
|
||||
"1 Only IP addresses NOT on the Ban list will be allowed onto the server");
|
||||
|
||||
allow_download = Cvar_Get ("allow_download", "1", CVAR_NONE, "Toggle if clients can download game data from the server");
|
||||
allow_download = Cvar_Get ("allow_download", "1", CVAR_NONE, 0, "Toggle if clients can download game data from the server");
|
||||
allow_download_skins =
|
||||
Cvar_Get ("allow_download_skins", "1", CVAR_NONE, "Toggle if clients can download skins from the server");
|
||||
Cvar_Get ("allow_download_skins", "1", CVAR_NONE, 0, "Toggle if clients can download skins from the server");
|
||||
allow_download_models =
|
||||
Cvar_Get ("allow_download_models", "1", CVAR_NONE, "Toggle if clients can download models from the server");
|
||||
Cvar_Get ("allow_download_models", "1", CVAR_NONE, 0, "Toggle if clients can download models from the server");
|
||||
allow_download_sounds =
|
||||
Cvar_Get ("allow_download_sounds", "1", CVAR_NONE, "Toggle if clients can download sounds from the server");
|
||||
Cvar_Get ("allow_download_sounds", "1", CVAR_NONE, 0, "Toggle if clients can download sounds from the server");
|
||||
allow_download_maps =
|
||||
Cvar_Get ("allow_download_maps", "1", CVAR_NONE, "Toggle if clients can download maps from the server");
|
||||
Cvar_Get ("allow_download_maps", "1", CVAR_NONE, 0, "Toggle if clients can download maps from the server");
|
||||
|
||||
sv_highchars = Cvar_Get ("sv_highchars", "1", CVAR_NONE, "Toggle the use of high character color names for players");
|
||||
sv_highchars = Cvar_Get ("sv_highchars", "1", CVAR_NONE, 0, "Toggle the use of high character color names for players");
|
||||
|
||||
sv_phs = Cvar_Get ("sv_phs", "1", CVAR_NONE,
|
||||
sv_phs = Cvar_Get ("sv_phs", "1", CVAR_NONE, 0,
|
||||
"Possibly Hearable Set. If set to zero, the server calculates sound hearability in realtime");
|
||||
|
||||
pausable = Cvar_Get ("pausable", "1", CVAR_NONE, "Toggle if server can be paused 1 is on, 0 is off");
|
||||
pausable = Cvar_Get ("pausable", "1", CVAR_NONE, 0, "Toggle if server can be paused 1 is on, 0 is off");
|
||||
|
||||
// DoS protection
|
||||
Cmd_AddCommand ("netdosexpire", SV_netDoSexpire_f, "FIXME: part of DoS protection obviously, but I don't know what it does. No Description");
|
||||
|
@ -1892,7 +1892,7 @@ SV_Init (void)
|
|||
// only reads from within the quake file system, and changing that is
|
||||
// probably Not A Good Thing (tm).
|
||||
fs_globalcfg = Cvar_Get ("fs_globalcfg", FS_GLOBALCFG,
|
||||
CVAR_ROM, "global configuration file");
|
||||
CVAR_ROM, 0, "global configuration file");
|
||||
Cmd_Exec_File (fs_globalcfg->string);
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
|
@ -1901,7 +1901,7 @@ SV_Init (void)
|
|||
Cbuf_Execute_Sets ();
|
||||
|
||||
fs_usercfg = Cvar_Get ("fs_usercfg", FS_USERCFG,
|
||||
CVAR_ROM, "user configuration file");
|
||||
CVAR_ROM, 0, "user configuration file");
|
||||
Cmd_Exec_File (fs_usercfg->string);
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
|
|
|
@ -284,11 +284,11 @@ void
|
|||
SV_Progs_Init_Cvars (void)
|
||||
{
|
||||
r_skyname =
|
||||
Cvar_Get ("r_skyname", "", CVAR_SERVERINFO, "name of skybox");
|
||||
sv_progs = Cvar_Get ("sv_progs", "qwprogs.dat", CVAR_ROM,
|
||||
Cvar_Get ("r_skyname", "", CVAR_SERVERINFO, Cvar_Info, "name of skybox");
|
||||
sv_progs = Cvar_Get ("sv_progs", "qwprogs.dat", CVAR_ROM, 0,
|
||||
"Allows selectable game progs if you have several "
|
||||
"of them in the gamedir");
|
||||
pr_checkextentions = Cvar_Get ("sv_progs", "1", CVAR_ROM,
|
||||
pr_checkextentions = Cvar_Get ("sv_progs", "1", CVAR_ROM, 0,
|
||||
"indicate the presence of the "
|
||||
"checkextentions qc function");
|
||||
}
|
||||
|
|
|
@ -139,10 +139,10 @@ Sys_ConsoleInput (void)
|
|||
void
|
||||
Sys_Init_Cvars (void)
|
||||
{
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, "Toggles console screen output");
|
||||
sys_extrasleep = Cvar_Get ("sys_extrasleep", "0", CVAR_NONE,
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, 0, "Toggles console screen output");
|
||||
sys_extrasleep = Cvar_Get ("sys_extrasleep", "0", CVAR_NONE, 0,
|
||||
"Set to cause whatever amount delay in microseconds you want. Mostly useful to generate simulated bad connections.");
|
||||
sys_dead_sleep = Cvar_Get ("sys_dead_sleep", "1", CVAR_NONE,
|
||||
sys_dead_sleep = Cvar_Get ("sys_dead_sleep", "1", CVAR_NONE, 0,
|
||||
"When set, the server gets NO cpu if no clients are connected"
|
||||
"and there's no other activity. *MIGHT* cause problems with"
|
||||
"some mods.");
|
||||
|
|
|
@ -148,8 +148,8 @@ Sys_Quit (void)
|
|||
void
|
||||
Sys_Init_Cvars (void)
|
||||
{
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, "Toggle console output");
|
||||
sys_sleep = Cvar_Get ("sys_sleep", "8", CVAR_NONE,
|
||||
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, 0, "Toggle console output");
|
||||
sys_sleep = Cvar_Get ("sys_sleep", "8", CVAR_NONE, 0,
|
||||
"Sleep how long in seconds between checking for connections. minimum is 0, maximum is 13");
|
||||
}
|
||||
|
||||
|
|
|
@ -1768,9 +1768,9 @@ SV_UserInit (void)
|
|||
{
|
||||
qsort (ucmds, sizeof (ucmds) / sizeof (ucmds[0]), sizeof (ucmds[0]),
|
||||
ucmds_compare);
|
||||
cl_rollspeed = Cvar_Get ("cl_rollspeed", "200", CVAR_NONE, "How quickly a player straightens out after strafing");
|
||||
cl_rollangle = Cvar_Get ("cl_rollangle", "2", CVAR_NONE, "How much a player's screen tilts when strafing");
|
||||
sv_spectalk = Cvar_Get ("sv_spectalk", "1", CVAR_NONE, "Toggles the ability of spectators to talk to players");
|
||||
sv_mapcheck = Cvar_Get ("sv_mapcheck", "1", CVAR_NONE,
|
||||
cl_rollspeed = Cvar_Get ("cl_rollspeed", "200", CVAR_NONE, 0, "How quickly a player straightens out after strafing");
|
||||
cl_rollangle = Cvar_Get ("cl_rollangle", "2", CVAR_NONE, 0, "How much a player's screen tilts when strafing");
|
||||
sv_spectalk = Cvar_Get ("sv_spectalk", "1", CVAR_NONE, 0, "Toggles the ability of spectators to talk to players");
|
||||
sv_mapcheck = Cvar_Get ("sv_mapcheck", "1", CVAR_NONE, 0,
|
||||
"Toggle the use of map checksumming to check for players who edit maps to cheat");
|
||||
}
|
||||
|
|
|
@ -332,11 +332,11 @@ void
|
|||
Team_Init_Cvars (void)
|
||||
{
|
||||
cl_deadbodyfilter =
|
||||
Cvar_Get ("cl_deadbodyfilter", "0", CVAR_NONE,
|
||||
Cvar_Get ("cl_deadbodyfilter", "0", CVAR_NONE, 0,
|
||||
"Hide dead player models");
|
||||
cl_gibfilter = Cvar_Get ("cl_gibfilter", "0", CVAR_NONE, "Hide gibs");
|
||||
cl_parsesay = Cvar_Get ("cl_parsesay", "0", CVAR_NONE, "Use .loc files to find your present location when you put %l in messages");
|
||||
cl_nofake = Cvar_Get ("cl_nofake", "0", CVAR_NONE, "Unhide fake messages");
|
||||
cl_gibfilter = Cvar_Get ("cl_gibfilter", "0", CVAR_NONE, 0, "Hide gibs");
|
||||
cl_parsesay = Cvar_Get ("cl_parsesay", "0", CVAR_NONE, 0, "Use .loc files to find your present location when you put %l in messages");
|
||||
cl_nofake = Cvar_Get ("cl_nofake", "0", CVAR_NONE, 0, "Unhide fake messages");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -47,8 +47,8 @@ VID_GetWindowSize (int def_w, int def_h)
|
|||
{
|
||||
int pnum;
|
||||
|
||||
vid_width = Cvar_Get ("vid_width", va ("%d", def_w), CVAR_NONE, "screen width");
|
||||
vid_height = Cvar_Get ("vid_height", va ("%d", def_h), CVAR_NONE, "screen height");
|
||||
vid_width = Cvar_Get ("vid_width", va ("%d", def_w), CVAR_NONE, 0, "screen width");
|
||||
vid_height = Cvar_Get ("vid_height", va ("%d", def_h), CVAR_NONE, 0, "screen height");
|
||||
|
||||
if ((pnum = COM_CheckParm ("-width"))) {
|
||||
if (pnum >= com_argc - 1)
|
||||
|
|
|
@ -344,7 +344,7 @@ void
|
|||
VID_Init8bitPalette (void)
|
||||
{
|
||||
vid_use8bit =
|
||||
Cvar_Get ("vid_use8bit", "0", CVAR_ROM, "Use 8-bit shared palettes.");
|
||||
Cvar_Get ("vid_use8bit", "0", CVAR_ROM, 0, "Use 8-bit shared palettes.");
|
||||
|
||||
Con_Printf ("Checking for 8-bit extension: ");
|
||||
if (vid_use8bit->int_val) {
|
||||
|
|
|
@ -625,10 +625,10 @@ VID_Init (unsigned char *palette)
|
|||
void
|
||||
VID_Init_Cvars ()
|
||||
{
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "Sets the video mode");
|
||||
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE,
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "Sets the video mode");
|
||||
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE, 0,
|
||||
"Redraw entire screen each frame instead of just dirty areas");
|
||||
vid_waitforrefresh = Cvar_Get ("vid_waitforrefresh", "0", CVAR_ARCHIVE,
|
||||
vid_waitforrefresh = Cvar_Get ("vid_waitforrefresh", "0", CVAR_ARCHIVE, 0,
|
||||
"Wait for vertical retrace before drawing next frame");
|
||||
}
|
||||
|
||||
|
|
|
@ -2073,21 +2073,21 @@ VID_Init (unsigned char *palette)
|
|||
void
|
||||
VID_Init_Cvars ()
|
||||
{
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "Set the video mode");
|
||||
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, "Toggles the use of page flipping");
|
||||
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "Set the video mode");
|
||||
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, 0, "Toggles the use of page flipping");
|
||||
_vid_default_mode_win =
|
||||
Cvar_Get ("_vid_default_mode_win", "3", CVAR_ARCHIVE, "Default windowed video mode");
|
||||
vid_config_x = Cvar_Get ("vid_config_x", "800", CVAR_ARCHIVE, "Maximum x-axis screen size");
|
||||
vid_config_y = Cvar_Get ("vid_config_y", "600", CVAR_ARCHIVE, "Maximum y-axis screen size");
|
||||
vid_stretch_by_2 = Cvar_Get ("vid_stretch_by_2", "1", CVAR_ARCHIVE, "Stretch the pixles by a two fold to acheive proper view");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "Have quake grab the mouse from X when you play");
|
||||
Cvar_Get ("_vid_default_mode_win", "3", CVAR_ARCHIVE, 0, "Default windowed video mode");
|
||||
vid_config_x = Cvar_Get ("vid_config_x", "800", CVAR_ARCHIVE, 0, "Maximum x-axis screen size");
|
||||
vid_config_y = Cvar_Get ("vid_config_y", "600", CVAR_ARCHIVE, 0, "Maximum y-axis screen size");
|
||||
vid_stretch_by_2 = Cvar_Get ("vid_stretch_by_2", "1", CVAR_ARCHIVE, 0, "Stretch the pixles by a two fold to acheive proper view");
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "Have quake grab the mouse from X when you play");
|
||||
vid_fullscreen_mode =
|
||||
Cvar_Get ("vid_fullscreen_mode", "3", CVAR_ARCHIVE, "Set the full screen video mode.");
|
||||
Cvar_Get ("vid_fullscreen_mode", "3", CVAR_ARCHIVE, 0, "Set the full screen video mode.");
|
||||
vid_windowed_mode =
|
||||
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, "Set the windowed video mode");
|
||||
block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, "If set, won't allow you to task switch while playing");
|
||||
vid_window_x = Cvar_Get ("vid_window_x", "0", CVAR_ARCHIVE, "The x-axis location of the window, if windowed");
|
||||
vid_window_y = Cvar_Get ("vid_window_y", "0", CVAR_ARCHIVE, "The y-axis location of the window, if windowed");
|
||||
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, 0, "Set the windowed video mode");
|
||||
block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, 0, "If set, won't allow you to task switch while playing");
|
||||
vid_window_x = Cvar_Get ("vid_window_x", "0", CVAR_ARCHIVE, 0, "The x-axis location of the window, if windowed");
|
||||
vid_window_y = Cvar_Get ("vid_window_y", "0", CVAR_ARCHIVE, 0, "The y-axis location of the window, if windowed");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -195,7 +195,7 @@ void
|
|||
VID_Init_Cvars ()
|
||||
{
|
||||
vid_fullscreen =
|
||||
Cvar_Get ("vid_fullscreen", "0", CVAR_ROM,
|
||||
Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, 0,
|
||||
"Toggles fullscreen game mode");
|
||||
}
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ VID_Init (unsigned char *palette)
|
|||
void
|
||||
VID_Init_Cvars ()
|
||||
{
|
||||
vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, "Toggles fullscreen mode");
|
||||
vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, 0, "Toggles fullscreen mode");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -610,10 +610,10 @@ VID_Init (unsigned char *palette)
|
|||
void
|
||||
VID_Init_Cvars ()
|
||||
{
|
||||
vid_mode = Cvar_Get ("vid_mode", "5", CVAR_NONE, "Sets the video mode");
|
||||
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE, "Redraw entire screen each frame instead of just dirty areas");
|
||||
vid_mode = Cvar_Get ("vid_mode", "5", CVAR_NONE, 0, "Sets the video mode");
|
||||
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE, 0, "Redraw entire screen each frame instead of just dirty areas");
|
||||
vid_waitforrefresh = Cvar_Get ("vid_waitforrefresh", "0",
|
||||
CVAR_ARCHIVE, "Wait for vertical retrace before drawing next frame");
|
||||
CVAR_ARCHIVE, 0, "Wait for vertical retrace before drawing next frame");
|
||||
}
|
||||
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue