Cheat codes for experimenting with stuff
aeroripper
Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
<div class="IPBDescription">All Console Commands for NS2</div>Is there any commands to give yourself more carbon/plasma so to test different buildings and stuff?
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->I've compiled a list of all the console commands I've found. Let me know what I've missed! Note that many of these will not work without cheats enabled.
<b>connect xxx.xxx.xxx.xxx:xxxxx</b> - connects you to a server with ip:port
<b>disconnect</b> - disconnects you from the server
<b>exit</b> - closes natural selection 2
<b>quit</b> - closes natural selection 2
<b>map mapname</b> - loads the named map
<b>name anystringoftext</b> - changes your name to anystringoftext. haven't figured out how to include spaces.
<b>cheats 1</b> - turns cheats on
<b>cheats 0</b> turns cheats off (ends game aswell)
<b>jointeamone</b> - joins the marine team
<b>jointeamtwo</b> - joins the alien team
<b>readyroom</b> - joins the readyroom
<b>spectate</b> - joins as a spectator
<b>addbot</b> - adds a bot
<b>removebot</b> -removes a bot
<b>j1</b> - joins the marine team
<b>j2</b> - joins the alien team
<b>rr</b> - joins the readyroom
<b>thirdperson</b> - view your character model in thirdperson
<b>kill</b> - suicide
<b>reset</b> - restarts the game
<b>points #</b> - displays a number of points as if you had just killed something
<b>tooltip anystringoftext</b> - displays anystringoftext as a tooltip
<b>ents</b> - returns a list of entities that currently exist in the game
<b>say anystringoftext</b> - speaks to all (for some reason using the console command cuts off the first and last letters of the string)
<b>teamsay anystringoftext</b> - speaks to team
<b>darwinmode</b> - unlimited ammo (typing it again shuts it off)
<b>highdamage</b> - increases damage done by... a bunch
<b>takedamage</b> - deals a high ammount of damage to you. It seems to be varied.
<b>switch</b> - switches you between teams
<b>alltech</b> - I would assume this upgrades all possible tech, but I haven't been able to get it to do anything as of yet
<b>logout</b> - leaves the command chair
<b>carbon #</b> - gives you any number of carbon points
<b>plasma #</b> - gives you any number of plasma points
<b>closemenu</b> - not sure what this does
<b>showarmorymenu</b> - shows the marine armory menu from anywhere
<b>closearmorymenu</b> - closes the marine armory menu
<b>heavy</b> - changes you into a heavy armor marine with no guns. you can use the give commands to give yourself guns in heavy mode but you will not see the models.
<b>giveammo</b> - gives you one clip of ammo for your currently equipped weapon (notice theres no space in this command)
<b>give medpack</b> - gives you a medpack
<b>catpack</b> - gives you a catpack (doesn't seem to have any function, only the sound)
<b>give shotgun</b> - gives you a shotgun
<b>give rifle</b> - gives you a rifle
<b>give grenadelauncher</b> - gives you a grenadelauncher addon for your rifle
<b>give flamethrower</b> - gives you a flame thrower (no model, just sounds)
<b>give jetpack</b> - gives you a jetpack (sounds only, no functionality)
<b>give sentry turret</b> - spawns a sentry turrent (it's turret not turreNt!)
<b>give masc</b> - spawns an MASC (NS2 version of the siege cannon)
<b>give armory</b> - spawns an armory (careful, this will put you inside the armory!)
<b>give infantry portal</b> - spawns an infantry portal at your feet
<b>infantryportal</b> - spawns an infantry portal at a default IP location in marine start
<b>give hydra</b> - spawns a hydra (does not seem to grow as opposed to doing it manually through a gorge)
<b>give skulk</b> - spawns a skulk that you can shoot at or bite!
<b>give gorge</b> - spawns a gorge that you can shoot at or bite!
<b>give lerk</b> - spawns a lerk that you can shoot at or bite!
*note: "give" also works for crag, shift, shade, fade and onos, but you will only hear a sound. there will be no model for these.
<b>skulk</b> - changes you to a skulk
<b>gorge</b> - changes you to a gorge
<b>lerk</b> - changes you to a lerk
<b>fade</b> - changes you to a fade (note: when using this command, make sure you are not on the ground or you will fall through the map. Try getting on the wall as a skulk and using the command then)
<b>onos</b> - changes you to an onos (note: when using this command, make sure you are not on the ground or you will fall through the map. Try getting on the wall as a skulk and using the command then)
<b>net_stats</b> - gives you network information
<b>r_stats 1</b> - turns on various graphics stats like FPS among other things (r_stats 0 to turn off)
<b>r_wireframe</b> - turns on wireframe mode. Really cool! (for some reason "r_wireframe 1" does nothing, but "r_wireframe 0" shuts it off)
<b>r_shadows 0</b> - turns off dynamic shadows which improves performance ("r_shadows" turns them back on, NOT "r_shadows 1")<!--QuoteEnd--></div><!--QuoteEEnd-->
Thanks lucid and everyone else! Added info to first post. All commands are also listed in a different format in the wiki:
<a href="http://www.unknownworlds.com/ns2/wiki/index.php/Console_Commands" target="_blank">http://www.unknownworlds.com/ns2/wiki/inde...onsole_Commands</a>
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->I've compiled a list of all the console commands I've found. Let me know what I've missed! Note that many of these will not work without cheats enabled.
<b>connect xxx.xxx.xxx.xxx:xxxxx</b> - connects you to a server with ip:port
<b>disconnect</b> - disconnects you from the server
<b>exit</b> - closes natural selection 2
<b>quit</b> - closes natural selection 2
<b>map mapname</b> - loads the named map
<b>name anystringoftext</b> - changes your name to anystringoftext. haven't figured out how to include spaces.
<b>cheats 1</b> - turns cheats on
<b>cheats 0</b> turns cheats off (ends game aswell)
<b>jointeamone</b> - joins the marine team
<b>jointeamtwo</b> - joins the alien team
<b>readyroom</b> - joins the readyroom
<b>spectate</b> - joins as a spectator
<b>addbot</b> - adds a bot
<b>removebot</b> -removes a bot
<b>j1</b> - joins the marine team
<b>j2</b> - joins the alien team
<b>rr</b> - joins the readyroom
<b>thirdperson</b> - view your character model in thirdperson
<b>kill</b> - suicide
<b>reset</b> - restarts the game
<b>points #</b> - displays a number of points as if you had just killed something
<b>tooltip anystringoftext</b> - displays anystringoftext as a tooltip
<b>ents</b> - returns a list of entities that currently exist in the game
<b>say anystringoftext</b> - speaks to all (for some reason using the console command cuts off the first and last letters of the string)
<b>teamsay anystringoftext</b> - speaks to team
<b>darwinmode</b> - unlimited ammo (typing it again shuts it off)
<b>highdamage</b> - increases damage done by... a bunch
<b>takedamage</b> - deals a high ammount of damage to you. It seems to be varied.
<b>switch</b> - switches you between teams
<b>alltech</b> - I would assume this upgrades all possible tech, but I haven't been able to get it to do anything as of yet
<b>logout</b> - leaves the command chair
<b>carbon #</b> - gives you any number of carbon points
<b>plasma #</b> - gives you any number of plasma points
<b>closemenu</b> - not sure what this does
<b>showarmorymenu</b> - shows the marine armory menu from anywhere
<b>closearmorymenu</b> - closes the marine armory menu
<b>heavy</b> - changes you into a heavy armor marine with no guns. you can use the give commands to give yourself guns in heavy mode but you will not see the models.
<b>giveammo</b> - gives you one clip of ammo for your currently equipped weapon (notice theres no space in this command)
<b>give medpack</b> - gives you a medpack
<b>catpack</b> - gives you a catpack (doesn't seem to have any function, only the sound)
<b>give shotgun</b> - gives you a shotgun
<b>give rifle</b> - gives you a rifle
<b>give grenadelauncher</b> - gives you a grenadelauncher addon for your rifle
<b>give flamethrower</b> - gives you a flame thrower (no model, just sounds)
<b>give jetpack</b> - gives you a jetpack (sounds only, no functionality)
<b>give sentry turret</b> - spawns a sentry turrent (it's turret not turreNt!)
<b>give masc</b> - spawns an MASC (NS2 version of the siege cannon)
<b>give armory</b> - spawns an armory (careful, this will put you inside the armory!)
<b>give infantry portal</b> - spawns an infantry portal at your feet
<b>infantryportal</b> - spawns an infantry portal at a default IP location in marine start
<b>give hydra</b> - spawns a hydra (does not seem to grow as opposed to doing it manually through a gorge)
<b>give skulk</b> - spawns a skulk that you can shoot at or bite!
<b>give gorge</b> - spawns a gorge that you can shoot at or bite!
<b>give lerk</b> - spawns a lerk that you can shoot at or bite!
*note: "give" also works for crag, shift, shade, fade and onos, but you will only hear a sound. there will be no model for these.
<b>skulk</b> - changes you to a skulk
<b>gorge</b> - changes you to a gorge
<b>lerk</b> - changes you to a lerk
<b>fade</b> - changes you to a fade (note: when using this command, make sure you are not on the ground or you will fall through the map. Try getting on the wall as a skulk and using the command then)
<b>onos</b> - changes you to an onos (note: when using this command, make sure you are not on the ground or you will fall through the map. Try getting on the wall as a skulk and using the command then)
<b>net_stats</b> - gives you network information
<b>r_stats 1</b> - turns on various graphics stats like FPS among other things (r_stats 0 to turn off)
<b>r_wireframe</b> - turns on wireframe mode. Really cool! (for some reason "r_wireframe 1" does nothing, but "r_wireframe 0" shuts it off)
<b>r_shadows 0</b> - turns off dynamic shadows which improves performance ("r_shadows" turns them back on, NOT "r_shadows 1")<!--QuoteEnd--></div><!--QuoteEEnd-->
Thanks lucid and everyone else! Added info to first post. All commands are also listed in a different format in the wiki:
<a href="http://www.unknownworlds.com/ns2/wiki/index.php/Console_Commands" target="_blank">http://www.unknownworlds.com/ns2/wiki/inde...onsole_Commands</a>
This discussion has been closed.
Comments
The following can be used:
"thirdperson" - Turns on 3rd Person
"give grenadelauncher" - Spawns GL
"give shotgun" - Spawn Shotgun
"give sentry turret" - Spawn Sentry Turret (then go into Commander and select a MAC to build it, fires in a 90 degree arc at all aliens)
"give masc" - spawns MASC. Can be deployed and will enter siege mode, though the model is bugged out
Fade, Onos, Flamethrower, and Jetpack aren't in the game, but some of their sounds are:
Fade - Turns you into a Fade but you'll fall through the map, has some basic sounds
Onos - Turns you into an Onos but you'll fall through the map, has more basic sounds like the stomp sound from the trailer Fall 2009
"give jetpack" - Sounds when jumping/holding jump
"give flamethrower" - Cocking sounds and fire sound.
Once again though, everything is placeholder and may change, so take it with a grain of salt. :)
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->ResourceTower.kResourceInterval = 24
ResourceTower.kPlasmaInjection = 1
ResourceTower.kCarbonInjection = 1<!--c2--></div><!--ec2-->
change value from 24 to 1 and you get 1 res per second :P you could alter injection values as well ^^ but make sure to enter cheats 1 so the game starts.
Give lerk / gorge / skulk worked for me, basically putting an empty shell below where you are standing, if you want to take some screenshots these might be perfect for you.
r_stats 1 just to refresh people is an improved frame rate and developer tools monitor. It now shows texture memory, for example.
r_wireframe 0/1 for wireframe to refresh memories.
give armory
give minigun haha but i'm pretty sure no sounds or model
just have to wait until more is released xD
tl;dr plasma gives 100 plasma, carbon gives 100 carbon, giveammo gives 1 clip
EDIT: All of this needs to be run on the <i>server</i> console, and, since there's no rcon right now, that means this is listenserv (singleplayer) only
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// Cheats
carbon
plasma
takedamage
giveammo
spawn
ents
switch
highdamage
give
giveupgrade
setsquad
flare
tooltiponce
setfov
spawnplayers
// For testing lifeforms
skulk
gorge
lerk
fade
onos
heavy
infantryportal
command
catpack
alltech
location
closemenu
showarmorymenu
closearmorymenu<!--c2--></div><!--ec2-->
<img src="http://images.encyclopediadramatica.com/images/5/50/Epic_trollface.jpg" border="0" class="linked-image" />
<img src="http://encyclopediadramatica.com/File:Epic_trollface.jpg" border="0" class="linked-image" />
connect xxx.xxx.xxx.xxx:xxxxx - connects you to a server with ip:port
disconnect - disconnects you from the server
exit - closes natural selection 2
quit - closes natural selection 2
map mapname - loads the named map
name anystringoftext - changes your name to anystringoftext. haven't figured out how to include spaces.
cheats 1 - turns cheats on
cheats 0 turns cheats off (ends game aswell)
jointeamone - joins the marine team
jointeamtwo - joins the alien team
readyroom - joins the readyroom
spectate - joins as a spectator
j1 - joins the marine team
j2 - joins the alien team
rr - joins the readyroom
thirdperson - view your character model in thirdperson
kill - suicide
reset - restarts the game
points # - displays a number of points as if you had just killed something
tooltip anystringoftext - displays anystringoftext as a tooltip
ents - returns a list of entities that currently exist in the game
say anystringoftext - speaks to all (for some reason using the console command cuts off the first and last letters of the string)
teamsay anystringoftext - speaks to team
darwinmode - unlimited ammo (typing it again shuts it off)
highdamage - increases damage done by... a bunch
takedamage - deals a high ammount of damage to you. It seems to be varied.
switch - switches you between teams
alltech - I would assume this upgrades all possible tech, but I haven't been able to get it to do anything as of yet
logout - leaves the command chair
carbon # - gives you any number of carbon points
plasma # - gives you any number of plasma points
closemenu - not sure what this does
showarmorymenu - shows the marine armory menu from anywhere
closearmorymenu - closes the marine armory menu
heavy - changes you into a heavy armor marine with no guns. you can use the give commands to give yourself guns in heavy mode but you will not see the models.
giveammo - gives you one clip of ammo for your currently equipped weapon (notice theres no space in this command)
give medpack - gives you a medpack
catpack - gives you a catpack (doesn't seem to have any function, only the sound)
give shotgun - gives you a shotgun
give rifle - gives you a rifle
give grenadelauncher - gives you a grenadelauncher addon for your rifle
give flamethrower - gives you a flame thrower (no model, just sounds)
give jetpack - gives you a jetpack (sounds only, no functionality)
give sentry turret - spawns a sentry turrent (it's turret not turreNt!)
give masc - spawns an MASC (NS2 version of the siege cannon)
give armory - spawns an armory (careful, this will put you inside the armory!)
give infantry portal - spawns an infantry portal at your feet
infantryportal - spawns an infantry portal at a default IP location in marine start
give hydra - spawns a hydra (does not seem to grow as opposed to doing it manually through a gorge)
give skulk - spawns a skulk that you can shoot at or bite!
give gorge - spawns a gorge that you can shoot at or bite!
give lerk - spawns a lerk that you can shoot at or bite!
*note: "give" also works for crag, shift, shade, fade and onos, but you will only hear a sound. there will be no model for these.
skulk - changes you to a skulk
gorge - changes you to a gorge
lerk - changes you to a lerk
fade - changes you to a fade (note: when using this command, make sure you are not on the ground or you will fall through the map. Try getting on the wall as a skulk and using the command then)
onos - changes you to an onos (note: when using this command, make sure you are not on the ground or you will fall through the map. Try getting on the wall as a skulk and using the command then)
net_stats - gives you network information
r_stats 1 - turns on various graphics stats like FPS among other things (r_stats 0 to turn off)
r_wireframe - turns on wireframe mode. Really cool! (for some reason "r_wireframe 1" does nothing, but "r_wireframe 0" shuts it off)
r_shadows 0 - turns off dynamic shadows which improves performance ("r_shadows" turns them back on, NOT "r_shadows 1")
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->say anystringoftext - speaks to all (for some reason using the console command cuts off the first and last letters of the string)<!--QuoteEnd--></div><!--QuoteEEnd-->I noticed the console likes to put [ and ] around everything you type. Perhaps this has something to do with the square brackets?
;) jk
give heavy ( or whatever the code is, ) changes a skulk to a heavy TSA... not good!
spawn masc
spawn sentry
You have to send a MAC to fully build the sentry, but the MASC is fully built and you can move it around (although I found it pretty unresponsive, I suppose that's why you need cheat commands to get it).
r_stat 1 works though
<b>addbot</b> - adds a simple bot
<b>removebot</b> - removes bot (although it doesn't seem to work?)
You can also move them around as commander, but they seem pretty glitchy and don't do much else yet.
with s may be? :)
Also you should be on "dev 1" mode to add bots. We played with 3 boths, i killed by them 2 times. Generally they stuck somewhere at corners or any objects.