Quake II console commands and variables

OpenQuake Organization

Quake2 CVar Descriptions
Drafted by: Brandon Reinhart Additional Info: Seth Galbraith

console variables, console commands.
208 CVars.  Quake2 3.05 x86 Nov 30 1997 RELEASE

Use the command 'cvarlist' to view all the console variables
available.

Console variables flag key:

* CVAR_ARCHIVE    Will be saved in vars.rc
U CVAR_USERINFO   Added to userinfo when changed
S CVAR_SERVERINFO Added to serverinfo when changed
- CVAR_NOSET      Can't be changed from console
                  but can be set from the command line
L CVAR_LATCH      Save changes until server restart

Key to arugment types:

argument - Unknown argument type. This argument could be a string.
int      - A plain old integer.
float    - Your typical floating point number.
boolean  - Argument can be a 1 for true or a 0 for false.
switch   - Argument is an integer switch.
mapname  - Argument is the name of a Quake2 map.
path     - Argument is a path name
string   - A string.
ip       - An IP number or domain name.


flushmap "argument"

     Unknown function.
     argument appears to be a string.
     Default value is 0.

map "mapname"

     mapname is the name of the current map.
     There is also a command of the same name.

map_noareas "argument"

     Unknown function.
     argument appears to be a string.
     Default value is 0.

nextserver "mapname"

     mapname is the map to change to on the next level switch?

bob_roll "float"

     Amount of roll to put on weapon bobbing.
     Default value is 0.002.

bob_pitch "float"

     Amount of pitch to put on weapon bobbing.
     Default value is 0.002.

bob_up "float"

     Amount of upward movement to put on weapon bobbing?
     Changing has no effect?
     Default value is 0.005.

run_roll "float"

     Intensity of random roll while runing. 
     Default value is 0.005.

run_pitch "float"

     Intensity of pitch while running.
     Default value is 0.002.

nomonsters "boolean"

     0 = Monsters on
     1 = Monsters off

dm_respawn "switch"

     0 = ???
     1 = ???
     2 = ???
     3???

g_unlimited_ammo "boolean"

     0 = limited ammo
     1 = unlimited ammo

samelevel "boolean"

     0 = Same level off
     1 = Same level on
     If on, completion of deathmatch win criterion will not
     result in a change in map.

noexit "switch"

     0 = Players may exit normally???   
     1 = Players die if exiting??
     2 = ???

maxentities "int"

     Maximum allowable entities per map.
     Must be multiple of 16???
     Default is 1024.

sv_gravity "int"

     Sets default gravity level.  May be negative.
     Default is 800.

sv_maxvelocity "int"

     Maximum rate at which any thing can move in Quake2.
     Default is 2000.

sv_rollangle "int"

     Unknown function.
     Default is 2.

sv_rollspeed "int"

     Unknown function.
     Default is 200.

gun_z "int"
gun_y "int"
gun_x "int"

     Position the gun model.
     Negative is up, right, and out.
     Default is 0,0,0

in_initjoy "boolean"

     Whether or not to initialize/poll the joystick???
     Default is 1.

in_initmouse "boolean"

     Whether or not to initialize/poll the mouse???
     Default is 1.

v_centerspeed "int"

     Unknown function.
     Default is 500.

v_centermove "float"

     Unknown function.
     Default is 0.15.

joy_yawsensitivity "float"
joy_pitchsensitivity "float"
joy_upsensitivity "float"
joy_sidesensitivity "float"
joy_forwardsensitivity "float"
joy_yawthreshold "float"
joy_pitchthreshold "float"
joy_upthreshold "float"
joy_sidethreshold "float"
joy_forwardthreshold "float"
joy_advaxisv "float"
joy_advaxisu "float"
joy_advaxisr "float"
joy_advaxisz "float"
joy_advaxisy "float"
joy_advaxisx "float"
joy_advanced "int"
joy_name "joystick"

     Joystick calibration variables.

m_filter "boolean"

     0 - Mouse filtering disabled.
     1 - Mouse filtering enabled.
     Can help with choppy mouse movements if enabled, but
     seems to make control sluggish.

password "string"

     Server password???
     No default.

rcon_address "ip"

     IP Address to reconnect to if connection fails?
     No default.

cl_timeout "int"

     Timeout a client connection attempt after this many seconds.
     Default is 60.

cl_showmiss "boolean"

     0 - ???
     1 - ???
     Default is 0.

cl_shownet "boolean"

     0 - ???
     1 - ???
     Default is 0.

cl_anglespeedkey "float"

     Unknown function.
     Default is 1.5.

cl_pitchspeed "int"

     Amount of speed to player's pitch.
     Default is 150.

cl_yawspeed "int"

     Amount of speed to player's yaw.
     Default is 140.

cl_sidespeed "int"

     Strafing speed.
     Default is 200.

cl_forwardspeed "int"

     Speed of forward rate of movement.
     Default is 200.

cl_upspeed "int"

     Speed of upward movement.
     Default is 200.

cl_maxfps "int"

     The maximum frames-per-second allowed.
     Why would you want a limit???
     Default is 2000.

cl_predict "boolean"

     0 - Client prediction off.
     1 - Client prediction on.
     Toggles client side prediction. (Can greatly reduce
     the effects of network latency.)
     Default is 0.

cl_autoskins "boolean"

     0 - Don't auto download new skins.
     1 - Autodownload new skins.
     Default is 0.

cl_noskins "boolean"

     0 - Use custom skins.
     1 - Don't use custom skins.
     Default is 0.

cl_footsteps "boolean"

     0 - Don't make footsteps sounds.
     1 - Make footsteps sounds.
     Default is 1.

cl_gun "boolean"

     0 - Hide gun model.
     1 - Show gun model.
     Default is 1.

cl_entities "1"
cl_particles "1"
     cl_lights "1"
     cl_blend "1"
     cl_nodelta "0"
     cd_looptrack "11"
     cd_loopcount "4"
     graphshift "0"
     graphscale "1"
     graphheight "32"
     debuggraph "0"
     timegraph "0"
     netgraph "0"
     scr_printspeed "8"
     scr_centertime "2.5"
     scr_showpause "1"
     scr_showturtle "0"
     scr_conspeed "3"
     cl_stats "0"
     cl_testlights "0"
     cl_testentities "0"
     cl_testparticles "0"
     cl_testblend "0"
     s_wavonly "0"
     s_testsound "0"
     s_show "0"
     s_initsound "1"
     intensity "2"
     scr_drawall "0"
     sw_mode "0"
     cl_stereo "0"
     gl_saturatelighting "0"
     gl_drawbuffer "GL_BACK"
     gl_monolightmap "0"
     gl_playermip "0"
     gl_flashblend "0"
     gl_polyblend "1"
     gl_cull "1"
     gl_clear "0"
     gl_finish "0"
     gl_ztrick "0"
     gl_showtris "0"
     gl_skymip "0"
     gl_picmip "0"
     gl_round_down "1"
     gl_nobind "0"
     gl_dynamic "1"
     gl_shadows "0"
     gl_lightmap "0"
     gl_mode "3"
     gl_bitdepth "0"
     gl_log "0"
     gl_allow_software "0"
     gl_nosubimage "0"
     r_lightlevel "0"
     r_speeds "0"
     r_lerpmodels "1"
     r_nocull "0"
     r_novis "0"
     r_drawworld "1"
     r_drawentities "1"
     r_fullbright "0"
     r_norefresh "0"
     con_notifytime "3"
     sv_noreload "0"
     allow_download "1"
     timedemo "0"
     paused "0"
     showclamp "0"
     zombietime "2"
     timeout "125"
  SL maxclients "1"
  SL cheats "0"
  S  timelimit "0"
  S  fraglimit "0"
  S  dmflags "16"
  SL deathmatch "0"
  SL skill "0"
     rcon_password ""
     showdrop "0"
     showpackets "0"
  S- version "3.05 x86 Nov 30 1997 RELEASE"
   - dedicated "0"
     showtrace "0"
     logfile "0"
     fixedtime "0"
     timescale "1"
     developer "0"
     log_stats "0"
     host_speeds "0"
* S  hostname "noname"
*    vid_ref "gl"
*    vid_xpos "3"
*    vid_ypos "22"
*    vid_gamma "1"
*    sw_stipplealpha "0"
*    s_volume "0.7"
*    s_sounddir "sound"
*    s_khz "22"
*    s_loadas8bit "0"
*    s_mixahead "0.2"
*    s_primary "1"
*    cd_nocd "1"
*    adr0 "209.39.134.3"
*    adr1 ""
*    adr2 ""
*    adr3 ""
*    adr4 ""
*    adr5 ""
*    adr6 ""
*    adr7 ""
*    cl_stereo_separation "0.4"
*    freelook "1"
*U   rate "25000"
*U   msg "1"
*    in_mouse "1"
*    in_joystick "0"
*    g_select_empty "0"
*    gl_driver "3dfxgl"
*    gl_ext_palettedtexture "1"
*    gl_modulate "1"
*    gl_texturemode "GL_LINEAR_MIPMAP_NEAREST"
*    gl_ext_swapinterval "1"
*    gl_ext_gamma "1"
*    gl_ext_multitexture "1"
*    gl_ext_pointparameters "1"
*    gl_swapinterval "1"
*    gl_3dlabs_broken "1"
*U   skin "male/sniper"
*U   name "GreenMarine"
*    lookstrafe "0"
*    lookspring "1"
     m_side "0.8"
     m_forward "1"
     m_yaw "0.022"
*    m_pitch "0.022000"
*U   hand "0"
*    cl_run "1"
*    crosshair "1"
*    sensitivity "12"
*    win_noalttab "0"
*    vid_fullscreen "1"
viewsize 40 - 100

     Dictates the size of the player's view.  Any value assigned
     that is less than 40 is set to 40 and any value that is
     greater than 100 is set to 100.  Not if the number is a relative
     unit or a system of measurement.

game "PATH"

     Sets the location of the GAME flag.
     quake2 -game PATH

basedir "PATH"

     PATH is the directory from which Quake2 was launched.

cddir "PATH"

     PATH to cdrom data.

console
variables, console commands.
141 commands.

joy_advancedupdate
	???

-mlook
	turns mouse look off

+mlook
	turns mouse look on

gameversion
	prints the game (dll?) version

weapprev
	switch to previous available weapon

weapnext
	switch to next available weapon

invdrop
	drop currently selected item

invnext
	select next available item

invprev
	select previous available item

invuse
	use currently selected item

fov [angle]
	change horizontal feild of view to (angle) degrees
	default feild-of-view is 90 degrees

noclip *cheating*
	toggle noclip mode between on and off
	noclip mode allows you to fly and move through anything.

notarget *cheating*
	toggle notarget mode between on and off
	notarget mode makes you invisible to enemies, 
	unless you make them angry

god *cheating*
	toggle god mode between on and off
	in god mode you can't lose health or armor

give [item] *cheating*
        gives you [item]
	more info can be found at http://www.quakemarines.com/q2cheats.txt

prog
	??? "bad command:  prog" ???

info
	prints the folowing variables:
	map, nomonsters, dm_respawn, g_unlimited_ammo, samelevel, noexit, 
	maxclients, cheats, timelimit, fraglimit, dmflags, deathmatch, skill, 
	version, hostname
	(same as "serverinfo")	

say_team [message]
        broadcasts the message [message] to other team members.

say [message]
        broadcasts the message [message] to everyone

drop [item]
        drops [item] if you have it.
	(quantities seem to be the same as "give")

use [item]
        uses [item] (don't USE any ammo types!)

kill
	kill yourself

inven
	toggles inventory menu on and off

wave [gesture]
        use numbered [gesture]s to communicate with other players.
	0 = flipoff
	1 = salute
	2 = taunt
	3 = wave
	4 = point

precache
	reload all precached files from disk

setenv
	??? no apparent effect ??

packet [destination] [contents]
	??? pretty scary ???

rcon
	??? remote console ???

reconnect
	reconnect to a server after being disconnected

connect [server]
        connect to a network game on [server]

quit
	exit Quake II and return to operating system

stop
	stop recording a demo

record [demoname]
        record a demo as file [demoname].dm2

disconnect
	disconnect from a network game server

changing
	??? "changing map..." ???

snd_restart
	??? restart sound subsystem ???

userinfo
	prints user information:  rate, msg, name, hand

skins
	prints all players' skins in this format:
        client [number]:  [name]\[model]/[skin]
        [number] = the client's ID number
        [name]   = the client's name
        [model]  = the client's model (i.e. male/female)
        [skin]   = the client's skin (i.e. pointman)

pingservers
	pings available servers for info

pause
	toggles paused game on and off

cmd [command]
        ??? executes the console command [command] ???

-klook / +klook
	turn keyboard look mode off / on
	in keyboard look mode, forward and back become look up and down

impulse
	???

-use / +use
	???

-attack / +attack
	stop / start firing with the current weapon

-speed / +speed
	turn run mode off / on

-moveright / +moveright
	stop / start moving (sidestepping, strafing) right

-moveleft / +moveleft
	stop / start moving (sidestepping, strafing) left

-strafe / +strafe
	turn strafe mode off / on
	in strafe mode, turn left and right become move left and right

-lookdown / +lookdown
	stop / start looking down

-lookup / +lookup
	stop / start looking up

-back / +back
	stop / start moving back

-forward / +forward
	stop / start moving forward

-right / +right
	stop / start turning right

-left / +left
	stop / start turning left

-movedown / +movedown
	stop / start moving down or crouching

-moveup / +moveup
	stop / start moving up or jumping

centerview
	change lookup/lookdown angle (pitch) 
	to straight forward (0 degrees)

cd
	??? no apparent effect ???

sky [basename] [rotate] [axis x y z]
	change sky box
	??? what do rotate and axis do ???

sizedown
	shrink the used area of the screen

sizeup
	enlarge the used area of the screen

loading
	show "loading" plaque and stop updating screen
	(until you bring up the console)

timerefresh
	rotate the view 360 degrees and report
	elapsed time and framerate

menu_quit
	open "quit y/n" menu

menu_keys
	open keyboard configuration menu

menu_options
	open options menu

menu_video
	open video options menu

menu_multiplayer
	open multiplayer menu

menu_credits
	show scrolling credits

menu_playerconfig
	open player configuration menu
	
menu_startserver
	open start network server menu

menu_addressbook
	open server address book

menu_joinserver
	open join network server menu

menu_savegame
	open save game menu

menu_loadgame
	open load game menu

menu_game
	open single player game menu

menu_main
	open main menu

viewpos
	print your current position and angle (x, y, z) : a

gun_model ???

gun_prev 
	show previous viewmodel frame (stops normal animation)

gun_next
	show next viewmodel frame (stops normal animation)

soundinfo
	show sound subsystem information:
	sounddir, stereo, samples, samplepos, samplebits,
	submission_chunk, speed, dma buffer

soundlist
	list all loaded sounds

stopsound
	stop all currently playing sounds

play [sound]
        play [sound].wav from the sounds directory

gl_strings
	??? only in glquake2 ???

modellist
	list all loaded models

screenshot
	take a screenshot

imagelist
	print all loaded pictures in this format:

        [type] [width] [height] : [filename]

	type is P (picture), W (wall texture),
	M (model skin), or S (sprite frame)

	also prints total texel count

vid_front
	???

vid_restart
	restart video subsystem

condump [filename]
        writes everything in the console to [filename].txt

clear
	empties the console

messagemode2
	activates "say_team:" prompt

messagemode
	activates "say:" prompt

togglechat
	??? toggles the console on and off ???

toggleconsole
	toggles the console on and off

killserver
	shuts down a network game

load [directory]
        loads a saved game from [directory]
	
save [directory]
        saves the current game in [directory]

serverstop
	??? stops a server record ???

serverrecord
	??? records a server demo ???

dumpuser [id]
        prints userinfo for user number [id]

serverinfo
	prints the folowing variables:
	map, nomonsters, dm_respawn, g_unlimited_ammo, samelevel, noexit, 
	maxclients, cheats, timelimit, fraglimit, dmflags, deathmatch, skill, 
	version, hostname
	(same as "info")	

heartbeat
	???

setmaster
	???

gamemap [map]
        start a new game in [map]

demomap [map]
	???

map [map]
        start a new game in [map]

status
	print current map, 
	and number, score, address, ping and name 
	for each player

kick [id]
        kick user number [id] from the server

error [message]
        quits quake 2 with an alert labelled [message]

z_stats
	memory use statistics
	"####### bytes in #### blocks"

link [from] [to]
	???

path
	list current search paths and links

bindlist
	lists all current key bindings

unbindall
	removes all key bindings

unbind [key] 
        remove commands from [key]

bind [key] [command]
        assign [commands] to [key]

cvarlist
	print all of the current console variables on the console
	use the PageUp and PageDown keys to scroll through the console

set [variable] [value] [u/s]
        assign [value] to [variable]
	??? what are u and s ???

wait
	wait for 0.1 seconds

alias
	list current aliases or create new ones

echo [message]
        print [message] on the console

exec [scriptfile]
        execute commands from [scriptfile]

cmdlist
	print all of the current console commands on the console
	use the PageUp and PageDown keys to scroll through the console

console
variables, console commands.