/*
Quake Live cvar list 
made by Lashknife <lashknife@gmail.com>
"Learn from this document, do not copy it!"
*/

// a cvar object
function cvar (defaultvalue,explanation,extrainfo) {
	this.defaultvalue = defaultvalue;
	this.explanation = explanation;
	this.extrainfo = extrainfo;
}
function infotitle (explanation) {
	this.explanation = explanation;
}
function cmd (explanation,example) {
	this.explanation = explanation;
	this.example = example;
}
function script (code,comment) {
	this.code = code;
	this.comment = comment;
}
function keybind (command,explanation) {
	this.command = command;
	this.explanation = explanation;
}
function gametoggle (explanation) {
	this.explanation = explanation;
}
function weapon (abbr,explanation) {
	this.abbr = abbr;
	this.explanation = explanation;
}

var cvarlist = new Object();
var titlelist = new Object();
var cmdlist = new Object();
var scripts = new Object();
var bindlist = new Object();
var togglelist = new Object();
var weaplist = new Object();

function loadTitles () {
	// titles for cvar items
	for (var i in cvarlist) {
		if (document.getElementById(i.toLowerCase())) {
			document.getElementById(i.toLowerCase()).title = i + " [\"" + cvarlist[i].defaultvalue + "\"] " + cvarlist[i].explanation;
			if (cvarlist[i].extrainfo) {
				document.getElementById(i.toLowerCase()).title += " " + cvarlist[i].extrainfo;
			}
		}
	}
	// additional titles not for cvar items
	for (var i in titlelist) {
		if (document.getElementById(i.toLowerCase())) {
			document.getElementById(i.toLowerCase()).title = titlelist[i].explanation;
		}
	}
	for (var i in cmdlist) {
		if (document.getElementById(i.toLowerCase())) {
			document.getElementById(i.toLowerCase()).title = cmdlist[i].explanation;
		}
		if (document.getElementById("bind_" + i.toLowerCase())) {
			document.getElementById("bind_" + i.toLowerCase()).title = cmdlist[i].explanation;
		}
	}
}

// CVARLIST: add cvars in random order...
/* ]\a */
cvarlist['activeaction'] = new cvar("","");
cvarlist['arch'] = new cvar("","Shows your OS architecture.");
/* ]\b */
cvarlist['bot_aasoptimize'] = new cvar("0","");
cvarlist['bot_breakPoint'] = new cvar("0","Cause a porgram break to occur inside the bot's AI. [CHEAT PROTECTED]");
cvarlist['bot_challenge'] = new cvar("0","");
cvarlist['bot_debug'] = new cvar("0","Debug various bot subsystems. Many bot debugging features are disabled if this is not set to 1. [CHEAT PROTECTED]");
cvarlist['bot_debugVar'] = new cvar("0","");
cvarlist['bot_developer'] = new cvar("0","");
cvarlist['bot_dynamicSkill'] = new cvar("0","Controls whether the bot skill is dynamic or not. 1 = the \"My Skill\" difficulty in singe player.");
cvarlist['bot_enable'] = new cvar("1","0 = bots will not be loaded in the game. 1 = bots are loaded.");
cvarlist['bot_fastchat'] = new cvar("0","");
cvarlist['bot_followDist'] = new cvar("250","");
cvarlist['bot_followMe'] = new cvar("0","Have the bots follow you in debug mode. 1 = follow, 2 = free roam. [CHEAT PROTECTED]");
cvarlist['bot_forceclustering'] = new cvar("0","");
cvarlist['bot_forcereachability'] = new cvar("0","");
cvarlist['bot_forcewrite'] = new cvar("0","");
cvarlist['bot_gauntlet'] = new cvar("0","");
cvarlist['bot_gauntletOnly'] = new cvar("0","When set to 1, bots will only use the Gauntlet.");
cvarlist['bot_grapple'] = new cvar("0","");
cvarlist['bot_groundonly'] = new cvar("1","");
cvarlist['bot_hud'] = new cvar("-1","Print out the bots debug info onto the players HUD. Set to the clientNum of the bot to debug. 0 = disable. Make sure bot_debug is 1. [CHEAT PROTECTED]");
cvarlist['bot_instaGibAimSkill'] = new cvar("0.4","The aim skill of bots when g_instaGib is set to 1. With a value of 1 the bots will hit every shot.");
cvarlist['bot_interbreedbots'] = new cvar("10","");
cvarlist['bot_interbreedchar'] = new cvar("","");
cvarlist['bot_interbreedcycle'] = new cvar("20","");
cvarlist['bot_interbreedwrite'] = new cvar("","");
cvarlist['bot_itemDelayTime'] = new cvar("0","");
cvarlist['bot_log'] = new cvar("0","");
cvarlist['bot_maxdebugpolys'] = new cvar("2","");
cvarlist['bot_memorydump'] = new cvar("0","");
cvarlist['bot_minplayers'] = new cvar("1","");
cvarlist['bot_nochat'] = new cvar("0","When set to 1, bots won't chat.");
cvarlist['bot_pause'] = new cvar("0","[CHEAT PROTECTED]");
cvarlist['bot_predictobstacles'] = new cvar("1","");
cvarlist['bot_reachability'] = new cvar("0","");
cvarlist['bot_reloadcharacters'] = new cvar("0","");
cvarlist['bot_report'] = new cvar("0","[CHEAT PROTECTED]");
cvarlist['bot_rocketjump'] = new cvar("1","Controls whether bots are allowed to rocket jump.");
cvarlist['bot_saveroutingcache'] = new cvar("0","");
cvarlist['bot_showAreaNumber'] = new cvar("0","");
cvarlist['bot_showAreas'] = new cvar("0","");
cvarlist['bot_showAvoidSpots'] = new cvar("0","");
cvarlist['bot_showPath'] = new cvar("0","");
cvarlist['bot_showTourPoints'] = new cvar("0","");
cvarlist['bot_startingSkill'] = new cvar("1","When bot_dynamicSkill is 1, this is the starting skill level.");
cvarlist['bot_testclusters'] = new cvar("","");
cvarlist['bot_testichat'] = new cvar("0","");
cvarlist['bot_testrchat'] = new cvar("0","");
cvarlist['bot_testsolid'] = new cvar("0","");
cvarlist['bot_thinktime'] = new cvar("100","");
cvarlist['bot_training'] = new cvar("0","");
cvarlist['bot_visualizejumppads'] = new cvar("0","");
/* ]\c */
cvarlist['capturelimit'] = new cvar("8","Sets the maximum of captures before a match is won. 0 = no limit.");
cvarlist['cg_allowtaunt'] = new cvar("1","0 = disallow players to taunt.");
cvarlist['cg_animspeed'] = new cvar("1","");
cvarlist['cg_autoaction'] = new cvar("0","autorecords demo and/or endgame screenshot, 0 = do nothing, 1 = demo, 2 = screenshot, 3 = demo + screenshot");
cvarlist['cg_autoswitch'] = new cvar("1","Automatically switch to a weapon you pick up.");
cvarlist['cg_bob'] = new cvar("1","Screen sways when moving around.");
cvarlist['cg_brasstime'] = new cvar("2500","Amount of time expelled shells remain on screen.");
cvarlist['cg_cameraOrbit'] = new cvar("0","");
cvarlist['cg_cameraOrbitDelay'] = new cvar("50","");
cvarlist['cg_cameraSmartMode'] = new cvar("1","");
cvarlist['cg_centertime'] = new cvar("3","");
cvarlist['cg_chatBeep'] = new cvar("1","0 = disable beep when receiving a public message.");
cvarlist['cg_crosshairbrightness'] = new cvar("1.0","Brightness of the crosshair (min 0.0 max 1.0)");
cvarlist['cg_crosshaircolor'] = new cvar("7","Color of your crosshair, unless cg_crosshairhealth is set to 1.");
cvarlist['cg_crosshairhealth'] = new cvar("0","Colors the crosshair to indicate your health status. (This overrides regular crosshaircolor choice)");
cvarlist['cg_crosshairpulse'] = new cvar("1","Pulsates the crosshair when picking up items.");
cvarlist['cg_crosshairsize'] = new cvar("32","Size of the crosshair.");
cvarlist['cg_crosshairx'] = new cvar("0","Position of the crosshair (horizontal axis)");
cvarlist['cg_crosshairy'] = new cvar("0","Position of the crosshair (vertical axis)");
cvarlist['cg_currentSelectedPlayer'] = new cvar("","");
cvarlist['cg_currentSelectedPlayerName'] = new cvar("","");
cvarlist['cg_debuganim'] = new cvar("0","");
cvarlist['cg_debugevents'] = new cvar("0","");
cvarlist['cg_deferPlayers'] = new cvar("1","");
cvarlist['cg_draw2d'] = new cvar("1","Draws the hud");
cvarlist['cg_draw3dicons'] = new cvar("1","Draw 3D elements on hud instead of 2D.");
cvarlist['cg_drawammowarning'] = new cvar("1","Warns when running out of ammo. (Ammo counter turns red on low value.)");
cvarlist['cg_drawattacker'] = new cvar("1","Draw the face and nameof who is currently attacking you.");
cvarlist['cg_drawcrosshair'] = new cvar("5","Crosshair (min = 1, max =10, 0 = no crosshair)");
cvarlist['cg_drawcrosshairnames'] = new cvar("1","Draw the name of players above the crosshair when targetting them.");
cvarlist['cg_drawfps'] = new cvar("0","Shows fps - frames per second - rate.");
cvarlist['cg_drawfriend'] = new cvar("0","Yellow triangles on top of team members.");
cvarlist['cg_drawgun'] = new cvar("1","Show your gun. (0 = hidden, 1 = swaying, 2 = fixed)");
cvarlist['cg_drawicons'] = new cvar("1","");
cvarlist['cg_drawrewards'] = new cvar("1","Show reward icons and sound highlight.");
cvarlist['cg_drawsnapshot'] = new cvar("0","Show debug information");
cvarlist['cg_drawsprites'] = new cvar("1","");
cvarlist['cg_drawstatus'] = new cvar("1","Various textual info on hud and scoreboard");
cvarlist['cg_drawtargetnames'] = new cvar("1","");
cvarlist['cg_drawteamoverlay'] = new cvar("1","Topright corner teammember followup frame.");
cvarlist['cg_drawtimer'] = new cvar("1","Shows the game timer.");
cvarlist['cg_errordecay'] = new cvar("100","");
cvarlist['cg_filter_angles'] = new cvar("0","");
cvarlist['cg_followkiller'] = new cvar("0","When you die, spectate your killer. (in CA)");
cvarlist['cg_followpowerup'] = new cvar("0","1 = While spectating, switches to a player who picks up a powerup. 2 = Same as one, but will not switch to a player who picks up a lesser powerup if already following a flag carrier.");
cvarlist['cg_footsteps'] = new cvar("1","0 = No footstep sounds [CHEAT PROTECTED]");
cvarlist['cg_forceblueteammodel'] = new cvar("","Overrides cg_forceEnemyModel/cg_forceTeamModel when spectating.");
cvarlist['cg_forceenemymodel'] = new cvar("","The model for your enemy team players. For example \"keel/bright\".");
cvarlist['cg_forcemodel'] = new cvar("0","The model for your enemies."); // does not work
cvarlist['cg_forceredteammodel'] = new cvar("","Overrides cg_forceEnemyModel/cg_forceTeamModel when spectating.");
cvarlist['cg_forceteammodel'] = new cvar("","The model for your team players.");
cvarlist['cg_fov'] = new cvar("90","Field of vision. (min = 10, max 130)");
cvarlist['cg_gameInfo1'] = new cvar("","");
cvarlist['cg_gameInfo2'] = new cvar("","");
cvarlist['cg_gameInfo3'] = new cvar("","");
cvarlist['cg_gameInfo4'] = new cvar("","");
cvarlist['cg_gameInfo5'] = new cvar("","");
cvarlist['cg_gameInfo6'] = new cvar("","");
cvarlist['cg_gibs'] = new cvar("10","Controls the number of sparks when gibbing a dead body.");
cvarlist['cg_gunx'] = new cvar("0","Gun X-Axis placement.");
cvarlist['cg_guny'] = new cvar("0","Gun Y-Axis placement.");
cvarlist['cg_gunz'] = new cvar("0","Gun Z-Axis placement.");
cvarlist['cg_hudFiles'] = new cvar("ui/hud.cfg","Controls what file is used for the HUD. This needs to be changed when using a custom HUD.");
cvarlist['cg_ignoreMouseInput'] = new cvar("0","");
cvarlist['cg_kickscale'] = new cvar("1","Screen shakes when hit.");
cvarlist['cg_lagometer'] = new cvar("0","1 = Show network information. 2 = 1 + client ping estimation.");
cvarlist['cg_lastmsg'] = new cvar("","The last message you recieved from the XMPP chat system. For example: \"<QUAKE LIVE> Player has gone offline.\"");
cvarlist['cg_leveltimerdirection'] = new cvar("0","The direction of the timer: 0 = counting up, 1 = counting down.");
cvarlist['cg_marks'] = new cvar("1","Render bullet marks on walls");
cvarlist['cg_newweaponbar'] = new cvar("0","Position and layout of the weapon bar.");
cvarlist['cg_noplayeranims'] = new cvar("0","Controls the player animations, for example when a team scores a cap the modes will cheer. [CHEAT PROTECTED]");
cvarlist['cg_nopredict'] = new cvar("0","A value of 1 will provide more accurate pickup notification sounds, however at the cost of potentially delayed playback.");
cvarlist['cg_noprojectiletrail'] = new cvar("0","No smoke trails on rockets and grenades.");
cvarlist['cg_oldplasma'] = new cvar("0","A value of 0 will add fizzling spark effects to the blasma balls.");
cvarlist['cg_oldrail'] = new cvar("0","Rail style (0 = new style = beam + swirl, 1 = old style = beam + discs)");
cvarlist['cg_oldrocket'] = new cvar("0","New style adds a red bloom of fire that burns out from the explosion.");
cvarlist['cg_playVoiceChats'] = new cvar("1","0 to mute voice chats.");
cvarlist['cg_predictitems'] = new cvar("1","Client prediction for picking up items.");
cvarlist['cg_predictlocalrailshots'] = new cvar("1","A value of 0 will feel less responsive in high ping environments but may prevent wrongly predicted railshots and/or impacts.");
cvarlist['cg_railtrailtime'] = new cvar("400","Amount of time the railbeam remains visible.");
cvarlist['cg_scalePlayerModelsToBB'] = new cvar("1","Whether to scale the player models to the bounding box. [CHEAT PROTECTED]");
cvarlist['cg_scorePlums'] = new cvar("1","0 = Hide score plums, those are the numbers near a players head when his score increased.");
cvarlist['cg_selectedPlayer'] = new cvar("","");
cvarlist['cg_selectedPlayerName'] = new cvar("","");
cvarlist['cg_selfOnTeamOverlay'] = new cvar("0","1 = show yourself on team overlay, 0 = hide yourself");
cvarlist['cg_shadows'] = new cvar("1","0 = Disables player shadows.");
cvarlist['cg_showmiss'] = new cvar("0","");
cvarlist['cg_showvoicetext'] = new cvar("1","");
cvarlist['cg_simpleitems'] = new cvar("0","Replaces pickup 3D models with iconic 2D images.");
cvarlist['cg_smoothclients'] = new cvar("0","Smooth out other players movement when they suffer from packetloss.");
cvarlist['cg_stats'] = new cvar("0","");
cvarlist['cg_stereoSeparation'] = new cvar("0.4","");
cvarlist['cg_swingSpeed'] = new cvar("0.3","[CHEAT PROTECTED]");
cvarlist['cg_switchonempty'] = new cvar("1"," Automatically switch to the next weapon in line when current is empty.");
cvarlist['cg_teamChatBeep'] = new cvar("1","0 = disable beep when receiving a team message.");
cvarlist['cg_teamChatHeight'] = new cvar("0");
cvarlist['cg_teamChatsOnly'] = new cvar("0","Hides public chat, show only what your teammates say.");
cvarlist['cg_teamChatTime'] = new cvar("3000","Time (in msec) before teamchat disappears from hud.");
cvarlist['cg_thirdPerson'] = new cvar("0","Toggles third preson mode. [CHEAT PROTECTED]");
cvarlist['cg_thirdPersonAngle'] = new cvar("0");
cvarlist['cg_thirdPersonPitch'] = new cvar("-1");
cvarlist['cg_thirdPersonRange'] = new cvar("80");
cvarlist['cg_timescaleFadeEnd'] = new cvar("1");
cvarlist['cg_timescaleFadeSpeed'] = new cvar("0");
cvarlist['cg_tracerchance'] = new cvar("0.4","[CHEAT PROTECTED]");
cvarlist['cg_tracerlength'] = new cvar("100","[CHEAT PROTECTED]");
cvarlist['cg_tracerwidth'] = new cvar("1","[CHEAT PROTECTED]");
cvarlist['cg_trackPlayer'] = new cvar("-1","[CHEAT PROTECTED]");
cvarlist['cg_truelightning'] = new cvar("0.75","The amount of how much the lightning beam sways (1.0 = fixed on crosshair, 0.0 = spaghetti)");
cvarlist['cg_version'] = new cvar("","Shows the version of the game.");
cvarlist['cg_viewsize'] = new cvar("100","Size of the ingame viewing area. (Percentage of screen)");
cvarlist['cg_zoomfov'] = new cvar("22.5","Field of view while zoomed in.");
cvarlist['cl_allowDownload'] = new cvar("1","0 = Do not download missing files from the server. [READ ONLY]");
cvarlist['cl_anglespeedkey'] = new cvar("1.5","");
cvarlist['cl_anonymous'] = new cvar("0","");
//REMOVED cvarlist['cl_autorecorddemo'] = new cvar("0","Auto starts recording a demo at match start.");
cvarlist['cl_avidemo'] = new cvar("0","");
cvarlist['cl_avidemo_latch'] = new cvar("0","");
cvarlist['cl_avidemo_maxtime'] = new cvar("0","");
cvarlist['cl_avidemo_mintime'] = new cvar("0","");
cvarlist['cl_conTimeStamps'] = new cvar("0","Add event timestamps to console: 0 = no stamps, 1 = game time (affected by cg_levelTimerDirection), 2 = server time");
cvarlist['cl_conXOffset'] = new cvar("0","");
cvarlist['cl_currentServerAddress'] = new cvar("","This cvar is set to the ip address of the game server you are currently connected to. Obtaining the servers IP address may be necessary during testing.");
cvarlist['cl_debugMove'] = new cvar("0","");
cvarlist['cl_demoRecordMessage'] = new cvar("1","0 = hide the 'Recording...' message on the hud when recording a demo");
cvarlist['cl_downloadName'] = new cvar("","");
cvarlist['cl_forceavidemo'] = new cvar("0","");
cvarlist['cl_freelook'] = new cvar("1","");
cvarlist['cl_freezeDemo'] = new cvar("0","");
cvarlist['cl_guid'] = new cvar("unknown","");
//REMOVED cvarlist['cl_igaAPILog'] = new cvar("","");
cvarlist['cl_maxpackets'] = new cvar("63","FIXME http://www.funender.com/quake/console/q3connection.html");
cvarlist['cl_maxPing'] = new cvar("800","");
cvarlist['cl_motd'] = new cvar("1","");
cvarlist['cl_motdString'] = new cvar("","");
cvarlist['cl_maxpackets'] = new cvar("63","Controls how many gameworld updates you send to the server. (min 30, max 125)");
cvarlist['cl_mouseaccel'] = new cvar("0","Mouse acceleration. (min 0, max 10)");
cvarlist['cl_mouseAccelDebug'] = new cvar("0","");
cvarlist['cl_mouseAccelOffset'] = new cvar("5","");
cvarlist['cl_mouseAccelStyle'] = new cvar("1","1 = Quake Live mouse acceleration, 0 = Old Quake 3 style accelertion.");
cvarlist['cl_mouseSensCap'] = new cvar("0","To cap the mouse speed if you are using acceleration. Example: cl_mouseSensCap 7 will not allow the general sensitivity to go beyond 7 when accelerating.");
cvarlist['cl_nodelta'] = new cvar("0","");
cvarlist['cl_noprint'] = new cvar("0","");
cvarlist['cl_packetdup'] = new cvar("1","Determines how many duplicate packets you send to the server to avoid packetloss. (0 to disable; min 1, max 5)");
cvarlist['cl_paused'] = new cvar("0","[READ ONLY]");
cvarlist['cl_pitchspeed'] = new cvar("140","");
cvarlist['cl_punkbuster'] = new cvar("1","[READ ONLY]");
cvarlist['cl_quitOnDemoCompleted'] = new cvar("0","");
cvarlist['cl_run'] = new cvar("1","Toggles automatic running.");
cvarlist['cl_running'] = new cvar("0","Value is set to 1, although default is 0.");
cvarlist['cl_serverStatusResendTime'] = new cvar("750","");
cvarlist['cl_shownet'] = new cvar("0","");
cvarlist['cl_showSend'] = new cvar("0","");
cvarlist['cl_showTimeDelta'] = new cvar("0","");
cvarlist['cl_timeout'] = new cvar("40","");
cvarlist['cl_yawspeed'] = new cvar("140","");
cvarlist['clan'] = new cvar("","Your ingame clan name.");
cvarlist['cm_noAreas'] = new cvar("0","[CHEAT PROTECTED]");
cvarlist['cm_noCurves'] = new cvar("0","[CHEAT PROTECTED]");
cvarlist['cm_playerCurveClip'] = new cvar("1","[CHEAT PROTECTED]");
cvarlist['color1'] = new cvar("1","The color of the rail beam.");
cvarlist['color2'] = new cvar("1","The color of the rail swirl/disc effects.");
cvarlist['com_allowconsole'] = new cvar("1","Allows quick toggle of console (0 = press ctrl+alt+console-bind to toggle console)");
cvarlist['com_blood'] = new cvar("0","Disables blood.");
cvarlist['com_build'] = new cvar("0","");
cvarlist['com_cameraMode'] = new cvar("0","[CHEAT PROTECTED]");
cvarlist['com_configVersion'] = new cvar("16","");
cvarlist['com_dropsim'] = new cvar("0","");
cvarlist['com_hunkMegs'] = new cvar("56","");
cvarlist['com_introplayed'] = new cvar("0","If set to 1, skips intro movie.");
cvarlist['com_maxfps'] = new cvar("125","Maximum frames rendered per second.");
cvarlist['com_showtrace'] = new cvar("0","[CHEAT PROTECTED]");
cvarlist['com_soundMegs'] = new cvar("16","");
cvarlist['com_speeds'] = new cvar("0","Shows engine timings.");
cvarlist['com_zoneMegs'] = new cvar("16","");
cvarlist['con_notifytime'] = new cvar("3","Time (in seconds) messages are displayed onscreen.");
/* ]\d */
cvarlist['debug_protocol'] = new cvar("","");
cvarlist['debuggraph'] = new cvar("","");
cvarlist['dedicated'] = new cvar("","");
cvarlist['developer'] = new cvar("0","Developer mode on or off.");
cvarlist['dmflags'] = new cvar("20","");
/* ]\e */
/* ]\f */
cvarlist['fixedtime'] = new cvar("","");
cvarlist['fraglimit'] = new cvar("","Shows the fraglimit, or sets to a new limit if a value is provided.");
cvarlist['fs_basegame'] = new cvar("","");
cvarlist['fs_basepath'] = new cvar("","");
cvarlist['fs_cdpath'] = new cvar("","");
cvarlist['fs_copyfiles'] = new cvar("","");
cvarlist['fs_debug'] = new cvar("","");
cvarlist['fs_game'] = new cvar("","");
cvarlist['fs_homepath'] = new cvar("","");
cvarlist['fs_restrict'] = new cvar("","");
/* ]\g */
cvarlist['g_allowKill'] = new cvar("","");
cvarlist['g_allowVote'] = new cvar("","");
cvarlist['g_arenasFile'] = new cvar("","");
cvarlist['g_banIPs'] = new cvar("","");
cvarlist['g_blueteam'] = new cvar("","");
cvarlist['g_botsFile'] = new cvar("","");
cvarlist['g_botSpawnList'] = new cvar("","");
cvarlist['g_cubeTimeout'] = new cvar("","");
cvarlist['g_debugAlloc'] = new cvar("","");
cvarlist['g_debugDamage'] = new cvar("","");
cvarlist['g_debugMove'] = new cvar("","");
cvarlist['g_doWarmup'] = new cvar("","");
cvarlist['g_enableBreath'] = new cvar("","");
cvarlist['g_enableDust'] = new cvar("","");
cvarlist['g_enemyTeamRespawnRatio'] = new cvar("","");
cvarlist['g_filterBan'] = new cvar("","");
cvarlist['g_forceNextMap'] = new cvar("","");
cvarlist['g_friendlyFire'] = new cvar("","");
cvarlist['g_gameState'] = new cvar("","");
cvarlist['g_gametype'] = new cvar("","");
cvarlist['g_gravity'] = new cvar("","");
cvarlist['g_inactivity'] = new cvar("","");
cvarlist['g_instaGib'] = new cvar("0","Toggles whether Insta Gib is enabled.");
cvarlist['g_kamiAttenuate'] = new cvar("","");
cvarlist['g_kamiMinRatio'] = new cvar("","");
cvarlist['g_knockback'] = new cvar("","");
cvarlist['g_knockback_bfg'] = new cvar("","");
cvarlist['g_knockback_cg'] = new cvar("","");
cvarlist['g_knockback_cripple'] = new cvar("","");
cvarlist['g_knockback_g'] = new cvar("","");
cvarlist['g_knockback_gl'] = new cvar("","");
cvarlist['g_knockback_lg'] = new cvar("","");
cvarlist['g_knockback_mg'] = new cvar("","");
cvarlist['g_knockback_ng'] = new cvar("","");
cvarlist['g_knockback_pg'] = new cvar("","");
cvarlist['g_knockback_pg_self'] = new cvar("","");
cvarlist['g_knockback_pl'] = new cvar("","");
cvarlist['g_knockback_rg'] = new cvar("","");
cvarlist['g_knockback_rl'] = new cvar("","");
cvarlist['g_knockback_rl_self'] = new cvar("","");
cvarlist['g_knockback_sg'] = new cvar("","");
cvarlist['g_levelStartTime'] = new cvar("","");
cvarlist['g_lg_base_damage'] = new cvar("","");
cvarlist['g_lg_base_range'] = new cvar("","");
cvarlist['g_lg_falloff_damage'] = new cvar("","");
cvarlist['g_lg_falloff_range'] = new cvar("","");
cvarlist['g_log'] = new cvar("","");
cvarlist['g_logSync'] = new cvar("","");
cvarlist['g_max_knockback'] = new cvar("","");
cvarlist['g_maxDeferredSpawns'] = new cvar("","");
cvarlist['g_maxGameClients'] = new cvar("","");
cvarlist['g_maxSkillTier'] = new cvar("","");
cvarlist['g_motd'] = new cvar("","");
cvarlist['g_needpass'] = new cvar("","");
cvarlist['g_obeliskHealth'] = new cvar("","");
cvarlist['g_obeliskRegenAmount'] = new cvar("","");
cvarlist['g_obeliskRegenPeriod'] = new cvar("","");
cvarlist['g_obeliskRespawnDelay'] = new cvar("","");
cvarlist['g_password'] = new cvar("","");
cvarlist['g_podiumDist'] = new cvar("","");
cvarlist['g_podiumDrop'] = new cvar("","");
cvarlist['g_proxMineTimeout'] = new cvar("","");
cvarlist['g_redteam'] = new cvar("","");
cvarlist['g_restarted'] = new cvar("","");
cvarlist['g_runespawntime'] = new cvar("","");
cvarlist['g_smoothClients'] = new cvar("","");
cvarlist['g_spAwards'] = new cvar("","");
cvarlist['g_speed'] = new cvar("","");
cvarlist['g_spScores1'] = new cvar("","");
cvarlist['g_spScores2'] = new cvar("","");
cvarlist['g_spScores3'] = new cvar("","");
cvarlist['g_spScores4'] = new cvar("","");
cvarlist['g_spScores5'] = new cvar("","");
cvarlist['g_spskill'] = new cvar("","");
cvarlist['g_spVideos'] = new cvar("","");
cvarlist['g_teamAutoJoin'] = new cvar("","");
cvarlist['g_teamForceBalance'] = new cvar("","");
cvarlist['g_training'] = new cvar("","");
cvarlist['g_version'] = new cvar("","");
cvarlist['g_voteFlags'] = new cvar("","");
cvarlist['g_warmup'] = new cvar("","");
cvarlist['g_weaponrespawn'] = new cvar("","");
cvarlist['g_weaponTeamRespawn'] = new cvar("","");
cvarlist['gamedate'] = new cvar("","");
cvarlist['gamename'] = new cvar("","");
cvarlist['graphheight'] = new cvar("","");
cvarlist['graphscale'] = new cvar("","");
cvarlist['graphshift'] = new cvar("","");
cvarlist['gt_admin'] = new cvar("","");
cvarlist['gt_eventid'] = new cvar("","");
cvarlist['gt_eventtype'] = new cvar("","");
cvarlist['gt_master'] = new cvar("","");
cvarlist['gt_noEidReq'] = new cvar("","");
cvarlist['gt_pass'] = new cvar("","");
cvarlist['gt_realm'] = new cvar("","");
cvarlist['gt_user'] = new cvar("","");
/* ]\h */
cvarlist['handicap'] = new cvar("100","Sets your starting health value when spawning.");
cvarlist['headmodel'] = new cvar("sarge","The model for your head."); // does not work
/* ]\i */
cvarlist['in_debugjoystick'] = new cvar("","");
cvarlist['in_joyBallScale'] = new cvar("","");
cvarlist['in_joystick'] = new cvar("","");
cvarlist['in_midi'] = new cvar("","");
cvarlist['in_midichannel'] = new cvar("","");
cvarlist['in_mididevice'] = new cvar("","");
cvarlist['in_midiport'] = new cvar("","");
cvarlist['in_mouse'] = new cvar("1","-1 = Windows mouse input, 1 = Direct input, 2 = Raw input");
cvarlist['in_mouseMode'] = new cvar("","");
/* ]\j */
cvarlist['journal'] = new cvar("","");
cvarlist['joy_threshold'] = new cvar("","");
/* ]\k */
/* ]\l */
cvarlist['logfile'] = new cvar("","");
/* ]\m */
cvarlist['mapname'] = new cvar("","Shows the name of the current map.");
cvarlist['model'] = new cvar("sarge","The model for your ingame character.");
cvarlist['m_filter'] = new cvar("0","Smooth the mouse movement.");
cvarlist['m_forward'] = new cvar("0.25","");
cvarlist['m_pitch'] = new cvar("0.022","Vertical mouse speed finetune. (negative value inverts)");
cvarlist['m_side'] = new cvar("0.25","");
cvarlist['m_yaw'] = new cvar("0.022","Horizontal mouse speed finetune. (negative value inverts)");
/* ]\n */
cvarlist['name'] = new cvar("UnnamedPlayer","Your ingame player name.");
cvarlist['net_ip'] = new cvar("","");
cvarlist['net_noipx'] = new cvar("","");
cvarlist['net_noudp'] = new cvar("","");
cvarlist['net_port'] = new cvar("","");
cvarlist['net_qport'] = new cvar("","");
cvarlist['net_socksEnabled'] = new cvar("","");
cvarlist['net_socksPassword'] = new cvar("","");
cvarlist['net_socksPort'] = new cvar("","");
cvarlist['net_socksServer'] = new cvar("","");
cvarlist['net_socksUsername'] = new cvar("","");
cvarlist['net_strict'] = new cvar("","");
cvarlist['nextmap'] = new cvar("map_restart 0","");
/* ]\o */
/* ]\p */
cvarlist['password'] = new cvar("","The password for password protected servers goes there, useful when connecting via console.");
cvarlist['plugin_version'] = new cvar("","Prints out version info of the currently installed plugin.");
cvarlist['protocol'] = new cvar("","Prints out the current network protocol number used by Quake Live.");
/* ]\q */
/* ]\r */
cvarlist['r_allowExtensions'] = new cvar("1","");
cvarlist['r_allowSoftwareGL'] = new cvar("0","");
cvarlist['r_ambientScale'] = new cvar("3","Ambient cube mapping brightness.");
cvarlist['r_aspectRatio'] = new cvar("0","Aspect ratio. 0 = 4:3, 1 = 16:9, 2 = 16:10, 3 = 5:4.");
cvarlist['r_clear'] = new cvar("0","");
cvarlist['r_colorbits'] = new cvar("32","Color depth. 16 or 32.");
cvarlist['r_colorMipLevels'] = new cvar("0","");
cvarlist['r_contrast'] = new cvar("1.0","");
cvarlist['r_customheight'] = new cvar("1024","Custom vertical resolution");
cvarlist['r_customwidth'] = new cvar("1600","Custom horizontal resolution");
cvarlist['r_debugAds'] = new cvar("0","");
cvarlist['r_debuglight'] = new cvar("0","");
cvarlist['r_debugSort'] = new cvar("0","");
cvarlist['r_debugSurface'] = new cvar("0","");
cvarlist['r_debugSurfaceUpdate'] = new cvar("1","");
cvarlist['r_depthbits'] = new cvar("0","");
cvarlist['r_detailtextures'] = new cvar("0","");
cvarlist['r_directedScale'] = new cvar("1","");
cvarlist['r_displayrefresh'] = new cvar("60","Controls the monitor's refresh rate. (Only usefull with CRT monitors)");
cvarlist['r_drawBuffer'] = new cvar("GL_BACK","");
cvarlist['r_drawentities'] = new cvar("0","");
cvarlist['r_drawSun'] = new cvar("1","");
cvarlist['r_drawworld'] = new cvar("0","");
cvarlist['r_dynamiclight'] = new cvar("1","Enable dynamic lights. (For example rockets flying by light up the area.)");
cvarlist['r_enablepostprocess'] = new cvar("1","A value of 0 will degrade the quality of lighting in exchange for a boost in performance.");
cvarlist['r_ext_compiled_vertex_array'] = new cvar("1","");
cvarlist['r_ext_compressed_textures'] = new cvar("0","");
cvarlist['r_ext_gamma_control'] = new cvar("1","");
cvarlist['r_ext_multitexture'] = new cvar("1","");
cvarlist['r_ext_texture_env_add'] = new cvar("1","");
cvarlist['r_facePlaneCull'] = new cvar("1","");
cvarlist['r_fastsky'] = new cvar("0","When set to 1, blacks out the sky with no texture. (This disables seeing through portals as well!)");
cvarlist['r_finish'] = new cvar("0","");
cvarlist['r_flareFade'] = new cvar("7","");
cvarlist['r_flares'] = new cvar("0","");
cvarlist['r_flareSize'] = new cvar("40","");
cvarlist['r_fullbright'] = new cvar("0","When this variable is set to 1 the renderer system will render all textures on the map at full brightness.");
cvarlist['r_fullscreen'] = new cvar("1","Loads the screen fullscreen on 1 or in window mode when set to 0.");
cvarlist['r_gamma'] = new cvar("1","Overall brightness.");
cvarlist['r_glDriver'] = new cvar("","");
cvarlist['r_ignore'] = new cvar("1","");
cvarlist['r_ignoreFastPath'] = new cvar("1","");
cvarlist['r_ignoreGLErrors'] = new cvar("1","");
cvarlist['r_ignorehwgamma'] = new cvar("0","");
cvarlist['r_inBrowserMode'] = new cvar("9","");
cvarlist['r_inGameVideo'] = new cvar("1","");
cvarlist['r_intensity'] = new cvar("1","");
cvarlist['r_lastValidRenderer'] = new cvar("","");
cvarlist['r_lightmap'] = new cvar("0","");
cvarlist['r_lockpvs'] = new cvar("0","");
cvarlist['r_lodbias'] = new cvar("0","Dictates what the highest level of detail to show on ingame elements (players, weapons, ...). (Min: -2 = highest, Max: 2 = lowest)");
cvarlist['r_lodCurveError'] = new cvar("250","");
cvarlist['r_lodscale'] = new cvar("10","");
cvarlist['r_logFile'] = new cvar("0","");
cvarlist['r_mapoverbrightbits'] = new cvar("2","Ambient lighting of the map. (Makes the map more radiant.) [values: 0 to 10]");
cvarlist['r_mode'] = new cvar("-2","Screen resolution.");
//REMOVED cvarlist['r_maskMinidriver'] = new cvar("","");
cvarlist['r_maxpolys'] = new cvar("600","");
cvarlist['r_maxpolyverts'] = new cvar("3000","");
cvarlist['r_measureOverdraw'] = new cvar("0","");
cvarlist['r_nobind'] = new cvar("0","");
cvarlist['r_nocull'] = new cvar("0","");
cvarlist['r_nocurves'] = new cvar("0","");
cvarlist['r_noFastRestart'] = new cvar("0","");
cvarlist['r_noportals'] = new cvar("0","");
cvarlist['r_norefresh'] = new cvar("0","");
cvarlist['r_novis'] = new cvar("0","");
cvarlist['r_offsetfactor'] = new cvar("-1","");
cvarlist['r_offsetunits'] = new cvar("-2","");
cvarlist['r_overbrightbits'] = new cvar("1","Ambient lighting of local objects only: anything added to a map like players, ammo and weapons. (Works best with vertex enabled) [values: 0 to 4]");
cvarlist['r_picmip'] = new cvar("0","Lowers texture quality by blending out colors. (Lowering does not increase FPS if you have more than 32MB videoram.)");
cvarlist['r_portalOnly'] = new cvar("0","");
cvarlist['r_postProcessActive'] = new cvar("0","[READ ONLY]");
cvarlist['r_primitives'] = new cvar("0","");
cvarlist['r_printShaders'] = new cvar("1","");
cvarlist['r_railcorewidth'] = new cvar("6","Diameter of railgun core effect in pixels.");
cvarlist['r_railsegmentlength'] = new cvar("32","Lenght of a single section of railgun effect in pixels.");
cvarlist['r_railwidth'] = new cvar("128","Diameter of railgun beam effect in pixels, as well as the impact effect.");
cvarlist['r_roundImagesDown'] = new cvar("1","");
cvarlist['r_saveFontData'] = new cvar("0","");
cvarlist['r_showcluster'] = new cvar("0","");
cvarlist['r_showImages'] = new cvar("0","");
cvarlist['r_shownormals'] = new cvar("0","");
cvarlist['r_showsky'] = new cvar("0","");
cvarlist['r_showSmp'] = new cvar("0","");
cvarlist['r_showtris'] = new cvar("0","");
cvarlist['r_simpleMipMaps'] = new cvar("1","");
cvarlist['r_singleShader'] = new cvar("0","");
cvarlist['r_skipBackEnd'] = new cvar("0","");
cvarlist['r_smp'] = new cvar("0","[READ ONLY]");
cvarlist['r_speeds'] = new cvar("0","");
cvarlist['r_stencilbits'] = new cvar("0","");
cvarlist['r_stereo'] = new cvar("0","");
cvarlist['r_subdivisions'] = new cvar("4","Controls curved surfaces. Can be 4 or 80.");
cvarlist['r_swapinterval'] = new cvar("0","Forces vsync, use in combination with r_displayrefresh. (Only usefull with CRT monitors)");
cvarlist['r_texturebits'] = new cvar("32","");
cvarlist['r_texturemode'] = new cvar("GL_LINEAR_MIPMAP_NEAREST","");
cvarlist['r_uiFullScreen'] = new cvar("0","");
cvarlist['r_verbose'] = new cvar("0","");
cvarlist['r_vertexlight'] = new cvar("0","Vertex lighting instead of lightmap.");
cvarlist['r_znear'] = new cvar("4","");
cvarlist['rate'] = new cvar("25000","Controls packets so that your downstream connection bandwidth does not get saturated. (Max bytes per second)");
cvarlist['rconAddress'] = new cvar("","");
cvarlist['rconPassword'] = new cvar("","Password required to give rcon commands.");
cvarlist['roundlimit'] = new cvar("","Sets the roundlimit in round-based games like CA.");
cvarlist['roundtimelimit'] = new cvar("180","Amount of time a CA round lasts.");
/* ]\s */
cvarlist['s_ambient'] = new cvar("1","Ambient sound effects. (s_restart or a map load required for change to take effect)");
cvarlist['s_doppler'] = new cvar("1","Doppler sound effects. (bypassing sounds)");
cvarlist['s_initsound'] = new cvar("1","");
cvarlist['s_mixahead'] = new cvar("0.140","");
cvarlist['s_mixPreStep'] = new cvar("0.05","");
cvarlist['s_musicvolume'] = new cvar("0.25","Volume of the ingame background music.");
cvarlist['s_show'] = new cvar("0","[CHEAT PROTECTED]");
cvarlist['s_testsound'] = new cvar("0","[CHEAT PROTECTED]");
cvarlist['s_volume'] = new cvar("0.7","Volume of the game effects.");
cvarlist['scr_conspeed'] = new cvar("3","Speed of opening and closing console.");
cvarlist['sensitivity'] = new cvar("5","Mouse sensitivity.");
cvarlist['server1'] = new cvar("","");
cvarlist['server10'] = new cvar("","");
cvarlist['server11'] = new cvar("","");
cvarlist['server12'] = new cvar("","");
cvarlist['server13'] = new cvar("","");
cvarlist['server14'] = new cvar("","");
cvarlist['server15'] = new cvar("","");
cvarlist['server16'] = new cvar("","");
cvarlist['server2'] = new cvar("","");
cvarlist['server3'] = new cvar("","");
cvarlist['server4'] = new cvar("","");
cvarlist['server5'] = new cvar("","");
cvarlist['server6'] = new cvar("","");
cvarlist['server7'] = new cvar("","");
cvarlist['server8'] = new cvar("","");
cvarlist['server9'] = new cvar("","");
cvarlist['session0'] = new cvar("3 300 1 0 0 0 0 0","");
cvarlist['session1'] = new cvar("3 598 1 0 0 0 0 0","");
cvarlist['session2'] = new cvar("3 598 1 0 0 0 0 0","");
cvarlist['session3'] = new cvar("3 598 1 0 0 0 0 0","");
cvarlist['session4'] = new cvar("3 796 1 0 0 0 0 0","");
cvarlist['session5'] = new cvar("3 796 1 0 0 0 0 0","");
cvarlist['session6'] = new cvar("3 829 1 0 0 0 0 0","");
cvarlist['session7'] = new cvar("3 829 1 0 0 0 0 0","");
cvarlist['session8'] = new cvar("3 10003 1 0 0 0 0 0","");
cvarlist['sex'] = new cvar("male","The Gender of the player.");
cvarlist['showdrop'] = new cvar("","");
cvarlist['showpackets'] = new cvar("","");
cvarlist['snaps'] = new cvar("30","How many gameworld updates you receive from the server.");
cvarlist['sv_allowDownload'] = new cvar("0","");
cvarlist['sv_allowGetInfo'] = new cvar("0","");
cvarlist['sv_cheats'] = new cvar("0","Allows various cheat and debug cvars to be set [READONLY]");
cvarlist['sv_errorExit'] = new cvar("1","");
cvarlist['sv_floodProtect'] = new cvar("1","");
cvarlist['sv_fps'] = new cvar("30","(min 10, max 40)");
cvarlist['sv_gtid'] = new cvar("","");
cvarlist['sv_hostname'] = new cvar("noname","");
cvarlist['sv_idleExit'] = new cvar("120","");
cvarlist['sv_keywords'] = new cvar("","");
cvarlist['sv_killserver'] = new cvar("0","");
cvarlist['sv_lanForceRate'] = new cvar("1","");
cvarlist['sv_mapChecksum'] = new cvar("1052210886 (for qzctf1)","");
cvarlist['sv_mapname'] = new cvar("","");
cvarlist['sv_maxclients'] = new cvar("8","");
cvarlist['sv_maxPing'] = new cvar("0","");
cvarlist['sv_maxRate'] = new cvar("0","");
cvarlist['sv_minPing'] = new cvar("0","");
cvarlist['sv_monkeysOnly'] = new cvar("0","[WRITE PROTECTED]");
cvarlist['sv_padPackets'] = new cvar("0","(min 0, max 0)");
cvarlist['sv_pakNames'] = new cvar("","List of all paks in baseq3 folder.");
cvarlist['sv_paks'] = new cvar("","");
cvarlist['sv_paused'] = new cvar("0","default = 0, but value = 1 and [READ ONLY]");
cvarlist['sv_privateClients'] = new cvar("0","Amount of slots reserved for private players.");
cvarlist['sv_privatePassword'] = new cvar("","Password that allows you to take up a private slot on a server.");
cvarlist['sv_punkbuster'] = new cvar("1","Enables the anti cheat system. [READ ONLY]");
cvarlist['sv_pure'] = new cvar("1","[READ ONLY]");
cvarlist['sv_quitOnEmpty'] = new cvar("0","");
cvarlist['sv_quitOnExitLevel'] = new cvar("0","");
cvarlist['sv_ranked'] = new cvar("0","");
cvarlist['sv_reconnectlimit'] = new cvar("3","");
cvarlist['sv_referencedPakNames'] = new cvar("","");
cvarlist['sv_referencedPaks'] = new cvar("","");
cvarlist['sv_running'] = new cvar("0","");
cvarlist['sv_serverid'] = new cvar("0","");
cvarlist['sv_showloss'] = new cvar("0","");
cvarlist['sv_skillRating'] = new cvar("0","");
cvarlist['sv_timeout'] = new cvar("40","");
cvarlist['sv_warmupReadyPercentage'] = new cvar("0.51","");
cvarlist['sv_wwwBaseURL'] = new cvar("","");
cvarlist['sv_wwwDlDisconnected'] = new cvar("0","");
cvarlist['sv_wwwDownload'] = new cvar("0","");
cvarlist['sv_wwwFallbackURL'] = new cvar("","");
cvarlist['sv_zombietime'] = new cvar("2","");
cvarlist['sys_cpuid'] = new cvar("35","");
cvarlist['sys_cpustring'] = new cvar("detect","Intel Pentium III");
/* ]\t */
cvarlist['team_headmodel'] = new cvar("crash/default","The model for the head of your team players."); // does not work
cvarlist['team_model'] = new cvar("crash/default","The model of your team players."); // does not work
cvarlist['timedemo'] = new cvar("0","Run a demo as a benchmark to see fps result.");
cvarlist['timegraph'] = new cvar("0","[CHEAT PROTECTED]");
cvarlist['timelimit'] = new cvar("0","Sets the timelimit for a map or round.");
cvarlist['timescale'] = new cvar("1","Higher values set while playing back demo files will result in the demo fast forwarding at a rate times the timescale value. [CHEAT PROTECTED]");
/* ]\u */
cvarlist['ui_actualNetGametype'] = new cvar("3","");
cvarlist['ui_bigfont'] = new cvar("0.4","Hudfont size of health, armor and ammo counters");
cvarlist['ui_blueteam'] = new cvar("Stroggs","");
cvarlist['ui_blueteam1'] = new cvar("","");
cvarlist['ui_blueteam2'] = new cvar("","");
cvarlist['ui_blueteam3'] = new cvar("","");
cvarlist['ui_blueteam4'] = new cvar("","");
cvarlist['ui_blueteam5'] = new cvar("","");
cvarlist['ui_browserGameType'] = new cvar("0","");
cvarlist['ui_browserMaster'] = new cvar("0","");
cvarlist['ui_browserShowEmpty'] = new cvar("1","");
cvarlist['ui_browserShowFull'] = new cvar("1","");
cvarlist['ui_browserSortKey'] = new cvar("4","");
cvarlist['ui_captureLimit'] = new cvar("5","");
cvarlist['ui_cdkeychecked'] = new cvar("0","[READ ONLY]");
//REMOVED cvarlist['ui_clantagpos'] = new cvar("1","The position of the clantag: 0 = after name, 1 = before name.");
cvarlist['ui_ctf_capturelimit'] = new cvar("8","");
cvarlist['ui_ctf_friendly'] = new cvar("0","");
cvarlist['ui_ctf_timelimit'] = new cvar("30","");
cvarlist['ui_currentMap'] = new cvar("0","");
cvarlist['ui_currentNetMap'] = new cvar("0","");
cvarlist['ui_currentOpponent'] = new cvar("0","");
cvarlist['ui_currentTier'] = new cvar("0","");
cvarlist['ui_debug'] = new cvar("0","");
cvarlist['ui_dedicated'] = new cvar("0","");
cvarlist['ui_ffa_fraglimit'] = new cvar("20","");
cvarlist['ui_ffa_timelimit'] = new cvar("0","");
cvarlist['ui_findPlayer'] = new cvar("Sarge","");
cvarlist['ui_fragLimit'] = new cvar("10","");
cvarlist['ui_gametype'] = new cvar("3","");
cvarlist['ui_initialized'] = new cvar("0","");
cvarlist['ui_joinGametype'] = new cvar("0","");
cvarlist['ui_lastServerRefresh_0'] = new cvar("","");
cvarlist['ui_lastServerRefresh_1'] = new cvar("","");
cvarlist['ui_lastServerRefresh_2'] = new cvar("","");
cvarlist['ui_lastServerRefresh_3'] = new cvar("","");
cvarlist['ui_mapIndex'] = new cvar("0","Default 0, but value on 1.");
cvarlist['ui_menuFiles'] = new cvar("ui/menus.txt","");
cvarlist['ui_mousePitch'] = new cvar("1","");
cvarlist['ui_netGametype'] = new cvar("3","");
cvarlist['ui_netSource'] = new cvar("0","");
cvarlist['ui_new'] = new cvar("0","");
cvarlist['ui_opponentName'] = new cvar("Stroggs","");
cvarlist['ui_q3model'] = new cvar("1","");
cvarlist['ui_recordSPDemo'] = new cvar("","");
cvarlist['ui_recordSPDemoName'] = new cvar("","");
cvarlist['ui_redteam'] = new cvar("","");
cvarlist['ui_redteam1'] = new cvar("","");
cvarlist['ui_redteam2'] = new cvar("","");
cvarlist['ui_redteam3'] = new cvar("","");
cvarlist['ui_redteam4'] = new cvar("","");
cvarlist['ui_redteam5'] = new cvar("","");
cvarlist['ui_scoreAccuracy'] = new cvar("","");
cvarlist['ui_scoreAssists'] = new cvar("","");
cvarlist['ui_scoreBase'] = new cvar("","");
cvarlist['ui_scoreCaptures'] = new cvar("","");
cvarlist['ui_scoreDefends'] = new cvar("","");
cvarlist['ui_scoreExcellents'] = new cvar("","");
cvarlist['ui_scoreGauntlets'] = new cvar("","");
cvarlist['ui_scoreImpressives'] = new cvar("","");
cvarlist['ui_scorePerfect'] = new cvar("","");
cvarlist['ui_scoreScore'] = new cvar("","");
cvarlist['ui_scoreShutoutBonus'] = new cvar("","");
cvarlist['ui_scoreSkillBonus'] = new cvar("","");
cvarlist['ui_scoreTeam'] = new cvar("","");
cvarlist['ui_scoreTime'] = new cvar("","");
cvarlist['ui_scoreTimeBonus'] = new cvar("","");
cvarlist['ui_serverStatusTimeOut'] = new cvar("","");
cvarlist['ui_singlePlayerActive'] = new cvar("","");
cvarlist['ui_smallfont'] = new cvar("0.25","Hudfont manipulation");
cvarlist['ui_spSelection'] = new cvar("","");
cvarlist['ui_team_fraglimit'] = new cvar("","");
cvarlist['ui_team_friendly'] = new cvar("","");
cvarlist['ui_team_timelimit'] = new cvar("","");
cvarlist['ui_teamArenaFirstRun'] = new cvar("","");
cvarlist['ui_teamName'] = new cvar("","");
cvarlist['ui_tourney_fraglimit'] = new cvar("","");
cvarlist['ui_tourney_timelimit'] = new cvar("","");
cvarlist['ui_version'] = new cvar("","");
cvarlist['ui_voteactive'] = new cvar("","");
cvarlist['username'] = new cvar("","");
/* ]\v */
cvarlist['version'] = new cvar("","Prints the current version of the Quake Live binary.");
cvarlist['vid_xpos'] = new cvar("","");
cvarlist['vid_ypos'] = new cvar("","");
cvarlist['viewlog'] = new cvar("","");
cvarlist['vm_cgame'] = new cvar("","");
cvarlist['vm_game'] = new cvar("","");
cvarlist['vm_ui'] = new cvar("","");
/* ]\w */
cvarlist['web_botskill'] = new cvar("","");
cvarlist['web_configVersion'] = new cvar("","");
cvarlist['win_hinstance'] = new cvar("","");
cvarlist['win_wndproc'] = new cvar("","");
cvarlist['winkey_disable'] = new cvar("0","Disables the Windows key.");
/* ]\x */
/* ]\y */
/* ]\z */

/* COMMAND LIST */
cmdlist['addbot'] = new cmd("Ads a bot to a practice game. Usage: Addbot <botname> [skill 1-5] [team] [msec delay] [altname]","/addbot crash 4 red 0 HotStuff");
cmdlist['arena'] = new cmd("");
cmdlist['bind'] = new cmd("Used to bind a key to an action","/bind w \"+forward\"");
cmdlist['bindlist'] = new cmd("Shows the current binds.");
cmdlist['callvote'] = new cmd("Calls a vote, type \"/callvote\" and <enter> in console to see a list of options.","/callvote map qzctf2");
cmdlist['centerview'] = new cmd("Centers the view.");
cmdlist['changevectors'] = new cmd("");
cmdlist['cinematic'] = new cmd("");
cmdlist['clear'] = new cmd("Clears the console");
cmdlist['clearcvar'] = new cmd("");
cmdlist['clientinfo'] = new cmd("");
cmdlist['clientkick'] = new cmd("");
cmdlist['cmd'] = new cmd("");
cmdlist['cmdlist'] = new cmd("Shows a list of available commands.");
cmdlist['condump'] = new cmd("Dumps the content of the console to a file","/condump dump.txt");
cmdlist['configstrings'] = new cmd("");
cmdlist['confirmorder'] = new cmd("");
cmdlist['connect'] = new cmd("Connects to a server.");
cmdlist['cvar_restart'] = new cmd("Restarts the cvar system.");
cmdlist['cvarlist'] = new cmd("Shows a list of available cvars.");
cmdlist['demo'] = new cvar("Plays a demo","/demo demoname");
cmdlist['denyorder'] = new cmd("");
cmdlist['devmap'] = new cmd("");
cmdlist['dir'] = new cmd("Lists a folder.");
cmdlist['disconnect'] = new cvar("Disconnects from server.","/disconnect");
cmdlist['dropflag'] = new cmd("Ingame command to drop the flag so another team member can pick it up.","");
cmdlist['dropweapon'] = new cmd("Ingame command to drop the current weapon you're holding so another player can pick it up.","");
cmdlist['dumpuser'] = new cmd("");
cmdlist['echo'] = new cmd("Prints a line to the screen.","echo \"For my eyes only\"");
cmdlist['exec'] = new cmd("Executes a locally stored config. (Typing the cfg extension is nor required.)","/exec autoexec");
cmdlist['fdir'] = new cmd("");
cmdlist['follow'] = new cmd("Spectate a certain player using his connection number.");
cmdlist['fs_openedList'] = new cmd("");
cmdlist['fs_referencedList'] = new cmd("");
cmdlist['gfxinfo'] = new cmd("Shows graphics info.");
cmdlist['give'] = new cmd("Gives one or more items. [CHEAT]");
cmdlist['globalservers'] = new cmd("");
cmdlist['god'] = new cmd("Enables god mode. [CHEAT]");
cmdlist['imagelist'] = new cmd("");
cmdlist['in_restart'] = new cmd("Restarts the input system (Mouse, Keyboard)");
cmdlist['kick'] = new cmd("Kick a client by connection number.");
cmdlist['kill'] = new cmd("Kills the players (Disabled)");
cmdlist['killserver'] = new cmd("");
cmdlist['levelshot'] = new cmd("");
cmdlist['listcmds'] = new cmd("Lists available commands.");
cmdlist['listcvars'] = new cmd("Lists available cvars.");	
cmdlist['loaddeferred'] = new cmd("");
cmdlist['loadhud'] = new cmd("");
cmdlist['localservers'] = new cmd("");
cmdlist['map'] = new cmd("Loads the chosen map.");
cmdlist['map_restart'] = new cmd("Restarts the active map.");
cmdlist['meminfo'] = new cmd("");
cmdlist['messagemode'] = new cmd("Selects public chat","/bind \"t\" \"messagemode\"");
cmdlist['messagemode2'] = new cmd("Selects team chat","/bind \"y\" \"messagemode2\"");
cmdlist['messagemode3'] = new cmd("");
cmdlist['messagemode4'] = new cmd("");
cmdlist['messagemode5'] = new cmd("Selects reply chat");
cmdlist['midiinfo'] = new cmd("");
cmdlist['modelist'] = new cmd("Shows the available resolutions.");
cmdlist['modellist'] = new cmd("Shows the available player models.");
cmdlist['music'] = new cmd("");
cmdlist['net_restart'] = new cmd("");
cmdlist['nextframe'] = new cmd("Shows next animation on test model.");
cmdlist['nextOrder'] = new cmd("");
cmdlist['nextskin'] = new cmd("");
cmdlist['nextTeamMember'] = new cmd("");
cmdlist['noclip'] = new cmd("Disables collision detection for the player. [CHEAT]");
cmdlist['notarget'] = new cmd("Disables the player as a target. [CHEAT]");
cmdlist['path'] = new cmd("Lists search paths.");
cmdlist['ping'] = new cmd("");
cmdlist['play'] = new cmd("Plays a demo.");
cmdlist['prevframe'] = new cmd("Shows previous animation frame on test model.");
cmdlist['prevskin'] = new cmd("");
cmdlist['prevTeamMember	'] = new cmd("");
cmdlist['quit'] = new cmd("Exits the game, returns to browser","/quit");
cmdlist['ragequit'] = new cmd("Exits the game, returns to the browser, shows the message \"Player ragequits\" ingame.","/ragequit");
cmdlist['rcon'] = new cmd("Sends remote console command to the server.");
cmdlist['readyup'] = new cmd("Toggle your ready status. If you're ready, you indicate to others that you are willing to stop the warmup and proceed to the actual match.","/bind \"F3\" \"readyup\"");
cmdlist['reconnect'] = new cmd("Reconnects to the last server you tried to connect to.");
cmdlist['record'] = new cmd("Starts recording a demo.");
cmdlist['reply'] = new cmd("");
cmdlist['reset'] = new cmd("Resets a cvar.");
cmdlist['s_info'] = new cmd("");
cmdlist['s_list'] = new cmd("");
cmdlist['s_stop'] = new cmd("");
cmdlist['say'] = new cmd("Says a message to everyone else.","/say Hi all!")
cmdlist['say_team'] = new cmd("Says a message to teammembers only.","/say_team Attacking now!");
cmdlist['scoresdown'] = new cmd("");
cmdlist['scoresup'] = new cmd("");
cmdlist['screenshot'] = new cmd("Takes a TGA screenshot.","/bind \"f11\" \"screenshot\"");
cmdlist['screenshotjpeg'] = new cmd("Takes a JPG screenshot instead of a TGA.","/bind \"f11\" \"screenshotjpeg\""); 
cmdlist['sectorlist'] = new cmd("");
cmdlist['serverinfo'] = new cmd("Shows server info.");
cmdlist['serverstatus'] = new cmd("");
cmdlist['set'] = new cmd("Assigns a value to an existing cvar or creates a new variable that exists until the game is exited.","/set rl \"weapon 5\" (to create an alias for selecting the rocketlauncher: /bind 5 \"vstr rl\")");
cmdlist['seta'] = new cmd("Assigns a value to an existing cvar or creates a new variable that is written to your config, so it is reloaded the next time you start a game, unless it is overwritten by the game itself.","");
//REMOVED cmdlist['sets'] = new cmd("Will enable the server info flag for the cvar, making it appear in the server's public cvar list, which is available with the serverinfo console command.","");
//REMOVED cmdlist['setu'] = new cmd("Will enable the user info flag for the cvar, making it appear in the client's public cvar list, which is available with the clientinfo and dumpuser commands.","");
cmdlist['setviewpos'] = new cmd("Sets the current view position.");
cmdlist['shaderlist'] = new cmd("");
cmdlist['showip'] = new cmd("");
cmdlist['sizedown'] = new cmd("Sizes down the viewing area","");
cmdlist['sizeup'] = new cmd("Sizes up the viewing area","");
cmdlist['skinlist'] = new cmd("");
cmdlist['snd_restart'] = new cmd("Restarts the sound system.");
cmdlist['spdevmap'] = new cmd("");
cmdlist['spec'] = new cmd("follow/cycle through players: fc = carriers, red = red team, blue = blue team.");
//REMOVED cmdlist['splose'] = new cmd("");
cmdlist['spmap'] = new cmd("");
//REMOVED cmdlist['spwin'] = new cmd("");
cmdlist['startorbit'] = new cmd("");
cmdlist['stats'] = new cmd("");
cmdlist['status'] = new cmd("");
cmdlist['stoprecord'] = new cmd("Stops recording a demo","");
cmdlist['systeminfo'] = new cmd("");
cmdlist['taskCamp'] = new cmd("");
cmdlist['taskDefense'] = new cmd("");
cmdlist['taskEscort'] = new cmd("");
cmdlist['taskFollow'] = new cmd("");
cmdlist['taskOffense'] = new cmd("");
cmdlist['taskOwnFlag'] = new cmd("");
cmdlist['taskPatrol'] = new cmd("");
cmdlist['taskRetrieve'] = new cmd("");
cmdlist['taskSuicide'] = new cmd("");
cmdlist['tauntDeathInsult'] = new cmd("");
cmdlist['tauntGauntlet'] = new cmd("");
cmdlist['tauntKillInsult'] = new cmd("");
cmdlist['tauntPraise'] = new cmd("");
cmdlist['tauntTaunt'] = new cmd("");
cmdlist['tcmd'] = new cmd("");
cmdlist['team'] = new cmd("Joins a team. \"red\" and \"blue\" make you join the playing teams, \"s\" makes you join the spectators. (You can swap every 5 seconds)","team red");
cmdlist['teamtask'] = new cmd("");
cmdlist['tell'] = new cmd("","/tell_buddy name \"text here\"");
cmdlist['tell_attacker'] = new cmd("");
cmdlist['tell_buddy'] = new cmd("Tells a message from ingame to someone on your friendslist.","/tell_buddy name \"text here\"");
cmdlist['tell_target'] = new cmd("");
//REMOVED cmdlist['testgun'] = new cmd("");
cmdlist['testmodel'] = new cmd("");
cmdlist['timein'] = new cmd("Pauses the game for 30 seconds. (In a competition server.)");
cmdlist['timeout'] = new cmd("Resumes the game after a timein was called. (In a competition server.)");
cmdlist['toggle'] = new cmd("Toggles a cvar.");
cmdlist['toggleconsole'] = new cmd("Opens or closes the console.");
cmdlist['togglemenu'] = new cmd("Toggles the menu.");
cmdlist['touchfile'] = new cmd("");
cmdlist['unbind'] = new cmd("Unbinds the specified key.","/unbind a");
cmdlist['unbindall'] = new cmd("Unbinds all current keybinds.","/unbindall");
cmdlist['vid_restart'] = new cmd("Restarts the graphics rendering system.");
cmdlist['viewpos'] = new cmd("");
cmdlist['vminfo'] = new cmd("");
cmdlist['vmprofile'] = new cmd("");
cmdlist['vosay'] = new cmd("");
cmdlist['vosay_team'] = new cmd("");
cmdlist['vote'] = new cmd("Gives your vote: yes or no.","/vote yes");
cmdlist['votell'] = new cmd("");
cmdlist['vsay'] = new cmd("Voice chat to all players.");
cmdlist['vsay_team'] = new cmd("Voice chat to teammembers only.");
cmdlist['vstr'] = new cmd("Used to execute the contents of a CVAR, treating its value as a command.","/vstr rl would select the rocketlauncher and say \"RL\" in the chat if you have set rl earlier to it with set rl \"weapon 5;say RL\"");
cmdlist['vtaunt'] = new cmd("");
cmdlist['vtell'] = new cmd("");
cmdlist['vtell_attacker'] = new cmd("");
cmdlist['vtell_target'] = new cmd("");
cmdlist['wait'] = new cmd("Delays remaining buffered commands one or more frames.");
cmdlist['weapnext'] = new cmd("Selects the next weapon from available weapons. (Gauntlet and weapons without ammo are skipped.)","/bind \"MWHEELUP\" \"weapprev\"");
cmdlist['weapon'] = new cmd("Given the weapon number, selects that weapon.","/bind \"2\" \"weapon 2\"");
cmdlist['weapprev'] = new cmd("Selects the previous weapon from available weapons. (Gauntlet and weapons without ammo are skipped.)","/bind \"MWHEELDOWN\" \"weapprev\"");
cmdlist['writeconfig'] = new cmd("Writes a config file of your current settings. writeconfig myconfig.cfg");

/* extra titles */
// TITLELIST: add additional fields that need a title...
titlelist['cg_forceteammodel_choice'] = new infotitle("Choosing a model does not yet apply it. Check the box to enforce the model selection.");
titlelist['cg_forceenemymodel_choice'] = new infotitle("Choosing a model does not yet apply it. Check the box to enforce the model selection.");
titlelist['cg_forceredteammodel_choice'] = new infotitle("Choosing a model does not yet apply it. Check the box to enforce the model selection.");
titlelist['cg_forceblueteammodel_choice'] = new infotitle("Choosing a model does not yet apply it. Check the box to enforce the model selection.");
titlelist['cg_drawcrosshair_choice'] = new infotitle("cg_drawcrosshair [\"5\"] Your crosshair.");
titlelist['cfg_colorbar'] = new infotitle("cg_crosshaircolor [\"7\"] (Color of your crosshair, unless cg_crosshairhealth is set to 1)");
titlelist['cfg_crosshair_1'] = new infotitle("set cg_drawcrosshair 1");
titlelist['cfg_crosshair_2'] = new infotitle("set cg_drawcrosshair 2");
titlelist['cfg_crosshair_3'] = new infotitle("set cg_drawcrosshair 3");
titlelist['cfg_crosshair_4'] = new infotitle("set cg_drawcrosshair 4");
titlelist['cfg_crosshair_5'] = new infotitle("set cg_drawcrosshair 5");
titlelist['cfg_crosshair_6'] = new infotitle("set cg_drawcrosshair 6");
titlelist['cfg_crosshair_7'] = new infotitle("set cg_drawcrosshair 7");
titlelist['cfg_crosshair_8'] = new infotitle("set cg_drawcrosshair 8");
titlelist['cfg_crosshair_9'] = new infotitle("set cg_drawcrosshair 9");
titlelist['cfg_crosshair_10'] = new infotitle("set cg_drawcrosshair 10");
titlelist['cfg_musicvolumeindicator'] = new infotitle("Volume of the ingame background music.");
titlelist['cfg_volumeindicator'] = new infotitle("Volume of the game effects.");
titlelist['cfg_sensitivityindicator'] = new infotitle("Mouse sensitivity.");
titlelist['cfg_myawindicator'] = new infotitle("Horizontal mouse speed finetune.");
titlelist['cfg_mpitchindicator'] = new infotitle("Vertical mouse speed finetune.");
titlelist['cfg_m_yaw_invert'] = new infotitle("Inverts the X-axis direction.");
titlelist['cfg_m_pitch_invert'] = new infotitle("Inverts the Y-axis direction.");
titlelist['cfg_truelgindicator'] = new infotitle("The amount of how much the lightning beam sways.");
titlelist['bind_screenshotboth'] = new infotitle("Take a screenshot in both formats. [bind KEY \"screenshot; screenshotjpeg\"]");
titlelist['bind_taunt'] = new infotitle(cmdlist['tauntPraise'].explanation);

/* scripts */
// scripts object created above
scripts['toggledemo'] = new script('set demoon "record; set toggledemo vstr demooff"\nset demooff "stoprecord; set toggledemo vstr demoon"\nset toggledemo "vstr demoon"\nbind #key# "vstr toggledemo"',"Demo script to toggle recording with 1 keybind.");
function setAdvWeap() {
	var returnstring = "";
	for (var i = 1; i < 14; i++) {
		if (i != 10) {
			// set all weapon aliases +parameters
			returnstring += "\nset " + weaplist[i].abbr + " \"";
			// weapon alias
			returnstring += "weapon " + i;
			// crosshair
			if ($("#cfg_weapon" + i + "_crosshair")[0].selectedIndex == 0) { // take master
				returnstring += ";cg_drawcrosshair " + $("#cg_drawcrosshair").val();
			} else { // take chosen value
				returnstring += ";cg_drawcrosshair " + $("#cfg_weapon" + i + "_crosshair option:selected").val();
			}
			// crosshairsize
			if ($("#cfg_weapon" + i + "_crosshairsize").val() == "") { // take master
				returnstring += ";cg_crosshairsize " + $("#cg_crosshairsize").val();
			} else { // take chosen value
				returnstring += ";cg_crosshairsize " + $("#cfg_weapon" + i + "_crosshairsize").val();
			}
			// crosshaircolor
			if ($("#cfg_weapon" + i + "_crosshaircolor")[0].selectedIndex == 0) { // take master
				returnstring += ";cg_crosshaircolor " + $("#cg_crosshaircolor").val();
			} else { // take chosen value
				returnstring += ";cg_crosshaircolor " + $("#cfg_weapon" + i + "_crosshaircolor option:selected").val();
			}
			// sensitivity
			if ($("#cfg_weapon" + i + "_sensitivity").val() == "") { // take master
				returnstring += ";sensitivity " + $("#sensitivity").val();
			} else { // take chosen value
				returnstring += ";sensitivity " + $("#cfg_weapon" + i + "_sensitivity").val();
			}
			// drawgun
			if ($("#cfg_weapon" + i + "_drawgun")[0].selectedIndex == 0) { // take master
				returnstring += ";cg_drawgun " + $("#cg_drawgun option:selected").val();
			} else { // take chosen value
				returnstring += ";cg_drawgun " + $("#cfg_weapon" + i + "_drawgun options:selected").val();
			}
			// zoomfov
			if ($("#cfg_weapon" + i + "_zoomfov").val() == "") { // take master
				returnstring += ";cg_zoomfov " + $("#cg_zoomfov").val();
			} else { // take chosen value
				returnstring += ";cg_zoomfov " + $("#cfg_weapon" + i + "_zoomfov").val();
			}
			returnstring += "\"";
		}
	}
	for (var i = 1; i < 14; i++) {
		if (i != 10) {
			// construct the binds
			if ($("#bind_weapon" + i + "_bind1").val() != "") {
				returnstring += "\nbind " + $("#bind_weapon" + i + "_bind1").val() +  " \"vstr " + weaplist[i].abbr + "\"";
			}
			if ($("#bind_weapon" + i + "_bind2").val() != "") {
				returnstring += "\nbind " + $("#bind_weapon" + i + "_bind2").val() +  " \"vstr " + weaplist[i].abbr + "\"";
			}
		}
	}
	return returnstring;
}
scripts['advancedweapon'] = new script(setAdvWeap,"Advanced weapon control script.");
scripts['screenshotboth'] = new script('bind #key# "screenshot;screenshotjpeg"',"Take a screenshot in both formats: jpg and tga.");

/* binds & toggles */
bindlist['menu'] = new keybind("togglemenu",cmdlist['togglemenu'].explanation);
bindlist['console'] = new keybind("toggleconsole",cmdlist['toggleconsole'].explanation);
bindlist['scores'] = new keybind("+scores","Toggles the scoreboard.");
bindlist['vote_yes'] = new keybind("vote yes","Vote yes on the currently active vote.");
bindlist['vote_no'] = new keybind("vote no","Vote no on the currently active vote.");
bindlist['readyup'] = new keybind("readyup",cmdlist['readyup'].explanation);
bindlist['fire'] = new keybind("+attack","Fires a weapon.");
bindlist['zoom'] = new keybind("+zoom","Zooms your sight.");
bindlist['previous_weapon'] = new keybind("weapprev",cmdlist['weapprev'].explanation);
bindlist['next_weapon'] = new keybind("weapnext",cmdlist['weapnext'].explanation);
bindlist['use'] = new keybind("+button2","Uses/Activates an item. (Medkit, Kamikaze, ...)");
bindlist['dropweapon'] = new keybind("dropweapon",cmdlist['dropweapon'].explanation);
bindlist['dropflag'] = new keybind("dropflag",cmdlist['dropflag'].explanation);
bindlist['timein'] = new keybind("timein",cmdlist['timein'].explanation);
bindlist['timeout'] = new keybind("timeout",cmdlist['timeout'].explanation);
bindlist['screenshot'] = new keybind("screenshot",cmdlist['record'].explanation);
bindlist['start_record'] = new keybind("record",cmdlist['record'].explanation);
bindlist['stop_record'] = new keybind("stoprecord",cmdlist['stoprecord'].explanation);
bindlist['forward'] = new keybind("+forward","Move forward.");
bindlist['back'] = new keybind("+back","Move backward.");
bindlist['moveleft'] = new keybind("+moveleft","Strafe left.");
bindlist['moveright'] = new keybind("+moveright","Strafe right.");
bindlist['moveup'] = new keybind("+moveup","Jump.");
bindlist['movedown'] = new keybind("+movedown","Crouch/duck.");
bindlist['speed'] = new keybind("+speed","Walk.");
bindlist['say'] = new keybind("messagemode",cmdlist['messagemode'].explanation);
bindlist['say_team'] = new keybind("messagemode2",cmdlist['messagemode2'].explanation);
bindlist['chat'] = new keybind("+chat","Show chat history");
bindlist['taunt'] = new keybind("+button3","Makes your character taunt/cheer.");
bindlist['team_red'] = new keybind("team red","Switch to the red team.");
bindlist['team_blue'] = new keybind("team blue","Switch to the blue team.");
bindlist['spectate'] = new keybind("team s","Join the spectators.");
bindlist['sizedown'] = new keybind("sizedown",cmdlist['sizedown'].explanation);
bindlist['sizeup'] = new keybind("sizeup",cmdlist['sizeup'].explanation);
bindlist['quit'] = new keybind("quit",cmdlist['quit'].explanation);
bindlist['ragequit'] = new keybind("ragequit",cmdlist['ragequit'].explanation);

togglelist['+attack'] = new gametoggle("");
togglelist['+attack'] = new gametoggle("Fires a weapon.");
togglelist['+back'] = new gametoggle("Move backwards.");
togglelist['+button0'] = new gametoggle("");
togglelist['+button1'] = new gametoggle("");
togglelist['+button10'] = new gametoggle("");
togglelist['+button11'] = new gametoggle("");
togglelist['+button12'] = new gametoggle("");
togglelist['+button13'] = new gametoggle("");
togglelist['+button14'] = new gametoggle("");
togglelist['+button2'] = new gametoggle("Use item or powerup.");
togglelist['+button3'] = new gametoggle("");
togglelist['+button4'] = new gametoggle("");
togglelist['+button5'] = new gametoggle("");
togglelist['+button6'] = new gametoggle("");
togglelist['+button7'] = new gametoggle("");
togglelist['+button8'] = new gametoggle("");
togglelist['+button9'] = new gametoggle("");
togglelist['+chat'] = new gametoggle("Show chat history.");
togglelist['+forward'] = new gametoggle("Move forward.");
togglelist['+left'] = new gametoggle("Turn left.");
togglelist['+lookdown'] = new gametoggle("Look down.");
togglelist['+lookup'] = new gametoggle("Look up.");
togglelist['+mlook'] = new gametoggle("Enables mouselook.");
togglelist['+movedown'] = new gametoggle("Duck/Crouch.");
togglelist['+moveleft'] = new gametoggle("Strafe left.");
togglelist['+moveright'] = new gametoggle("Strafe right.");
togglelist['+moveup'] = new gametoggle("Jump.");
togglelist['+right'] = new gametoggle("Turn right.");
togglelist['+scores'] = new gametoggle("Shows scoretable.");
togglelist['+speed'] = new gametoggle("Walk.");
togglelist['+strafe'] = new gametoggle("Enables strafing.");
togglelist['+zoom'] = new gametoggle("Zooms view.");

/* weapons */
weaplist[1] = new weapon("gt","Gauntlet");
weaplist[2] = new weapon("mg","Machine gun");
weaplist[3] = new weapon("sg","Shotgun");
weaplist[4] = new weapon("gl","Grenade launcher");
weaplist[5] = new weapon("rl","Rocket launcher");
weaplist[6] = new weapon("lg","Lightning gun");
weaplist[7] = new weapon("rg","Railgun");
weaplist[8] = new weapon("pg","Plasma rifle");
weaplist[9] = new weapon("bfg","BFG");
weaplist[11] = new weapon("ng","Nailgun");
weaplist[12] = new weapon("ml","Mine launcher");
weaplist[13] = new weapon("cg","Chaingun");

/* MODELS */
var playermodelnames = new Array(
"Anarki_default", "Anarki_red", "Anarki_blue",
"Biker_default", "Biker_Cadavre", "Biker_Hossman", "Biker_Slammer", "Biker_Stroggo", "Biker_red", "Biker_blue",
"Bitterman_default", "Bitterman_red", "Bitterman_blue",
"Bones_default", "Bones_Bones", "Bones_red", "Bones_blue",
"Crash_default", "Crash_bright", "Crash_sport", "Crash_red", "Crash_blue",
"Doom_default", "Doom_Phobos", "Doom_red", "Doom_blue",
"Grunt_default", "Grunt_stripe", "Grunt_red", "Grunt_blue",
"Hunter_default", "Hunter_Harpy", "Hunter_red", "Hunter_blue",
"James_default", "James_red", "James_blue",
"Janet_default", "Janet_red", "Janet_blue",
"Keel_default", "Keel_bright", "Keel_sport", "Keel_red", "Keel_blue",
"Klesk_default", "Klesk_Flisk", "Klesk_red", "Klesk_blue",
"Lucy_default", "Lucy_Angel", "Lucy_red", "Lucy_blue",
"Major_default", "Major_Daemia", "Major_red", "Major_blue", 
"Mynx_default", "Mynx_red", "Mynx_blue",
"Orbb_default", "Orbb_red", "Orbb_blue",
"Ranger_default", "Ranger_Wrack", "Ranger_red", "Ranger_blue",
"Razor_default", "Razor_ID", "Razor_Patriot", "Razor_red", "Razor_blue",
"Sarge_default", "Sarge_Krusade", "Sarge_Roderic", "Sarge_red", "Sarge_blue",
"Slash_default", "Slash_Grrl", "Slash_Yuriko", "Slash_red", "Slash_blue",
"Sorlag_default", "Sorlag_red", "Sorlag_blue",
"Tankjr_default", "Tankjr_bright", "Tankjr_sport", "Tankjr_red", "Tankjr_blue",
"Uriel_default", "Uriel_Zael", "Uriel_red", "Uriel_blue",
"Visor_default", "Visor_Gorre", "Visor_bright", "Visor_sport", "Visor_red", "Visor_blue",
"Xaero_default", "Xaero_red", "Xaero_blue"
);

function getModelText(model) {
	var modelparts = model.split("_");
	var modelText = "";
	switch (modelparts[1]) {
		case "red" :
		case "blue" :
		case "bright" :
		case "sport" : modeltext = modelparts[0] + " (" + modelparts[1] + ")"; break;
		case "default" : modeltext = modelparts[0]; break;
		default : modeltext = modelparts[1]; break;
	}
	return modeltext;
}

// function to load all skins into a select box
function loadPlayerList(selectid) {
	var s = document.getElementById(selectid);
	// remove the loading option
	s.remove(0);
	// add custom first fields
	
	// add all player models
	var newOption;
	for (var i = 0; i < playermodelnames.length; i++) {
		newOption = document.createElement('option');
		newOption.value = playermodelnames[i];
		newOption.text = getModelText(playermodelnames[i]);
		// append the newly created option element
		try {
			s.add(newOption,null); // standards, non-IE
		} catch(exception) {
			s.add(newOption);
		}
	}
}
