Difference between revisions of "Console Commands"

From Clogopedia, the Natural Selection 2 Wiki
Jump to: navigation, search
m (Debug: removing redundant information)
(adding key icons)
Line 1: Line 1:
 
{{Under Construction}}
 
{{Under Construction}}
This page lists '''console commands'''. To execute a command, open the console by pressing ~, type the command, then press <font style="font-variant:small-caps">enter</font>. Almost all commands are case-sensitive.
+
This page lists '''console commands'''. To execute a command, open the console by pressing <font style="font-family:sans-serif;font-variant:small-caps">{{key|~}}</font>, type the command, then press {{key|↵}} or {{key|ENTER}}. Almost all commands are case-sensitive.
  
 
* Commands listed in <font color=white><kbd>white</kbd></font> can be executed at any time.  
 
* Commands listed in <font color=white><kbd>white</kbd></font> can be executed at any time.  

Revision as of 10:31, 30 April 2019

MAC.png This article is currently under construction.


This page lists console commands. To execute a command, open the console by pressing
~
, type the command, then press
or
ENTER
. Almost all commands are case-sensitive.
  • Commands listed in white can be executed at any time.
  • Commands listed in orange require cheats to be enabled.
  • Commands listed in magenta require permission from the server.


  • The Parameters column states the type of parameter accepted (e.g. float, key), or lists the accepted parameters separated by |.
  • Required parameters are enclosed by <>.
  • Optional parameters are enclosed by [].

If a command accepts multiple parameters, these are separated by spaces.

Gameplay

These commands affect gameplay for both Marines and Aliens.

Command Parameters Description
autobuild none Toggle autobuild on or off. When autobuild is enabled, all structures and research will finish almost instantly.
bind [key [function]] Bind the specified function to the specified key. If a function is not specified, the key will be unbound from every action that does not appear in the list of bindings in the settings menu. If a key is not specified, a list of bindable keys will be displayed in the console. Keys are case-sensitive.
changemap <string> Change the map to the one specified. Default maps are not case-sensitive, custom maps are. If the map cannot be found, the server selects the first map in MapCycle.json. Can only be executed from the server console. See sv_changemap.
cheats <float> Turn cheats on or off. 0 turns off cheats, any other number turns cheats on. Can only be executed from the server console. See sv_cheats.
darwinmode none Toggle invulnerability and unlimited energy/ammo for yourself.
j1 none Join the Marine team. Same as jointeamone.
j2 none Join the Alien team. Same as jointeamtwo.
jointeamone none Join the Marine team. Same as j1.
jointeamtwo none Join the Alien team. Same as j2.
kill none Commit suicide.
logout none Exit the Command Station or Hive.
name <string> Change your name as seen on the scoreboard. Quotes are not required in general.
pres [float] Set your Personal Resources to the amount specified. If no parameter is given, set it to 100.
readyroom none Leave your team and go to the ready room. Same as rr.
rr none Leave your team and go to the ready room. Same as readyroom.
say <string> Send a text message to allchat. Quotes are not required in general.
spectate none Join the spectators.
switch none Switch to the other team at your current position. Does nothing in spectate or the ready room. Same as skulk if marine, marine if alien.
tres [float] Set your team's Team Resources to the amount specified. If no parameter is given, set it to 200.


Aliens

These commands affect gameplay for the Alien team.

Command Parameters Description
fade none Instantly become a fade.
gorge none Instantly become a gorge.
hivevision <string> Enable or disable outlines around objects in commander view. "false" disables outlines, any other string enables outlines.
lerk none Instantly become a lerk.
onos none Instantly become an onos.
skulk none Instantly become a skulk.


Marines

These commands affect gameplay for the Marine team.

Command Parameters Description
giveammo none Give yourself one clip of ammo for the currently selected weapon.
give <string> Give yourself a weapon, examples: rifle, machinegun, welder, shotgun, grenadelauncher, flamethrower, mine,..
jetpack none Give yourself a Jetpack.


Insight

These commands affect gameplay for spectators.

Command Parameters Description
jm <int> [int <int> <int>] Set the pen color for drawing on the screen. If all arguments are given, they are integers between 0 and 255 representing red, green, blue, and alpha, respectively. Otherwise, the first argument is an integer between 0 and 16777215 representing an RGB Int. Same as johnmadden and pen.
johnmadden <int> [int <int> <int>] Set the pen color for drawing on the screen. If all arguments are given, they are integers between 0 and 255 representing red, green, blue, and alpha, respectively. Otherwise, the first argument is an integer between 0 and 16777215 representing an RGB Int. Same as jm and pen.
pen <int> [int <int> <int>] Set the pen color for drawing on the screen. If all arguments are given, they are integers between 0 and 255 representing red, green, blue, and alpha, respectively. Otherwise, the first argument is an integer between 0 and 16777215 representing an RGB Int. Same as jm and johnmadden.
score1 <string> Set the left score on the scoreboard. If the parameter is a number, or the characters "+" or "-", the score will be set to the number, incremented by one, or decremented by one, respectively. Any other input will set the score to "nil".
score2 <string> Set the right score on the scoreboard. If the parameter is a number, or the characters "+" or "-", the score will be set to the number, incremented by one, or decremented by one, respectively. Any other input will set the score to "nil".
scores [string <string>] Set scores. If no arguments are given, both scores are set to 0. Otherwise, the first argument affects the score displayed on the left, the second affects the score on the right. If the parameter is a number, or the characters "+" or "-", the relevant score will be set to the number, incremented by one, or decremented by one, respectively. Any other input will set the score to "nil".
team1 <string> Set the left team name and display the scoreboard.
team2 <string> Set the right team name and display the scoreboard.
teams <string> [string] Set team names and display the scoreboard. If two arguments are given, the first becomes the name on the left, the second becomes the name on the right. If the second argument is omitted, "swap" or "switch" will exchange the names and scores between sides; "reset" or "clear" will set both scores to 0 and remove the scoreboard.


Bots

These commands affect the bots on the server.

Command Parameters Description
addbot [float] [0|1|2|3] [string] [string] Add bots to the server. If no argument is given, one normal field bot is added randomly to Marines or Aliens. The floor of the first argument is the number of bots to add. The second argument is the team the bot will join: 0, 1, 2, or 3 will send the bot to the readyroom, Marines, Aliens, or Spectator, respectively. If the third argument is "com", the bot will be commander; otherwise it will be a field player. If the third argument is "test" and the fourth argument is given, the bot will pace back and forth and not shoot; otherwise it will behave normally. Does not require cheats when executed from the server console. Same as addbots.
addbots [float] [0|1|2|3] [string] [string] Add bots to the server. If no argument is given, one normal field bot is added randomly to Marines or Aliens. The floor of the first argument is the number of bots to add. The second argument is the team the bot will join: 0, 1, 2, or 3 will send the bot to the readyroom, Marines, Aliens, or Spectator, respectively. If the third argument is "com", the bot will be commander; otherwise it will be a field player. If the third argument is "test" and the fourth argument is given, the bot will pace back and forth and not shoot; otherwise it will behave normally. Does not require cheats when executed from the server console. Same as addbot.
addpassivebot [float] [0|1|2|3] [string] Add passive bots to the server. Same as addbot with the fourth parameter set to true. This command will spawn passive bots only if all three arguments are given and the third argument is "test"; otherwise it will spawn regular bots. Does not require cheats when executed from the server console.
freezebots none Toggle freezebots on or off. When frozen, bots cannot move, shoot, or join a team. Does not require cheats when executed from the server console.
removebot [float] [0|1|2|3] Remove bots from the server. The first argument is the number of bots to remove; if not given, one bot is removed. If the first argument is less than one, one bot is removed; if it is an integer greater than or equal to one, that many bots are removed; if it is a non-integer greater than one, all bots are removed. If the second argument is given, bots are removed from the corresponding team: 0, 1, 2, and 3, means readyroom, Marines, Aliens, and Spectator, respectively; otherwise the most recently added bot is removed first. Does not require cheats when executed from the server console. Same as removebots.
removebots [float] [0|1|2|3] Remove bots from the server. The first argument is the number of bots to remove; if not given, one bot is removed. If the first argument is less than one, one bot is removed; if it is an integer greater than or equal to one, that many bots are removed; if it is a non-integer greater than one, all bots are removed. If the second argument is given, bots are removed from the corresponding team: 0, 1, 2, and 3, means readyroom, Marines, Aliens, and Spectator, respectively; otherwise the most recently added bot is removed first. Does not require cheats when executed from the server console. Same as removebot.


Server Administration

These commands can help you manage the server.

Command Parameters Description
sv_changemap <string> Change the map to the one specified. Default maps are not case-sensitive, custom maps are. If the map cannot be found, the server selects the first map in MapCycle.json.
sv_cheats <float> Turn cheats on or off. 0 turns off cheats, any other number turns cheats on.
sv_status none List in-game name, game ID, and Steam ID for all players on the server.


Debug

These commands can give you more information about how the game is running.

Command Parameters Description
debugspeed none Toggle a speedometer on your HUD.
f_cache <float> Enable or disable file caching. 0 turns off file caching, any other number turns file caching on.
fps none Toggle a frames-per-second display in the top left corner of your screen.
net_stats none Toggle a display of server performance and network traffic information.
r_stats none Toggle a display with information what is being rendered, etc.
Important tool that shows you whether your GPU or CPU is the current bottleneck in order to achieve more FPS. If waiting for GPU has a Number higher than 0 (even flinching) then it is the GPU, otherwise the CPU)
s_stats none Toggle a display with information what sounds are currently being played.


Rendering

These commands tell the game what to draw on your screen.

Command Parameters Description
clear none Clear the console.
r_gui [string] Enable or disable all menus and overlays. "true" or no argument will enable GUIs; any other string will disable GUIs.


Networking

These commands can give you more information about how your client and the server are communicating.

Command Parameters Description
net_stats none Toggle a display of server performance and network traffic information.