cvars now sport a callback function that gets called whenever the cvar changes

or on initial get.
This commit is contained in:
Bill Currie 2001-03-31 01:02:52 +00:00
parent 4162243287
commit e939ccc40a
101 changed files with 680 additions and 669 deletions

View file

@ -37,6 +37,7 @@ typedef struct cvar_s
char *name; char *name;
char *string; char *string;
int flags; int flags;
void (*callback)(struct cvar_s *var);
char *description; // for "help" command char *description; // for "help" command
float value; float value;
int int_val; 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 // Returns the Cvar if found, creates it with value if not. Description and
// flags are always updated. // 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); cvar_t *Cvar_FindAlias (char *alias_name);

View file

@ -1205,7 +1205,7 @@ void
PR_Init_Cvars (void) PR_Init_Cvars (void)
{ {
pr_boundscheck = pr_boundscheck =
Cvar_Get ("pr_boundscheck", "1", CVAR_NONE, Cvar_Get ("pr_boundscheck", "1", CVAR_NONE, 0,
"Server progs bounds checking"); "Server progs bounds checking");
} }

View file

@ -176,8 +176,6 @@ Cvar_CompleteVariable (char *partial)
} }
void Cvar_Info (cvar_t *var);
/* /*
Cvar_Set Cvar_Set
*/ */
@ -202,8 +200,8 @@ Cvar_Set (cvar_t *var, char *value)
var->int_val = atoi (var->string); var->int_val = atoi (var->string);
sscanf (var->string, "%f %f %f", &var->vec[0], &var->vec[1], &var->vec[2]); sscanf (var->string, "%f %f %f", &var->vec[0], &var->vec[1], &var->vec[2]);
if (changed) if (changed && var->callback)
Cvar_Info (var); var->callback (var);
} }
@ -228,8 +226,8 @@ Cvar_SetROM (cvar_t *var, char *value)
var->int_val = atoi (var->string); var->int_val = atoi (var->string);
sscanf (var->string, "%f %f %f", &var->vec[0], &var->vec[1], &var->vec[2]); sscanf (var->string, "%f %f %f", &var->vec[0], &var->vec[1], &var->vec[2]);
if (changed) if (changed && var->callback)
Cvar_Info (var); var->callback (var);
} }
/* /*
@ -318,7 +316,7 @@ Cvar_Set_f (void)
Cvar_Set (var, value); Cvar_Set (var, value);
} }
} else { } else {
var = Cvar_Get (var_name, value, CVAR_USER_CREATED, var = Cvar_Get (var_name, value, CVAR_USER_CREATED, 0,
"User-created cvar"); "User-created cvar");
} }
} }
@ -349,7 +347,7 @@ Cvar_Setrom_f (void)
Cvar_SetFlags (var, var->flags | CVAR_ROM); Cvar_SetFlags (var, var->flags | CVAR_ROM);
} }
} else { } 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"); "User-created READ-ONLY Cvar");
} }
} }
@ -462,7 +460,7 @@ Cvar_Init_Hash (void)
void void
Cvar_Init (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 ("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" 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_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; cvar_t *var;
@ -517,6 +516,7 @@ Cvar_Get (char *name, char *string, int cvarflags, char *description)
var->name = strdup (name); var->name = strdup (name);
var->string = strdup (string); var->string = strdup (string);
var->flags = cvarflags; var->flags = cvarflags;
var->callback = callback;
var->description = description; var->description = description;
var->value = atof (var->string); var->value = atof (var->string);
var->int_val = atoi (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. // Cvar does exist, so we update the flags and return.
var->flags &= ~CVAR_USER_CREATED; var->flags &= ~CVAR_USER_CREATED;
var->flags |= cvarflags; var->flags |= cvarflags;
var->callback = callback;
var->description = description; var->description = description;
} }
Cvar_Info (var); if (var->callback)
var->callback (var);
return var; return var;
} }

View file

@ -1037,11 +1037,11 @@ COM_Filesystem_Init (void)
void void
COM_Filesystem_Init_Cvars (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"); "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"); "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"); "game to use by default");
} }

View file

@ -408,4 +408,6 @@ void V_SetContentsColor (int contents);
void CL_InitTEnts (void); void CL_InitTEnts (void);
void CL_SignonReply (void); void CL_SignonReply (void);
void Cvar_Info (struct cvar_s *var);
#endif // __client_h #endif // __client_h

View file

@ -299,4 +299,6 @@ void SV_LoadProgs (void);
void SV_Progs_Init (void); void SV_Progs_Init (void);
void SV_Progs_Init_Cvars (void); void SV_Progs_Init_Cvars (void);
void Cvar_Info (struct cvar_s *var);
#endif // __server_h #endif // __server_h

View file

@ -52,10 +52,10 @@ vec3_t chase_dest_angles;
void void
Chase_Init (void) Chase_Init (void)
{ {
chase_back = Cvar_Get ("chase_back", "100", CVAR_NONE, "None"); chase_back = Cvar_Get ("chase_back", "100", CVAR_NONE, 0, "None");
chase_up = Cvar_Get ("chase_up", "16", CVAR_NONE, "None"); chase_up = Cvar_Get ("chase_up", "16", CVAR_NONE, 0, "None");
chase_right = Cvar_Get ("chase_right", "0", CVAR_NONE, "None"); chase_right = Cvar_Get ("chase_right", "0", CVAR_NONE, 0, "None");
chase_active = Cvar_Get ("chase_active", "0", CVAR_NONE, "None"); chase_active = Cvar_Get ("chase_active", "0", CVAR_NONE, 0, "None");
} }
void void

View file

@ -89,59 +89,59 @@ void
CL_InitCvars (void) CL_InitCvars (void)
{ {
show_fps = show_fps =
Cvar_Get ("show_fps", "0", CVAR_NONE, Cvar_Get ("show_fps", "0", CVAR_NONE, 0,
"display realtime frames per second"); "display realtime frames per second");
// Misty: I like to be able to see the time when I play // 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"); "display the current time");
cl_warncmd = cl_warncmd =
Cvar_Get ("cl_warncmd", "0", CVAR_NONE, Cvar_Get ("cl_warncmd", "0", CVAR_NONE, 0,
"inform when execing a command"); "inform when execing a command");
cl_name = Cvar_Get ("_cl_name", "player", CVAR_ARCHIVE, "Player name"); cl_name = Cvar_Get ("_cl_name", "player", CVAR_ARCHIVE, 0, "Player name");
cl_color = Cvar_Get ("_cl_color", "0", CVAR_ARCHIVE, "Player color"); cl_color = Cvar_Get ("_cl_color", "0", CVAR_ARCHIVE, 0, "Player color");
cl_upspeed = 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 = cl_forwardspeed =
Cvar_Get ("cl_forwardspeed", "200", CVAR_ARCHIVE, "forward speed"); Cvar_Get ("cl_forwardspeed", "200", CVAR_ARCHIVE, 0, "forward speed");
cl_backspeed = cl_backspeed =
Cvar_Get ("cl_backspeed", "200", CVAR_ARCHIVE, "backward speed"); Cvar_Get ("cl_backspeed", "200", CVAR_ARCHIVE, 0, "backward speed");
cl_sidespeed = Cvar_Get ("cl_sidespeed", "350", CVAR_NONE, "strafe speed"); cl_sidespeed = Cvar_Get ("cl_sidespeed", "350", CVAR_NONE, 0, "strafe speed");
cl_movespeedkey = cl_movespeedkey =
Cvar_Get ("cl_movespeedkey", "2.0", CVAR_NONE, Cvar_Get ("cl_movespeedkey", "2.0", CVAR_NONE, 0,
"move `run' speed multiplier"); "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 = 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 = cl_anglespeedkey =
Cvar_Get ("cl_anglespeedkey", "1.5", CVAR_NONE, Cvar_Get ("cl_anglespeedkey", "1.5", CVAR_NONE, 0,
"turn `run' speed multiplier"); "turn `run' speed multiplier");
cl_shownet = 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"); "show network packets. 0=off, 1=basic, 2=verbose");
cl_nolerp = cl_nolerp =
Cvar_Get ("cl_nolerp", "0", CVAR_NONE, "linear motion interpolation"); Cvar_Get ("cl_nolerp", "0", CVAR_NONE, 0, "linear motion interpolation");
cl_sbar = Cvar_Get ("cl_sbar", "0", CVAR_ARCHIVE, "status bar mode"); cl_sbar = Cvar_Get ("cl_sbar", "0", CVAR_ARCHIVE, 0, "status bar mode");
cl_hudswap = cl_hudswap =
Cvar_Get ("cl_hudswap", "0", CVAR_ARCHIVE, "new HUD on left side?"); Cvar_Get ("cl_hudswap", "0", CVAR_ARCHIVE, 0, "new HUD on left side?");
cl_freelook = Cvar_Get ("freelook", "0", CVAR_ARCHIVE, "force +mlook"); cl_freelook = Cvar_Get ("freelook", "0", CVAR_ARCHIVE, 0, "force +mlook");
lookspring = lookspring =
Cvar_Get ("lookspring", "0", CVAR_ARCHIVE, Cvar_Get ("lookspring", "0", CVAR_ARCHIVE, 0,
"Snap view to center when moving and no mlook/klook"); "Snap view to center when moving and no mlook/klook");
lookstrafe = lookstrafe =
Cvar_Get ("lookstrafe", "0", CVAR_ARCHIVE, Cvar_Get ("lookstrafe", "0", CVAR_ARCHIVE, 0,
"when mlook/klook on player will strafe"); "when mlook/klook on player will strafe");
sensitivity = sensitivity =
Cvar_Get ("sensitivity", "3", CVAR_ARCHIVE, Cvar_Get ("sensitivity", "3", CVAR_ARCHIVE, 0,
"mouse sensitivity multiplier"); "mouse sensitivity multiplier");
m_pitch = m_pitch =
Cvar_Get ("m_pitch", "0.022", CVAR_ARCHIVE, Cvar_Get ("m_pitch", "0.022", CVAR_ARCHIVE, 0,
"mouse pitch (up/down) multipier"); "mouse pitch (up/down) multipier");
m_yaw = m_yaw =
Cvar_Get ("m_yaw", "0.022", CVAR_ARCHIVE, Cvar_Get ("m_yaw", "0.022", CVAR_ARCHIVE, 0,
"mouse yaw (left/right) multipiler"); "mouse yaw (left/right) multipiler");
m_forward = m_forward =
Cvar_Get ("m_forward", "1", CVAR_ARCHIVE, "mouse forward/back speed"); Cvar_Get ("m_forward", "1", CVAR_ARCHIVE, 0, "mouse forward/back speed");
m_side = Cvar_Get ("m_side", "0.8", CVAR_ARCHIVE, "mouse strafe speed"); m_side = Cvar_Get ("m_side", "0.8", CVAR_ARCHIVE, 0, "mouse strafe speed");
} }
/* /*

View file

@ -37,6 +37,8 @@
#include "game.h" #include "game.h"
#include "QF/cmd.h" #include "QF/cmd.h"
void Cvar_Info (struct cvar_s *var);
cvar_t *registered; cvar_t *registered;
cvar_t *cmdline; cvar_t *cmdline;
int static_registered = 1; int static_registered = 1;
@ -80,8 +82,8 @@ COM_Init
void void
COM_Init () COM_Init ()
{ {
registered = Cvar_Get ("registered", "0", CVAR_NONE, "None"); registered = Cvar_Get ("registered", "0", CVAR_NONE, 0, "None");
cmdline = Cvar_Get ("cmdline", "0", CVAR_SERVERINFO, "None"); cmdline = Cvar_Get ("cmdline", "0", CVAR_SERVERINFO, Cvar_Info, "None");
Cmd_AddCommand ("path", COM_Path_f, "No Description"); Cmd_AddCommand ("path", COM_Path_f, "No Description");
COM_Filesystem_Init_Cvars (); COM_Filesystem_Init_Cvars ();

View file

@ -271,7 +271,7 @@ void
Con_Init_Cvars (void) Con_Init_Cvars (void)
{ {
con_notifytime = 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"); "How long in seconds messages are displayed on screen");
} }

View file

@ -292,7 +292,7 @@ x11_set_vidmode (int width, int height)
void void
x11_Init_Cvars () 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"); "Toggles fullscreen game mode");
} }

View file

@ -62,9 +62,9 @@ D_Init (void)
r_skydirect = 1; r_skydirect = 1;
d_subdiv16 = Cvar_Get ("d_subdiv16", "1", CVAR_NONE, "None"); d_subdiv16 = Cvar_Get ("d_subdiv16", "1", CVAR_NONE, 0, "None");
d_mipcap = Cvar_Get ("d_mipcap", "0", CVAR_NONE, "None"); d_mipcap = Cvar_Get ("d_mipcap", "0", CVAR_NONE, 0, "None");
d_mipscale = Cvar_Get ("d_mipscale", "1", CVAR_NONE, "None"); d_mipscale = Cvar_Get ("d_mipscale", "1", CVAR_NONE, 0, "None");
r_drawpolys = false; r_drawpolys = false;
r_worldpolysbacktofront = false; r_worldpolysbacktofront = false;

View file

@ -415,32 +415,32 @@ Draw_Init (void)
int i; int i;
// LordHavoc: lighting mode // 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)"); "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"); "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 // set
// a // a
// description // 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 // - set a
// description // description
// Console effects --KB // 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"); "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"); "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"); "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"); "client version string");
// 3dfx can only handle 256 wide textures // 3dfx can only handle 256 wide textures

View file

@ -246,50 +246,50 @@ R_Init (void)
Cmd_AddCommand ("r_firecolor", R_FireColor_f, "No Description"); Cmd_AddCommand ("r_firecolor", R_FireColor_f, "No Description");
r_norefresh = Cvar_Get ("r_norefresh", "0", CVAR_NONE, "None"); r_norefresh = Cvar_Get ("r_norefresh", "0", CVAR_NONE, 0, "None");
r_lightmap = Cvar_Get ("r_lightmap", "0", CVAR_NONE, "None"); r_lightmap = Cvar_Get ("r_lightmap", "0", CVAR_NONE, 0, "None");
r_fullbright = Cvar_Get ("r_fullbright", "0", CVAR_NONE, "None"); r_fullbright = Cvar_Get ("r_fullbright", "0", CVAR_NONE, 0, "None");
r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, "None"); r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, 0, "None");
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_NONE, "None"); r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_NONE, 0, "None");
r_shadows = Cvar_Get ("r_shadows", "0", CVAR_NONE, "None"); r_shadows = Cvar_Get ("r_shadows", "0", CVAR_NONE, 0, "None");
r_mirroralpha = Cvar_Get ("r_mirroralpha", "1", CVAR_NONE, "None"); r_mirroralpha = Cvar_Get ("r_mirroralpha", "1", CVAR_NONE, 0, "None");
r_wateralpha = Cvar_Get ("r_wateralpha", "1", CVAR_NONE, "None"); r_wateralpha = Cvar_Get ("r_wateralpha", "1", CVAR_NONE, 0, "None");
r_waterripple = Cvar_Get ("r_waterripple", "0", CVAR_NONE, "None"); r_waterripple = Cvar_Get ("r_waterripple", "0", CVAR_NONE, 0, "None");
r_dynamic = Cvar_Get ("r_dynamic", "1", CVAR_NONE, "None"); r_dynamic = Cvar_Get ("r_dynamic", "1", CVAR_NONE, 0, "None");
r_novis = Cvar_Get ("r_novis", "0", CVAR_NONE, "None"); r_novis = Cvar_Get ("r_novis", "0", CVAR_NONE, 0, "None");
r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, "None"); r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, 0, "None");
r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, "None"); r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, 0, "None");
gl_clear = Cvar_Get ("gl_clear", "0", CVAR_NONE, "None"); gl_clear = Cvar_Get ("gl_clear", "0", CVAR_NONE, 0, "None");
gl_texsort = Cvar_Get ("gl_texsort", "1", CVAR_NONE, "None"); gl_texsort = Cvar_Get ("gl_texsort", "1", CVAR_NONE, 0, "None");
gl_cull = Cvar_Get ("gl_cull", "1", CVAR_NONE, "None"); gl_cull = Cvar_Get ("gl_cull", "1", CVAR_NONE, 0, "None");
gl_smoothmodels = Cvar_Get ("gl_smoothmodels", "1", CVAR_NONE, "None"); gl_smoothmodels = Cvar_Get ("gl_smoothmodels", "1", CVAR_NONE, 0, "None");
gl_affinemodels = Cvar_Get ("gl_affinemodels", "0", CVAR_NONE, "None"); gl_affinemodels = Cvar_Get ("gl_affinemodels", "0", CVAR_NONE, 0, "None");
gl_polyblend = Cvar_Get ("gl_polyblend", "1", CVAR_NONE, "None"); gl_polyblend = Cvar_Get ("gl_polyblend", "1", CVAR_NONE, 0, "None");
gl_flashblend = Cvar_Get ("gl_flashblend", "0", CVAR_NONE, "None"); gl_flashblend = Cvar_Get ("gl_flashblend", "0", CVAR_NONE, 0, "None");
gl_playermip = Cvar_Get ("gl_playermip", "0", CVAR_NONE, "None"); gl_playermip = Cvar_Get ("gl_playermip", "0", CVAR_NONE, 0, "None");
gl_nocolors = Cvar_Get ("gl_nocolors", "0", CVAR_NONE, "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"); "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"); "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.. " "Toggles fullbright color support for models.. "
"This is very handy, but costs me 2 FPS.. (=:]"); "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"); "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 = 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"); "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"); "controls wether the skydome is single or double pass");
R_InitBubble (); R_InitBubble ();

View file

@ -1281,7 +1281,7 @@ GL_BuildLightmaps (void)
texture_extension_number += MAX_LIGHTMAPS; 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"); "Whether to use RGB lightmaps or not");
if (gl_colorlights->int_val) { if (gl_colorlights->int_val) {

View file

@ -418,16 +418,16 @@ SCR_Init
void void
SCR_InitCvars (void) SCR_InitCvars (void)
{ {
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, "10 - 170"); scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, 0, "10 - 170");
scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, "None"); scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, 0, "None");
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, "None"); scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, 0, "None");
scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, "None"); scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, 0, "None");
scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, "None"); scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, 0, "None");
scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, "None"); scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, 0, "None");
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, "None"); scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, 0, "None");
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, "None"); scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, 0, "None");
scr_allowsnap = Cvar_Get ("scr_allowsnap", "1", CVAR_NONE, "None"); scr_allowsnap = Cvar_Get ("scr_allowsnap", "1", CVAR_NONE, 0, "None");
gl_triplebuffer = Cvar_Get ("gl_triplebuffer", "1", CVAR_ARCHIVE, "None"); gl_triplebuffer = Cvar_Get ("gl_triplebuffer", "1", CVAR_ARCHIVE, 0, "None");
} }
void void

View file

@ -241,25 +241,25 @@ Host_InitLocal (void)
Host_InitCommands (); Host_InitCommands ();
host_framerate = 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 = 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"); sys_ticrate = Cvar_Get ("sys_ticrate", "0.05", CVAR_NONE, 0, "None");
serverprofile = Cvar_Get ("serverprofile", "0", CVAR_NONE, "None"); serverprofile = Cvar_Get ("serverprofile", "0", CVAR_NONE, 0, "None");
fraglimit = Cvar_Get ("fraglimit", "0", CVAR_SERVERINFO, "None"); fraglimit = Cvar_Get ("fraglimit", "0", CVAR_SERVERINFO, Cvar_Info, "None");
timelimit = Cvar_Get ("timelimit", "0", CVAR_SERVERINFO, "None"); timelimit = Cvar_Get ("timelimit", "0", CVAR_SERVERINFO, Cvar_Info, "None");
teamplay = Cvar_Get ("teamplay", "0", CVAR_SERVERINFO, "None"); teamplay = Cvar_Get ("teamplay", "0", CVAR_SERVERINFO, Cvar_Info, "None");
samelevel = Cvar_Get ("samelevel", "0", CVAR_NONE, "None"); samelevel = Cvar_Get ("samelevel", "0", CVAR_NONE, 0, "None");
noexit = Cvar_Get ("noexit", "0", CVAR_SERVERINFO, "None"); noexit = Cvar_Get ("noexit", "0", CVAR_SERVERINFO, Cvar_Info, "None");
skill = Cvar_Get ("skill", "1", CVAR_NONE, "0 - 3"); skill = Cvar_Get ("skill", "1", CVAR_NONE, 0, "0 - 3");
deathmatch = Cvar_Get ("deathmatch", "0", CVAR_NONE, "0, 1, or 2"); deathmatch = Cvar_Get ("deathmatch", "0", CVAR_NONE, 0, "0, 1, or 2");
coop = Cvar_Get ("coop", "0", CVAR_NONE, "0 or 1"); 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 (); Host_FindMaxClients ();
@ -912,7 +912,7 @@ Host_Init (quakeparms_t *parms)
// only reads from within the quake file system, and changing that is // only reads from within the quake file system, and changing that is
// probably Not A Good Thing (tm). // probably Not A Good Thing (tm).
fs_globalcfg = Cvar_Get ("fs_globalcfg", FS_GLOBALCFG, 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); Cmd_Exec_File (fs_globalcfg->string);
Cbuf_Execute_Sets (); Cbuf_Execute_Sets ();

View file

@ -173,10 +173,10 @@ IN_Init (void)
{ {
int i; int i;
m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, "None"); m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, 0, "None");
in_joystick = Cvar_Get ("joystick", "0", CVAR_ARCHIVE, "None"); in_joystick = Cvar_Get ("joystick", "0", CVAR_ARCHIVE, 0, "None");
joy_numbuttons = Cvar_Get ("joybuttons", "4", CVAR_ARCHIVE, "None"); joy_numbuttons = Cvar_Get ("joybuttons", "4", CVAR_ARCHIVE, 0, "None");
aux_look = Cvar_Get ("auxlook", "1", CVAR_ARCHIVE, "None"); aux_look = Cvar_Get ("auxlook", "1", CVAR_ARCHIVE, 0, "None");
Cmd_AddCommand ("toggle_auxlook", Toggle_AuxLook_f, "No Description"); Cmd_AddCommand ("toggle_auxlook", Toggle_AuxLook_f, "No Description");
Cmd_AddCommand ("force_centerview", Force_CenterView_f, "No Description"); Cmd_AddCommand ("force_centerview", Force_CenterView_f, "No Description");

View file

@ -358,9 +358,9 @@ IN_Init_Cvars (void)
JOY_Init_Cvars (); JOY_Init_Cvars ();
_windowed_mouse = _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"); "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"); // input filtering");
} }

View file

@ -158,7 +158,7 @@ IN_Init (void)
if (!x_disp) if (!x_disp)
Sys_Error ("X display not open!\n"); 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... // we really really want to clean these up...
atexit (IN_Shutdown); atexit (IN_Shutdown);

View file

@ -135,7 +135,7 @@ void
IN_Init_Cvars (void) IN_Init_Cvars (void)
{ {
JOY_Init_Cvars (); 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 static void

View file

@ -503,35 +503,35 @@ void
IN_Init_Cvars (void) IN_Init_Cvars (void)
{ {
// mouse variables // 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 // joystick variables
in_joystick = Cvar_Get ("joystick", "0", CVAR_ARCHIVE, "None"); in_joystick = Cvar_Get ("joystick", "0", CVAR_ARCHIVE, 0, "None");
joy_name = Cvar_Get ("joyname", "joystick", CVAR_NONE, "None"); joy_name = Cvar_Get ("joyname", "joystick", CVAR_NONE, 0, "None");
joy_advanced = Cvar_Get ("joyadvanced", "0", CVAR_NONE, "None"); joy_advanced = Cvar_Get ("joyadvanced", "0", CVAR_NONE, 0, "None");
joy_advaxisx = Cvar_Get ("joyadvaxisx", "0", CVAR_NONE, "None"); joy_advaxisx = Cvar_Get ("joyadvaxisx", "0", CVAR_NONE, 0, "None");
joy_advaxisy = Cvar_Get ("joyadvaxisy", "0", CVAR_NONE, "None"); joy_advaxisy = Cvar_Get ("joyadvaxisy", "0", CVAR_NONE, 0, "None");
joy_advaxisz = Cvar_Get ("joyadvaxisz", "0", CVAR_NONE, "None"); joy_advaxisz = Cvar_Get ("joyadvaxisz", "0", CVAR_NONE, 0, "None");
joy_advaxisr = Cvar_Get ("joyadvaxisr", "0", CVAR_NONE, "None"); joy_advaxisr = Cvar_Get ("joyadvaxisr", "0", CVAR_NONE, 0, "None");
joy_advaxisu = Cvar_Get ("joyadvaxisu", "0", CVAR_NONE, "None"); joy_advaxisu = Cvar_Get ("joyadvaxisu", "0", CVAR_NONE, 0, "None");
joy_advaxisv = Cvar_Get ("joyadvaxisv", "0", CVAR_NONE, "None"); joy_advaxisv = Cvar_Get ("joyadvaxisv", "0", CVAR_NONE, 0, "None");
joy_forwardthreshold = joy_forwardthreshold =
Cvar_Get ("joyforwardthreshold", "0.15", CVAR_NONE, "None"); Cvar_Get ("joyforwardthreshold", "0.15", CVAR_NONE, 0, "None");
joy_sidethreshold = joy_sidethreshold =
Cvar_Get ("joysidethreshold", "0.15", CVAR_NONE, "None"); Cvar_Get ("joysidethreshold", "0.15", CVAR_NONE, 0, "None");
joy_pitchthreshold = joy_pitchthreshold =
Cvar_Get ("joypitchthreshold", "0.15", CVAR_NONE, "None"); Cvar_Get ("joypitchthreshold", "0.15", CVAR_NONE, 0, "None");
joy_yawthreshold = Cvar_Get ("joyyawthreshold", "0.15", CVAR_NONE, "None"); joy_yawthreshold = Cvar_Get ("joyyawthreshold", "0.15", CVAR_NONE, 0, "None");
joy_forwardsensitivity = joy_forwardsensitivity =
Cvar_Get ("joyforwardsensitivity", "-1.0", CVAR_NONE, "None"); Cvar_Get ("joyforwardsensitivity", "-1.0", CVAR_NONE, 0, "None");
joy_sidesensitivity = joy_sidesensitivity =
Cvar_Get ("joysidesensitivity", "-1.0", CVAR_NONE, "None"); Cvar_Get ("joysidesensitivity", "-1.0", CVAR_NONE, 0, "None");
joy_pitchsensitivity = joy_pitchsensitivity =
Cvar_Get ("joypitchsensitivity", "1.0", CVAR_NONE, "None"); Cvar_Get ("joypitchsensitivity", "1.0", CVAR_NONE, 0, "None");
joy_yawsensitivity = joy_yawsensitivity =
Cvar_Get ("joyyawsensitivity", "-1.0", CVAR_NONE, "None"); Cvar_Get ("joyyawsensitivity", "-1.0", CVAR_NONE, 0, "None");
joy_wwhack1 = Cvar_Get ("joywwhack1", "0.0", CVAR_NONE, "None"); joy_wwhack1 = Cvar_Get ("joywwhack1", "0.0", CVAR_NONE, 0, "None");
joy_wwhack2 = Cvar_Get ("joywwhack2", "0.0", CVAR_NONE, "None"); joy_wwhack2 = Cvar_Get ("joywwhack2", "0.0", CVAR_NONE, 0, "None");
} }
/* /*

View file

@ -552,13 +552,13 @@ IN_Init_Cvars (void)
{ {
JOY_Init_Cvars (); JOY_Init_Cvars ();
_windowed_mouse = _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"); "With this set to 1, quake will grab the mouse from X");
m_filter = m_filter =
Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, 0,
"Toggle mouse input filtering."); "Toggle mouse input filtering.");
in_dga = Cvar_Get ("in_dga", "1", CVAR_ARCHIVE, "DGA Input support"); in_dga = Cvar_Get ("in_dga", "1", CVAR_ARCHIVE, 0, "DGA Input support");
in_dga_mouseaccel = Cvar_Get ("in_dga_mouseaccel", "1", CVAR_ARCHIVE, in_dga_mouseaccel = Cvar_Get ("in_dga_mouseaccel", "1", CVAR_ARCHIVE, 0,
"DGA Mouse accelleration multiplier"); "DGA Mouse accelleration multiplier");
} }

View file

@ -196,19 +196,19 @@ JOY_Init_Cvars (void)
int i; int i;
joy_device = 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"); "Joystick device");
joy_enable = joy_enable =
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
"Joystick enable flag"); "Joystick enable flag");
joy_sensitivity = joy_sensitivity =
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
"Joystick sensitivity"); "Joystick sensitivity");
for (i = 0; i < JOY_MAX_AXES; i++) { for (i = 0; i < JOY_MAX_AXES; i++) {
joy_axes[i].axis = Cvar_Get (joy_axes[i].var.name, joy_axes[i].axis = Cvar_Get (joy_axes[i].var.name,
joy_axes[i].var.string, joy_axes[i].var.string,
CVAR_ARCHIVE, "Set joystick axes"); CVAR_ARCHIVE, 0, "Set joystick axes");
} }
} }

View file

@ -64,13 +64,13 @@ void
JOY_Init_Cvars (void) JOY_Init_Cvars (void)
{ {
joy_device = joy_device =
Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM, Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM, 0,
"Joystick device"); "Joystick device");
joy_enable = joy_enable =
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
"Joystick enable flag"); "Joystick enable flag");
joy_sensitivity = joy_sensitivity =
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
"Joystick sensitivity"); "Joystick sensitivity");
} }

View file

@ -747,7 +747,7 @@ Key_Init (void)
void void
Key_Init_Cvars (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"); "Controls when console text will be treated as a chat message: 0 - never, 1 - always, 2 - smart");
} }

View file

@ -66,7 +66,7 @@ void
Mod_Init (void) Mod_Init (void)
{ {
gl_subdivide_size = 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)); memset (mod_novis, 0xff, sizeof (mod_novis));
} }

View file

@ -844,23 +844,23 @@ NET_Init (void)
SZ_Alloc (&_net_message_message, NET_MAXMESSAGE); SZ_Alloc (&_net_message_message, NET_MAXMESSAGE);
net_messagetimeout = net_messagetimeout =
Cvar_Get ("net_messagetimeout", "300", CVAR_NONE, "None"); Cvar_Get ("net_messagetimeout", "300", CVAR_NONE, 0, "None");
hostname = Cvar_Get ("hostname", "UNNAMED", CVAR_NONE, "None"); hostname = Cvar_Get ("hostname", "UNNAMED", CVAR_NONE, 0, "None");
config_com_port = config_com_port =
Cvar_Get ("_config_com_port", "0x3f8", CVAR_ARCHIVE, "None"); Cvar_Get ("_config_com_port", "0x3f8", CVAR_ARCHIVE, 0, "None");
config_com_irq = Cvar_Get ("_config_com_irq", "4", CVAR_ARCHIVE, "None"); config_com_irq = Cvar_Get ("_config_com_irq", "4", CVAR_ARCHIVE, 0, "None");
config_com_baud = 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 = 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 = 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 = 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 = config_modem_init =
Cvar_Get ("_config_modem_init", "", CVAR_ARCHIVE, "None"); Cvar_Get ("_config_modem_init", "", CVAR_ARCHIVE, 0, "None");
config_modem_hangup = 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 ("slist", NET_Slist_f, "No Description");
Cmd_AddCommand ("listen", NET_Listen_f, "No Description"); Cmd_AddCommand ("listen", NET_Listen_f, "No Description");

View file

@ -215,30 +215,30 @@ R_Init (void)
Cmd_AddCommand ("timerefresh", R_TimeRefresh_f, "No Description"); Cmd_AddCommand ("timerefresh", R_TimeRefresh_f, "No Description");
Cmd_AddCommand ("pointfile", R_ReadPointFile_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"); "whether or not to draw particles");
r_draworder = Cvar_Get ("r_draworder", "0", CVAR_NONE, "None"); r_draworder = Cvar_Get ("r_draworder", "0", CVAR_NONE, 0, "None");
r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, "None"); r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, 0, "None");
r_timegraph = Cvar_Get ("r_timegraph", "0", CVAR_NONE, "None"); r_timegraph = Cvar_Get ("r_timegraph", "0", CVAR_NONE, 0, "None");
r_graphheight = Cvar_Get ("r_graphheight", "10", CVAR_NONE, "None"); r_graphheight = Cvar_Get ("r_graphheight", "10", CVAR_NONE, 0, "None");
r_drawflat = Cvar_Get ("r_drawflat", "0", CVAR_NONE, "None"); r_drawflat = Cvar_Get ("r_drawflat", "0", CVAR_NONE, 0, "None");
r_ambient = Cvar_Get ("r_ambient", "0", CVAR_NONE, "None"); r_ambient = Cvar_Get ("r_ambient", "0", CVAR_NONE, 0, "None");
r_clearcolor = Cvar_Get ("r_clearcolor", "2", CVAR_NONE, "None"); r_clearcolor = Cvar_Get ("r_clearcolor", "2", CVAR_NONE, 0, "None");
r_waterwarp = Cvar_Get ("r_waterwarp", "1", CVAR_NONE, "None"); r_waterwarp = Cvar_Get ("r_waterwarp", "1", CVAR_NONE, 0, "None");
r_fullbright = Cvar_Get ("r_fullbright", "0", CVAR_NONE, "None"); r_fullbright = Cvar_Get ("r_fullbright", "0", CVAR_NONE, 0, "None");
r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, "None"); r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, 0, "None");
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_NONE, "None"); r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_NONE, 0, "None");
r_aliasstats = Cvar_Get ("r_polymodelstats", "0", CVAR_NONE, "None"); r_aliasstats = Cvar_Get ("r_polymodelstats", "0", CVAR_NONE, 0, "None");
r_dspeeds = Cvar_Get ("r_dspeeds", "0", CVAR_NONE, "None"); r_dspeeds = Cvar_Get ("r_dspeeds", "0", CVAR_NONE, 0, "None");
r_reportsurfout = Cvar_Get ("r_reportsurfout", "0", CVAR_NONE, "None"); r_reportsurfout = Cvar_Get ("r_reportsurfout", "0", CVAR_NONE, 0, "None");
r_maxsurfs = Cvar_Get ("r_maxsurfs", "0", CVAR_NONE, "None"); r_maxsurfs = Cvar_Get ("r_maxsurfs", "0", CVAR_NONE, 0, "None");
r_numsurfs = Cvar_Get ("r_numsurfs", "0", CVAR_NONE, "None"); r_numsurfs = Cvar_Get ("r_numsurfs", "0", CVAR_NONE, 0, "None");
r_reportedgeout = Cvar_Get ("r_reportedgeout", "0", CVAR_NONE, "None"); r_reportedgeout = Cvar_Get ("r_reportedgeout", "0", CVAR_NONE, 0, "None");
r_maxedges = Cvar_Get ("r_maxedges", "0", CVAR_NONE, "None"); r_maxedges = Cvar_Get ("r_maxedges", "0", CVAR_NONE, 0, "None");
r_numedges = Cvar_Get ("r_numedges", "0", CVAR_NONE, "None"); r_numedges = Cvar_Get ("r_numedges", "0", CVAR_NONE, 0, "None");
r_aliastransbase = Cvar_Get ("r_aliastransbase", "200", CVAR_NONE, "None"); r_aliastransbase = Cvar_Get ("r_aliastransbase", "200", CVAR_NONE, 0, "None");
r_aliastransadj = Cvar_Get ("r_aliastransadj", "100", CVAR_NONE, "None"); r_aliastransadj = Cvar_Get ("r_aliastransadj", "100", CVAR_NONE, 0, "None");
Cvar_SetValue (r_maxedges, (float) NUMSTACKEDGES); Cvar_SetValue (r_maxedges, (float) NUMSTACKEDGES);
Cvar_SetValue (r_maxsurfs, (float) NUMSTACKSURFACES); Cvar_SetValue (r_maxsurfs, (float) NUMSTACKSURFACES);

View file

@ -768,37 +768,37 @@ V_Init (void)
Cmd_AddCommand ("bf", V_BonusFlash_f, "No Description"); Cmd_AddCommand ("bf", V_BonusFlash_f, "No Description");
Cmd_AddCommand ("centerview", V_StartPitchDrift, "No Description"); Cmd_AddCommand ("centerview", V_StartPitchDrift, "No Description");
v_centermove = Cvar_Get ("v_centermove", "0.15", CVAR_NONE, "None"); v_centermove = Cvar_Get ("v_centermove", "0.15", CVAR_NONE, 0, "None");
v_centerspeed = Cvar_Get ("v_centerspeed", "500", CVAR_NONE, "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_iyaw_cycle = Cvar_Get ("v_iyaw_cycle", "2", CVAR_NONE, 0, "None");
v_iroll_cycle = Cvar_Get ("v_iroll_cycle", "0.5", CVAR_NONE, "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, "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, "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, "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, "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"); v_idlescale = Cvar_Get ("v_idlescale", "0", CVAR_NONE, 0, "None");
crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE, "None"); crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE, 0, "None");
crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE, "None"); crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE, 0, "None");
cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_NONE, "None"); cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_NONE, 0, "None");
cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_NONE, "None"); cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_NONE, 0, "None");
gl_cshiftpercent = Cvar_Get ("gl_cshiftpercent", "100", CVAR_NONE, "None"); gl_cshiftpercent = Cvar_Get ("gl_cshiftpercent", "100", CVAR_NONE, 0, "None");
scr_ofsx = Cvar_Get ("scr_ofsx", "0", CVAR_NONE, "None"); scr_ofsx = Cvar_Get ("scr_ofsx", "0", CVAR_NONE, 0, "None");
scr_ofsy = Cvar_Get ("scr_ofsy", "0", CVAR_NONE, "None"); scr_ofsy = Cvar_Get ("scr_ofsy", "0", CVAR_NONE, 0, "None");
scr_ofsz = Cvar_Get ("scr_ofsz", "0", CVAR_NONE, "None"); scr_ofsz = Cvar_Get ("scr_ofsz", "0", CVAR_NONE, 0, "None");
cl_rollspeed = Cvar_Get ("cl_rollspeed", "200", CVAR_NONE, "None"); cl_rollspeed = Cvar_Get ("cl_rollspeed", "200", CVAR_NONE, 0, "None");
cl_rollangle = Cvar_Get ("cl_rollangle", "2.0", CVAR_NONE, "None"); cl_rollangle = Cvar_Get ("cl_rollangle", "2.0", CVAR_NONE, 0, "None");
cl_bob = Cvar_Get ("cl_bob", "0.02", CVAR_NONE, "None"); cl_bob = Cvar_Get ("cl_bob", "0.02", CVAR_NONE, 0, "None");
cl_bobcycle = Cvar_Get ("cl_bobcycle", "0.6", CVAR_NONE, "None"); cl_bobcycle = Cvar_Get ("cl_bobcycle", "0.6", CVAR_NONE, 0, "None");
cl_bobup = Cvar_Get ("cl_bobup", "0.5", CVAR_NONE, "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_kicktime = Cvar_Get ("v_kicktime", "0.5", CVAR_NONE, 0, "None");
v_kickroll = Cvar_Get ("v_kickroll", "0.6", CVAR_NONE, "None"); v_kickroll = Cvar_Get ("v_kickroll", "0.6", CVAR_NONE, 0, "None");
v_kickpitch = Cvar_Get ("v_kickpitch", "0.6", CVAR_NONE, "None"); v_kickpitch = Cvar_Get ("v_kickpitch", "0.6", CVAR_NONE, 0, "None");
BuildGammaTable (1.0, 1.0); // no gamma yet BuildGammaTable (1.0, 1.0); // no gamma yet
brightness = Cvar_Get ("brightness", "1", CVAR_ARCHIVE, "None"); brightness = Cvar_Get ("brightness", "1", CVAR_ARCHIVE, 0, "None");
contrast = Cvar_Get ("contrast", "1", CVAR_ARCHIVE, "None"); contrast = Cvar_Get ("contrast", "1", CVAR_ARCHIVE, 0, "None");
} }

View file

@ -349,14 +349,14 @@ SCR_Init
void void
SCR_Init (void) SCR_Init (void)
{ {
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, "10 - 170"); scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, 0, "10 - 170");
scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, "None"); scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, 0, "None");
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, "None"); scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, 0, "None");
scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, "None"); scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, 0, "None");
scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, "None"); scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, 0, "None");
scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, "None"); scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, 0, "None");
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, "None"); scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, 0, "None");
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, "None"); scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, 0, "None");
// //
// register our commands // register our commands

View file

@ -270,46 +270,46 @@ S_Init (void)
void void
S_Init_Cvars (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"); "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"); "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"); "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"); "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 = volume =
Cvar_Get ("volume", "0.7", CVAR_ARCHIVE, Cvar_Get ("volume", "0.7", CVAR_ARCHIVE, 0,
"Set the volume for sound playback"); "Set the volume for sound playback");
precache = 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 = loadas8bit =
Cvar_Get ("loadas8bit", "0", CVAR_NONE, Cvar_Get ("loadas8bit", "0", CVAR_NONE, 0,
"Toggles if sounds are loaded as 8-bit samples"); "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 = 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 = 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"); "How quickly ambient sounds fade in or out");
snd_noextraupdate = 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"); "Toggles the correct value display in host_speeds. Usually messes up sound playback when in effect");
snd_show = 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"); "Toggles the display of sounds currently being played");
snd_interp = snd_interp =
Cvar_Get ("snd_interp", "1", CVAR_ARCHIVE, Cvar_Get ("snd_interp", "1", CVAR_ARCHIVE, 0,
"control sample interpolation"); "control sample interpolation");
snd_phasesep = 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"); "max stereo phase separation in ms. 0.6 is for 20cm head");
snd_volumesep = 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"); "max stereo volume separation in ms. 1.0 is max");
_snd_mixahead = _snd_mixahead =
Cvar_Get ("_snd_mixahead", "0.1", CVAR_ARCHIVE, Cvar_Get ("_snd_mixahead", "0.1", CVAR_ARCHIVE, 0,
"Delay time for sounds"); "Delay time for sounds");
} }

View file

@ -56,10 +56,10 @@ S_Init (void)
void void
S_Init_Cvars (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 = loadas8bit =
Cvar_Get ("loadas8bit", "0", CVAR_NONE, "Load samples as 8-bit"); Cvar_Get ("loadas8bit", "0", CVAR_NONE, 0, "Load samples as 8-bit");
bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, "CD music volume"); bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, 0, "CD music volume");
} }
void void

View file

@ -59,17 +59,17 @@ SV_Init (void)
{ {
int i; int i;
sv_maxvelocity = Cvar_Get ("sv_maxvelocity", "2000", CVAR_NONE, "None"); sv_maxvelocity = Cvar_Get ("sv_maxvelocity", "2000", CVAR_NONE, 0, "None");
sv_gravity = Cvar_Get ("sv_gravity", "800", CVAR_SERVERINFO, "None"); sv_gravity = Cvar_Get ("sv_gravity", "800", CVAR_SERVERINFO, Cvar_Info, "None");
sv_friction = Cvar_Get ("sv_friction", "4", CVAR_SERVERINFO, "None"); sv_friction = Cvar_Get ("sv_friction", "4", CVAR_SERVERINFO, Cvar_Info, "None");
sv_edgefriction = Cvar_Get ("edgefriction", "2", CVAR_NONE, "None"); sv_edgefriction = Cvar_Get ("edgefriction", "2", CVAR_NONE, 0, "None");
sv_stopspeed = Cvar_Get ("sv_stopspeed", "100", CVAR_NONE, "None"); sv_stopspeed = Cvar_Get ("sv_stopspeed", "100", CVAR_NONE, 0, "None");
sv_maxspeed = Cvar_Get ("sv_maxspeed", "320", CVAR_SERVERINFO, "None"); sv_maxspeed = Cvar_Get ("sv_maxspeed", "320", CVAR_SERVERINFO, Cvar_Info, "None");
sv_accelerate = Cvar_Get ("sv_accelerate", "10", CVAR_NONE, "None"); sv_accelerate = Cvar_Get ("sv_accelerate", "10", CVAR_NONE, 0, "None");
sv_idealpitchscale = sv_idealpitchscale =
Cvar_Get ("sv_idealpitchscale", "0.8", CVAR_NONE, "None"); Cvar_Get ("sv_idealpitchscale", "0.8", CVAR_NONE, 0, "None");
sv_aim = Cvar_Get ("sv_aim", "0.93", CVAR_NONE, "None"); sv_aim = Cvar_Get ("sv_aim", "0.93", CVAR_NONE, 0, "None");
sv_nostep = Cvar_Get ("sv_nostep", "0", CVAR_NONE, "None"); sv_nostep = Cvar_Get ("sv_nostep", "0", CVAR_NONE, 0, "None");
for (i = 0; i < MAX_MODELS; i++) for (i = 0; i < MAX_MODELS; i++)
snprintf (localmodels[i], sizeof (localmodels[i]), "*%i", i); snprintf (localmodels[i], sizeof (localmodels[i]), "*%i", i);

View file

@ -305,23 +305,23 @@ SV_Progs_Init (void)
void void
SV_Progs_Init_Cvars (void) SV_Progs_Init_Cvars (void)
{ {
r_skyname = Cvar_Get ("r_skyname", "", CVAR_SERVERINFO, "name of skybox"); r_skyname = Cvar_Get ("r_skyname", "", CVAR_SERVERINFO, Cvar_Info, "name of skybox");
sv_progs = Cvar_Get ("sv_progs", "progs.dat", CVAR_ROM, sv_progs = Cvar_Get ("sv_progs", "progs.dat", CVAR_ROM, 0,
"Allows selectable game progs if you have several " "Allows selectable game progs if you have several "
"of them in the gamedir"); "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 " "indicate the presence of the "
"checkextentions qc function"); "checkextentions qc function");
nomonsters = Cvar_Get ("nomonsters", "0", CVAR_NONE, "No Description"); nomonsters = Cvar_Get ("nomonsters", "0", CVAR_NONE, 0, "No Description");
gamecfg = Cvar_Get ("gamecfg", "0", CVAR_NONE, "No Description"); gamecfg = Cvar_Get ("gamecfg", "0", CVAR_NONE, 0, "No Description");
scratch1 = Cvar_Get ("scratch1", "0", CVAR_NONE, "No Description"); scratch1 = Cvar_Get ("scratch1", "0", CVAR_NONE, 0, "No Description");
scratch2 = Cvar_Get ("scratch2", "0", CVAR_NONE, "No Description"); scratch2 = Cvar_Get ("scratch2", "0", CVAR_NONE, 0, "No Description");
scratch3 = Cvar_Get ("scratch3", "0", CVAR_NONE, "No Description"); scratch3 = Cvar_Get ("scratch3", "0", CVAR_NONE, 0, "No Description");
scratch4 = Cvar_Get ("scratch4", "0", CVAR_NONE, "No Description"); scratch4 = Cvar_Get ("scratch4", "0", CVAR_NONE, 0, "No Description");
savedgamecfg = Cvar_Get ("savedgamecfg", "0", CVAR_ARCHIVE, "No Description"); savedgamecfg = Cvar_Get ("savedgamecfg", "0", CVAR_ARCHIVE, 0, "No Description");
saved1 = Cvar_Get ("saved1", "0", CVAR_ARCHIVE, "No Description"); saved1 = Cvar_Get ("saved1", "0", CVAR_ARCHIVE, 0, "No Description");
saved2 = Cvar_Get ("saved2", "0", CVAR_ARCHIVE, "No Description"); saved2 = Cvar_Get ("saved2", "0", CVAR_ARCHIVE, 0, "No Description");
saved3 = Cvar_Get ("saved3", "0", CVAR_ARCHIVE, "No Description"); saved3 = Cvar_Get ("saved3", "0", CVAR_ARCHIVE, 0, "No Description");
saved4 = Cvar_Get ("saved4", "0", CVAR_ARCHIVE, "No Description"); saved4 = Cvar_Get ("saved4", "0", CVAR_ARCHIVE, 0, "No Description");
} }

View file

@ -274,7 +274,7 @@ main (int c, char **v)
Sys_Init (); 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")) if (COM_CheckParm ("-nostdout"))
Cvar_Set (sys_nostdout, "1"); Cvar_Set (sys_nostdout, "1");
else { else {

View file

@ -48,9 +48,9 @@ VID_GetWindowSize (int def_w, int def_h)
int pnum; int pnum;
vid_width = 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 = 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_CheckParm ("-width"))) {
if (pnum >= com_argc - 1) if (pnum >= com_argc - 1)

View file

@ -377,7 +377,7 @@ VID_Init8bitPalette (void)
Con_Printf ("disabled.\n"); Con_Printf ("disabled.\n");
return; 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."); "Whether to use Shared Palettes.");
if (vid_use8bit->value) { if (vid_use8bit->value) {
#ifdef HAVE_TDFXGL #ifdef HAVE_TDFXGL

View file

@ -104,24 +104,24 @@ VID_Init
void void
VID_Init (unsigned char *palette) VID_Init (unsigned char *palette)
{ {
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "None"); vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "None");
vid_wait = Cvar_Get ("vid_wait", "0", CVAR_NONE, "None"); vid_wait = Cvar_Get ("vid_wait", "0", CVAR_NONE, 0, "None");
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, "None"); vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, 0, "None");
_vid_wait_override = _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 = _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 = _vid_default_mode_win =
Cvar_Get ("_vid_default_mode_win", "3", 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, "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, "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, "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, "None"); _windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "None");
vid_fullscreen_mode = 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 = vid_windowed_mode =
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, "None"); Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, 0, "None");
block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, "None"); block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, 0, "None");
Cmd_AddCommand ("vid_testmode", VID_TestMode_f, "No Description"); Cmd_AddCommand ("vid_testmode", VID_TestMode_f, "No Description");
Cmd_AddCommand ("vid_nummodes", VID_NumModes_f, "No Description"); Cmd_AddCommand ("vid_nummodes", VID_NumModes_f, "No Description");

View file

@ -625,10 +625,10 @@ VID_Init (unsigned char *palette)
void void
VID_Init_Cvars () VID_Init_Cvars ()
{ {
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "Sets the video mode"); vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "Sets the video mode");
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE, vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE, 0,
"Redraw entire screen each frame instead of just dirty areas"); "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"); "Wait for vertical retrace before drawing next frame");
} }

View file

@ -2114,21 +2114,21 @@ VID_Init (unsigned char *palette)
void void
VID_Init_Cvars () VID_Init_Cvars ()
{ {
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "None"); vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "None");
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, "None"); vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, 0, "None");
_vid_default_mode_win = _vid_default_mode_win =
Cvar_Get ("_vid_default_mode_win", "3", 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, "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, "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, "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, "None"); _windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "None");
vid_fullscreen_mode = 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 = vid_windowed_mode =
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, "None"); Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, 0, "None");
block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, "None"); block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, 0, "None");
vid_window_x = Cvar_Get ("vid_window_x", "0", CVAR_ARCHIVE, "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, "None"); vid_window_y = Cvar_Get ("vid_window_y", "0", CVAR_ARCHIVE, 0, "None");
} }

View file

@ -187,7 +187,7 @@ void
VID_Init_Cvars () VID_Init_Cvars ()
{ {
vid_fullscreen = vid_fullscreen =
Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, 0,
"Toggles fullscreen game mode"); "Toggles fullscreen game mode");
} }

View file

@ -222,7 +222,7 @@ VID_Init (unsigned char *palette)
void void
VID_Init_Cvars () VID_Init_Cvars ()
{ {
vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", 0, "None"); vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", CVAR_NONE, 0, "None");
} }
void void

View file

@ -1312,7 +1312,7 @@ Sys_ConsoleInput (void)
void void
IN_Init (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")) if (COM_CheckParm ("-nomouse"))
return; return;
mouse_x = mouse_y = 0.0; mouse_x = mouse_y = 0.0;

View file

@ -419,7 +419,7 @@ VID_Init (unsigned char *palette)
Cmd_AddCommand ("gamma", VID_Gamma_f, "No Description"); 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) if (pipe (render_pipeline) < 0)
Sys_Error ("VID_Init: pipe"); Sys_Error ("VID_Init: pipe");
@ -1339,8 +1339,8 @@ IN_SendKeyEvents (void)
void void
IN_Init (void) IN_Init (void)
{ {
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "None"); _windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "None");
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")) if (COM_CheckParm ("-nomouse"))
return; return;
mouse_x = mouse_y = 0.0; mouse_x = mouse_y = 0.0;

View file

@ -598,10 +598,10 @@ VID_Init (unsigned char *palette)
void void
VID_Init_Cvars () VID_Init_Cvars ()
{ {
vid_mode = Cvar_Get ("vid_mode", "5", 0, "None"); vid_mode = Cvar_Get ("vid_mode", "5", CVAR_NONE, 0, "None");
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", 0, "None"); vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE, 0, "None");
vid_waitforrefresh = Cvar_Get ("vid_waitforrefresh", "0", vid_waitforrefresh = Cvar_Get ("vid_waitforrefresh", "0",
CVAR_ARCHIVE, "None"); CVAR_ARCHIVE, 0, "None");
} }

View file

@ -1764,7 +1764,7 @@ VID_Init (unsigned char *palette)
void void
VID_Init_Cvars () VID_Init_Cvars ()
{ {
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "None"); _windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "None");
} }

View file

@ -1986,26 +1986,26 @@ VID_Init (unsigned char *palette)
int basenummodes; int basenummodes;
byte *ptmp; byte *ptmp;
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "None"); vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "None");
vid_wait = Cvar_Get ("vid_wait", "0", CVAR_NONE, "None"); vid_wait = Cvar_Get ("vid_wait", "0", CVAR_NONE, 0, "None");
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, "None"); vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, 0, "None");
_vid_wait_override = _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 = _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 = _vid_default_mode_win =
Cvar_Get ("_vid_default_mode_win", "3", 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, "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, "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, "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, "None"); _windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "None");
vid_fullscreen_mode = 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 = vid_windowed_mode =
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, "None"); Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, 0, "None");
block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, "None"); block_switch = Cvar_Get ("block_switch", "0", CVAR_ARCHIVE, 0, "None");
vid_window_x = Cvar_Get ("vid_window_x", "0", CVAR_ARCHIVE, "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, "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_testmode", VID_TestMode_f, "No Description");
Cmd_AddCommand ("vid_nummodes", VID_NumModes_f, "No Description"); Cmd_AddCommand ("vid_nummodes", VID_NumModes_f, "No Description");

View file

@ -357,6 +357,6 @@ extern qboolean allowskybox;
//============================================================================= //=============================================================================
void Cvar_Info (struct cvar_s *var);
#endif // _CLIENT_H #endif // _CLIENT_H

View file

@ -521,4 +521,5 @@ void ClientReliableWrite_Short(client_t *cl, int c);
void ClientReliableWrite_String(client_t *cl, char *s); void ClientReliableWrite_String(client_t *cl, char *s);
void ClientReliableWrite_SZ(client_t *cl, void *data, int len); void ClientReliableWrite_SZ(client_t *cl, void *data, int len);
void Cvar_Info (struct cvar_s *var);
#endif // _SERVER_H #endif // _SERVER_H

View file

@ -603,9 +603,9 @@ Cam_Reset (void)
void void
CL_Cam_Init_Cvars (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_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, "get first person view of the person you are tracking 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 = cl_camera_maxpitch =
Cvar_Get ("cl_camera_maxpitch", "10", CVAR_NONE, "highest camera pitch 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, "highest camera yaw in spectator mode"); cl_camera_maxyaw = Cvar_Get ("cl_camera_maxyaw", "30", CVAR_NONE, 0, "highest camera yaw in spectator mode");
} }

View file

@ -1108,6 +1108,6 @@ CL_EmitEntities (void)
void void
CL_Ents_Init (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"); "color of rocket and lava ball fires");
} }

View file

@ -732,7 +732,7 @@ CL_Input_Init (void)
void void
CL_Input_Init_Cvars (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."); "set to 1 if you have a poor ISP and get a lot of U_REMOVE warnings.");
} }

View file

@ -1197,105 +1197,105 @@ CL_Init_Cvars (void)
{ {
// LordHavoc: some people like it asking on quit, others don't... // LordHavoc: some people like it asking on quit, others don't...
confirm_quit = confirm_quit =
Cvar_Get ("confirm_quit", "1", CVAR_ARCHIVE, "confirm quit command"); Cvar_Get ("confirm_quit", "1", CVAR_ARCHIVE, 0, "confirm quit command");
cl_allow_cmd_pkt = Cvar_Get ("cl_allow_cmd_pkt", "1", CVAR_NONE, cl_allow_cmd_pkt = Cvar_Get ("cl_allow_cmd_pkt", "1", CVAR_NONE, 0,
"enables packets from the likes of gamespy"); "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"); "display realtime frames per second");
// Misty: I like to be able to see the time when I play // 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"); "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"); "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"); "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. // 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"); "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)"); "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"); "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"); "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"); "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"); "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"); "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"); "forward speed");
cl_backspeed = Cvar_Get ("cl_backspeed", "200", CVAR_ARCHIVE, cl_backspeed = Cvar_Get ("cl_backspeed", "200", CVAR_ARCHIVE, 0,
"backward speed"); "backward speed");
cl_sidespeed = Cvar_Get ("cl_sidespeed", "350", CVAR_NONE, "strafe speed"); cl_sidespeed = Cvar_Get ("cl_sidespeed", "350", CVAR_NONE, 0, "strafe speed");
cl_movespeedkey = Cvar_Get ("cl_movespeedkey", "2.0", CVAR_NONE, cl_movespeedkey = Cvar_Get ("cl_movespeedkey", "2.0", CVAR_NONE, 0,
"move `run' speed multiplier"); "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, cl_pitchspeed = Cvar_Get ("cl_pitchspeed", "150", CVAR_NONE, 0,
"look up/down speed"); "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"); "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"); "show network packets. 0=off, 1=basic, 2=verbose");
cl_sbar = Cvar_Get ("cl_sbar", "0", CVAR_ARCHIVE, "status bar mode"); cl_sbar = Cvar_Get ("cl_sbar", "0", CVAR_ARCHIVE, 0, "status bar mode");
cl_sbar_separator = Cvar_Get ("cl_sbar_separator", "0", CVAR_ARCHIVE, cl_sbar_separator = Cvar_Get ("cl_sbar_separator", "0", CVAR_ARCHIVE, 0,
"turns on status bar separator"); "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?"); "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"); "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)"); "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"); "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"); "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"); "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"); "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"); "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"); "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"); "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"); "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"); "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"); "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"); "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"); "FIXME: This has something to do with client authentication. No Description");
// //
// info mirrors // info mirrors
// //
name = Cvar_Get ("name", "unnamed", CVAR_ARCHIVE | CVAR_USERINFO, name = Cvar_Get ("name", "unnamed", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info,
"Player name"); "Player name");
password = Cvar_Get ("password", "", CVAR_USERINFO, "Server password"); password = Cvar_Get ("password", "", CVAR_USERINFO, Cvar_Info, "Server password");
spectator = Cvar_Get ("spectator", "", CVAR_USERINFO, spectator = Cvar_Get ("spectator", "", CVAR_USERINFO, Cvar_Info,
"Set to 1 before connecting to become a spectator"); "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."); "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"); "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"); 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, noaim = Cvar_Get ("noaim", "0", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info,
"Auto aim off switch. Set to 1 to turn off."); "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"); "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 // only reads from within the quake file system, and changing that is
// probably Not A Good Thing (tm). // probably Not A Good Thing (tm).
fs_globalcfg = Cvar_Get ("fs_globalcfg", FS_GLOBALCFG, 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); Cmd_Exec_File (fs_globalcfg->string);
Cbuf_Execute_Sets (); Cbuf_Execute_Sets ();
@ -1569,7 +1569,7 @@ Host_Init (void)
Cbuf_Execute_Sets (); Cbuf_Execute_Sets ();
fs_usercfg = Cvar_Get ("fs_usercfg", FS_USERCFG, 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); Cmd_Exec_File (fs_usercfg->string);
Cbuf_Execute_Sets (); Cbuf_Execute_Sets ();

View file

@ -232,7 +232,7 @@ void
CL_Prediction_Init_Cvars (void) CL_Prediction_Init_Cvars (void)
{ {
/* I'm not totally sure what cl_pushlatency is for. Or if it is SUPPOSED TO BE SETTABLE. */ /* 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_pushlatency = Cvar_Get ("pushlatency", "-999", CVAR_NONE, 0, "How much prediction should the client make");
cl_nopred = Cvar_Get ("cl_nopred", "0", CVAR_NONE, "Set to turn off client prediction"); 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, "Set to turn off static player prediction"); cl_nostatpred = Cvar_Get ("cl_nostatpred", "0", CVAR_NONE, 0, "Set to turn off static player prediction");
} }

View file

@ -230,7 +230,7 @@ Sys_Sleep (void)
void void
Sys_Init_Cvars (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")) if (COM_CheckParm ("-nostdout"))
Cvar_Set (sys_nostdout, "1"); Cvar_Set (sys_nostdout, "1");
} }

View file

@ -77,7 +77,7 @@ Sys_Quit (void)
void void
Sys_Init_Cvars (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")) if (COM_CheckParm ("-nostdout"))
Cvar_Set (sys_nostdout, "1"); Cvar_Set (sys_nostdout, "1");
} }

View file

@ -163,7 +163,7 @@ Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)
void void
Sys_Init_Cvars (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 void

View file

@ -93,5 +93,5 @@ COM_Init (void)
void void
COM_Init_Cvars (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");
} }

View file

@ -271,7 +271,7 @@ void
Con_Init_Cvars (void) Con_Init_Cvars (void)
{ {
con_notifytime = 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"); "How long in seconds messages are displayed on screen");
} }

View file

@ -313,7 +313,7 @@ x11_set_vidmode (int width, int height)
void void
x11_Init_Cvars (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"); "Toggles fullscreen game mode");
} }

View file

@ -70,9 +70,9 @@ D_Init (void)
void void
D_Init_Cvars (void) D_Init_Cvars (void)
{ {
d_subdiv16 = Cvar_Get ("d_subdiv16", "1", CVAR_NONE, "Set to enable extreme perspective correction"); 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, "Detail level. 0 is highest, 3 is lowest."); 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, "Detail level of objects. 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.");
} }
/* /*

View file

@ -198,7 +198,7 @@ Draw_Init (void)
r_rectdesc.rowbytes = draw_backtile->width; r_rectdesc.rowbytes = draw_backtile->width;
cl_verstring = 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 void

View file

@ -99,6 +99,6 @@ Game_Init (void)
void void
Game_Init_Cvars (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"); "location of skins dir for downloads");
} }

View file

@ -309,18 +309,18 @@ Draw_Init (void)
void void
Draw_Init_Cvars (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)"); "Lighting mode (0 = GLQuake style, 1 = new style)");
gl_max_size = Cvar_Get ("gl_max_size", "1024", CVAR_NONE, "Texture dimension"); gl_max_size = Cvar_Get ("gl_max_size", "1024", CVAR_NONE, 0, "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_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, gl_constretch = Cvar_Get ("gl_constretch", "0", CVAR_ARCHIVE, 0,
"whether slide the console or stretch it"); "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"); "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"); "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."); 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, cl_verstring = Cvar_Get ("cl_verstring", PROGRAM " " VERSION, CVAR_NONE, 0,
"Client version string"); "Client version string");
} }

View file

@ -156,7 +156,7 @@ GL_CheckBrightness (unsigned char *pal)
int i, inf; int i, inf;
float brightness; float brightness;
brighten = Cvar_Get ("brighten", "1", CVAR_NONE, brighten = Cvar_Get ("brighten", "1", CVAR_NONE, 0,
"Palette hack equivalent to brightness"); "Palette hack equivalent to brightness");
if ((i = COM_CheckParm ("-brighten"))) { if ((i = COM_CheckParm ("-brighten"))) {

View file

@ -205,38 +205,38 @@ R_Init (void)
void void
R_Init_Cvars (void) R_Init_Cvars (void)
{ {
r_norefresh = Cvar_Get ("r_norefresh", "0", CVAR_NONE, "Set to 1 to disable display refresh"); 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, "Toggles drawing of entities (almost everything but the world)"); 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, "Toggles drawing of view models (your weapons)"); 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, "Set to 1 to enable shadows for entities"); 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, "Determine opacity of liquids. 1 = solid, 0 = transparent, otherwise translucent."); 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? */ /* 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_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, "Set to 0 to disable lightmap changes"); 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, "Set to 1 to enable runtime visibility checking (SLOW)"); 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, "Display drawing time and statistics of what is being viewed"); 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, "Graph network stats"); 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, "Net graph translucency"); 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, "Draw box around net graph"); 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, "whether or not to draw particles"); 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, "name of the current skybox"); 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_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, "Set to 1 to make background black. Useful for removing HOM effect"); 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, "Set to 1 for high quality dynamic lighting."); 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, "Set to 1 to use a dynamic light effect faster on GL"); 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, "Smooth dynamic vertex lighting"); 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, "Toggles fullbright color support for bmodels"); 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, "Toggles fullbright color support for models"); 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, "Toggles lavaball and rocket fireballs"); gl_fires = Cvar_Get ("gl_fires", "0", CVAR_ARCHIVE, 0, "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_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, "Toggles model animation interpolation"); 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, "Use multitexture when available"); gl_multitexture = Cvar_Get ("gl_multitexture", "0", CVAR_ARCHIVE, 0, "Use multitexture when available");
gl_nocolors = Cvar_Get ("gl_nocolors", "0", CVAR_NONE, "Set to 1, turns off all player colors"); 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, "Detail of player skins. 0 best, 4 worst."); 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, "controls whether sky is drawn first (0) or later (1)"); 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, "subdivide sky polys"); gl_sky_divide = Cvar_Get ("gl_sky_divide", "1", CVAR_ARCHIVE, 0, "subdivide sky polys");
gl_skymultipass = Cvar_Get ("gl_skymultipass", "1", CVAR_ARCHIVE, "controls whether the skydome is single or double pass"); gl_skymultipass = Cvar_Get ("gl_skymultipass", "1", CVAR_ARCHIVE, 0, "controls whether the skydome is single or double pass");
} }
/* /*

View file

@ -384,21 +384,21 @@ SCR_SizeDown_f (void)
void void
SCR_Init_Cvars (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_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, "Set the screen size 30 minimum, 120 maximum"); 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, "How quickly console scrolls up or down"); 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, "fraction of the screen the console covers when 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, "Show RAM icon if game is running low on memory"); 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, "Show a turtle icon if your fps is slower than 10"); 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, "Toggles display of pause graphic"); scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, 0, "Toggles display of pause graphic");
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, "How long in seconds screen hints are displayed"); 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, "How fast the text is displayed at the end of the single player episodes"); 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, "Set to 1 by default. Fixes status bar flicker on some hardware"); 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"); crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE, 0, "Color of the new crosshair");
crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE, "Crosshair type. 0 off, 1 old without color, 2 new with colors"); 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, "Sets the position of the crosshair on the X-axis."); 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, "Sets the position of the crosshair on the Y-axis."); cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_ARCHIVE, 0, "Sets the position of the crosshair on the Y-axis.");
} }
void void

View file

@ -362,8 +362,8 @@ IN_Init_Cvars (void)
{ {
JOY_Init_Cvars (); JOY_Init_Cvars ();
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "If set to 1, quake will grab the mouse in X"); _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, "Toggle mouse input filtering"); // m_filter = Cvar_Get ("m_filter", "0", CVAR_ARCHIVE, 0, "Toggle mouse input filtering");
} }
void void

View file

@ -134,7 +134,7 @@ void
IN_Init_Cvars (void) IN_Init_Cvars (void)
{ {
JOY_Init_Cvars (); 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 static void

View file

@ -424,7 +424,7 @@ void
IN_Init_Cvars (void) IN_Init_Cvars (void)
{ {
// mouse variables // 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(); JOY_Init_Cvars();
} }

View file

@ -550,9 +550,9 @@ void
IN_Init_Cvars (void) IN_Init_Cvars (void)
{ {
JOY_Init_Cvars (); JOY_Init_Cvars ();
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, "With this set to 1, quake will grab the mouse from X"); _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, "Toggle mouse input filtering."); m_filter = 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 = Cvar_Get ("in_dga", "1", CVAR_ARCHIVE, 0, "DGA Input support");
in_dga_mouseaccel = Cvar_Get ("in_dga_mouseaccel", "1", CVAR_ARCHIVE, in_dga_mouseaccel = Cvar_Get ("in_dga_mouseaccel", "1", CVAR_ARCHIVE, 0,
"DGA Mouse accelleration multiplier"); "DGA Mouse accelleration multiplier");
} }

View file

@ -199,19 +199,19 @@ JOY_Init_Cvars (void)
int i; int i;
joy_device = 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"); "Joystick device");
joy_enable = joy_enable =
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
"Joystick enable flag"); "Joystick enable flag");
joy_sensitivity = joy_sensitivity =
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
"Joystick sensitivity"); "Joystick sensitivity");
for (i = 0; i < JOY_MAX_AXES; i++) { for (i = 0; i < JOY_MAX_AXES; i++) {
joy_axes[i].axis = Cvar_Get (joy_axes[i].var.name, joy_axes[i].axis = Cvar_Get (joy_axes[i].var.name,
joy_axes[i].var.string, joy_axes[i].var.string,
CVAR_ARCHIVE, "Set joystick axes"); CVAR_ARCHIVE, 0, "Set joystick axes");
} }
} }

View file

@ -63,13 +63,13 @@ void
JOY_Init_Cvars (void) JOY_Init_Cvars (void)
{ {
joy_device = joy_device =
Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM, Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM, 0,
"Joystick device"); "Joystick device");
joy_enable = joy_enable =
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
"Joystick enable flag"); "Joystick enable flag");
joy_sensitivity = joy_sensitivity =
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
"Joystick sensitivity"); "Joystick sensitivity");
} }

View file

@ -554,54 +554,54 @@ void
JOY_Init_Cvars(void) JOY_Init_Cvars(void)
{ {
joy_device = joy_device =
Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM, Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM, 0,
"Joystick device"); "Joystick device");
joy_enable = joy_enable =
Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
"Joystick enable flag"); "Joystick enable flag");
joy_sensitivity = joy_sensitivity =
Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, Cvar_Get ("joy_sensitivity", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
"Joystick sensitivity"); "Joystick sensitivity");
// joystick variables // joystick variables
in_joystick = in_joystick =
Cvar_Get ("joystick", "0", CVAR_ARCHIVE, "FIXME: No Description"); Cvar_Get ("joystick", "0", CVAR_ARCHIVE, 0, "FIXME: No Description");
joy_name = joy_name =
Cvar_Get ("joyname", "joystick", CVAR_NONE, "FIXME: No Description"); Cvar_Get ("joyname", "joystick", CVAR_NONE, 0, "FIXME: No Description");
joy_advanced = joy_advanced =
Cvar_Get ("joyadvanced", "0", CVAR_NONE, "FIXME: No Description"); Cvar_Get ("joyadvanced", "0", CVAR_NONE, 0, "FIXME: No Description");
joy_advaxisx = joy_advaxisx =
Cvar_Get ("joyadvaxisx", "0", CVAR_NONE, "FIXME: No Description"); Cvar_Get ("joyadvaxisx", "0", CVAR_NONE, 0, "FIXME: No Description");
joy_advaxisy = joy_advaxisy =
Cvar_Get ("joyadvaxisy", "0", CVAR_NONE, "FIXME: No Description"); Cvar_Get ("joyadvaxisy", "0", CVAR_NONE, 0, "FIXME: No Description");
joy_advaxisz = joy_advaxisz =
Cvar_Get ("joyadvaxisz", "0", CVAR_NONE, "FIXME: No Description"); Cvar_Get ("joyadvaxisz", "0", CVAR_NONE, 0, "FIXME: No Description");
joy_advaxisr = joy_advaxisr =
Cvar_Get ("joyadvaxisr", "0", CVAR_NONE, "FIXME: No Description"); Cvar_Get ("joyadvaxisr", "0", CVAR_NONE, 0, "FIXME: No Description");
joy_advaxisu = joy_advaxisu =
Cvar_Get ("joyadvaxisu", "0", CVAR_NONE, "FIXME: No Description"); Cvar_Get ("joyadvaxisu", "0", CVAR_NONE, 0, "FIXME: No Description");
joy_advaxisv = joy_advaxisv =
Cvar_Get ("joyadvaxisv", "0", CVAR_NONE, "FIXME: No Description"); Cvar_Get ("joyadvaxisv", "0", CVAR_NONE, 0, "FIXME: No Description");
joy_forwardthreshold = 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 = 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 = joy_pitchthreshold =
Cvar_Get ("joypitchthreshold", "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, "FIXME: No Description"); joy_yawthreshold = Cvar_Get ("joyyawthreshold", "0.15", CVAR_NONE, 0, "FIXME: No Description");
joy_forwardsensitivity = 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 = 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 = 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 = joy_yawsensitivity =
Cvar_Get ("joyyawsensitivity", "-1.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, "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, "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; return;
} }

View file

@ -747,7 +747,7 @@ Key_Init (void)
void void
Key_Init_Cvars (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"); "Controls when console text will be treated as a chat message: 0 - never, 1 - always, 2 - smart");
} }

View file

@ -75,7 +75,7 @@ void
Mod_Init_Cvars (void) Mod_Init_Cvars (void)
{ {
gl_subdivide_size = 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.");
} }
/* /*

View file

@ -129,9 +129,9 @@ Netchan_Init (void)
void void
Netchan_Init_Cvars (void) Netchan_Init_Cvars (void)
{ {
showpackets = Cvar_Get ("showpackets", "0", CVAR_NONE, "Show all network packets"); showpackets = Cvar_Get ("showpackets", "0", CVAR_NONE, 0, "Show all network packets");
showdrop = Cvar_Get ("showdrop", "0", CVAR_NONE, "Toggle the display of how many packets you are dropping"); 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, "The internal port number for the game networking code." 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."); "Useful for clients who use multiple connections through one IP address (NAT/IP-MASQ) because default port is random.");
} }

View file

@ -961,7 +961,7 @@ int
Net_Log_Init (void) Net_Log_Init (void)
{ {
netlogger = 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 // 0 = no logging
// 1 = hex dump only // 1 = hex dump only
@ -970,7 +970,7 @@ Net_Log_Init (void)
// 4 = parse/hexdump, skip movement/empty messages // 4 = parse/hexdump, skip movement/empty messages
netloglevel = 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"); Net_LogStart ("qfpacket.log");
return 0; return 0;

View file

@ -66,7 +66,7 @@ Pmove_Init (void)
void void
Pmove_Init_Cvars (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"); "disable the ability to pogo stick");
} }

View file

@ -267,31 +267,31 @@ R_Init_Cvars (void)
{ {
D_Init_Cvars (); D_Init_Cvars ();
r_draworder = Cvar_Get ("r_draworder", "0", CVAR_NONE, "Toggles drawing order"); r_draworder = Cvar_Get ("r_draworder", "0", CVAR_NONE, 0, "Toggles drawing order");
r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, "Toggles the displaying of drawing time and" r_speeds = Cvar_Get ("r_speeds", "0", CVAR_NONE, 0, "Toggles the displaying of drawing time and"
"statistics of what is currently being viewed"); "statistics of what is currently being viewed");
r_timegraph = Cvar_Get ("r_timegraph", "0", CVAR_NONE, "Toggle the display of a performance graph"); 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, "Toggle the display of a graph showing network performance"); 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, "Toggle the graph that reports the changes of z-axis position"); 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, "Set the number of lines displayed in the various graphs"); 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, "Toggles the drawing of textures"); r_drawflat = Cvar_Get ("r_drawflat", "0", CVAR_NONE, 0, "Toggles the drawing of textures");
r_ambient = Cvar_Get ("r_ambient", "0", CVAR_NONE, "Determines the ambient lighting for a level"); 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, "This sets the color for areas outside of the current map"); 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, "Toggles whether surfaces are warped in a liquid."); 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, "Toggles the drawing of entities."); r_drawentities = Cvar_Get ("r_drawentities", "1", CVAR_NONE, 0, "Toggles the drawing of entities.");
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_ARCHIVE, "Toggles the drawing of your weapon"); 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, "Toggles drawing of particles."); r_particles = Cvar_Get ("r_particles", "1", CVAR_ARCHIVE, 0, "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_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, "Toggles the display of drawing speed information"); 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, "Toggle the display of how many surfaces where not displayed"); 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, "Sets the maximum number of surfaces"); 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, "Toggles the displaying of number of surfaces currently being viewed"); 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, "Toggle the display of how many edges where not displayed"); 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, "Sets the maximum number of surfaces"); 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, "Toggles the displaying of number of edges currently being viewed"); 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, "Determines how much of an alias model is clipped away and how much is viewable"); 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, "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, gl_sky_divide = Cvar_Get ("gl_sky_divide", "1", CVAR_ARCHIVE, 0,
"subdivide sky polys"); "subdivide sky polys");
} }

View file

@ -745,29 +745,29 @@ V_Init (void)
void void
V_Init_Cvars (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_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, "How quickly you return to a center view after a lookup or lookdown"); 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_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, "How quickly 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, "How quickly you lean forwards and backwards 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, "How far you tilt right and left 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, "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, "How far you lean forwards and backwards 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_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, "How much your screen tilts when 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_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, "How quickly 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, "How long your weapon stays up before cycling 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_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, "How much you lean when hit"); 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, "How much you look up 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"); brightness = Cvar_Get ("brightness", "1", CVAR_ARCHIVE, 0, "Brightness level");
contrast = Cvar_Get ("contrast", "1", CVAR_ARCHIVE, "Contrast level"); contrast = Cvar_Get ("contrast", "1", CVAR_ARCHIVE, 0, "Contrast level");
} }

View file

@ -402,20 +402,20 @@ SCR_SizeDown_f (void)
void void
SCR_Init_Cvars (void) SCR_Init_Cvars (void)
{ {
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, "field of view. 90 is normal, smaller numbers zoom"); 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, "Set the screen size 30 minimum, 120 maximum"); 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, "fraction of the screen the console covers when down"); 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, "How quickly in the console screen scrolls up and 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, "Show ram icon when low on ram in game"); 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, "Show turtle icon when fps is lower than 10"); 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, "Show paused graphic when paused"); scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, 0, "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_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, "How fast the text is displayed at the end of the single player episodes"); 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"); crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE, 0, "Crosshair 2's color");
crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE, "Crosshair type. 0 off, 1 old, 2 new with 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, "Sets the position of the crosshair on the X-axis"); 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, "Sets the position of the crosshair on the Y-axis"); cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_ARCHIVE, 0, "Sets the position of the crosshair on the Y-axis");
} }
void void

View file

@ -312,14 +312,14 @@ Skin_Init (void)
void void
Skin_Init_Cvars (void) Skin_Init_Cvars (void)
{ {
baseskin = Cvar_Get ("baseskin", "base", CVAR_NONE, baseskin = Cvar_Get ("baseskin", "base", CVAR_NONE, 0,
"default base skin name"); "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"); "set to 1 to not download new skins");
skin = Cvar_Get ("skin", "", CVAR_ARCHIVE | CVAR_USERINFO, "Players skin"); skin = Cvar_Get ("skin", "", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info, "Players skin");
topcolor = Cvar_Get ("topcolor", "0", CVAR_ARCHIVE | CVAR_USERINFO, topcolor = Cvar_Get ("topcolor", "0", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info,
"Players color on top"); "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"); "Players color on bottom");
} }

View file

@ -270,46 +270,46 @@ S_Init (void)
void void
S_Init_Cvars (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"); "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"); "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"); "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"); "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 = volume =
Cvar_Get ("volume", "0.7", CVAR_ARCHIVE, Cvar_Get ("volume", "0.7", CVAR_ARCHIVE, 0,
"Set the volume for sound playback"); "Set the volume for sound playback");
precache = 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 = loadas8bit =
Cvar_Get ("loadas8bit", "0", CVAR_NONE, Cvar_Get ("loadas8bit", "0", CVAR_NONE, 0,
"Toggles if sounds are loaded as 8-bit samples"); "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 = 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 = 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"); "How quickly ambient sounds fade in or out");
snd_noextraupdate = 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"); "Toggles the correct value display in host_speeds. Usually messes up sound playback when in effect");
snd_show = 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"); "Toggles the display of sounds currently being played");
snd_interp = snd_interp =
Cvar_Get ("snd_interp", "1", CVAR_ARCHIVE, Cvar_Get ("snd_interp", "1", CVAR_ARCHIVE, 0,
"control sample interpolation"); "control sample interpolation");
snd_phasesep = 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"); "max stereo phase separation in ms. 0.6 is for 20cm head");
snd_volumesep = 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"); "max stereo volume separation in ms. 1.0 is max");
_snd_mixahead = _snd_mixahead =
Cvar_Get ("_snd_mixahead", "0.1", CVAR_ARCHIVE, Cvar_Get ("_snd_mixahead", "0.1", CVAR_ARCHIVE, 0,
"Delay time for sounds"); "Delay time for sounds");
} }

View file

@ -56,10 +56,10 @@ S_Init (void)
void void
S_Init_Cvars (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 = loadas8bit =
Cvar_Get ("loadas8bit", "0", CVAR_NONE, "Load samples as 8-bit"); Cvar_Get ("loadas8bit", "0", CVAR_NONE, 0, "Load samples as 8-bit");
bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, "CD music volume"); bgmvolume = Cvar_Get ("bgmvolume", "1", CVAR_ARCHIVE, 0, "CD music volume");
} }
void void

View file

@ -877,7 +877,7 @@ SV_InitOperatorCommands (void)
Cmd_AddCommand ("maplist", COM_Maplist_f, "List all maps on the server"); Cmd_AddCommand ("maplist", COM_Maplist_f, "List all maps on the server");
cl_warncmd = 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 // poor
// description // description
} }

View file

@ -1490,117 +1490,117 @@ SV_InitLocal (void)
SV_UserInit (); SV_UserInit ();
rcon_password = Cvar_Get ("rcon_password", "", CVAR_NONE, "Set the password for rcon commands"); rcon_password = Cvar_Get ("rcon_password", "", CVAR_NONE, 0, "Set the password for rcon commands");
password = Cvar_Get ("password", "", CVAR_NONE, "Set the server password for players"); password = Cvar_Get ("password", "", CVAR_NONE, 0, "Set the server password for players");
spectator_password = Cvar_Get ("spectator_password", "", CVAR_NONE, "Set the spectator password"); 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"); "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"); "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"); 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, 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"); "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, " "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" "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"); "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," "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," "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," "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."); "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"); "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" "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"); " 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"); hostname = Cvar_Get ("hostname", "unnamed", CVAR_SERVERINFO, Cvar_Info, "Report or sets the server name");
deathmatch = Cvar_Get ("deathmatch", "1", CVAR_SERVERINFO, deathmatch = Cvar_Get ("deathmatch", "1", CVAR_SERVERINFO, Cvar_Info,
"Sets the rules for weapon and item respawning. " "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," "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," "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."); "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"); spawn = Cvar_Get ("spawn", "0", CVAR_SERVERINFO, Cvar_Info, "Spawn the player entity");
watervis = Cvar_Get ("watervis", "0", CVAR_SERVERINFO, "Toggle the use of r_watervis by OpenGL clients"); 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"); "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"); "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_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, "Sets the global value for the amount of gravity"); 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, 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"); "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 = sv_spectatormaxspeed =
Cvar_Get ("sv_spectatormaxspeed", "500", CVAR_NONE, "Sets the maximum speed a spectator can move"); 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, "Sets the acceleration value for the players"); 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, "Sets how quickly the players accelerate in air"); sv_airaccelerate = Cvar_Get ("sv_airaccelerate", "0.7", CVAR_NONE, 0, "Sets how quickly the players accelerate in air");
sv_wateraccelerate = sv_wateraccelerate =
Cvar_Get ("sv_wateraccelerate", "10", CVAR_NONE, "Sets the water acceleration value"); Cvar_Get ("sv_wateraccelerate", "10", CVAR_NONE, 0, "Sets the water acceleration value");
sv_friction = Cvar_Get ("sv_friction", "4", CVAR_NONE, "Sets the friction value for the players"); 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, "Sets the water friction value"); 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 = 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 = sv_timekick_fuzz =
Cvar_Get ("sv_timekick_fuzz", "15", CVAR_NONE, Cvar_Get ("sv_timekick_fuzz", "15", CVAR_NONE, 0,
"Time cheat \"fuzz factor\""); "Time cheat \"fuzz factor\"");
sv_timekick_interval = sv_timekick_interval =
Cvar_Get ("sv_timekick_interval", "30", CVAR_NONE, Cvar_Get ("sv_timekick_interval", "30", CVAR_NONE, 0,
"Time cheat check interval"); "Time cheat check interval");
sv_minqfversion = sv_minqfversion =
Cvar_Get ("sv_minqfversion", "0", CVAR_SERVERINFO, Cvar_Get ("sv_minqfversion", "0", CVAR_SERVERINFO, Cvar_Info,
"Minimum QF version on client"); "Minimum QF version on client");
sv_maxrate = 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 = 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 = 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)"); "Allow remote status queries (qstat etc)");
sv_allow_ping = 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)"); "Allow remote pings (qstat etc)");
sv_netdosprotect = sv_netdosprotect =
Cvar_Get ("sv_netdosprotect", "0", CVAR_NONE, Cvar_Get ("sv_netdosprotect", "0", CVAR_NONE, 0,
"DoS flood attack protection"); "DoS flood attack protection");
sv_timestamps = sv_timestamps =
Cvar_Get ("sv_timestamps", "0", CVAR_NONE, Cvar_Get ("sv_timestamps", "0", CVAR_NONE, 0,
"Time/date stamps in log entries"); "Time/date stamps in log entries");
sv_timefmt = 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"); "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 " "Determines the rules for the IP list "
"0 Only IP addresses on the Ban list will be allowed onto the server, " "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"); "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 = 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 = 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 = 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 = 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"); "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 // DoS protection
Cmd_AddCommand ("netdosexpire", SV_netDoSexpire_f, "FIXME: part of DoS protection obviously, but I don't know what it does. No Description"); 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 // only reads from within the quake file system, and changing that is
// probably Not A Good Thing (tm). // probably Not A Good Thing (tm).
fs_globalcfg = Cvar_Get ("fs_globalcfg", FS_GLOBALCFG, 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); Cmd_Exec_File (fs_globalcfg->string);
Cbuf_Execute_Sets (); Cbuf_Execute_Sets ();
@ -1901,7 +1901,7 @@ SV_Init (void)
Cbuf_Execute_Sets (); Cbuf_Execute_Sets ();
fs_usercfg = Cvar_Get ("fs_usercfg", FS_USERCFG, 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); Cmd_Exec_File (fs_usercfg->string);
Cbuf_Execute_Sets (); Cbuf_Execute_Sets ();

View file

@ -284,11 +284,11 @@ void
SV_Progs_Init_Cvars (void) SV_Progs_Init_Cvars (void)
{ {
r_skyname = r_skyname =
Cvar_Get ("r_skyname", "", CVAR_SERVERINFO, "name of skybox"); Cvar_Get ("r_skyname", "", CVAR_SERVERINFO, Cvar_Info, "name of skybox");
sv_progs = Cvar_Get ("sv_progs", "qwprogs.dat", CVAR_ROM, sv_progs = Cvar_Get ("sv_progs", "qwprogs.dat", CVAR_ROM, 0,
"Allows selectable game progs if you have several " "Allows selectable game progs if you have several "
"of them in the gamedir"); "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 " "indicate the presence of the "
"checkextentions qc function"); "checkextentions qc function");
} }

View file

@ -139,10 +139,10 @@ Sys_ConsoleInput (void)
void void
Sys_Init_Cvars (void) Sys_Init_Cvars (void)
{ {
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, "Toggles console screen output"); sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, 0, "Toggles console screen output");
sys_extrasleep = Cvar_Get ("sys_extrasleep", "0", CVAR_NONE, 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."); "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" "When set, the server gets NO cpu if no clients are connected"
"and there's no other activity. *MIGHT* cause problems with" "and there's no other activity. *MIGHT* cause problems with"
"some mods."); "some mods.");

View file

@ -148,8 +148,8 @@ Sys_Quit (void)
void void
Sys_Init_Cvars (void) Sys_Init_Cvars (void)
{ {
sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, "Toggle console output"); sys_nostdout = Cvar_Get ("sys_nostdout", "0", CVAR_NONE, 0, "Toggle console output");
sys_sleep = Cvar_Get ("sys_sleep", "8", CVAR_NONE, 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"); "Sleep how long in seconds between checking for connections. minimum is 0, maximum is 13");
} }

View file

@ -1768,9 +1768,9 @@ SV_UserInit (void)
{ {
qsort (ucmds, sizeof (ucmds) / sizeof (ucmds[0]), sizeof (ucmds[0]), qsort (ucmds, sizeof (ucmds) / sizeof (ucmds[0]), sizeof (ucmds[0]),
ucmds_compare); ucmds_compare);
cl_rollspeed = Cvar_Get ("cl_rollspeed", "200", CVAR_NONE, "How quickly a player straightens out after strafing"); 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, "How much a player's screen tilts when 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, "Toggles the ability of spectators to talk to players"); 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, 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"); "Toggle the use of map checksumming to check for players who edit maps to cheat");
} }

View file

@ -332,11 +332,11 @@ void
Team_Init_Cvars (void) Team_Init_Cvars (void)
{ {
cl_deadbodyfilter = cl_deadbodyfilter =
Cvar_Get ("cl_deadbodyfilter", "0", CVAR_NONE, Cvar_Get ("cl_deadbodyfilter", "0", CVAR_NONE, 0,
"Hide dead player models"); "Hide dead player models");
cl_gibfilter = Cvar_Get ("cl_gibfilter", "0", CVAR_NONE, "Hide gibs"); cl_gibfilter = Cvar_Get ("cl_gibfilter", "0", CVAR_NONE, 0, "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_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, "Unhide fake messages"); cl_nofake = Cvar_Get ("cl_nofake", "0", CVAR_NONE, 0, "Unhide fake messages");
} }
/* /*

View file

@ -47,8 +47,8 @@ VID_GetWindowSize (int def_w, int def_h)
{ {
int pnum; int pnum;
vid_width = Cvar_Get ("vid_width", va ("%d", def_w), CVAR_NONE, "screen width"); 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, "screen height"); vid_height = Cvar_Get ("vid_height", va ("%d", def_h), CVAR_NONE, 0, "screen height");
if ((pnum = COM_CheckParm ("-width"))) { if ((pnum = COM_CheckParm ("-width"))) {
if (pnum >= com_argc - 1) if (pnum >= com_argc - 1)

View file

@ -344,7 +344,7 @@ void
VID_Init8bitPalette (void) VID_Init8bitPalette (void)
{ {
vid_use8bit = 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: "); Con_Printf ("Checking for 8-bit extension: ");
if (vid_use8bit->int_val) { if (vid_use8bit->int_val) {

View file

@ -625,10 +625,10 @@ VID_Init (unsigned char *palette)
void void
VID_Init_Cvars () VID_Init_Cvars ()
{ {
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "Sets the video mode"); vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "Sets the video mode");
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE, vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE, 0,
"Redraw entire screen each frame instead of just dirty areas"); "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"); "Wait for vertical retrace before drawing next frame");
} }

View file

@ -2073,21 +2073,21 @@ VID_Init (unsigned char *palette)
void void
VID_Init_Cvars () VID_Init_Cvars ()
{ {
vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, "Set the video mode"); vid_mode = Cvar_Get ("vid_mode", "0", CVAR_NONE, 0, "Set the video mode");
vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, "Toggles the use of page flipping"); vid_nopageflip = Cvar_Get ("vid_nopageflip", "0", CVAR_ARCHIVE, 0, "Toggles the use of page flipping");
_vid_default_mode_win = _vid_default_mode_win =
Cvar_Get ("_vid_default_mode_win", "3", CVAR_ARCHIVE, "Default windowed video mode"); 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, "Maximum x-axis screen size"); 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, "Maximum y-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, "Stretch the pixles by a two fold to acheive proper view"); 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, "Have quake grab the mouse from X when you play"); _windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, 0, "Have quake grab the mouse from X when you play");
vid_fullscreen_mode = 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 = vid_windowed_mode =
Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, "Set the windowed video mode"); Cvar_Get ("vid_windowed_mode", "0", CVAR_ARCHIVE, 0, "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"); 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, "The x-axis location of the window, if windowed"); 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, "The y-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");
} }

View file

@ -195,7 +195,7 @@ void
VID_Init_Cvars () VID_Init_Cvars ()
{ {
vid_fullscreen = vid_fullscreen =
Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, 0,
"Toggles fullscreen game mode"); "Toggles fullscreen game mode");
} }

View file

@ -228,7 +228,7 @@ VID_Init (unsigned char *palette)
void void
VID_Init_Cvars () 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 void

View file

@ -610,10 +610,10 @@ VID_Init (unsigned char *palette)
void void
VID_Init_Cvars () VID_Init_Cvars ()
{ {
vid_mode = Cvar_Get ("vid_mode", "5", CVAR_NONE, "Sets the video mode"); vid_mode = Cvar_Get ("vid_mode", "5", CVAR_NONE, 0, "Sets the video mode");
vid_redrawfull = Cvar_Get ("vid_redrawfull", "0", CVAR_NONE, "Redraw entire screen each frame instead of just dirty areas"); 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", 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