now identical

This commit is contained in:
Bill Currie 2001-05-18 21:05:38 +00:00
parent 9949108f45
commit f0c6dfcb1a
2 changed files with 48 additions and 44 deletions

View File

@ -102,13 +102,8 @@ gl_lightmode_callback (cvar_t *cvar)
void void
R_Init_Cvars (void) R_Init_Cvars (void)
{ {
cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_ARCHIVE, NULL,
"Sets the position of the crosshair on the X-axis");
cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_ARCHIVE, NULL, cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_ARCHIVE, NULL,
"Sets the position of the crosshair on the X-axis."); "Sets the position of the crosshair on the X-axis.");
cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_ARCHIVE, NULL,
"Sets the position of the crosshair on the Y-axis");
cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_ARCHIVE, NULL, cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_ARCHIVE, NULL,
"Sets the position of the crosshair on the Y-axis."); "Sets the position of the crosshair on the Y-axis.");
cl_verstring = Cvar_Get ("cl_verstring", PROGRAM " " VERSION, CVAR_NONE, cl_verstring = Cvar_Get ("cl_verstring", PROGRAM " " VERSION, CVAR_NONE,
@ -120,10 +115,10 @@ R_Init_Cvars (void)
d_mipcap = Cvar_Get ("d_mipcap", "0", CVAR_NONE, NULL, d_mipcap = Cvar_Get ("d_mipcap", "0", CVAR_NONE, NULL,
"Detail level. 0 is highest, 3 is lowest."); "Detail level. 0 is highest, 3 is lowest.");
d_mipscale = Cvar_Get ("d_mipscale", "1", CVAR_NONE, NULL, "Detail level " d_mipscale = Cvar_Get ("d_mipscale", "1", CVAR_NONE, NULL, "Detail level "
"of objects. 0 is highest, 3 is lowest"); "of objects. 0 is highest, 3 is lowest.");
d_subdiv16 = Cvar_Get ("d_subdiv16", "1", CVAR_NONE, NULL, d_subdiv16 = Cvar_Get ("d_subdiv16", "1", CVAR_NONE, NULL,
"Set to enable extreme perspective correction"); "Set to enable extreme perspective correction");
gl_affinemodels = Cvar_Get ("gl_affinemodels", "0", CVAR_NONE, NULL, gl_affinemodels = Cvar_Get ("gl_affinemodels", "0", CVAR_ARCHIVE, NULL,
"Makes texture rendering quality better if " "Makes texture rendering quality better if "
"set to 1"); "set to 1");
gl_clear = Cvar_Get ("gl_clear", "0", CVAR_NONE, NULL, "Set to 1 to make " gl_clear = Cvar_Get ("gl_clear", "0", CVAR_NONE, NULL, "Set to 1 to make "
@ -146,11 +141,10 @@ R_Init_Cvars (void)
gl_fb_bmodels = Cvar_Get ("gl_fb_bmodels", "1", CVAR_ARCHIVE, NULL, gl_fb_bmodels = Cvar_Get ("gl_fb_bmodels", "1", CVAR_ARCHIVE, NULL,
"Toggles fullbright color support for bmodels"); "Toggles fullbright color support for bmodels");
gl_fb_models = Cvar_Get ("gl_fb_models", "1", CVAR_ARCHIVE, NULL, gl_fb_models = Cvar_Get ("gl_fb_models", "1", CVAR_ARCHIVE, NULL,
"Toggles fullbright color support for models.. " "Toggles fullbright color support for models");
"This is very handy, but costs me 2 FPS.. (=:]");
gl_fires = Cvar_Get ("gl_fires", "0", CVAR_ARCHIVE, NULL, gl_fires = Cvar_Get ("gl_fires", "0", CVAR_ARCHIVE, NULL,
"Toggles lavaball and rocket fireballs"); "Toggles lavaball and rocket fireballs");
gl_keeptjunctions = Cvar_Get ("gl_keeptjunctions", "1", CVAR_NONE, NULL, gl_keeptjunctions = Cvar_Get ("gl_keeptjunctions", "1", CVAR_ARCHIVE, NULL,
"Set to 0 to turn off colinear vertexes " "Set to 0 to turn off colinear vertexes "
"upon level load"); "upon level load");
gl_lerp_anim = Cvar_Get ("gl_lerp_anim", "1", CVAR_ARCHIVE, NULL, gl_lerp_anim = Cvar_Get ("gl_lerp_anim", "1", CVAR_ARCHIVE, NULL,
@ -175,7 +169,7 @@ R_Init_Cvars (void)
"controls amount of sky overdraw"); "controls amount of sky overdraw");
gl_sky_divide = Cvar_Get ("gl_sky_divide", "1", CVAR_ARCHIVE, NULL, gl_sky_divide = Cvar_Get ("gl_sky_divide", "1", CVAR_ARCHIVE, NULL,
"subdivide sky polys"); "subdivide sky polys");
gl_skymultipass = Cvar_Get ("gl_skymultipass", "1", CVAR_NONE, NULL, gl_skymultipass = Cvar_Get ("gl_skymultipass", "1", CVAR_ARCHIVE, NULL,
"controls whether the skydome is single or " "controls whether the skydome is single or "
"double pass"); "double pass");
gl_texsort = Cvar_Get ("gl_texsort", "1", CVAR_NONE, NULL, "None"); gl_texsort = Cvar_Get ("gl_texsort", "1", CVAR_NONE, NULL, "None");
@ -201,13 +195,13 @@ R_Init_Cvars (void)
"everything but the world)"); "everything but the world)");
r_drawflat = Cvar_Get ("r_drawflat", "0", CVAR_NONE, NULL, r_drawflat = Cvar_Get ("r_drawflat", "0", CVAR_NONE, NULL,
"Toggles the drawing of textures"); "Toggles the drawing of textures");
r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_NONE, NULL, r_drawviewmodel = Cvar_Get ("r_drawviewmodel", "1", CVAR_ARCHIVE, NULL,
"Toggles view model drawing (your weapons)"); "Toggles view model drawing (your weapons)");
r_dspeeds = Cvar_Get ("r_dspeeds", "0", CVAR_NONE, NULL, r_dspeeds = Cvar_Get ("r_dspeeds", "0", CVAR_NONE, NULL,
"Toggles the display of drawing speed information"); "Toggles the display of drawing speed information");
r_dynamic = Cvar_Get ("r_dynamic", "1", CVAR_NONE, NULL, r_dynamic = Cvar_Get ("r_dynamic", "1", CVAR_NONE, NULL,
"Set to 0 to disable lightmap changes"); "Set to 0 to disable lightmap changes");
r_graphheight = Cvar_Get ("r_graphheight", "10", CVAR_NONE, NULL, r_graphheight = Cvar_Get ("r_graphheight", "32", CVAR_NONE, NULL,
"Set the number of lines displayed in the " "Set the number of lines displayed in the "
"various graphs"); "various graphs");
r_maxedges = Cvar_Get ("r_maxedges", "0", CVAR_NONE, NULL, r_maxedges = Cvar_Get ("r_maxedges", "0", CVAR_NONE, NULL,
@ -215,10 +209,11 @@ R_Init_Cvars (void)
r_maxsurfs = Cvar_Get ("r_maxsurfs", "0", CVAR_NONE, NULL, r_maxsurfs = Cvar_Get ("r_maxsurfs", "0", CVAR_NONE, NULL,
"Sets the maximum number of surfaces"); "Sets the maximum number of surfaces");
r_mirroralpha = Cvar_Get ("r_mirroralpha", "1", CVAR_NONE, NULL, "None"); r_mirroralpha = Cvar_Get ("r_mirroralpha", "1", CVAR_NONE, NULL, "None");
r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, NULL, "Toggle the " r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, NULL,
"display of a graph showing network performance"); "Toggle the display of a graph showing network "
r_netgraph_alpha = Cvar_Get ("r_netgraph_alpha", "0.5", CVAR_ARCHIVE, "performance");
NULL, "Net graph translucency"); r_netgraph_alpha = Cvar_Get ("r_netgraph_alpha", "0.5", CVAR_ARCHIVE, NULL,
"Net graph translucency");
r_netgraph_box = Cvar_Get ("r_netgraph_box", "1", CVAR_ARCHIVE, NULL, r_netgraph_box = Cvar_Get ("r_netgraph_box", "1", CVAR_ARCHIVE, NULL,
"Draw box around net graph"); "Draw box around net graph");
r_norefresh = Cvar_Get ("r_norefresh", "0", CVAR_NONE, NULL, r_norefresh = Cvar_Get ("r_norefresh", "0", CVAR_NONE, NULL,
@ -232,14 +227,14 @@ R_Init_Cvars (void)
"Toggles the displaying of number of surfaces " "Toggles the displaying of number of surfaces "
"currently being viewed"); "currently being viewed");
r_particles = Cvar_Get ("r_particles", "1", CVAR_ARCHIVE, NULL, r_particles = Cvar_Get ("r_particles", "1", CVAR_ARCHIVE, NULL,
"whether or not to draw particles"); "Toggles drawing of particles.");
r_reportedgeout = Cvar_Get ("r_reportedgeout", "0", CVAR_NONE, NULL, r_reportedgeout = Cvar_Get ("r_reportedgeout", "0", CVAR_NONE, NULL,
"Toggle the display of how many edges were " "Toggle the display of how many edges were "
"not displayed"); "not displayed");
r_reportsurfout = Cvar_Get ("r_reportsurfout", "0", CVAR_NONE, NULL, r_reportsurfout = Cvar_Get ("r_reportsurfout", "0", CVAR_NONE, NULL,
"Toggle the display of how many surfaces " "Toggle the display of how many surfaces "
"were not displayed"); "were not displayed");
r_shadows = Cvar_Get ("r_shadows", "0", CVAR_NONE, NULL, r_shadows = Cvar_Get ("r_shadows", "0", CVAR_ARCHIVE, NULL,
"Set to 1 to enable shadows for entities"); "Set to 1 to enable shadows for entities");
r_skyname = Cvar_Get ("r_skyname", "none", CVAR_NONE, NULL, r_skyname = Cvar_Get ("r_skyname", "none", CVAR_NONE, NULL,
"name of the current skybox"); "name of the current skybox");
@ -260,10 +255,10 @@ R_Init_Cvars (void)
scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, NULL, "How " scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_NONE, NULL, "How "
"long in seconds screen hints are displayed"); "long in seconds screen hints are displayed");
scr_consize = Cvar_Get ("scr_consize", "0.5", CVAR_ARCHIVE, NULL, scr_consize = Cvar_Get ("scr_consize", "0.5", CVAR_ARCHIVE, NULL,
"fraction of the screen the console covers when " "Fraction of the screen the console covers when "
"down"); "down");
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, NULL, "How " scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, NULL,
"quickly the console screen scrolls up and down"); "How quickly the console scrolls up or down");
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, NULL, "Your field of view in " scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, NULL, "Your field of view in "
"degrees. Smaller than 90 zooms in."); "degrees. Smaller than 90 zooms in.");
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, NULL, scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, NULL,
@ -272,9 +267,9 @@ R_Init_Cvars (void)
scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, NULL, scr_showpause = Cvar_Get ("showpause", "1", CVAR_NONE, NULL,
"Toggles display of pause graphic"); "Toggles display of pause graphic");
scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, NULL, scr_showram = Cvar_Get ("showram", "1", CVAR_NONE, NULL,
"Show RAM icon when low on ram in game"); "Show RAM icon if game is running low on memory");
scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, NULL, scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_NONE, NULL,
"Show turtle icon when fps is lower than 10"); "Show a turtle icon if your fps is below 10");
scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, NULL, scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, NULL,
"Set the screen size 30 minimum, 120 maximum"); "Set the screen size 30 minimum, 120 maximum");
} }

View File

@ -18,6 +18,7 @@ cvar_t *gl_clear;
cvar_t *gl_conalpha; cvar_t *gl_conalpha;
cvar_t *gl_conspin; cvar_t *gl_conspin;
cvar_t *gl_constretch; cvar_t *gl_constretch;
cvar_t *gl_cull; // FIXME
cvar_t *gl_dlight_lightmap; cvar_t *gl_dlight_lightmap;
cvar_t *gl_dlight_polyblend; cvar_t *gl_dlight_polyblend;
cvar_t *gl_dlight_smooth; cvar_t *gl_dlight_smooth;
@ -32,8 +33,10 @@ cvar_t *gl_max_size;
cvar_t *gl_nocolors; cvar_t *gl_nocolors;
cvar_t *gl_picmip; cvar_t *gl_picmip;
cvar_t *gl_playermip; cvar_t *gl_playermip;
cvar_t *gl_reporttjunctions;
cvar_t *gl_sky_clip; cvar_t *gl_sky_clip;
cvar_t *gl_skymultipass; cvar_t *gl_skymultipass;
cvar_t *gl_texsort;
cvar_t *gl_triplebuffer; cvar_t *gl_triplebuffer;
cvar_t *r_aliasstats; cvar_t *r_aliasstats;
@ -49,6 +52,7 @@ cvar_t *r_dynamic;
cvar_t *r_graphheight; cvar_t *r_graphheight;
cvar_t *r_maxedges; cvar_t *r_maxedges;
cvar_t *r_maxsurfs; cvar_t *r_maxsurfs;
cvar_t *r_mirroralpha;
cvar_t *r_netgraph; cvar_t *r_netgraph;
cvar_t *r_netgraph_alpha; cvar_t *r_netgraph_alpha;
cvar_t *r_netgraph_box; cvar_t *r_netgraph_box;
@ -124,7 +128,8 @@ R_Init_Cvars (void)
gl_conspin = Cvar_Get ("gl_conspin", "0", CVAR_ARCHIVE, NULL, gl_conspin = Cvar_Get ("gl_conspin", "0", CVAR_ARCHIVE, NULL,
"speed at which the console spins"); "speed at which the console spins");
gl_constretch = Cvar_Get ("gl_constretch", "0", CVAR_ARCHIVE, NULL, gl_constretch = Cvar_Get ("gl_constretch", "0", CVAR_ARCHIVE, NULL,
"toggle console slide or stretch"); "toggle console between slide and stretch");
gl_cull = Cvar_Get ("gl_cull", "1", CVAR_NONE, NULL, "None");
gl_dlight_lightmap = Cvar_Get ("gl_dlight_lightmap", "1", CVAR_ARCHIVE, gl_dlight_lightmap = Cvar_Get ("gl_dlight_lightmap", "1", CVAR_ARCHIVE,
NULL, "Set to 1 for high quality dynamic " NULL, "Set to 1 for high quality dynamic "
"lighting."); "lighting.");
@ -158,6 +163,8 @@ R_Init_Cvars (void)
"textures. 0 is normal, 1 is half, 2 is 1/4"); "textures. 0 is normal, 1 is half, 2 is 1/4");
gl_playermip = Cvar_Get ("gl_playermip", "0", CVAR_NONE, NULL, gl_playermip = Cvar_Get ("gl_playermip", "0", CVAR_NONE, NULL,
"Detail of player skins. 0 best, 4 worst."); "Detail of player skins. 0 best, 4 worst.");
gl_reporttjunctions = Cvar_Get ("gl_reporttjunctions", "0", CVAR_NONE,
NULL, "None");
gl_sky_clip = Cvar_Get ("gl_sky_clip", "0", CVAR_ARCHIVE, NULL, gl_sky_clip = Cvar_Get ("gl_sky_clip", "0", CVAR_ARCHIVE, NULL,
"controls amount of sky overdraw"); "controls amount of sky overdraw");
gl_sky_divide = Cvar_Get ("gl_sky_divide", "1", CVAR_ARCHIVE, NULL, gl_sky_divide = Cvar_Get ("gl_sky_divide", "1", CVAR_ARCHIVE, NULL,
@ -165,6 +172,7 @@ R_Init_Cvars (void)
gl_skymultipass = Cvar_Get ("gl_skymultipass", "1", CVAR_ARCHIVE, NULL, gl_skymultipass = Cvar_Get ("gl_skymultipass", "1", CVAR_ARCHIVE, NULL,
"controls whether the skydome is single or " "controls whether the skydome is single or "
"double pass"); "double pass");
gl_texsort = Cvar_Get ("gl_texsort", "1", CVAR_NONE, NULL, "None");
gl_triplebuffer = Cvar_Get ("gl_triplebuffer", "1", CVAR_ARCHIVE, NULL, gl_triplebuffer = Cvar_Get ("gl_triplebuffer", "1", CVAR_ARCHIVE, NULL,
"Set to 1 by default. Fixes status bar " "Set to 1 by default. Fixes status bar "
"flicker on some hardware"); "flicker on some hardware");
@ -200,6 +208,7 @@ R_Init_Cvars (void)
"Sets the maximum number of edges"); "Sets the maximum number of edges");
r_maxsurfs = Cvar_Get ("r_maxsurfs", "0", CVAR_NONE, NULL, r_maxsurfs = Cvar_Get ("r_maxsurfs", "0", CVAR_NONE, NULL,
"Sets the maximum number of surfaces"); "Sets the maximum number of surfaces");
r_mirroralpha = Cvar_Get ("r_mirroralpha", "1", CVAR_NONE, NULL, "None");
r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, NULL, r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, NULL,
"Toggle the display of a graph showing network " "Toggle the display of a graph showing network "
"performance"); "performance");
@ -234,7 +243,7 @@ R_Init_Cvars (void)
r_timegraph = Cvar_Get ("r_timegraph", "0", CVAR_NONE, NULL, r_timegraph = Cvar_Get ("r_timegraph", "0", CVAR_NONE, NULL,
"Toggle the display of a performance graph"); "Toggle the display of a performance graph");
r_wateralpha = Cvar_Get ("r_wateralpha", "1", CVAR_NONE, NULL, r_wateralpha = Cvar_Get ("r_wateralpha", "1", CVAR_NONE, NULL,
"Determine opacity of liquids. 1 = solid, " "Determine the opacity of liquids. 1 = solid, "
"0 = transparent, otherwise translucent."); "0 = transparent, otherwise translucent.");
r_waterripple = Cvar_Get ("r_waterripple", "0", CVAR_NONE, NULL, r_waterripple = Cvar_Get ("r_waterripple", "0", CVAR_NONE, NULL,
"Set to make liquids ripple, try setting to 5"); "Set to make liquids ripple, try setting to 5");
@ -249,7 +258,7 @@ R_Init_Cvars (void)
"Fraction of the screen the console covers when " "Fraction of the screen the console covers when "
"down"); "down");
scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, NULL, scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_NONE, NULL,
"How quickly console scrolls up or down"); "How quickly the console scrolls up or down");
scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, NULL, "Your field of view in " scr_fov = Cvar_Get ("fov", "90", CVAR_NONE, NULL, "Your field of view in "
"degrees. Smaller than 90 zooms in."); "degrees. Smaller than 90 zooms in.");
scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, NULL, scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_NONE, NULL,