Cvar cleanup and description additions

This commit is contained in:
Dan Olson 2000-04-30 21:23:37 +00:00
parent 0aa6a37ad2
commit 6b385b7af8
2 changed files with 148 additions and 102 deletions

View file

@ -1723,13 +1723,18 @@ void CL_InitCvars()
//
// register our cvars
//
host_speeds = Cvar_Get ("host_speeds","0",0,"None");
show_fps = Cvar_Get ("show_fps","0",0,"None");
sys_nostdout = Cvar_Get ("sys_nostdout","0",0,"None");
host_speeds = Cvar_Get ("host_speeds","0",0,
"Toggles the display of host info");
show_fps = Cvar_Get ("show_fps","0",0,
"Toggles the frames-per-second display");
sys_nostdout = Cvar_Get ("sys_nostdout","0",0,
"Toggles the display of console messages on the stdout stream");
cl_warncmd = Cvar_Get ("cl_warncmd","0",0,"None");
cl_name = Cvar_Get ("_cl_name","player",CVAR_ARCHIVE,"None");
cl_color = Cvar_Get ("_cl_color","0",CVAR_ARCHIVE,"None");
cl_name = Cvar_Get ("_cl_name","player",CVAR_ARCHIVE,
"Sets the player name");
cl_color = Cvar_Get ("_cl_color","0",CVAR_ARCHIVE,
"Sets the player color");
cl_upspeed = Cvar_Get ("cl_upspeed","200",0,
"Sets your vertical speed when in liquids");
cl_forwardspeed = Cvar_Get ("cl_forwardspeed","200",CVAR_ARCHIVE,
@ -1752,7 +1757,7 @@ void CL_InitCvars()
cl_sbar = Cvar_Get ("cl_sbar","1",CVAR_ARCHIVE,"None");
cl_hudswap = Cvar_Get ("cl_hudswap","1",CVAR_ARCHIVE,"None");
cl_maxfps = Cvar_Get ("cl_maxfps","0",CVAR_ARCHIVE,
"Sets the maximum frames per second");
"Sets the maximum frames-per-second");
cl_timeout = Cvar_Get ("cl_timeout","60",0,"None");
cl_verstring = Cvar_Get ("cl_verstring",
#ifdef QUAKEWORLD
@ -1760,26 +1765,37 @@ void CL_InitCvars()
#else
"QuakeForge (UQuake) " QF_VERSION,
#endif
CVAR_NONE, "Console version string");
lookspring = Cvar_Get ("lookspring","0",CVAR_ARCHIVE,"None");
lookstrafe = Cvar_Get ("lookstrafe","0",CVAR_ARCHIVE,"None");
sensitivity = Cvar_Get ("sensitivity","3",CVAR_ARCHIVE,"None");
CVAR_NONE, "Sets the console version string");
lookspring = Cvar_Get ("lookspring","0",CVAR_ARCHIVE,
"Toggles if the view will recenter after mouselook is "
"deactivated");
lookstrafe = Cvar_Get ("lookstrafe","0",CVAR_ARCHIVE,
"Toggles if turn left and right will strafe left and right "
"when mouselook is active");
sensitivity = Cvar_Get ("sensitivity","3",CVAR_ARCHIVE,
"Sets the mouse sensitivity");
m_pitch = Cvar_Get ("m_pitch","0.022",CVAR_ARCHIVE,"None");
m_yaw = Cvar_Get ("m_yaw","0.022",CVAR_ARCHIVE,"None");
m_forward = Cvar_Get ("m_forward","1",CVAR_ARCHIVE,"None");
m_side = Cvar_Get ("m_side","0.8",CVAR_ARCHIVE,"None");
m_pitch = Cvar_Get ("m_pitch","0.022",CVAR_ARCHIVE,
"Sets how quickly you lookup and lookdown with the mouse when " "mouselook is active");
m_yaw = Cvar_Get ("m_yaw","0.022",CVAR_ARCHIVE,
"Sets how quickly you turn left and right with the mouse");
m_forward = Cvar_Get ("m_forward","1",CVAR_ARCHIVE,
"Sets how quickly moving the mouse forwards and backwards "
"causes the player to move in the respective direction");
m_side = Cvar_Get ("m_side","0.8",CVAR_ARCHIVE,
"Sets how quickly you strafe left and right with the mouse");
rcon_password = Cvar_Get ("rcon_password","",0,"None");
rcon_address = Cvar_Get ("rcon_address","",0,"None");
entlatency = Cvar_Get ("entlatency","20",0,"None");
cl_predict_players2 = Cvar_Get ("cl_predict_players2","1",0,"None");
cl_predict_players = Cvar_Get ("cl_predict_players","1",0,"None");
cl_predict_players = Cvar_Get ("cl_predict_players","1",0,
"Toggles player prediction");
cl_solid_players = Cvar_Get ("cl_solid_players","1",0,"None");
cl_talksound = Cvar_Get ("cl_talksound", "misc/talk.wav", CVAR_NONE,
"The sound used for talk messages");
"Sets the sound used for talk messages");
localid = Cvar_Get ("localid","",0,"None");
@ -1795,24 +1811,20 @@ void CL_InitCvars()
#endif
password = Cvar_Get ("password","",CVAR_USERINFO|CVAR_SERVERINFO,
"None");
spectator = Cvar_Get ("spectator","",CVAR_USERINFO|CVAR_SERVERINFO,
"None");
skin = Cvar_Get ("skin","",CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO,
"None");
team = Cvar_Get ("team","",CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO,
"None");
spectator = Cvar_Get ("spectator","",
CVAR_USERINFO|CVAR_SERVERINFO, "None");
skin = Cvar_Get ("skin","",
CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO, "None");
team = Cvar_Get ("team","",
CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO, "None");
topcolor = Cvar_Get ("topcolor","0",
CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO,
"None");
CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO, "None");
bottomcolor = Cvar_Get ("bottomcolor","0",
CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO,
"None");
CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO, "None");
rate = Cvar_Get ("rate","2500",
CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO,
"None");
msg = Cvar_Get ("msg","1",CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO,
"None");
CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO, "None");
msg = Cvar_Get ("msg","1",
CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO, "None");
noaim = Cvar_Get ("noaim","0",
CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO,
"None");
CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO, "None");
}

View file

@ -1058,39 +1058,73 @@ V_Init ( void )
lcd_x = Cvar_Get ("lcd_x", "0", CVAR_NONE, "None");
lcd_yaw = Cvar_Get ("lcd_yaw", "0", CVAR_NONE, "None");
v_centermove = Cvar_Get ("v_centermove", "0.15", CVAR_NONE, "None");
v_centerspeed = Cvar_Get ("v_centerspeed", "500", CVAR_NONE, "None");
v_centermove = Cvar_Get ("v_centermove", "0.15", CVAR_NONE,
"Sets how far the player must move forward before the view "
"recenters");
v_centerspeed = Cvar_Get ("v_centerspeed", "500", CVAR_NONE,
"Sets how quickly you return to a center view after a "
"lookup or lookdown");
v_iyaw_cycle = Cvar_Get ("v_iyaw_cycle", "2", CVAR_NONE,
"Sets how quickly you look left and right when v_idlescale is "
"active");
v_iroll_cycle = Cvar_Get ("v_iroll_cycle", "0.5", CVAR_NONE,
"Sets how quickly you tilt right and left when v_idlescale is "
"active");
v_ipitch_cycle = Cvar_Get ("v_ipitch_cycle", "1", CVAR_NONE,
"Sets how quickly you lean forwards and backwards when "
"v_idlescale is active");
v_iyaw_level = Cvar_Get ("v_iyaw_level", "0.3", CVAR_NONE,
"Sets how far you look left and right when v_idlescale is "
"active");
v_iroll_level = Cvar_Get ("v_iroll_level", "0.1", CVAR_NONE,
"Sets how far you tilt right and left when v_idlescale is "
"active");
v_ipitch_level = Cvar_Get ("v_ipitch_level", "0.3", CVAR_NONE,
"Sets how far lean forwards and backwards when v_idlescale is "
"active");
v_contentblend = Cvar_Get ("v_contentblend", "1", CVAR_NONE,
"Shift color in liquids");
v_iyaw_cycle = Cvar_Get ("v_iyaw_cycle", "2", CVAR_NONE, "None");
v_iroll_cycle = Cvar_Get ("v_iroll_cycle", "0.5", CVAR_NONE, "None");
v_ipitch_cycle = Cvar_Get ("v_ipitch_cycle", "1", CVAR_NONE, "None");
v_iyaw_level = Cvar_Get ("v_iyaw_level", "0.3", CVAR_NONE, "None");
v_iroll_level = Cvar_Get ("v_iroll_level", "0.1", CVAR_NONE, "None");
v_ipitch_level = Cvar_Get ("v_ipitch_level", "0.3", CVAR_NONE, "None");
v_idlescale = Cvar_Get ("v_idlescale", "0", CVAR_NONE,
"Toggles whether the the view remains idle");
crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE,
"Sets the crosshair color");
crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE,
"Sets which crosshair is used");
cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_ARCHIVE,
"Sets the x location of the crosshair");
cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_ARCHIVE,
"Sets the y location of the crosshair");
gl_cshiftpercent = Cvar_Get ("gl_cshiftpercent", "100", CVAR_NONE,
"Sets the percentage of color shifting");
v_contentblend = Cvar_Get ("v_contentblend", "1", CVAR_NONE, "Shift color in liquids");
scr_ofsx = Cvar_Get ("scr_ofsx", "0", CVAR_NONE,
"Sets how much to offset the view in the x direction");
scr_ofsy = Cvar_Get ("scr_ofsy", "0", CVAR_NONE,
"Sets how much to offset the view in the y direction");
scr_ofsz = Cvar_Get ("scr_ofsz", "0", CVAR_NONE,
"Sets how much to offset the view in the z direction");
v_idlescale = Cvar_Get ("v_idlescale", "0", CVAR_NONE, "None");
crosshaircolor = Cvar_Get ("crosshaircolor", "79", CVAR_ARCHIVE, "Crosshair Color");
crosshair = Cvar_Get ("crosshair", "0", CVAR_ARCHIVE, "Crosshair selection");
cl_crossx = Cvar_Get ("cl_crossx", "0", CVAR_ARCHIVE, "Crosshair X location");
cl_crossy = Cvar_Get ("cl_crossy", "0", CVAR_ARCHIVE, "Crosshair Y location");
gl_cshiftpercent = Cvar_Get ("gl_cshiftpercent", "100", CVAR_NONE, "Percentage of color shifting");
cl_rollspeed = Cvar_Get ("cl_rollspeed", "200", CVAR_NONE,
"Sets how quickly you straighten out after strafing");
cl_rollangle = Cvar_Get ("cl_rollangle", "2.0", CVAR_NONE,
"Sets how much your screen tilts when strafing");
cl_bob = Cvar_Get ("cl_bob", "0.02", CVAR_NONE,
"Sets how much your weapon moves up and down when walking");
cl_bobcycle = Cvar_Get ("cl_bobcycle", "0.6", CVAR_NONE,
"Sets how quickly your weapon moves up and down when walking");
cl_bobup = Cvar_Get ("cl_bobup", "0.5", CVAR_NONE,
"Sets how long your weapon stays up before cycling when "
"walking");
scr_ofsx = Cvar_Get ("scr_ofsx", "0", CVAR_NONE, "None");
scr_ofsy = Cvar_Get ("scr_ofsy", "0", CVAR_NONE, "None");
scr_ofsz = Cvar_Get ("scr_ofsz", "0", CVAR_NONE, "None");
cl_rollspeed = Cvar_Get ("cl_rollspeed", "200", CVAR_NONE, "None");
cl_rollangle = Cvar_Get ("cl_rollangle", "2.0", CVAR_NONE, "None");
cl_bob = Cvar_Get ("cl_bob", "0.02", CVAR_NONE, "None");
cl_bobcycle = Cvar_Get ("cl_bobcycle", "0.6", CVAR_NONE, "None");
cl_bobup = Cvar_Get ("cl_bobup", "0.5", CVAR_NONE, "None");
v_kicktime = Cvar_Get ("v_kicktime", "0.5", CVAR_NONE, "None");
v_kickroll = Cvar_Get ("v_kickroll", "0.6", CVAR_NONE, "None");
v_kickpitch = Cvar_Get ("v_kickpitch", "0.6", CVAR_NONE, "None");
v_gamma = Cvar_Get ("v_gamma", "1.0", CVAR_ARCHIVE, "Monitor gamma");
v_kicktime = Cvar_Get ("v_kicktime", "0.5", CVAR_NONE,
"Sets how long the kick effects last (when you are hit)");
v_kickroll = Cvar_Get ("v_kickroll", "0.6", CVAR_NONE,
"Sets how much you lean when hit");
v_kickpitch = Cvar_Get ("v_kickpitch", "0.6", CVAR_NONE,
"Sets how much you look up when hit");
v_gamma = Cvar_Get ("v_gamma", "1.0", CVAR_ARCHIVE,
"Sets the monitor gamma");
BuildGammaTable (v_gamma->value); // no gamma yet
}