Console commands and variables reference

CommandTypeFlagsDescription
aliascommandCreate a command alias (parameter: Alias Command)
bindcommandBind command to keystroke (parameters: Key Command)
bomb_throw_speedvariablefloat, min=0.1, max=999, savedSpeed of the bombs you will throw
bomb_throwup_anglevariablefloat, min=0, max=90, savedAngle between direction of the view and direction the bombs are thrown (in degrees) - can be between 0 (throw in direction) and 90 (throw maximally upwards)
centerviewcommandCenter view
chat_messagesvariableint, min=0, max=50, savedMaximal number of last chat messages shown in main window
chat_timeoutvariableint, min=0, savedHow long are chat messages displayed in main window (miliseconds)
clearcommandClear console scrollback buffer
clear_historycommandClear console command history
cmd_autostartvariablestring, min=0, max=0, savedCommand launched on program startup, after config files are loaded
connectcommandConnects to a network game (parameter: hostname[:port])
console_alphavariablefloat, min=0, max=1, savedTransparency of console
console_font_alphavariablefloat, min=0, max=1, savedTransparency of console font
console_heightvariablefloat, min=0.05, max=1, savedHeight of console (relative to screen height)
console_history_sizevariableint, min=0, savedNumber of console command remembered in history
console_logvariablebool, savedIf enabled, all console messages are logged to file (see console_logfile variable)
console_logfilevariablestring, min=0, max=0, savedLog all console messsages to given file (if console_log enabled)
disconnectcommandDisconnect from network game (optional parameter: message for server)
echocommandEcho string to console (parameter: string)
execcommandExecute a script (parameter: filename)
flyvariablecheat, bool, savedWhen set, player can fly
font_xvariablefloat, min=6, max=50, savedX Size of console font in pixels
font_yvariablefloat, min=6, max=50, savedY Size of console font in pixels
fovvariablecritical_setting, float, min=5, max=175, savedField of view
fraglimitvariablecritical_setting, int, min=0, savedLimit of score (frags)
gammavariablefloat, min=0.1, max=1, savedGamma correction (BROKEN)
generate_2dcommandGenerate 2d landscape (parameters: X Y Height)
generate_3dcommandGenerate 3d maze (parameters: X Y Z Corner)
glinfocommandPrint info about OpenGL
gravityvariablecritical_setting, float, savedGravity
groundcontrolvariablecritical_setting, bool, savedType of player control (quake-like/6DOF)
helpcommandPrint helptext for command or variable (parameter: command or variable name)
killservercommandStop listening for network connections and disconnect all players (optional parameter: message for clients)
list_classcommandList all classes with reference count
list_funccommandList all object functions
list_modelcommandList all models with reference count
list_netcommandLists all open and listening network connections
list_objcommandcheatList all objects in world
list_soundscommandList all sounds in memory
listencommandStart listening for incoming network connections (optional parameter: port)
loadcommandLoad new map in .b4d format (parameter: filename)
mapcommandLoad new map in .map format (parameter: filename)
menucommandInvoke menu (parameter: name of menu)
menu_addcommandAdds menu with given name and definition (parameters: Name Definition)
menu_bindcommandShows menu where you can configure keybinds
menu_delcommandDeletes menu with given name (parameter: Name)
menu_listcommandLists all menus registered in game
mouse_unlockvariablebool, savedToggle whether mouse is free to move, or held within window center to allow mouselook
namecommandChange or show nickname used in network play (optional parameter: new name)
net_scancommandScan local network for running servers on given port (or default port if none given). Results are written to console
noclipvariablecheat, bool, savedWhen set, no collisions are done
pausecommandPause/unpause the game
player_addcommandAdd human-controlled player to game
player_killcommandRemove player with given number from game (parameter: number, last=last player)
player_listcommandList players in game
player_nextcommandSwitches to next player
player_prevcommandSwitches to previous player
player_setnumcommandSet number of player. Adds/deletes players as necessary (parameter: number of players)
player_usecommandSwitches to player with given number (parameter: number)
pposcommandcheatPrint player position
quitcommandQuit the game
r_clipbackvariablefloat, min=0.0005Far clipping distance
r_clipfrontvariablecheat, float, min=0.0005Near clipping distance
r_fog_colorvariablecheat, vector, min=0, max=1Fog color
r_fog_distancevariablecheat, float, min=0Fog distance
r_fpsvariableint, min=0, max=3, savedDraw FPS information
r_skyboxvariablebool, savedTurn skybox on/off
r_skymapcommandcritical_settingChange skybox (parameter: name of skybox)
r_vidmodecommandChange video mode (BROKEN)
r_ztrickvariablebool, savedUse trick to not clear zbuffer (reduces zbuffer precision)
savealiasescommandSave aliases to specified file (parameter: filename)
saveallconfigcommandSave all game configuration to standard files
saveconfigcommandSave game configuration to specified file (parameter: filename)
saycommandSend a chat message to all connected players (parameter: message)
screenshotcommandTake a screenshot in targa format (optional parameter: filename)
sensitivityvariablefloat, savedSensitivity of mouse
sensitivity_hvariablefloat, savedHorizontal sensitivity of mouse
sensitivity_vvariablefloat, savedVertical sensitivity of mouse
servernamevariablestring, min=0, max=0, savedServer name send to clients in network play
silentvariableboolTurn verbosity on console on/off
snd_volumevariablefloat, min=0, savedSound volume
speedvariablecritical_setting, floatSpeed of player movement on ground
speed_airvariablecritical_setting, floatSpeed of player movement while in air
survivalvariablecritical_setting, bool, savedIf set to 1, nobody can respawn (survival mode)
tex_flushcommandFlush all textures with reference count equal to zero (unused textures)
tex_listcommandList all textures with reference count
unaliascommandDeletes a command alias (parameter: Alias)
unbindcommandDelete binding of keystroke to command (parameter: Key)
unbindallcommandDelete all keystroke bindings
versioncommandPrint version of program
window_xvariableint, min=40, max=32767, savedX size of game window in pixels
window_yvariableint, min=30, max=32767, savedY size of game window in pixels
Total 92 command and variables