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.
Debug Commands
| Console 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) | |
| 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 |
| cinematic_stats | Toggle list of active 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.
|
| annotate | <message> | Leave a message at your current position for the map maker to look at.
|
| collision | damage, default, move, los, select | 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 |
Developer Mode
| Console 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
| Console Command | Parameters | Description |
|---|---|---|
| cheats | 0/1 | Disable/Enabled Cheats (Server) |
| switch | Swap team at current location (Client) | |
| 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. |
| highdamage | Turn on high damage mode (x10 damage multiplyer) (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 | |
| 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. |
Alien Specials
| Console 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
| Console Command | Parameters | Description |
|---|---|---|
| give | <item> (pistol, rifle, shotgun, flamethrower, medpack, ARC, armory, infantry portal, sentry turret, observatory, marine) | Gives player an item/weapon (Client) |
| giveammo | Give your self ammo for selected weapon. (Client) | |
| heavy | Equip outer armor mechanic. (Client) | |
| catpack | Give self a catalyst pack injection (Client) | |
| infantryportal | Spawn an Infantry Portal (Server) |
Gameplay and Mapping
| Console 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_accel | <float> | Mouse acceleration |
| pause | <integer> | Sleeps for the given amount of milliseconds |
| flash_input | true/false | Toggles if flash elements can receive input |
Render Options
| Console 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_shadowsfade | true/false | true | Enable/Disable shadow fade falloff blending |
| r_flash | true/false | true | Turn flash GUI on/off |
| 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 | ? | Toggle fog |
| r_colordebug | ? | ? | ?
|
Networking Commands
| Console 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_classes | ? | ? |
| 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 |