Console Commands
From NS2 community wiki
Contents |
List of implemented console commands. To use them press "~" to open or close the console.
Commands listed in orange require cheats to be enabled.
Commands listed in magenta are only available to server administrators.
Launch Options
| Command | Parameters | Description |
|---|---|---|
| +connect | <ip> | Server IP to automatically connect to.
|
| +password | <password> | Server password if required when using +connect |
| game | ||
| addpath | ||
| config_path | ||
| debug | ||
| noerrors | ||
| hotload | ||
| nomodupdate |
Debug Commands
| Command | Parameters | Description |
|---|---|---|
| profile | Enter command to toggle the Profiler on/off. (Monitors performance.)
| |
| trace | <prefix> | Toggles all matching tracers to debug hit registration.
Prefix "all" matches all |
| tracedur | <prefix> <duration> | Sets the duration of a trace for all matching tracers. |
| ctrace | Turns on client-side trace marking for point of attack and probable targets (yellow) | |
| maxfps | <fps> | Limits frames per second, minimum is 30FPS |
| r_stats | Toggle list render scene data/stats/FPS | |
| g_stats | Toggle GUI stats | |
| e_stats | Toggle entity stats | |
| p_stats | Toggle physics stats | |
| s_stats | Toggle list of sounds currently being played. | |
| s_profile | true/false | Sound profiling |
| server_sound | true/false | Turns server sounds on/off |
| cinematics | Prints info about loaded cinematics | |
| fx_stats | Toggle list of sounds & Cinematics being played. | |
| nav_debug | Toggle pathing mesh visible | |
| nav_stats | Toggle list of navigation mesh info | |
| o_stats | [object_type] | Shows some information about the objects being created, you can specify object types such as "o_stats Vector" to show specifically Vector objects. |
| o_stats_pause | Pauses/Unpauses the object count tracker (o_stats) | |
| displayannotations | <optional build number and map name> | Toggle display of annotations.
|
| vt_start | Starts the FPS profiler (stop with vt_stop) | |
| vt_stop | Stops the FPS profiler and displays the results | |
| annotate | <message> | Leave a message at your current position for the map maker to look at.
|
| collision | damage, default, move, los, select, predict | Toggles the visibility of the collision mesh
|
| physics | Toggle physics mesh visibility | |
| dumpmesh | Dumps pathing information to file pathingMeshDump.obj | |
| prediction | true/false | Toggles prediction |
| hitboxes | ? | ? |
| waypoints | ? | ? |
| extents | ? | ? |
| bones | ? | ? |
| memory | Prints out memory information | |
| resources | Prints out list of loaded resources | |
| which | <filename> | Prints the location of the given file. (Ex: "which game_setup.xml") |
| a_simd | true/false | Toggles blend SIMD |
| f_log | <true/false> | Enable/disable file access logging. |
| p_log | <category> | Starts the capture of a profile log. |
| p_logall | [minimal function time] | Starts the capture of a profile log. for example p_logall 0 to capture everything |
| p_endlog | Ends the log started with p_logall and writes it to a file | |
| sv_test_event | Event check list | |
| record | [<filename>] | Starts demo recording. Filename is optional. Must enter the record command before connecting to a server (at main menu). Type stop in console to stop recording. To replay a demo type play <filename>. To exit playback mode, type disconnect in console. Playback of a demo requires the same build version as it was recorded.
Keyboard Controls (during playback):
|
| loadtimes | true/false | models and textures load times |
Developer Mode
| Command | Parameters | Description |
|---|---|---|
| dev | 0/1 | Disable/Enable Developer mode |
| anim_debug | <class_name> | Debug animations (self) |
| effect_debug | <class_name> | Debug effects (self) |
| debugtext | <?> | ? |
Gameplay Cheats
| Command | Parameters | Description |
|---|---|---|
| cheats | 0/1 | Disable/Enabled Cheats (Server) |
| switch | Swap team at current location (Client) | |
| warp | <x> <y> <x> | Teleports the player to the specified position |
| autobuild | Toggle autobuild, Structures are placed in a built state. (Server) | |
| create | <item> (armoury, observatory) | Spawn specified object/structure at crosshair target location. (Server) |
| darwinmode | Toggle unlimited ammo and energy. Cannot take damage (Client) | |
| giveupgrade | <upgrade_name> | Give your self an unlocked upgrade. (Client) |
| alltech | Unlock all tech upgrades (Server) | |
| pres | <amount> | Gives player the specified number of Personal Resources, or 100 if not specified (Client) |
| tres | <amount> | Gives commander the specified number of Team Resources, or 100 if not specified (Server) |
| energy | Gives selected structure max energy (Server) | |
| takedamage | <amount> | Hurt your self |
| killall | <entity> (Hive, Cyst, Sentry, Hydra, etc) | Destroys every instance of the given entity on the map. Note: entity name is case-sensitive. |
| killnearby | <entity> <distance>(15) | Destroys every instance of the given entity on the map within distance. Note: entity name is case-sensitive. |
| highdamage | Turn on high damage mode (x10 damage multiplier) (Server) | |
| damage | <multiplier> | Multiplies all damage values by <multiplier> (Server) |
| ents | Print out entity count. (Client) | |
| flare | Blind player with drifter flare effect (Clients) | |
| givegameeffect | <effect_name> <duration> | Apply screen effect to self for X Seconds |
| setgameeffect | <effect_name> true/false | Enable/Disable a screen effect |
| addbot | <number of bots> <team> | Adds the specified number of bots to a team. If no team specified, they join a random team. |
| removebot | <number of bots> | Randomly remove the specified number of bots from the game |
| command | Teleports you to the nearest hive/Command Station and logs you in if built | |
| clearorders | Clears orders from the commander | |
| debugspeed | Displays a speedometer on your HUD. This can be useful to keep an eye on the speed you gain, for example from walljumping as a skulk. | |
| respawn_team | Respawns your entire team | |
| sfindref | <class> | Finds references to the specified class |
Alien Specials
| Command | Parameters | Description |
|---|---|---|
| give | <item> (skulk, gorge, lerk, fade, onos, hydra, crag, whip, shift, shade) | Spawns Structure/Class (Client) |
| skulk, gorge, lerk, fade, onos | Transform into lifeform |
Marine Specials
| Command | Parameters | Description |
|---|---|---|
| give | <item> (pistol, rifle, shotgun, flamethrower, medpack, ARC, armory, infantry portal, sentry turret, observatory, marine) | Gives player an item/weapon |
| giveammo | Give your self ammo for selected weapon. | |
| catpack | Give self a catalyst pack injection | |
| exo | Gives player an exosuit | |
| dualminigun | Gives player a dualminigun exosuit | |
| dualrailgun | Gives player a dualrailgun exosuit | |
| nanoshield | Gives the player Nano Shield | |
| parasite | Applies Parasite to the player |
Gameplay and Mapping
| Command | Parameters | Description |
|---|---|---|
| map | <map_name> | Starts a new listen server using <map_name> |
| changemap | <map_name> | Changes the map |
| reset | Reset current round | |
| endgame | End current round | |
| speed | <value> | Makes it possible to speed up or slow down the game
For example:
It is not recommended to run the game at very high speeds! |
| onresetgame | Flush scoreboard & powernode lights | |
| logout | Logout of commander mode. | |
| closemenu | Close an open menu | |
| setsquad | <squad_number> | Assign your self to an existing squad. |
| location | Prints to console your room location. | |
| locate | Prints to console your coordinates with respect to the origin of the map. | |
| connect | <IP:port> | Connects you to server with the specified IP and port. |
| disconnect | Disconnects you from the server and returns to the main menu. | |
| retry | Retries to connect to the last server you were on. | |
| exit or quit | Closes the game and returns to desktop | |
| name | <name> | Changes your player name |
| j1 or jointeamone | Joins team 1 (normally marines)
| |
| j2 or jointeamtwo | Joins team 2 (normally aliens)
| |
| j3 | Joins a random team | |
| rr or readyroom | Joins the ready room | |
| spectate | Enter spectating mode | |
| kill | Commit suicide | |
| say | <text> | Speak to all |
| teamsay | <text> | Speak to team |
| tooltip | <text> | Displays <text> as a tooltip |
| clear | Clears the console | |
| output | <string> | Displays a timed message on the screen |
| i_rawinput | true/false | Toggle raw mouse input |
| i_sensitivity | <float> | Mouse sensitivity |
| i_accel | <float> | Mouse acceleration |
| pause | <integer> | Sleeps for the given amount of milliseconds |
| bind | <key> <function> | Binds the specified key to the specified function (e.g. "bind NumPad0 j1" will bind the number pad "0" key to join marines) |
| print_bindings | Prints all current key bindings | |
| clear_binding | <key> | Clears the specified binding |
Render Options
| Command | Parameters | Default | Description |
|---|---|---|---|
| r_gui | true/false | true | Enable/Disable all GUI Menus & GUI Overlays |
| r_atmospherics | true/false | true | Enable/Disable God Rays |
| r_bloom | true/false | true | Enable/Disable Bloom effect lighting |
| r_shadows | true/false | true | Enable/Disable shadow rendering |
| |
|
|
|
| r_instancing | true/false | true | Turn model instancing on/off |
| r_wireframe | true/false | false | Turn wireframe mode on/off |
| r_lights | true/false | false | Toggle light placement data |
| r_mode | lit/unlit/normal,albedo,specular,gloss,depth,emissive,id,none | lit | Toggle directional lighting on rendered surfaces. |
| thirdperson | [meters] | - | Toggle third person mode, Optional: Specify distance in meters |
| skulk_view_tilt | true/false | true | Toggle view tilting while on non-horizontal geometry as a skulk |
| r_mt | true/false | true | Enable/Disable multi-threaded rendering |
| r_aa | true/false | false | Enable/Disable Fast Approximate Anti-Aliasing (FXAA) |
| r_sync | <value> | ? | Maximum buffered frames |
| r_debugging | true/false | false | |
| r_cull | none/frustum | frustum | Culling |
| r_particles | true/false | true | Toggle particles |
| r_anisotropic | true/false | ? | Enable/Disable anisotropic filtering |
| r_fog | true/false | true | Toggle fog |
| r_colordebug | ? | ? | ? |
| r_reflect | true/false | false | Enable/Disable Reflections (only works on NVIDIA® Graphics currently) |
| r_ao | true/false | false | Enable/Disable Ambient Occlusion |
| r_decals | |||
| r_loading | |||
| fps | Enable/Disable FPS indicator on the HUD |
Networking Commands
| Command | Parameters | Description |
|---|---|---|
| net_stats | Toggle list network traffic information | |
| net_messages | Prints to the console the network messages that the client is receiving | |
| net_peers | Prints peer connection information | |
| net_log | <log level> (0,1,2...?) | Network log |
| net_lag | ? | Simulates network loss |
| net_loss | ? | ? |
| net_blackout | <interval> <duration> | Creates a <duration> second network blackout every <interval> seconds
|
| net_classes | ? | seems to print the current classes and any networkVars name and current value to console. |
| net_usage | ? | ? |
| net_compensation | ? | ? |
| net_snapshots | ? | ? |
| net_test | ? | ? |
| nm_stats | Toggle display of incoming & outgoing network messages for the client. | |
| nms_stats | Toggle display of sound network messages. | |
| c_chokedebug | true/false | Prints state packet send/receive info |
Server Commands
| Command | Parameters | Description | |
|---|---|---|---|
| sv_ban | <PLAYER> <minutes> <reason> | Bans player from server | |
| sv_kick | <player> | Kicks player from server | |
| sv_switchteam | <player> <team number> | Moves player to specified team | |
| sv_rrall | Moves all players to the readyroom | ||
| sv_randomall | Makes all players join a random team | ||
| sv_eject | <player> | Ejects player from hive/Command Station | |
| sv_help | Lists all commands which user has access to | ||
| sv_reset | Resets the round | ||
| sv_statusip | Lists in-game name, game id, steam id, and ip address | ||
| sv_status | Lists in-game name, game id and steam id address | ||
| sv_say | <message> | Admin broadcast message | |
| sv_tsay | <team number> <message> | Admin team message | |
| sv_psay | <player> <message> | Sends personal message to player | |
| sv_slay | <player> | Kills the specified player | |
| sv_password | <password> | Adds a password to the server. Use "" as the password to remove the current password | |
| sv_unban | <STEAMID> | Unban a player from the server | |
| sv_reset | Resets the current round | ||
| cyclemap | Forces server to switch to the next map in the Map Cycle (See Dedicated Server#Map Rotation) |