Cheat codes for experimenting with stuff

aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
edited July 2011 in NS2 General Discussion
<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>

Comments

  • SlycasterSlycaster Limited Edition Join Date: 2002-01-24 Member: 24Members, NS1 Playtester
    edited July 2010
    "Cheats 1" in console turns on cheats.

    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. :)
  • LooSikLooSik Join Date: 2008-08-22 Member: 64866Members
    If you want pure resources you could alter ( make a backup ) ResourceTower.lua in ns2/lua folder.

    <!--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.
  • ThaldarinThaldarin Alonzi&#33; Join Date: 2003-07-15 Member: 18173Members, Constellation
    give crag appeared for me however looked as if it did nothing :)

    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.
  • LucidLucid Join Date: 2002-12-11 Member: 10534Members, Constellation
    If you don't want to fall through the floor when using the "fade" or "onos" command, just crawl up a wall as a skulk then type the command in your console.
  • mattoXmattoX Join Date: 2007-08-01 Member: 61739Members
    give heavy, and a nsplayer spawns ;]

    give armory

    give minigun haha but i'm pretty sure no sounds or model

    just have to wait until more is released xD
  • ReKReK Join Date: 2004-08-30 Member: 31058Members, Constellation, Reinforced - Shadow, WC 2013 - Silver
    edited July 2010
    From the lua file:

    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-->
  • RedGumsRedGums Join Date: 2010-07-27 Member: 73134Members
    edited July 2010
    Typing in 'Cheats 1' then 'exit' or 'quit' has been rumoured to have some sort of effect.




























    <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" />
  • N_3N_3 &#092;o/ Join Date: 2004-03-12 Member: 27291Members, Constellation
    does 'cheats 1' let the game begin with one player?
  • LucidLucid Join Date: 2002-12-11 Member: 10534Members, Constellation
    <!--quoteo(post=1786226:date=Jul 27 2010, 08:57 AM:name=N_3)--><div class='quotetop'>QUOTE (N_3 @ Jul 27 2010, 08:57 AM) <a href="index.php?act=findpost&pid=1786226"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->does 'cheats 1' let the game begin with one player?<!--QuoteEnd--></div><!--QuoteEEnd-->yes
  • LucidLucid Join Date: 2002-12-11 Member: 10534Members, Constellation
    edited July 2010
    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.


    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")
  • Alex2539Alex2539 Join Date: 2010-07-15 Member: 72401Members
    Give seems to work for pretty much any entity. I've also successfully used "Give marine" and "give grenade", the latter of which only spawns an explosion.
  • CrispyCrispy Jaded GD Join Date: 2004-08-22 Member: 30793Members, Constellation
    <!--quoteo(post=1786671:date=Jul 27 2010, 08:10 PM:name=Lucid)--><div class='quotetop'>QUOTE (Lucid @ Jul 27 2010, 08:10 PM) <a href="index.php?act=findpost&pid=1786671"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->name anystringoftext - changes your name to anystringoftext. haven't figured out how to include spaces.<!--QuoteEnd--></div><!--QuoteEEnd-->I suspect you probably need to include speech marks/double quotes (") around variables with spaces. E.g. <b>name "two words"</b>

    <!--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?
  • HandonamHandonam Join Date: 2010-07-19 Member: 72536Members
    gg money should work as well


    ;) jk
  • UncleRayUncleRay Join Date: 2010-03-08 Member: 70881Members
    I think the old NS1.0 bug is back.. give grenade launcher as skulk will remove the teeth view, and you can hear sounds of grenade launcher.

    give heavy ( or whatever the code is, ) changes a skulk to a heavy TSA... not good!
  • rsdrsd Join Date: 2003-02-11 Member: 13405Members
    You're complaining cheat commands have unexpected results?
  • PapayasPapayas Join Date: 2010-07-01 Member: 72219Members
    Is there a code for spawning the MASC or whatever it is called?
  • MendaspMendasp I touch maps in inappropriate places Valencia, Spain Join Date: 2002-07-05 Member: 884Members, NS1 Playtester, Contributor, Constellation, NS2 Playtester, Squad Five Gold, NS2 Map Tester, Reinforced - Shadow, WC 2013 - Shadow, Retired Community Developer
    (with cheats on)
    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).
  • ZaggyZaggy NullPointerException The Netherlands Join Date: 2003-12-10 Member: 24214Forum Moderators, NS2 Playtester, Reinforced - Onos, Subnautica Playtester
    I just created a listen server, did cheats 1 but the give commands don't do anything :(
    r_stat 1 works though
  • TyrNemesisTyrNemesis trigger_CUT&#33; Join Date: 2003-09-17 Member: 20942Members, NS1 Playtester, Contributor, Constellation
    I've done and seen about all there is to do and see using this alpha so far. Looking forward to a multiplayer-functional release with a bit more tech in place!
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
    edited November 2010
    Looks like they're some new bot commands in the newest (153) build:

    <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.
  • yimmasabiyimmasabi Join Date: 2006-11-03 Member: 58318Members
    edited November 2010
    <!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->very basic bots for load testing ("dev 1" at server, "addbots #" or "removebots #"<!--QuoteEnd--></div><!--QuoteEEnd-->

    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.
This discussion has been closed.