Difference between revisions of "Console/Commands"

From Sven Co-op
Jump to navigation Jump to search
(List of all console commands for SC 5.17.)
 
(Added description to multiple commands.)
Line 79: Line 79:
 
| httpstop ||||||||
 
| httpstop ||||||||
 
|-
 
|-
| list ||||||||
+
| list ||Engine||Networking||||print list of local servers to the console; use '''slist''' to search for servers
 
|-
 
|-
 
| listdemo ||||||||
 
| listdemo ||||||||
Line 85: Line 85:
 
| pingservers ||||||||
 
| pingservers ||||||||
 
|-
 
|-
| playdemo ||||||||
+
| playdemo ||Engine||Demo||||play a demo; Usage: '''playdemo <demo_name>'''
 
|-
 
|-
 
| rcon ||||||||
 
| rcon ||||||||
 
|-
 
|-
| record ||||||||
+
| record ||Engine||Demo||||start recording a demo, see '''stop'''; usage: '''record <demo_name>'''
 
|-
 
|-
 
| removedemo ||||||||
 
| removedemo ||||||||
Line 95: Line 95:
 
| retry ||||||||
 
| retry ||||||||
 
|-
 
|-
| screenshot ||||||||
+
| screenshot ||Engine||Rendering||||take a screenshot (TGA)
 
|-
 
|-
 
| setdemoinfo ||||||||
 
| setdemoinfo ||||||||
 
|-
 
|-
| slist ||||||||
+
| slist ||Engine||Networking||||search for local servers; use '''list''' to print the list
 
|-
 
|-
| snapshot ||||||||
+
| snapshot ||Engine||Rendering||||take a screenshot (BMP)
 
|-
 
|-
 
| spec_pos ||||||||
 
| spec_pos ||||||||
Line 107: Line 107:
 
| startmovie ||||||||
 
| startmovie ||||||||
 
|-
 
|-
| stop ||||||||
+
| stop ||Engine||Demo||||stop recording a demo, see '''record'''
 
|-
 
|-
 
| swapdemo ||||||||
 
| swapdemo ||||||||
Line 117: Line 117:
 
| voice_showbanned ||||||||
 
| voice_showbanned ||||||||
 
|-
 
|-
| invprev ||Client||HUD, Weapon Selection||||
+
| invprev ||Client||HUD, Weapon Selection||||select previous weapon
 
|-
 
|-
| invnext ||Client||HUD, Weapon Selection||||
+
| invnext ||Client||HUD, Weapon Selection||||select next weapon
 
|-
 
|-
| cancelselect ||Client||HUD, Weapon Selection||||
+
| cancelselect ||Client||HUD, Weapon Selection||||cancel weapon selection
 
|-
 
|-
| slot10 ||Client||HUD, Weapon Selection||||
+
| slot10 ||Client||HUD, Weapon Selection||||select weapon group 10 (or menu item 10)
 
|-
 
|-
| slot9 ||Client||HUD, Weapon Selection||||
+
| slot9 ||Client||HUD, Weapon Selection||||select weapon group 9 (or menu item 9)
 
|-
 
|-
| slot8 ||Client||HUD, Weapon Selection||||
+
| slot8 ||Client||HUD, Weapon Selection||||select weapon group 8 (or menu item 8)
 
|-
 
|-
| slot7 ||Client||HUD, Weapon Selection||||
+
| slot7 ||Client||HUD, Weapon Selection||||select weapon group 7 (or menu item 7)
 
|-
 
|-
| slot6 ||Client||HUD, Weapon Selection||||
+
| slot6 ||Client||HUD, Weapon Selection||||select weapon group 6 (or menu item 6)
 
|-
 
|-
| slot5 ||Client||HUD, Weapon Selection||||
+
| slot5 ||Client||HUD, Weapon Selection||||select weapon group 5 (or menu item 5)
 
|-
 
|-
| slot4 ||Client||HUD, Weapon Selection||||
+
| slot4 ||Client||HUD, Weapon Selection||||select weapon group 4 (or menu item 4)
 
|-
 
|-
| slot3 ||Client||HUD, Weapon Selection||||
+
| slot3 ||Client||HUD, Weapon Selection||||select weapon group 3 (or menu item 3)
 
|-
 
|-
| slot2 ||Client||HUD, Weapon Selection||||
+
| slot2 ||Client||HUD, Weapon Selection||||select weapon group 2 (or menu item 2)
 
|-
 
|-
| slot1 ||Client||HUD, Weapon Selection||||
+
| slot1 ||Client||HUD, Weapon Selection||||select weapon group 1 (or menu item 1)
 
|-
 
|-
 
| teammenu ||||||||
 
| teammenu ||||||||
Line 229: Line 229:
 
| cl_stopsound ||Client||Sound||||
 
| cl_stopsound ||Client||Sound||||
 
|- style="background-color:#ffddcc;"
 
|- style="background-color:#ffddcc;"
| +break ||Client||||||unused
+
| +break ||Client||||||<span style="color:#FF0000">'''Unused:'''</span> This command has no effect.
 
|-
 
|-
 
| +graph ||Client, Engine||HUD, Network graph||||show network graph (mode 2)
 
| +graph ||Client, Engine||HUD, Network graph||||show network graph (mode 2)
Line 249: Line 249:
 
| +klook ||Client||Controls||||
 
| +klook ||Client||Controls||||
 
|-
 
|-
| impulse ||Client||||*||[[impulse command]]
+
| impulse ||Client||||*||See [[Impulse commands]].
 
|-
 
|-
 
| +jump ||Client||Controls||||jump
 
| +jump ||Client||Controls||||jump
Line 313: Line 313:
 
| bind ||||||||
 
| bind ||||||||
 
|-
 
|-
| cd ||||||||
+
| cd ||Engine||Sound||||control CD/MP3 player. Usage:<br>
 +
'''cd on''' - no effect???<br>
 +
'''cd off''' - no effect???<br>
 +
'''cd reset''' - reset mapping of CD tracks<br>
 +
'''cd remap <track_id1> <track_id2> ...''' - remap CD tracks<br>
 +
'''cd close''' - close CD tray<br>
 +
'''cd mp3info''' - print info about current MP3 track<br>
 +
'''cd mp3track <track_id>''' - play MP3 track<br>
 +
'''cd play <track_id>''' - play CD track<br>
 +
'''cd playfile <file_name>''' - play MP3 file<br>
 +
'''cd loop <track_id>''' - loop CD track<br>
 +
'''cd loopfile <file_name>''' - loop MP3 file<br>
 +
'''cd stop''' - stop CD playback<br>
 +
'''cd fadeout''' - fade out the currently playing track. Fade out time defined by the '''MP3FadeTime''' CVAR.<br>
 +
'''cd pause''' - pause CD playback<br>
 +
'''cd resume''' - resume CD playback<br>
 +
'''cd eject''' - eject CD tray<br>
 +
'''cd info''' - print status information<br>
 
|-
 
|-
 
| changelevel ||||||||
 
| changelevel ||||||||
Line 349: Line 366:
 
| exec ||||||||
 
| exec ||||||||
 
|-
 
|-
| exit ||Engine||System||||
+
| exit ||Engine||System||||quit game or server without confirmation
 
|-
 
|-
 
| flush ||||||||
 
| flush ||||||||
 +
|- style="background-color:#ffddcc;"
 +
| fly ||Engine||Developer||Yes||Changes player's move type to MOVETYPE_FLY.<br>
 +
<span style="color:#FF0000">'''Obsolete:'''</span> This command doesn't work correctly in GoldSrc/Svengine. Use '''cl_noclip''' instead.
 
|-
 
|-
| fly ||||||||
+
| fs_dump_paths ||Engine||Filesystem||||
|-
 
| fs_dump_paths ||||||||
 
 
|-
 
|-
| fs_warning_level ||||||||
+
| fs_warning_level ||Engine||Filesystem||||
 
|-
 
|-
 
| fullinfo ||||||||
 
| fullinfo ||||||||
Line 372: Line 390:
 
|-
 
|-
 
| gl_texturemode ||Engine||Rendering||||
 
| gl_texturemode ||Engine||Rendering||||
|-
+
|- style="background-color:#ffddcc;"
| god ||||||||
+
| god ||Engine||Developer||Yes||toggle god mode. Makes the player invincible when enabled.<br>
 +
<span style="color:#FF0000">'''Obsolete:'''</span> Use '''cl_godmode''' instead.
 
|-
 
|-
 
| heartbeat ||||||||
 
| heartbeat ||||||||
Line 430: Line 449:
 
|-
 
|-
 
| new ||||||||
 
| new ||||||||
 +
|- style="background-color:#ffddcc;"
 +
| noclip ||Engine||Developer||Yes||toggle clipping mode. When clipping disabled (noclip active), you can walk through walls and fly. Requires '''sv_cheats 255''' in multiplayer.<br>
 +
<span style="color:#FF0000">'''Obsolete:'''</span> Use '''cl_noclip''' instead.
 +
|- style="background-color:#ffddcc;"
 +
| notarget ||Engine||Developer||Yes||toggle notarget mode. NPCs will ignore the player when enabled.
 +
<span style="color:#FF0000">'''Obsolete:'''</span> Use '''cl_notarget''' instead.
 
|-
 
|-
| noclip ||||||||
+
| pause ||Engine||Game||||pause game; Requires '''pausable 1'''.
|-
 
| notarget ||||||||
 
|-
 
| pause ||||||||
 
 
|-
 
|-
 
| ping ||||||||
 
| ping ||||||||
Line 445: Line 466:
 
| pointfile ||||||||
 
| pointfile ||||||||
 
|-
 
|-
| quit ||Engine||System||||
+
| quit ||Engine||System||||quit game or server without confirmation
 
|-
 
|-
 
| reconnect ||||||||
 
| reconnect ||||||||
Line 495: Line 516:
 
| spk ||||||||
 
| spk ||||||||
 
|-
 
|-
| startdemos ||||||||
+
| startdemos ||Engine||Demo||||
 
|-
 
|-
 
| stat ||||||||
 
| stat ||||||||
Line 503: Line 524:
 
| status ||||||||
 
| status ||||||||
 
|-
 
|-
| stopdemo ||||||||
+
| stopdemo ||Engine||Demo||||stop playing a demo
 
|-
 
|-
 
| stopsound ||||||||
 
| stopsound ||||||||

Revision as of 22:03, 25 October 2018

Command Source Category Cheat Description
rebuildsoundcachefile
reloadadminlist
kicksteamid
clearvotemaplist
removevotemap
addvotemap
voteban_show
voteban_remove
voteban_remove_all
as_dumphooks Server Angelscript
as_fs_quota_usage Server Angelscript
as_fs_validate_file_usage Server Angelscript
as_fs_dumpfilesystem Server Angelscript
as_fs_output_openfile Server Angelscript
as_reloadplugin Server Angelscript
as_reloadplugins Server Angelscript
as_removeplugin Server Angelscript
as_removeplugins Server Angelscript
as_execute Server Angelscript
as_commandstats Server Angelscript
as_command Server Angelscript
as_removeallcommands Server Angelscript
toggle_classic_mode Server
log_commands
toggle_survival_mode Server
string_memusage
appenddemo
cl_messages
connect
disconnect
endmovie
entities
fullserverinfo
gamedir
gg
httpstop
list Engine Networking print list of local servers to the console; use slist to search for servers
listdemo
pingservers
playdemo Engine Demo play a demo; Usage: playdemo <demo_name>
rcon
record Engine Demo start recording a demo, see stop; usage: record <demo_name>
removedemo
retry
screenshot Engine Rendering take a screenshot (TGA)
setdemoinfo
slist Engine Networking search for local servers; use list to print the list
snapshot Engine Rendering take a screenshot (BMP)
spec_pos
startmovie
stop Engine Demo stop recording a demo, see record
swapdemo
timedemo
upload
voice_showbanned
invprev Client HUD, Weapon Selection select previous weapon
invnext Client HUD, Weapon Selection select next weapon
cancelselect Client HUD, Weapon Selection cancel weapon selection
slot10 Client HUD, Weapon Selection select weapon group 10 (or menu item 10)
slot9 Client HUD, Weapon Selection select weapon group 9 (or menu item 9)
slot8 Client HUD, Weapon Selection select weapon group 8 (or menu item 8)
slot7 Client HUD, Weapon Selection select weapon group 7 (or menu item 7)
slot6 Client HUD, Weapon Selection select weapon group 6 (or menu item 6)
slot5 Client HUD, Weapon Selection select weapon group 5 (or menu item 5)
slot4 Client HUD, Weapon Selection select weapon group 4 (or menu item 4)
slot3 Client HUD, Weapon Selection select weapon group 3 (or menu item 3)
slot2 Client HUD, Weapon Selection select weapon group 2 (or menu item 2)
slot1 Client HUD, Weapon Selection select weapon group 1 (or menu item 1)
teammenu
ForceCloseCommandMenu
+commandmenu
+inventory
inventory
npc_moveto
missionbriefing
servermotd
uzi_gilded
vgui_closeall
vgui_votemap
votemenu
RelPls Client HUD, Media player reload playlist
DecVol Client HUD, Media player decrease media player volume
IncVol Client HUD, Media player increase media player volume
MediaPlayer Client HUD, Media player open media player
PlayMedia Client HUD, Media player play song
StopSong Client HUD, Media player stop song
RandomSong Client HUD, Media player random song
LastSong Client HUD, Media player last song
NextSong Client HUD, Media player next song
MediaTime Client HUD, Media player
MEDIAHUD Client HUD, Media player
PauseSong Client HUD, Media player pause song
Fog
centerview
joyadvancedupdate
force_centerview
cam_toggle_followaim
snapto
+camdistance
+cammousemove
firstperson
thirdperson
+camout
+camin
+camyawright
+camyawleft
+campitchdown
+campitchup
cl_flushsoundcache_force
cl_flushsoundcache
cl_stopsound Client Sound
+break Client Unused: This command has no effect.
+graph Client, Engine HUD, Network graph show network graph (mode 2)
+showscores Client HUD show the scoreboard
+score Client HUD show the scoreboard
+alt1 Client Controls tertiary attack
+reload Client Controls reload current weapon
+duck Client Controls duck
+jlook Client Controls
+mlook Client Controls
+klook Client Controls
impulse Client * See Impulse commands.
+jump Client Controls jump
+use Client Controls
+attack2 Client Controls secondary attack
+attack Client Controls primary attack
+speed Client Controls walk
+moveright Client Controls
+moveleft Client Controls
+strafe Client Controls
+lookdown Client Controls
+lookup Client Controls
+back Client Controls move backward
+forward Client Controls move forward
+right Client Controls turn right
+left Client Controls turn left
+movedown Client Controls
+moveup Client Controls
condump
+voicerecord
_refresh Engine System
_restart Engine System
_set_vid_level Engine System
_setaddons_folder Engine System
_setgamedir Engine System
_sethdmodels Engine System
_setrenderer Engine System
_setvideomode Engine System
addip
alias
autosave
banid
bind
cd Engine Sound control CD/MP3 player. Usage:

cd on - no effect???
cd off - no effect???
cd reset - reset mapping of CD tracks
cd remap <track_id1> <track_id2> ... - remap CD tracks
cd close - close CD tray
cd mp3info - print info about current MP3 track
cd mp3track <track_id> - play MP3 track
cd play <track_id> - play CD track
cd playfile <file_name> - play MP3 file
cd loop <track_id> - loop CD track
cd loopfile <file_name> - loop MP3 file
cd stop - stop CD playback
cd fadeout - fade out the currently playing track. Fade out time defined by the MP3FadeTime CVAR.
cd pause - pause CD playback
cd resume - resume CD playback
cd eject - eject CD tray
cd info - print status information

changelevel
changelevel2
clear
cmd
cmdlist
condebug
contimes
cvarlist
delta_clear
delta_stats
demos
dlfile
dropclient
echo
envmap
escape
exec
exit Engine System quit game or server without confirmation
flush
fly Engine Developer Yes Changes player's move type to MOVETYPE_FLY.

Obsolete: This command doesn't work correctly in GoldSrc/Svengine. Use cl_noclip instead.

fs_dump_paths Engine Filesystem
fs_warning_level Engine Filesystem
fullinfo
fullupdate
gl_dump Engine Rendering
gl_dumpaamodes Engine Rendering
gl_info Engine Rendering
gl_texels Engine Rendering
gl_texturemode Engine Rendering
god Engine Developer Yes toggle god mode. Makes the player invincible when enabled.

Obsolete: Use cl_godmode instead.

heartbeat
hideconsole
hpkextract
hpklist
hpkremove
hpkval
interp
kick
kill
listid
listip
load
localinfo
log
logaddress
logaddress_add
logaddress_del
logaddress_list
map
maps
maxplayers
mcache
messagemode
messagemode2
motd
motd_write
mp3
new
noclip Engine Developer Yes toggle clipping mode. When clipping disabled (noclip active), you can walk through walls and fly. Requires sv_cheats 255 in multiplayer.

Obsolete: Use cl_noclip instead.

notarget Engine Developer Yes toggle notarget mode. NPCs will ignore the player when enabled.

Obsolete: Use cl_notarget instead.

pause Engine Game pause game; Requires pausable 1.
ping
play
playvol
pointfile
quit Engine System quit game or server without confirmation
reconnect
reload
removeid
removeip
resetrcon
restart
save
say
say_team
sendents
sendres
serverinfo
setinfo
setmaster
setpause
showinfo
shutdownserver
skybox
soundfade
soundinfo
soundlist
spawn
speak
spk
startdemos Engine Demo
stat
stats
status
stopdemo Engine Demo stop playing a demo
stopsound
stuffcmds
tell
timerefresh
toggleconsole
unbind
unbindall
unpause
user
users
version
wait
waveplaylen
writecfg
writeid
writeip