Portal 2 Guide

Console commands for Portal 2

Console commands

Overview

Want to mess around and crash your game? Look no further! Use commands like crash, noclip and so much more!

How to open the console and getting started.

To open the console:
Most of the commands will require you to put this command in before to work: sv_cheats 1

Now go mess your game!

Self plug for my Portal Playground (shame me)

Portal playground is for your game crashing needs!

Single-Player: [link]

Co-op: [link]

Cheats

OK, time for some fun!

Spawn list

Companion Cube: ent_create_portal_companion_cube

Cube: ent_create_portal_weighted_cube

Reflector Cube: ent_create_portal_reflector_cube

Old Cube: ent_create_portal_weighted_antique

Edgeless Safety Cube: ent_create_portal_weighted_sphere

Turret: npc_create npc_portal_turret_floor

Turret wife (Fat turret): prop_dynamic_create npcs/turret/turretwife

Frankenturret: ent_create prop_monster_box

Wheatley : ent_create npc_personality_core

UNUSED Wheatley GLaDOS: prop_dynamic_create npcs/glados/glados_wheatley

Wheatley GLaDOS: prop_dynamic_create npcs/glados/glados_wheatley_newbody

Wheatley GLaDOS boss: prop_dynamic_create npcs/glados/glados_wheatley_boss

GLaDOS: prop_dynamic_create npcs/glados/glados_animation

Water: ent_create_paint_bomb_erase

Repulsion Gel: ent_create_paint_bomb_jump

Propulsion Gel: ent_create_paint_bomb_speed

Conversion Gel: ent_create_paint_bomb_portal

Rocket: fire_rocket_projectile

Energy Pellet: fire_energy_ball

Door: give prop_testchamber_door

Laser: ent_create env_portal_laser (Always faces one way, use reflector cube)

Funnel Emitter (Does not include funnel): ent_create prop_tractor_beam

Camera Security Camera: ent_create npc_security_camera

Pedestal Button: ent_create prop_button

Error: ent_create prop_dynamic

User cheats

Kill yourself: kill

Kill your partner: kill <partner name>

Fly and have no collision: Noclip

Portals Can Be Placed Anywhere: sv_portal_placement_never_fail (0=off, 1=on)

Have multiple portals (try using it to understand it): change_portal_linkage_id <A number> (Don’t have over 4 visible portals! Unless you want your game to crash or see the cool glitches, don’t do it.)

Environmental cheats

Rotate objects: ent_rotate (rotates by 1° by default. the amount of numbers you add at the end is how many degrees it rotates.)

Change Portal Size: portals_resizeall (width) (hight) (default is 33 55)

Change Gravity: sv_gravity (600=default)

Change Game Speed: host_timescale (default is 1)

Change Frankenturret Velocity: sv_monster_turret_velocity (default is 100)

Turrets Target Cameras instead of you: ent_fire !picker addoutput “spawnflags 512” (Why? I don’t know maybe you make a map where the turrets join your team and try to stop GLaDOS or something idk)

Remove Objects (can crash game): ent_remove

Change current level: changelevel “map name” (List of maps: [link]

Enter a level: Map “map name”

Ent_fire commands

Ignite things: ent_fire !picker ignite

Change the colour of things: ent_fire !picker colour r g b (r = red g = green b = blue

Enable funnels: ent_fire !picker enable

Turrets shoot cameras: ent_fire !picker addoutput “spawnflags 512” (why?)

Fizzle portals: ent_fire prop_portal fizzle

Change an objects skin: ent_fire !picker skin (example: (while looking at wheatley) ent_fire !picker skin 1

Show triggers: showtriggers_toggle

Stupid commands

Close game: quit
Crash game: crash

More technical cheats.

How to spawn Space core, Fact core and Rick.

To spawn them, first enter this code: prop_dynamic_create npcs/personality_sphere/personality_sphere_skins

Now it will be Wheatley at first but stay with me.

Now use the ent_fire !picker skin command

0: Wheatley
1: Rick
2: Space core (spaaaaaaaace)
3: Fact core

Tip: With all prop_dynamics, try to do this: spawn a cube, grab it, noclip into the sky, then spawn the prop_dynamic. With small prop_dynamics just spawn a cube then spawn the prop_dynamic on top of it

Animating stuff

*Note* this will only work on prop_dynamics.

ent_fire !picker setanimation will animate a prop_dynamic. The reason this is on the more technical cheats section is because you will need to know the animations name. So here is some of the cores poses:

Any cores:
idle (returns to bindpose/un-animated pose)
core01_idle
core01_pincher_idle
core02_idle
core02_pincher_idle
core03_idle
core03_pincher_idle

I forgot wheatley’s idles. Sorry. They will be added next update.

Binds

I’m gonna be talking about binds for a while, so here you go!

Bind a command to a key: bind <key> <command> Example: bind n noclip
Have a space in the bind? Do this: bind <key> “<command>” Example: bind 1 “ent_fire !picker skin 1”

Binding is pressing a button to run the command. So you won’t need to use bindtoggle to use showtriggers_toggle because that toggles when you enter it.

Have a bind like sv_cheats 1? Use this command:
bindtoggle <key> <command> Example: bindtoggle u sv_cheats
This will work like the last one with the spaces, though I can’t think of any bindtoggle commands with spaces.

Update logs

1.1

Added
Added technical cheats section
Added cheats, crash, quit, ent_rotate and showtriggers_toggle
Added update logs
Added binds section.

1.11

Added
Self plugged my Portal playground map. (shame me)

1.2

Added
User cheats section

1.21

Added
Got rid of things that say nothing in update logs.
Turret wife spawn (Fat turret)

More coming soon

Stay tuned, just taking a break.
Ask any questions and I will answer.

SteamSolo.com