Portal 2

Portal 2

295 ratings
Portal 2 Console Commands
By matt shatt
There are many great command guides out there, but a new challenger has appeared. Well not really, this guide has had it's #1 spot already but, whatever. Point is this is a good guide. So enjoy it, before i remove it again.
19
2
2
3
3
   
Award
Favorite
Favorited
Unfavorite
Basics
Before you can do anything on this list, you need to type "sv_cheats 1" into the console. If you don't know how to open the console, pause the game, go to options, go to keyboard/mouse, and enable the thing labeled "Allow Developer Console." Now, press the ` key (under esc) to open the console.
Spawns
ent_create_portal_weighted_cube - spawns a standard cube
ent_create_portal_companion_cube - spawns a companion cube
ent_create_portal_reflector_cube - spawns a reflector cube
ent_create_portal_weighted_sphere - spawns a weighted sphere
ent_create_portal_weighted_antique - spawns an antique cube
ent_create prop_weighted_cube - spawns a cube
ent_create prop_monster_box - spawns a frankenturret
ent_create prop_scaled_cube - spawns a scaled cube (only works in the Sixense MotionPack)
ent_create prop_glass_futbol - spawns an unused glass futbol
ent_create prop_exploding_futbol - spawns a bomb that explodes when it hits the ground
ent_create_paint_bomb_jump - spawns a repulsion gel bomb
ent_create_paint_bomb_speed - spawns a propulsion gel bomb
ent_create_paint_bomb_portal - spawns a conversion gel bomb
ent_create_paint_bomb_erase - spawns a water bomb
ent_create prop_paint_bomb - spawns a gel bomb
ent_create weapon_portalgun - spawns a portal gun on the ground that you can pick up
ent_create prop_portal - spawns a portal (non-working)
ent_create npc_portal_turret_floor - spawns a turret
ent_create npc_hover_turret - spawns a hover turret
ent_create npc_rocket_turret - spawns a rocket turret (non-working)
ent_create prop_rocket_tripwire - spawns a tripwire turret
ent_create npc_personality_core - spawns Wheatley
ent_create prop_glados_core - spawns Wheatley without animations, can't be picked up
ent_create prop_personality_sphere - spawns Wheatley without animations, can be picked up
ent_create npc_wheatley_boss - spawns Wheatley in GLaDOS' body (non-working)
ent_create npc_security_camera - spawns a mounted security camera
ent_create generic_actor - spawns the entity that allows GLaDOS to talk (crashes game)
ent_create prop_button - spawns a standing button
ent_create prop_under_button - spawns an antique standing button
ent_create prop_floor_button - spawns a floor button (only works sometimes)
ent_create prop_floor_cube_button - spawns a cube button
ent_create prop_floor_ball_button - spawns a ball button
ent_create prop_under_floor_button - spawns an antique floor button
ent_create prop_testchamber_door - spawns a door
ent_create prop_dynamic - spawns a prop_dynamic
ent_create env_portal_laser - spawns a laser
ent_create prop_laser_catcher - spawns a laser catcher
ent_create prop_laser_relay - spawns a laser relay
ent_create prop_tractor_beam - spawns an excursion funnel emitter
ent_create prop_wall_projector - spawns a light bridge emitter
ent_create projected_wall_entity - spawns a light bridge (spawns in a random spot)
create_flashlight - spawns a flashlight effect
fire_rocket_projectile - fires a rocket
fire_energy_ball - fires an energy pellet
prop_physics_create npcs/potatos/world_model/potatos_wmodel - spawns PotatOS
prop_physics_create props/food_can/food_can_open - spawns a bean can
prop_physics_create npcs/monsters/monster_a_head - spawns a frankenturret without cube
prop_physics_create npcs/monsters/monster_a_cube - spawns a frankenturret without head
prop_physics_create player/ballbot/gib_core_ball - spawns Atlas' head
prop_physics_create player/eggbot/gib_core - spawns P-Body's head
prop_physics_create npcs/turret/turret - spawns a turret, can't be picked up
prop_physics_create npcs/turret/turret_skeleton - spawns a defective turret
prop_physics_create npcs/turret/turret_backwards - spawns a sideways turret
prop_physics_create npcs/turret/turret_boxed - spawns a turret box
prop_physics_create props_junk/wood_crate002a - spawns a crate
prop_physics_create npcs/glados/glados_small_head - spawns a small GLaDOS head
prop_physics_create props/lab_chair/lab_chair - spawns a lab chair
prop_physics_create props/pc_case02/pc_case02 - spawns a pc case
prop_physics_create props/security_camera - spawns a security camera
prop_physics_create gibs/hgibs - spawns a skull
prop_physics_create props/sphere - spawns a W H I T E O R B
prop_dynamic_create props_lab/bot_male - spawns a mannequin
prop_dynamic_create props/faith_plate - spawns a faith plate
prop_dynamic_create props/fizzler - spawns an emancipation grill emitter
prop_dynamic_create props_vac_anim/turret_lowres - spawns a low resolution turret
prop_dynamic_create elevator/elevator_b - spawns an elevator
prop_dynamic_create elevator/elevator_escape - spawns an escape elevator
prop_dynamic_create elevator/elevator - spawns an unused elevator
prop_dynamic_create props/round_elevator_body - spawns a Portal 1 elevator
prop_dynamic_create npcs/bird/bird - spawns a bird
prop_dynamic_create props_sabotage/bird_nest - spawns a bird nest
prop_dynamic_create npcs/glados/glados_disc - spawns one of GLaDOS' large discs
prop_dynamic_create npcs/glados/glados_animation - spawns GLaDOS
prop_dynamic_create npcs/glados/glados_head_anim - spawns GLaDOS' head only
prop_dynamic_create npcs/glados/glados_wheatley_newbody - spawns GLaDOS Wheatley
prop_dynamic_create npcs/glados/glados_wheatley_boss - spawns the Wheatley Boss
prop_dynamic_create npcs/glados/glados_wheatley_boss_screen - spawns Wheatley T.V. mdl prop_dynamic_create npcs/glados/glados_wheatley - spawns beta GLaDOS Wheatley
prop_dynamic_create npcs/personality_sphere/personality_sphere_skins - spawns corrupt cores
prop_dynamic_create npcs/personality_sphere/personality_sphere_50percent - spawns a core
prop_dynamic_create npcs/personality_sphere/personality_sphere_shell - spawns a core shell
prop_dynamic_create npcs/personality_sphere/personality_sphere_pile - spawns a core pile
prop_dynamic_create npcs/turret/turretwife - spawns the opera turret (fat turret)
prop_dynamic_create npcs/turret/turret_fx_fizzler - spawns a Portal 1 turret
prop_dynamic_create npcs/turret/turret_debris_sml - spawns a small destroyed turret pile
prop_dynamic_create npcs/turret/turret_debris_med - spawns a medium destroyed turret pile
prop_dynamic_create npcs/turret/turret_debris_lrg - spawns a large destroyed turret pile
prop_dynamic_create gladdysdestruction/glados_junk_05_ - spawns Hoopy
prop_dynamic_create props_underground/life_preserver - spawns a Borealis life preserver
prop_dynamic_create props_underground/test_chamber_door - spawns an old chamber door
prop_dynamic_create props/portal_door - spawns an unused door
prop_dynamic_create props/portaldoor - spawns a Portal 1 door but it has missing textures
prop_dynamic_create props_basement/incinerator_hatch - spawns an incinerator
prop_dynamic_create props/pedestal_center_reference - spawns a portal gun pedestal
prop_dynamic_create error - spawns an error model
prop_dynamic_create anim_wp/cursher/crusher - spawns a crusher
prop_dynamic_create catwalk_destruction/catwalk_fx_c - spawns a catwalk
prop_dynamic_create props/radio_reference - spawns a radio, can't be picked up (no music)
prop_dynamic_create props/toilet_body_reference - spawns a toilet
prop_dynamic_create props/toilet_lid_reference - spawns a toilet lid
prop_dynamic_create props/bed_body_reference - spawns a bed
prop_dynamic_create props/table_reference - spawns a table
prop_dynamic_create props/combine_ball_launcher - spawns an energy pellet launcher
prop_dynamic_create props/combine_ball_catcher - spawns an energy pellet catcher
prop_dynamic_create props_foliage/mall_tree_large01 - spawns a tree
prop_dynamic_create player/ballbot/ballbot - spawns Atlas
prop_dynamic_create player/eggbot/eggbot - spawns P-Body
prop_dynamic_create player/chell/player - spawns Chell
prop_dynamic_create info_character/info_character_player - spawns Bendy
prop_dynamic_create player/chell/roboarm50percent - spawns the claw arm
prop_dynamic_create props_moon/lunar_rover - spawns the lunar rover seen on the moon
prop_dynamic_create props_moon/lunar_module - spawns the lunar module seen on the moon
prop_dynamic_create props_moon/parts/moon_flag - spawns an American Flag
prop_dynamic_create stars/allstars - spawns a ton of stars out of bounds
Environment & User
noclip - allows you to fly
notarget - turrets don't shoot at you
god - makes you invincible
buddha - makes it so you can't die, but you still take damage
sv_allow_mobile_portals # - allows you to place portals on moving surfaces (0 = off, 1 = on)
sv_portal_placement_never_fail # - allows you to shoot portals anywhere (0 = off, 1 = on) sv_portal_placement_on_paint # - allows you to place portals on conversion gel (0 = off, 1 = on)
sv_portal_placement_never_bump # - allows you to overlap portals (0 = off, 1 = on)
sv_portal_placement_debug # - puts a blue rectangle around portals (0 = off, 1 = on)
pause - pauses the game
unpause - unpauses the game
showconsole - shows the console
hideconsole - hides the console
clear - clears the console
save - saves the game
stopvideos - stops the video that is playing
ent_info <entity name> - shows information on the specified object
ent_remove - removes what you are looking at
ent_remove_all <entity name here> - removes all of the specified entity
thirdperson - makes your view thirdperson
thirdpersonshoulder - makes your view thirdpersonshoulder
firstperson - makes your view firstperson
impulse 100 - gives the player a flashlight
impulse 200 - removes the portal gun texture (can still shoot)
give_portalgun - gives a standard portal gun that can only shoot blue portals
upgrade_portalgun - upgrades the standard portal gun to a dual portal gun
upgrade_potatogun - puts PotatOS on your portal gun
viewmodel_offset_x # - moves your portal gun on the x coordinate (0 is normal, -15 is on left)
viewmodel_offset_y # - moves your portal gun on the y coordinate (0 is normal)
viewmodel_offset_z # - moves your portal gun on the z coordinate (0 is normal)
+remote_view - shows your co-op partner's screen
-remote_view - hides your co-op partner's screen
+mouse_menu_playtest - shows the co-op ping menu
+right - makes you always turn right
-right - makes you stop turning right
+left - makes you always turn left
-left - makes you stop turning left
+attack - makes you constantly shoot your primary portal
-attack - makes you stop shooting your primary portal
+attack2 - makes you constantly shoot your secondary portal
-attack2 - makes you stop shooting your secondary portal
enable_skeleton_draw # - shows wireframes for every model (0 = off, 1 = on)
change_portalgun_linkage_id # - allows you to place multiple sets of portals (0,1,2,3,)
fadeout - makes the screen fade to black
fadein - makes the screen fade to the level
escape - closes the pause menu
sv_cheats # - sets the cheats (0 = off, 1 = on)
sv_gravity # - sets the gravity (600 is normal)
sv_voiceenable # - sets the ability to voice chat (0 = off, 1 = on)
sv_monster_turret_velocity # - sets the velocity of the frankenturret (100 is normal)
portals_resizeall # # - changes the size of your portals (32 56 is normal)
crosshair # - shows your crosshair (0 = off, 1 = on)
mat_fullbright # - disables shadows (0 = off, 1 = on)
mat_showlowresimage # - pixelates textures (0 = off, 1 = on)
bind <key> <command name here> - binds a command to a key
unbind <key> - unbinds the command set to the specified key
unbindall - unbinds all keys
setmodel <entity name here> - sets your model to an entity (only works with prop_dynamics)
showtriggers_toggle - shows the triggers in the map
removeallpaint - removes all the gel from a map
snd_playsounds <sound name here> - plays the specified sound
crash - crashes the game
quit - quits the game
exit - exits the game
killserver - kills the server
changelevel <map name here> - changes the level to the specified map
map <map name here> - loads the specified map
map_background <map name here> - changes the title screen image to the specified map
restart_level - restarts the level
respawn_entities - respawns entities you removed, and sets your position to the start of the level
ent_teleport <player name here> - teleports your co-op partner to you
kill <player name here> - kills the specified player
explode - explodes the player
cl_showfps # - shows FPS (0 = off, 1 = on)
cl_showpos # - shows position (0 = off, 1 = on)
host_timescale # - changes the speed of the game (1 is normal)
ent_fire Commands
There are a lot of commands that start with ent_fire so I just decided to put them all here.

ent_fire !picker skin # - changes the skin of the object you are looking at
ent_fire !picker ignite - sets the object you are looking at on fire
ent_fire !picker enable - enables things like the excursion funnel and light bridge emitters
ent_fire !picker disable - disables the things you enabled
ent_fire <entity name here> - will pick up the entity which is specified
ent_fire !picker open - opens things like doors
ent_fire !picker close - closes the objects you opened
ent_fire !picker disablecollision - disables the collision of the object you are looking at
ent_fire !picker color r/g/b - changes the color of the object you are looking at
ent_fire @chapter_title_text - puts "chapter_title" on your screen for a second
ent_fire @chapter_subtitle_text - puts "chapter_subtitle" on your screen for a second
ent_fire !picker addoutput "spawnflags 512" - the turret you are looking at shoots cameras
ent_fire prop_portal fizzle - removes portals
ent_fire wheatley_monitor-relay_deploy_15degrees trigger - opens Wheatley's monitors
Accessing In-Game Files
This is very easy to do, you don't need some kind of modding thing. Step 1: Right click the game in your Steam Library. Step 2: Click "Manage." Step 3: Click "Browse Local Files." Step 4: Open the File Explorer tab that opened and select "portal2." Now, look through anything you want.

If you want to access the sounds for "snd_playsounds" then do this. Step 5: Select "scripts." Step 6: Scroll down until you find any text document with "game_sounds" in it. Step 7: Look through the selected text document and find any sound with ".wav" at the end. Those are the sound files that you can use with "snd_playsounds."
Extras
You might be thinking "Woah, what else can there be to this thing?" Well if you were, then you came to the right place! Introducing the "Extras" section!

Part 1: The Extras section on the main menu

So if you've played the Steam version of Portal 2, you may have noticed the Extras part on the main menu. So whats in that section? Well, mostly preview videos of the game and trailers. You have the game trailer, the co-op trailer, the videos overviewing the new elements in Portal 2, and one other thing: Super 8 Interactive Teaser. This isn't a video. It's a level. It's a trailer for the Super 8 movie, except it's interactive. So you start out on this train, the train crashes, make your way through this area with exploded train parts, get to this one train car, stop moving, camera makes you look at it, train car door explodes, loud roar plays, and then a Super 8 logo. Well that was lame. If you use console commands you can get WHEATLEY IN THE TRAIN!! Don't give yourself a portal gun though.. game will crash.

Part 2: In-Game Secrets (Coming Soon!)
Troubleshooting
If you have any problems, this should hopefully solve them.

Unable to use any cheats: Make sure sv_cheats is set to 1
Command is not working but others are: Make sure you have typed the command in correctly
Setmodel crashes game: The setmodel command only works with prop_dynamics
Bind command is not working: Be sure to use this format: bind "h" "give_portalgun"
The Hover Turret is an error: It is supposed to be an error, as it doesn't have a model in the game
Model Name is NULL: The entity you are trying to spawn has no model or animations in game
Your Portal Gun is gone: Do this command - respawn_entities
The turret's won't shoot at cameras when you type the command: You have to look at the turret
You can't move or do anything: Reset all keys in the options menu
The End
That's all the commands I know. Well, not really. Just ones that I'll likely be using. Oh yeah with prop_dynamic_create npcs/personality_sphere/personality_sphere_skins you may have just gotten Wheatley, but if you change its skins using "ent_fire !picker skin #" and you noclip inside the model, the eye will be a corrupted cores eye depending on the number. If I find an alternate way to spawn them, i will post it. With prop_dynamic_create error, that command actually SPAWNS an error intentionally, not like doing prop_dynamic_create npcs/space_core or something something stupid. I know that it's the real spawn because you can do setmodel error, and it works. If you tried to do setmodel npcs/space_core then it wouldn't work, just crashes your game. But this works. So yeah, that's cool.


IF YOU TYPE "unbindall" PAUSE THE GAME, GO TO OPTIONS, SELECT KEYBOARD & MOUSE, THEN CLICK EDIT KEYS, THEN DO SET TO DEFAULT. IT WILL REMOVE ALL YOUR CUSTOM BINDS BUT WILL ALLOW YOU TO DO ALL THE NORMAL THINGS AGAIN.
< >
175 Comments
yes (brittlw) Nov 27 @ 10:02am 
to bind it
yes (brittlw) Nov 27 @ 10:02am 
nvm i had to put a " before i type the command in
DenTheDuck Nov 2 @ 2:37pm 
huggy wuggy, use sv_gravity 168 to have blue gel make you jump higher. also makes you stay in the air longer.
SuperStar50505 Oct 30 @ 10:02am 
how do i make it so that if i leave the game things i have bound dont go away:p2aperture: thanks
yes (brittlw) Oct 15 @ 11:03am 
[] : attach a command to a key
]
yes (brittlw) Oct 15 @ 11:03am 
uhh how can i bind anything without it saying fizzle
bind <key> [command] : attach a command to a key
]
leevee Oct 12 @ 6:01am 
@wtrshpdwn just use a decimal, for example 0.5 would be 2 times slower than realtime
leevee Oct 12 @ 6:01am 
chungus
wtrshpdwn Oct 8 @ 12:04pm 
how do i SLOW the game with host_timescale?
i only know how to speed up
INKLING Oct 4 @ 3:56am 
:twitchpogchamp: