ForumsGames[neccie]Valve's Portal...some debug console commands I found

4 14694
Programpro
offline
Programpro
562 posts
Nomad

I personally think portal is one of the best games ever...It has of 70 awards, and game of the year from gamer's choice in 2007, and 3 other companies in 2008.

I bought it for PC because of one main reason (I had a 360 version already!)...the developer's console!

For those who don't know, this is a menu included by the creators which allows you to mess with variables and objects in the game...

Well, I've played around with it a lot, and I've found a few commands that are pretty fun to mess around with.

So, let's get to it!

First off, I think 4000 degrees Kelvin (the song as you go towards the end of level 19) is an awesome song. Well, you can play it in portal at any time (or any other sound [except "Still Alive", for some reason] ).

If you want to see a list of sounds, enter soundlist

Then, if you want to play one, type playgamesound [soundpath]

4000 degrees kelvin is:
playgamesound #music\\portal_4000_degrees_kelvin.mp3


Two more I found are sv_portal_placement_never_fail 1 and sv_portal_placement_never_bump 1.

The first allows you to place a portal on any surface (on a curved or too small surface, this will remove the portal of the color you shot and not make another).

The second one allows your 2 portals to overlap. This could be used to shoot two at the same spot, and see yourself in a "mirror".

For those who don't know the standard cheats, enter sv_cheats 1 and click 'submit'.

Then, enter any of these:

impulse101 ~gives you all weapons
god ~makes you invincible
impulse102 ~makes a skull
impulse89 ~I'm not sure if it's 89 or something close...spawns a water vehicle
noclip ~allows you to fly, and go through objects (chemicals/turret/fire still hurt!)
notarget ~turrets won't shoot


Next, I'll discuss spawning things...to do this enter npc_create and then the name of the thing you are spawning. You must be looking at a surface on the ground for this to work.

The things you can create are:

npc_portal_turret_floor ~creates a portal turret
npc_combine_s ~combine soldier (don't forget "s"!!!)
npc_fastzombie ~creates one of those freaky decayed zombies
npc_headcrab ~creates a headcrab


Some final things to toy around with:

sv_throwforce ~set to 1,000,000 and boxes are now projectiles!
sv_gravity ~antigravity is pretty fun
thirdperson ~Gives you a third person view
firstperson ~back to boring ol' first person


So there you have it! Hopefully, I mentioned something you didn't know already!

  • 4 Replies
Programpro
offline
Programpro
562 posts
Nomad

An update:

replace "_4000_degrees_kelvin" with "_still_alive" for the end credits song.

Also, there should only be one / there, I think, and sv_throwforce should be just plain throwforce.


Some more I was told of:

After entering "sv_cheats":

host_timescale 1.0 ~Change 1.0 to 0.5 for 1/2 speed, 2 for double speed, etc.
change_portalgun_linkage_id ~This one is cool. It allows you to make multiple sets of corresponding portals. To use it, you would shoot some, then change the Id, then shoot two more.

More impulse nums:
103 ~Gives Ai, HP, AMMO status of enemy you're looking at
106 ~Gives info on ent/npc you're looking at
107 ~Names texture you're looking at
108 ~Debugs NPC you're looking at
200 ~Removes weapon from view
203 ~Deletes an entity


bind can be used to make a key do something you want.

bind "s" "npc_create npc_portal_turret_floor"

The above command will make it so, if you hit "s" while looking at the floor, it will spawn a turret.

ent_create_portal_weight_box
ent_create_portal_metallic_sphere

I like to bind those commands toe "n" and "m"

I have more I'll post later. That's it for now, tho!

master565
offline
master565
4,104 posts
Nomad

impulse101 ~gives you all weapons


It gives you all the weapons from half life. This also works the other way in half life i think.

bind "s" "npc_create npc_portal_turret_floor"


Why bind S? Doesn't that mean you can't walk backwards without spawning turrets?

P.S. for something like sv_gravity you should put the parameters people need to type after. In this case its just a number but sometimes its more.
Draconigena
offline
Draconigena
102 posts
Nomad

OP was in 2008. Out of curiosity though does anyone know if Portal 2 has console commands?

master565
offline
master565
4,104 posts
Nomad

OP was in 2008


I didn't notice the necro, sorry.

Out of curiosity though does anyone know if Portal 2 has console commands?


Every valve game does.
Showing 1-4 of 4