Difference between revisions of "Console Commands"

From Clogopedia, the Natural Selection 2 Wiki
Jump to: navigation, search
(Debug: add f_cache)
(Marines: giveammo)
Line 74: Line 74:
 
!Description
 
!Description
 
|-
 
|-
|style="color:orange"|<kbd>giveammo</kbd>||<string>||Give yourself ammo for the currently selected weapon.
+
|style="color:orange"|<kbd>giveammo</kbd>||''none''||Give yourself one clip of ammo for the currently selected weapon.
 
|}
 
|}
 
  
 
==Insight==
 
==Insight==

Revision as of 02:16, 21 July 2016

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 enter. 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
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.
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.

Insight

These commands affect gameplay for spectators.


Bots

These commands affect the bots on the server.


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.

Rendering

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

Command Parameters Description
clear none Clear the console.


Networking

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