Cheat codes for experimenting with stuff

aeroripperaeroripper Join Date: 2005-02-25 Member: 42471Posts: 2,107NS1 Playtester, Forum Moderators, Constellation mod
edited July 2011 in NS2 General Discussion
All Console Commands for NS2
Is there any commands to give yourself more carbon/plasma so to test different buildings and stuff?

QUOTE
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
addbot - adds a bot
removebot -removes a bot

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")


Thanks lucid and everyone else! Added info to first post. All commands are also listed in a different format in the wiki:

http://www.unknownworlds.com/ns2/wiki/inde...onsole_Commands
Post edited by Unknown User on
Tarrog

Comments

  • SlycasterSlycaster Limited Edition Join Date: 2002-01-24 Member: 24Posts: 2,301Members, 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. :)
    Post edited by Unknown User on
    Cyanide
    Uzver
  • LooSikLooSik Join Date: 2008-08-22 Member: 64866Posts: 7Members
    If you want pure resources you could alter ( make a backup ) ResourceTower.lua in ns2/lua folder.

    CODE
    ResourceTower.kResourceInterval = 24
    ResourceTower.kPlasmaInjection = 1
    ResourceTower.kCarbonInjection = 1



    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! Join Date: 2003-07-15 Member: 18173Posts: 6,132Members, 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.
    blah blah blah
  • LucidLucid Join Date: 2002-12-11 Member: 10534Posts: 732Members, 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.
    dn`lucid
  • mattoXmattoX Join Date: 2007-08-01 Member: 61739Posts: 82Members
    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

    My flesh and my heart may fail, but God is the strength of my heart and my potion forever.
  • ReKReK Join Date: 2004-08-30 Member: 31058Posts: 708Members, 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 server console, and, since there's no rcon right now, that means this is listenserv (singleplayer) only

    CODE
    // 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
    Post edited by Unknown User on
    Jumping send out a big hank cyclone, it will eddy original location in gallinaceous body, and pinch three times, opponent
  • RedGumsRedGums Join Date: 2010-07-27 Member: 73134Posts: 20Members
    edited July 2010
    Typing in 'Cheats 1' then 'exit' or 'quit' has been rumoured to have some sort of effect.




























    image









    image
    Post edited by Unknown User on
    *IMAGE BALEETED.* Sigs may not exceed 400x75 and/or 40KB filesize in total. No exceptions. -Talesin
  • N_3N_3 \o/ Join Date: 2004-03-12 Member: 27291Posts: 487Members, Constellation
    does 'cheats 1' let the game begin with one player?
    image iNi | N3 image NSGuides image NSP
    image
  • LucidLucid Join Date: 2002-12-11 Member: 10534Posts: 732Members, Constellation
    QUOTE (N_3 @ Jul 27 2010, 08:57 AM) »
    does 'cheats 1' let the game begin with one player?
    yes
    dn`lucid
  • LucidLucid Join Date: 2002-12-11 Member: 10534Posts: 732Members, 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")
    Post edited by Unknown User on
    dn`lucid
  • Alex2539Alex2539 Join Date: 2010-07-15 Member: 72401Posts: 25Members
    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: 30793Posts: 3,225Members, Constellation
    QUOTE (Lucid @ Jul 27 2010, 08:10 PM) »
    name anystringoftext - changes your name to anystringoftext. haven't figured out how to include spaces.
    I suspect you probably need to include speech marks/double quotes (") around variables with spaces. E.g. name "two words"

    QUOTE
    say anystringoftext - speaks to all (for some reason using the console command cuts off the first and last letters of the string)
    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: 72536Posts: 5Members
    gg money should work as well


    ;) jk
  • UncleRayUncleRay Join Date: 2010-03-08 Member: 70881Posts: 361Members
    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!
    http://concretenmetal.blogspot.com/
    "I think my alcohol stream is getting some blood in it"
  • rsdrsd Join Date: 2003-02-11 Member: 13405Posts: 222Members
    You're complaining cheat commands have unexpected results?
  • PapayasPapayas Join Date: 2010-07-01 Member: 72219Posts: 812Members
    Is there a code for spawning the MASC or whatever it is called?
    Sig images should be no larger than 400x75px in size.
  • MendaspMendasp I touch maps in inappropriate places Valencia, Spain Join Date: 2002-07-05 Member: 884Posts: 3,921Members, NS1 Playtester, Contributor, Constellation, NS2 Playtester, Squad Five Gold, NS2 Map Tester, Reinforced - Shadow, WC 2013 - Shadow, Community Dev Team
    (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: 24214Posts: 3,651Forum Moderators, NS2 Playtester, Reinforced - Onos, Subnautica Playtester mod
    I just created a listen server, did cheats 1 but the give commands don't do anything :(
    r_stat 1 works though
    image Proud Dutchman image
    Join the Natural Selection IRC channel: #naturalselection on irc.gamesurge.net!
  • TyrNemesisTyrNemesis trigger_CUT! Join Date: 2003-09-17 Member: 20942Posts: 1,048Members, 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!
    user posted image
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471Posts: 2,107NS1 Playtester, Forum Moderators, Constellation mod
    edited November 2010
    Looks like they're some new bot commands in the newest (153) build:

    addbot - adds a simple bot
    removebot - 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.
    Post edited by Unknown User on
  • yimmasabiyimmasabi Join Date: 2006-11-03 Member: 58318Posts: 372Members
    edited November 2010
    QUOTE
    very basic bots for load testing ("dev 1" at server, "addbots #" or "removebots #"


    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.
    Post edited by Unknown User on
    Esenja Energy Management and Engineering, Mechanics, Electrics and Software LCC
    http:/www.esenja.com
This discussion has been closed.