Difference between revisions of "Console/Commands"

From Sven Co-op
Jump to navigation Jump to search
(Added description to few more commands. Added commands removed in SC 5.17.)
m (Category.)
 
(3 intermediate revisions by 2 users not shown)
Line 25: Line 25:
 
| voteban_remove_all ||||||||
 
| voteban_remove_all ||||||||
 
|-
 
|-
| as_dumphooks ||Server||Angelscript||||
+
| as_dumphooks ||Server||Angelscript||||Outputs all Angelscript hooks to a file. Usage: '''as_dumphooks <filename>''' (in the game directory).
 
|-
 
|-
| as_fs_quota_usage ||Server||Angelscript||||
+
| as_fs_quota_usage ||Server||Angelscript||||Reports the current usage state of the Angelscript File System Quota.
 
|-
 
|-
| as_fs_validate_file_usage ||Server||Angelscript||||
+
| as_fs_validate_file_usage ||Server||Angelscript||||Validates the quota file list; files removed externally are removed from the list.
 
|-
 
|-
| as_fs_dumpfilesystem ||Server||Angelscript||||
+
| as_fs_dumpfilesystem ||Server||Angelscript||||Outputs the Angelscript file system and blacklist to a file. Usage: '''as_fs_dumpfilesystem <filename>'''.
 
|-
 
|-
| as_fs_output_openfile ||Server||Angelscript||||
+
| as_fs_output_openfile ||Server||Angelscript||||Whether or not to output successful OpenFile calls. CVAR???
 
|-
 
|-
| as_reloadplugin ||Server||Angelscript||||
+
| as_reloadplugin ||Server||Angelscript||||Reloads a plugin that is in the list of plugins. Usage: '''as_reloadplugin <plugin_name>''' to reload a plugin.
 
|-
 
|-
| as_reloadplugins ||Server||Angelscript||||
+
| as_reloadplugins ||Server||Angelscript||||Reloads all plugins from the plugin list file.
 
|-
 
|-
| as_removeplugin ||Server||Angelscript||||
+
| as_removeplugin ||Server||Angelscript||||Removes a plugin from the plugin list. Usage: '''as_removeplugin <plugin name>''' to remove a plugin.
 
|-
 
|-
| as_removeplugins ||Server||Angelscript||||
+
| as_removeplugins ||Server||Angelscript||||Removes all plugins.
 
|-
 
|-
| as_execute ||Server||Angelscript||||
+
| as_execute ||Server||Angelscript||||Executes arbitrary Angelscript code. Usage: '''as_execute <module name(optional; default: MapModule)> "&lt;code&gt;"'''.
 
|-
 
|-
| as_commandstats ||Server||Angelscript||||
+
| as_commandstats ||Server||Angelscript||||Displays Angelscript console command statistics.
 
|-
 
|-
| as_command ||Server||Angelscript||||
+
| as_command ||Server||Angelscript||||Executes an Angelscript console command.
 
|-
 
|-
| as_removeallcommands ||Server||Angelscript||||
+
| as_removeallcommands ||Server||Angelscript||||Removes all commands from the Angelscript console command system. Debug only.
 
|-
 
|-
| toggle_classic_mode ||Server||||||
+
| toggle_classic_mode ||Server||Game||||Toggle [[Classic Mode]].
 
|-
 
|-
 
| log_commands ||||||||
 
| log_commands ||||||||
 
|-
 
|-
| toggle_survival_mode ||Server||||||
+
| toggle_survival_mode ||Server||Game||||Toggle [[Survival Mode]].
 
|-
 
|-
 
| string_memusage ||||||||
 
| string_memusage ||||||||
Line 579: Line 579:
 
|}
 
|}
  
Client-side commands:
+
Client-side commands (not listed by the '''cmdlist''' command).
  
 
{| class="sortable wikitable"
 
{| class="sortable wikitable"
Line 725: Line 725:
 
| debug_getgroundtexinfo ||Client||||Yes||Gets info from the current ground texture the player is standing on. (debug builds only)
 
| debug_getgroundtexinfo ||Client||||Yes||Gets info from the current ground texture the player is standing on. (debug builds only)
 
|-
 
|-
 +
| as_listplugins ||Client||Angelscript||||Shows a list of all plugins currently active on this server.
 +
|-
 +
| as_listmapscriptinfo ||Client||Angelscript||||Outputs map script information.
 +
|-
 +
| as_globals ||Client||Angelscript||||Outputs a list of global variables that exist in the API to a file. Defaults to asglobals. (Admins only)
 +
|-
 +
| as_generate_config ||Client||Angelscript||||Outputs a file that contains the entire API as a config. Defaults to asglobals. (Admins only)
 +
|-
 +
| as_generate_includes ||Client||Angelscript||||Outputs the automatically included headers for a given module type to a file. (Admins only)
 +
|-
 +
| as_showversioninfo ||Client||Angelscript||||Shows Angelscript version info.
 +
|-
 +
| as_menuselect ||Client||Angelscript||||Used by text menus to handle player input.
 +
|-
 +
| as_findcommands ||Client||Angelscript||||Finds Angelscript specific commands.
 +
|-
 +
| as_scriptbaseclasses ||Client||Angelscript||||Shows the custom entity base class implementations. (Admins only)
 +
|-
 +
| find ||Client||Angelscript||||Find commands using a given substring.
 +
|}
 +
 +
[[Category:Console]]

Latest revision as of 17:14, 12 December 2020

Command Source Category Cheat Description
rebuildsoundcachefile
reloadadminlist
kicksteamid
clearvotemaplist
removevotemap
addvotemap
voteban_show
voteban_remove
voteban_remove_all
as_dumphooks Server Angelscript Outputs all Angelscript hooks to a file. Usage: as_dumphooks <filename> (in the game directory).
as_fs_quota_usage Server Angelscript Reports the current usage state of the Angelscript File System Quota.
as_fs_validate_file_usage Server Angelscript Validates the quota file list; files removed externally are removed from the list.
as_fs_dumpfilesystem Server Angelscript Outputs the Angelscript file system and blacklist to a file. Usage: as_fs_dumpfilesystem <filename>.
as_fs_output_openfile Server Angelscript Whether or not to output successful OpenFile calls. CVAR???
as_reloadplugin Server Angelscript Reloads a plugin that is in the list of plugins. Usage: as_reloadplugin <plugin_name> to reload a plugin.
as_reloadplugins Server Angelscript Reloads all plugins from the plugin list file.
as_removeplugin Server Angelscript Removes a plugin from the plugin list. Usage: as_removeplugin <plugin name> to remove a plugin.
as_removeplugins Server Angelscript Removes all plugins.
as_execute Server Angelscript Executes arbitrary Angelscript code. Usage: as_execute <module name(optional; default: MapModule)> "<code>".
as_commandstats Server Angelscript Displays Angelscript console command statistics.
as_command Server Angelscript Executes an Angelscript console command.
as_removeallcommands Server Angelscript Removes all commands from the Angelscript console command system. Debug only.
toggle_classic_mode Server Game Toggle Classic Mode.
log_commands
toggle_survival_mode Server Game Toggle Survival Mode.
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 Engine Scripts Bind one or more command(s) or variable settings to a key. Binding a key to any +command also automatically binds the release of that key to the -command (see alias). Usage:

bind <key> <command>
bind <key> "<command1>;<command2>..." (multiple commands enclosed in quotes and separated by semicolons)

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. See also quit.
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. See also exit.
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 Engine Scripts Remove binding to key. Usage: unbind <key>
unbindall Engine Scripts Remove all key bindings.
unpause
user
users
version Engine System Print engine version.
wait Engine Scripts Make script execution wait for next frame.
waveplaylen
writecfg
writeid
writeip
viewmodel Engine Developer Obsolete: Change model of viewthing entity in current level. Leftover from Quake.

Removed in Sven Co-op 5.17.

viewframe Engine Developer Obsolete: Change animation frame of viewthing entity in current level. Leftover from Quake.

Removed in Sven Co-op 5.17.

viewnext Engine Developer Obsolete: Change to next animation frame of viewthing entity in current level. Leftover from Quake.

Removed in Sven Co-op 5.17.

viewprev Engine Developer Obsolete: Change to previous animation frame of viewthing entity in current level. Leftover from Quake.

Removed in Sven Co-op 5.17.

sizeup Engine Rendering Obsolete: Increase view size (increases the viewsize CVAR). Leftover from the software renderer build.

Removed in Sven Co-op 5.17.

sizedown Engine Rendering Obsolete: Decrease view size (decreases the viewsize CVAR). Leftover from the software renderer build.

Removed in Sven Co-op 5.17.

Client-side commands (not listed by the cmdlist command).

Command Source Category Cheat Description
say Client
say_team Client
medic Client
heal Client
grenade Client
takecover Client
gibme Client Let players gib themselves
hurtme Client Let players hurt themselves (Internal builds only)
stuck Client
unstuck Client
unstick Client Allow alive players to free themself from inside a door/wall/whatever, limited distance
inventorylist Client Inventory
dropitem Client Inventory
npc_return Client NPC
npc_findcover Client NPC
npc_attackmytarget Client NPC
npc_moveto Client NPC
cl_entitycount Client
cl_precachecount Client
mapname Client
mapinfo Client
nextmap Client
myinfo Client
thatinfo Client Yes
playlist Client
time Client
timeleft Client
gametext Client (debug builds only)
time Client (debug builds only)
monster_status Client Yes impulse 103
giveall Client Yes impulse 101
frametime Client
give Client Yes
givepoints Client Yes
trigger Client Yes
ent_trigger_ahead Client Yes
ent_name_ahead Client Yes Get the name of the entity i'm looking at, if any.
ghost Client Yes
godmode Client Yes
cl_noclip Client Yes
cl_notarget Client Yes
cl_nonsolid Client Yes
cl_invisible Client Yes Invisibility
teleport Client Yes
reviveme Client Yes
healme Client Yes
chargeme Client Yes
activeidle Client
toggleextras Client
drop Client
dropammo Client
dropsecammo Client drop secondary ammo
fov Client Yes
use Client
weapon_ Client
lastinv Client
nav_generate Client (unused)
submitid Client
stuck_kill Client
nodepath Client
create Client Yes
create_grunt Client Yes
remove Client Yes remove entity by targetname
concuss Client Yes
showextras Client
getextras Client
debug Client Yes (debug builds only)
debug_getgroundtexinfo Client Yes Gets info from the current ground texture the player is standing on. (debug builds only)
as_listplugins Client Angelscript Shows a list of all plugins currently active on this server.
as_listmapscriptinfo Client Angelscript Outputs map script information.
as_globals Client Angelscript Outputs a list of global variables that exist in the API to a file. Defaults to asglobals. (Admins only)
as_generate_config Client Angelscript Outputs a file that contains the entire API as a config. Defaults to asglobals. (Admins only)
as_generate_includes Client Angelscript Outputs the automatically included headers for a given module type to a file. (Admins only)
as_showversioninfo Client Angelscript Shows Angelscript version info.
as_menuselect Client Angelscript Used by text menus to handle player input.
as_findcommands Client Angelscript Finds Angelscript specific commands.
as_scriptbaseclasses Client Angelscript Shows the custom entity base class implementations. (Admins only)
find Client Angelscript Find commands using a given substring.