Go Back   Steam Users' Forums > Steam Game Discussions > M - P > Portal 2

Reply
 
Thread Tools Display Modes
Old 07-15-2011, 05:57 PM   #1
Hylian Angel
 
 
 
Join Date: Jun 2011
Reputation: 27
Posts: 86
Developer Console Commands (sv_cheats)

I'm having trouble finding a comprehensive list of Developer Console commands for Portal 2. If you know of any other ones not included in this list, please post!


Spawns
Companion Cube: ent_create_portal_companion_cube
Weighted Storage Cube: ent_create_portal_weighted_cube
Weighted Pivot Cube: ent_create_portal_reflector_cube
Old Aperture Science Cube: ent_create_portal_weighted_antique
Edgeless Safety Cube: ent_create_portal_weighted_sphere
Turret: npc_create npc_portal_turret_floor
Frankenturret: ent_create prop_monster_box
Wheatley : ent_create npc_personality_core
GLaDOS: prop_dynamic_create npcs/glados/glados_animation
Water (clear): ent_create_paint_bomb_erase
Repulsion Gel (blue): ent_create_paint_bomb_jump
Propulsion Gel (orange): ent_create_paint_bomb_speed
Conversion Gel (white): ent_create_paint_bomb_portal
Rocket: fire_rocket_projectile
Beta Energy Pellet: fire_energy_ball
Door: give prop_testchamber_door
Thermal Discouragement Beam: ent_create env_portal_laser
Excursion Funnel Emitter (no funnel): ent_create prop_tractor_beam
Mounted Security Camera: ent_create npc_security_camera
Standing Button: ent_create prop_button
Error: ent_create prop_dynamic

Environment
Turn Cheats On: sv_cheats # (0=off, 1=on)
Portals Work Anywhere: sv_portal_placement_never_fail # (0=off, 1=on)
Change Portal Size (w=width, h=height): portals_resizeall w h (default="portals_resizeall 33 55")
Change Gravity: sv_gravity # (600=default)
Change Game Speed: host_timescale # (1=default, 0.5=half speed, 2=double speed)
Change Frankenturret Velocity: sv_monster_turret_velocity # (100=default)
Activate Excursion Funnel Emitter: ent_fire !picker enable
Turrets Target Cameras: ent_fire !picker addoutput "spawnflags 512"
Burn Objects: ent_fire !picker ignite
Remove Objects (may crash game): ent_remove
Remove All Portals: ent_fire prop_portal fizzle
Rotate Objects: http://forums.steampowered.com/forum...4&postcount=38
Change Maps: changelevel "map name"
List of Map Names: http://megaswf.com/file/1111662
Change Colors (r=red, g=green, b=blue): ent_fire !picker color "r g b"
RGB Color List: http://www.webdiner.com/annexe/hexcode/hexcode.htm
Color Binding: http://forums.steampowered.com/forum...9&postcount=33


User Modifications
Turrets Don't Shoot You: notarget
Kill Yourself: kill
Kill Partner: kill "partner's name"
Invincibility: god
Fly: noclip
Teleport Atlas: ent_teleport blue
Teleport P-body: ent_teleport red
Flashlight: impulse 100
Remove Portal Gun (can still shoot): impulse 200
Regain Portal Gun: give_portalgun
Potato Portal Gun: upgrade_potatogun
Move Portal Gun Left/Right: viewmodel_offset_x # (0=default)
Move Portal Gun Forward/Back: viewmodel_offset_y # (0=default)
Move Portal Gun Up/Down: viewmodel_offset_z # (0=default)
First-Person View : firstperson
Third-Person View: thirdperson
Third-Person Shoulder View: thirdpersonshoulder
Show FPS: cl_showfps # (0=off, 1=fps, 2=smooth fps, 3=server MS, 4=show fps and log to file)
Modify Your Character Model: http://forums.steampowered.com/forum...3&postcount=42


Binds
You can bind keys on your keyboard as shortcuts for using cheats using this format:
Quote:
bind "insertkey" "insertcommand"
For example, if you wanted to create a hotkey for the "kill" command to the key M, you would have to type this into your Developer Console:
Quote:
bind "m" "kill"
So now every time you press M, you will die! Remember not to bind keys such as WASD, FQTEC, Spacebar, SHIFT, TAB, since those are neccessary in regular gameplay. If you want to undo a bind:
Quote:
unbind "insertkey"
Binding is useful, because you don't have to repeatedly open the Developer Console in order to execute commands. Spawning large quantities of cubes is easy with binds!


Notes
  • If you wanna use cheats: Esc -> Options -> Keyboard/Mouse -> Allow Developer Console.
    Press the ` key (upper-left corner of your keyboard) to open the Developer Console. Most of these codes will not work unless cheats are activated (sv_cheats 1).
  • When you turn on sv_cheats, all progress for the session is nulled, including story progression and achievements.
  • Only the host can enable cheats in Co-op mode. The host is always Atlas, the blue robot.
  • The "sv_gravity #" and "cl_showfps #" commands are examples of commands that always work, even if cheats are off.
  • Removing certain objects or removing your partner WILL crash the game (ent_remove).
  • The gel blobs will spawn in all maps, but they won't actually function properly in maps that do not use mobility gels.
  • If you would like to have an easy method of binding all of your keys at once, open up your Program Files and look for: Steam -> steamapps -> common -> portal 2 -> portal2 -> cfg.
    There, you can add and save your own cfg file. Open up Notepad and type in a list of all your binds. Save it and name it "Binds.cfg" (make sure that it really is a cfg extension). Run Portal 2, open your Developer Console, and type:
    Quote:
    exec "Binds"
  • Use the semicolon ( ; ) to execute multiple commands at once.
    Useful for tricks, such as killing your partner without him being able to retaliate with cheats of his own:
    Quote:
    sv_cheats 1; fire_rocket_projectile; sv_cheats 0
    And spawning a huge line of paint:
    Quote:
    "ent_create_paint_bomb_jump; ent_create_paint_bomb_portal; ent_create_paint_bomb_speed; ent_create_paint_bomb_jump; ent_create_paint_bomb_portal; ent_create_paint_bomb_speed; ent_create_paint_bomb_jump; ent_create_paint_bomb_portal; ent_create_paint_bomb_speed; ent_create_paint_bomb_jump; ent_create_paint_bomb_portal; ent_create_paint_bomb_speed"

Last edited by Hylian Angel: 10-06-2011 at 09:21 PM.
Hylian Angel is offline  
Reply With Quote
Old 07-15-2011, 06:01 PM   #2
9E161D40
 
Join Date: May 2011
Reputation: 16
Posts: 23
This could help. http://developer.valvesoftware.com/w...e_Command_List
It's not comprehensive for Portal 2, but at least something to begin with.
9E161D40 is offline   Reply With Quote
Old 07-15-2011, 06:13 PM   #3
nacho friend
 
Guest
Posts: n/a
See this guide for HL2 and Source engine in general(great site btw).

http://www.tweakguides.com/HL2_1.html

The guy that runs this site and writes the guides is now fully legit and does game guides on Nvidias official site.
  Reply With Quote
Old 07-15-2011, 06:31 PM   #4
Hylian Angel
 
 
 
Join Date: Jun 2011
Reputation: 27
Posts: 86
Complicated username guy, thank you for trying to help, but 99% of those codes prolly aren't compatible with Portal 2. I'm just trying to find a nice and concise list of cheats that work specifically for Portal 2.

Nacho Friend... are you trying to advertise? That has nothing to do with this thread at all. I'm not trying to improve my engine at all, just trying to find a list of Portal 2 console commands.
Hylian Angel is offline   Reply With Quote
Old 07-15-2011, 06:37 PM   #5
nacho friend
 
Guest
Posts: n/a
~Post deleted~

Never mind. smh lol

Last edited by nacho friend: 07-15-2011 at 06:44 PM.
  Reply With Quote
Old 07-15-2011, 06:45 PM   #6
Hylian Angel
 
 
 
Join Date: Jun 2011
Reputation: 27
Posts: 86
It's confusing since I had no idea Portal 2 used the same engine as Half-Life. =/
Hylian Angel is offline   Reply With Quote
Old 07-15-2011, 06:48 PM   #7
nacho friend
 
Guest
Posts: n/a
Well just realize I was trying to help and that guide has many commands you can use including sv commands. I wasn't trying to advertise, I was just giving props to a good site that I've been visiting for years.
  Reply With Quote
Old 07-15-2011, 06:50 PM   #8
Hylian Angel
 
 
 
Join Date: Jun 2011
Reputation: 27
Posts: 86
Sorry for accusing of advertising, I mistakenly assumed that you were when I couldn't find any console commands after a couple minutes of searching.
Hylian Angel is offline   Reply With Quote
Old 07-15-2011, 07:44 PM   #9
Xebec
 
 
 
Join Date: Jan 2011
Reputation: 388
Posts: 1,386
These will definitely be useful.
Xebec is offline   Reply With Quote
Old 07-16-2011, 01:09 AM   #10
Warmo161
 
 
 
Join Date: Nov 2010
Reputation: 1
Posts: 40
I was looking for some other commands and I found some to add to your list:

ent_teleport

simply add "red" or "blue" to teleport the other player to where your crosshair is aiming. I havent tried this yet, as every person I go on co op with, enable cheats and play on the single player maps leave.

I would also add the "bind" and "bind_toggle" commands, so you can quickly enable cheats or noclipping
Warmo161 is offline   Reply With Quote
Old 07-16-2011, 07:02 AM   #11
Dark Flesh
 
 
 
Join Date: Jan 2010
Reputation: 19
Posts: 633
btw.
cl_showfps has 4 Versions.
(1 = fps, 2 = smooth fps, 3 = server MS, 4 = Show FPS and Log to file )

For all of you out of Europe.
In some Source Games can you Edit the Developer Console Key right through the Game.
( havent tried with Portal 2 yet )
But if you cant Change the Key via In-Game.
Go to Portal2->Portal2->cfg and look for the normal Config data.
Open it and change the bind "the Key" "Console" to whatever you want.
After that make the Config Read Only since if you dont do it, the Game will Synchonise evrytime you start it and change the Key Again.

Last edited by Dark Flesh: 07-16-2011 at 07:07 AM.
Dark Flesh is offline   Reply With Quote
Old 07-16-2011, 01:24 PM   #12
BananasaurusRex
 
Join Date: May 2011
Reputation: 77
Posts: 278
Some additions:

Spawn a weighted sphere: ent_create_portal_weighted_sphere

Spawn a dud tractor beam "emitter?": ent_create prop_tractor_beam

Spawn a wall mounted camera (draw things on the wall in coop with these): ent_create npc_security_camera team_door-cam_2_light1

Spawn an error (one of many ways): ent_create prop_dynamic

Spawn a wheatley that blinks and works in coop: ent_create npc_personality_core(@sphere)

Spawn a wall mounted laser: ent_create env_portal_laser(env_portal_laser)

Light yourself, other players, and some objects on fire (Only doable as host; extinguishes after a set short time): ent_fire !picker ignite

Spawn a standing button: ent_create prop_button(prop_button)

Spawn a frankenturret: ent_create prop_monster_box(turret_bot4_monster)

Change frankenturret jump speed (set it really high for a laugh): sv_monster_turret_velocity x

Remove objects (Removing errors, some dynamic props like doors, and various other things will crash the game. Most things won't, though): ent_remove

Slow down or speed up time (default is 1.0): host_timescale x

Change portal size (where w is width and h is height. Default is something like 35 and 55 - just for a point of reference): Portals_resizeall w h

Get potatos on your portal gun: Upgrade_potatogun

Change map (Does NOT require sv_cheats 1; map names here: http://megaswf.com/file/1111662): Changelevel mapname

Kill your partner (Only works as host - With sv_cheats set to 1): Kill Partner'sExactName



Useful combinations:

Kill your partner without him being able to retaliate with cheats of his own:
sv_cheats 1;fire_rocket_projectile;sv_cheats 0
Or
sv_cheats 1;kill Partner'sExactName;sv_cheats 0

Spawn a huge line of paint: "ent_create_paint_bomb_jump; ent_create_paint_bomb_portal; ent_create_paint_bomb_speed; ent_create_paint_bomb_jump; ent_create_paint_bomb_portal; ent_create_paint_bomb_speed; ent_create_paint_bomb_jump; ent_create_paint_bomb_portal; ent_create_paint_bomb_speed; ent_create_paint_bomb_jump; ent_create_paint_bomb_portal; ent_create_paint_bomb_speed"

Last edited by BananasaurusRex: 07-18-2011 at 11:59 AM.
BananasaurusRex is offline   Reply With Quote
Old 07-16-2011, 03:47 PM   #13
Hylian Angel
 
 
 
Join Date: Jun 2011
Reputation: 27
Posts: 86
Added those commands. Gonna test some of them out before I add them all.

Edit: Added all the ones that work. The link to the map names is broken.

Last edited by Hylian Angel: 07-16-2011 at 04:46 PM.
Hylian Angel is offline   Reply With Quote
Old 07-18-2011, 11:46 AM   #14
Hylian Angel
 
 
 
Join Date: Jun 2011
Reputation: 27
Posts: 86
So does anybody have any more commands to add? Or a list of map names so that I can check to see if that code works?
Hylian Angel is offline   Reply With Quote
Old 07-18-2011, 11:56 AM   #15
BananasaurusRex
 
Join Date: May 2011
Reputation: 77
Posts: 278
All of them should have worked. Is there one that you couldn't get to work? Maybe I copy and pasted it wrong or you made a mistake. Let me know which ones you're having trouble with.

As for the link, the steam forums just decided to include the closing parenthesis and the colon after it. I'll edit it in my other post and here it is again: http://megaswf.com/file/1111662
BananasaurusRex is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Game Discussions > M - P > Portal 2


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -7. The time now is 11:02 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2014, All Rights Reserved.