Portal 2 Guide

Useful Scripts / Scripts útiles for Portal 2

Useful Scripts / Scripts útiles

Overview

In english / En españolA collection of scripts to use in game binding to keys. The console in needed.I use the console and some scripts a lot so I’m going to write it here to remember them in case of lost and also to help other people to use them.You can help adding your useful scripts or improving the ones I write here.(I’m studing english so please forgive me or correct my mistakes, thank you)Colección de scripts para usar en el juego ‘adjuntadas’ a teclas. Es necesaria la consola.Uso la consola y determinados scripts bastante por lo que voy a escribirlos aquí en caso de que los pierda y para ayudar a otras personas a usarlos.Puedes ayudar añadiendo tus scripts útiles o mejorando los que he puesto aquí.(Si quieres ayudarme a traducir la guía a otros idiomas dímelo y estaré encantado de incluirte como colaborador)

This guide / Esta guía

This is a collection of scripts binding to keys, not a collection of commands (there is another guide with them. See below)
All the scripts are with the ‘bind’ command, i’m going to explain it:

Esta es una colección de script ‘adjuntadas’ a teclas, no una colección de comandos (hay otra guía con ellos. Ver abajo)
Todos los scripts están con el comando ‘bind’, voy a explicarlo:

bind (key) (script)

In the (key) tag you need to write the key wich execute the (script). For example: ‘bind h help’ will show the help (in the console) when you press h. If you want to add more than one command you need to put “” and a ; between each command. For example: ‘bind h “help ; showconsole” ‘ will show you the help and open the console. I reccomend to put the key between ” too, but it’s not necesary in almost all cases.

En el apartado (key) necesitas escribir la tecla que ejecutará el (script). Por ejemplo: ‘bind h help’ the mostrara la ayuda (en la consola) cuando pulses h. Si quieres añadir mas de un comando necesitas poner “” y un ; entre cada comando. Por ejemplo ‘bind h “help ; showconsole” ‘ te mostrara la ayuda y abrirá la consola. Recomiendo colocar también la tecla entre ” , pero no es necesario en casi todos los casos.

I use the keys i want and you can change it in case you want or you use that key to another command. More information about the keys here:

Yo uso las teclas que quiero y puedes cambiarlas si quieres o si necesitas esa tecla para otro comando. Más información sobre las teclas aquí:

[link]

A guide with the commands:
[link]

Cheats / Trucos

You can change between cheats/no-cheats changing the property of sv_cheats to 1 or 0.
You can open the console and change the value manually, but there is an easiest option:

Puedes cambiar entre usar trucos/no usarlos cambiando la propiedad de sv_cheats a 1 ó 0.
Puedes abrir la consola y cambiar el valor manualmente, pero hay una mejor opción:

//cheats/no-cheats trucos/no trucos bind “F1” “toggle sv_cheats”

Advanced noclip / noclip avanzado

You probably know the ‘noclip’ command, and you can bind it to a key. But there is a better script for this:

Probablemente conocerás el comando ‘noclip’, y puedes ‘adjudicarlo’ a una tecla. Pero hay un mejor script para esto:

//activate/deactivate advanced noclip activa/desactiva noclip avanzado bind “F2” “noclip;notarget;god;buddha”

With it you can go throw walls, be invencible (yes, you can go throw goo without die) and invisible for the turrets. All in one.

Con él puedes atravesar paredes, ser invencible (si, puedes atravesar el agua sin morir) e invisible para las torretas. Todo en uno.

See triggers / Ver activadores

//show/hide triggers muestra/oculta activadores bind “F3” “showtriggers_toggle”

You can see the triggers (in yellow) of the map.

Puedes ver los activadores (en amarillo) del mapa.

Object creator / Creador de objetos

You probably know the ent_create_… commands wich allows you to create objects. But you need to remember all the commands…or not. Here is my script. (the name of the objects are in spanish, but you can change them)

Probablemente conozcas los comandos ent_create_… que te permiten crear objetos. Pero necesitas recordar todos los comandos…o no. Aquí está my script.

console / consola:

bind “o” “elige_objeto” bind “p” “crea_objeto”

autoexec.cfg:

//creador objetos interactivo alias “crea_objeto” “ent_create_portal_weighted_sphere” alias “elige_objeto” “elige_1” alias “elige_1” “alias crea_objeto ent_create_portal_weighted_cube;alias elige_objeto elige_2;say_team cubo normal” alias “elige_2” “alias crea_objeto ent_create_portal_companion_cube;alias elige_objeto elige_3;say_team cubo de compania” alias “elige_3” “alias crea_objeto ent_create_portal_reflector_cube;alias elige_objeto elige_4;say_team cubo reflector” alias “elige_4” “alias crea_objeto ent_create_portal_weighted_antique;alias elige_objeto elige_5;say_team cubo antiguo” alias “elige_5” “alias crea_objeto ent_create_paint_bomb_erase;alias elige_objeto elige_6;say_team agua” alias “elige_6” “alias crea_objeto ent_create_paint_bomb_jump;alias elige_objeto elige_7;say_team pintura azul” alias “elige_7” “alias crea_objeto ent_create_paint_bomb_speed;alias elige_objeto elige_8;say_team pintura naranja” alias “elige_8” “alias crea_objeto ent_create_paint_bomb_portal;alias elige_objeto elige_9;say_team pintura blanca” alias “elige_9” “alias crea_objeto ent_create prop_dynamic;alias elige_objeto elige_10;say_team error” alias “elige_10” “alias crea_objeto ent_create prop_monster_box;alias elige_objeto elige_11;say_team frankenturret” alias “elige_11” “alias crea_objeto npc_create npc_portal_turret_floor;alias elige_objeto elige_12;say_team torreta” alias “elige_12” “alias crea_objeto ent_create npc_personality_core;alias elige_objeto elige_13;say_team weathley” alias “elige_13” “alias crea_objeto prop_dynamic_create npcs/glados/glados_animation;alias elige_objeto elige_14;say_team glados” alias “elige_14” “alias crea_objeto ent_create prop_glados_core;alias elige_objeto elige_15;say_team glados core” alias “elige_15” “alias crea_objeto ent_create env_portal_laser;alias elige_objeto elige_16;say_team laser” alias “elige_16” “alias crea_objeto ent_create npc_security_camera;alias elige_objeto elige_17;say_team camara” alias “elige_17” “alias crea_objeto give prop_testchamber_door;alias elige_objeto elige_18;say_team puerta” alias “elige_18” “alias crea_objeto fire_rocket_projectile;alias elige_objeto elige_19;say_team proyectil” alias “elige_19” “alias crea_objeto create_flashlight;alias elige_objeto elige_20;say_team luz” alias “elige_20” “alias crea_objeto ent_create_portal_weighted_sphere;alias elige_objeto elige_1;say_team bola”

Singleplayer / Un jugador

//show/hide flashlight enciende/apaga linterna bind “l” “impulse 100”

You need to activate sv_cheats to use it.

Necesitas activar sv_cheats para usarlo.

————————————————————————————

sv_enableholdrotation 1

This is not a ‘bind script’ because you only need to change it once to activate it. But you can also put it in a script if you wish.

Esto no es un ‘script de bind’ porque solo necesitas activarlo una vez. Pero puedes ponerlo en un script si deseas.

bind “k” “toggle sv_enableholdrotation”

This allows you to rotate objects holding right mouse key while you are carrying it, but not all objects.

Te permite girar los objetos manteniendo el botón derecho del ratón mientras los sostienes, pero no todos los objetos.

Multiplayer / Multijugador

There is a menu for multiplayer who shows four options to show (see below) but they are only for multiplayer. If you activate it in singleplayer the menu doesn’t dissapear, but you can hide it writing this ‘-mouse_menu_playtest’ in the console(or restarting the game). Anyway you can try it:

Hay un menu para multiplayer que muestra cuatro opciones para multijugador (ver abajo) pero solo es para multijugador. Si lo activas en modo un jugador el menu no desaparece, pero puedes ocultarlo escribiendo ‘-mouse_menu_playtest’ en la consola(o reiniciando el juego). De todas formas puedes probarlo:

//show multiplayer menu muestra menu multiplayer bind “r” “+mouse_menu_playtest”


————————————————————————————————-

If you want to try multiplayer maps in one screen, but only with one controler (one person), you need to know how to change between players. The best way is this: (from here:[link])
P.D: You need to activate sv_cheats 1

Si quieres probar mapas para multijugador en una pantalla, pero solo con un controlador (una persona), necesitas conocer como cambiar entre personajes. La mejor manera es ésta: (de aquí: [link])
P.D. Necesitas activar sv_cheats 1

//change player cambiar jugador bind “F4” “-moveleft; -moveright; -use; -forward; -back; -attack; -attack2; toggle in_forceuser”

————————————————————————————————-

Multiplayer remote view Vista remota del compañero

Information from here:
Información de aquí:
[link]

Do you ever want to have the remote view in multiplayer always on? You can. Just follow this points:

¿Alguna vez has querido tener siempre activada la vista remota del compañero? Puedes. Simplemente sigue estos pasos:

  • C:Program FilesSteamsteamappscommonportal 2portal2cfgautoexec.cfg
    Open this file.
    Abre este archivo.

  • Write this in it:
    Escribe esto en él:

    //toggle remote view vista remota toggle alias “rv” “rvon” alias “rvon” “+remote_view;alias rv rvoff” alias “rvoff” “-remote_view;alias rv rvon”

  • In the game, in the console, write once this:
    En el juego, en la consola, escribe esto una vez:

    bind “TAB” “rv”

Now you can activate/deactivate the remote view just pressing the key once.
Known issues:
When you start a new map, the remote view is always off, so you need to press twice the key. Only the first time in a new map (if you used the key before)

Ahora puedes activar/desactivar la vista remota pulsando la tecla una vez.
Problemas conocidos:
Cuando empiezas un nuevo mapa, la vista remota está siempre apagada, por lo que necesitas pulsar la tecla dos veces. Solo la primera vez en un nuevo mapa (si usaste la tecla antes)

Summary / Resumen

If you want to have all of this in one place, you can made a new file here:
C:Program FilesSteamsteamappscommonportal 2portal2cfg call [name].cfg and write all the ‘bind’ commands in it. So you only need to execute this file writing in the console ‘exec [name]’ only once.
This is an example of my file:

Si quieres tener todo esto en un solo lugar, puedes crear un archivo aquí C:Program FilesSteamsteamappscommonportal 2portal2cfg llamarlo [nombre].cfg y escribir todos los comandos ‘bind’ en él. De esta forma solo necesitas ejecutar este archivo escribiendo en la consola ‘exec [nombre]’ una sola vez.
Este es un ejemplo de mi archivo:

binds.cfg

bind “TAB” “rv” bind “o” “elige_objeto” bind “p” “crea_objeto” bind “r” “+mouse_menu_playtest” bind “F1” “toggle sv_cheats” bind “F2” “noclip;notarget;god;buddha” bind “F3” “showtriggers_toggle” bind “F4” “-moveleft; -moveright; -use; -forward; -back; -attack; -attack2; toggle in_forceuser” bind “l” “impulse 100”

The file autoexec.cfg is needed for some commands. You need to add this lines, but sometimes the game change it so its a good idea if you make a copy of it. This is mine:

El archivo autoexec.cfg es necesario para algunos comandos. Necesitas añadir estas líneas, pero a veces el juego lo cambia así que es una buena idea si haces una copia de él. Este es el mío:

autoexec.cfg

(original file)(archivo original) //—————————————- alias “rv” “rvon” alias “rvon” “+remote_view;alias rv rvoff” alias “rvoff” “-remote_view;alias rv rvon” sv_enableholdrotation 1 //creador objetos interactivo alias “crea_objeto” “ent_create_portal_weighted_sphere” alias “elige_objeto” “elige_1” alias “elige_1” “alias crea_objeto ent_create_portal_weighted_cube;alias elige_objeto elige_2;say_team cubo normal” alias “elige_2” “alias crea_objeto ent_create_portal_companion_cube;alias elige_objeto elige_3;say_team cubo de compania” alias “elige_3” “alias crea_objeto ent_create_portal_reflector_cube;alias elige_objeto elige_4;say_team cubo reflector” alias “elige_4” “alias crea_objeto ent_create_portal_weighted_antique;alias elige_objeto elige_5;say_team cubo antiguo” alias “elige_5” “alias crea_objeto ent_create_paint_bomb_erase;alias elige_objeto elige_6;say_team agua” alias “elige_6” “alias crea_objeto ent_create_paint_bomb_jump;alias elige_objeto elige_7;say_team pintura azul” alias “elige_7” “alias crea_objeto ent_create_paint_bomb_speed;alias elige_objeto elige_8;say_team pintura naranja” alias “elige_8” “alias crea_objeto ent_create_paint_bomb_portal;alias elige_objeto elige_9;say_team pintura blanca” alias “elige_9” “alias crea_objeto ent_create prop_dynamic;alias elige_objeto elige_10;say_team error” alias “elige_10” “alias crea_objeto ent_create prop_monster_box;alias elige_objeto elige_11;say_team frankenturret” alias “elige_11” “alias crea_objeto npc_create npc_portal_turret_floor;alias elige_objeto elige_12;say_team torreta” alias “elige_12” “alias crea_objeto ent_create npc_personality_core;alias elige_objeto elige_13;say_team weathley” alias “elige_13” “alias crea_objeto prop_dynamic_create npcs/glados/glados_animation;alias elige_objeto elige_14;say_team glados” alias “elige_14” “alias crea_objeto ent_create prop_glados_core;alias elige_objeto elige_15;say_team glados core” alias “elige_15” “alias crea_objeto ent_create env_portal_laser;alias elige_objeto elige_16;say_team laser” alias “elige_16” “alias crea_objeto ent_create npc_security_camera;alias elige_objeto elige_17;say_team camara” alias “elige_17” “alias crea_objeto give prop_testchamber_door;alias elige_objeto elige_18;say_team puerta” alias “elige_18” “alias crea_objeto fire_rocket_projectile;alias elige_objeto elige_19;say_team proyectil” alias “elige_19” “alias crea_objeto create_flashlight;alias elige_objeto elige_20;say_team luz” alias “elige_20” “alias crea_objeto ent_create_portal_weighted_sphere;alias elige_objeto elige_1;say_team bola”

Others / Otros

Here are a list of all new commands I discovered after, or suggested in comments.
Aqui hay una lista de nuevos comandos que he descubierto, o que han sugerido en los comentarios.

Suggested by/ Sugerido por: “HARDC0RE_P0RTAL_GAMER”

bind “k” “+score”

This will popup the score screen, this command is more specific for other Source games, but it work.
Esto mostrará la pantalla de puntuaciones, este comando es mas especifico para otros juegos Source, pero funciona.

host_timescale #

(Default: 1)
You need the cheats on
This wil change the speed of the game (Warning, also the music)

Necesitas tener los trucos activados
Esto cambiará la velocidad del juego (Cuidado, tambien la música)

bind “h” “incrementvar host_timescale 0.5 1.5 0.5”

This will allow you to quickly switch between slow/normal/fast (0,5 / 1 / 1,5)
Esto te permitirá cambiar rapidamente entre lento/normal/rapido (0,5 / 1 / 1,5)

bind “k” “toggle mat_fullbright”

This will disable dynamic lighting and show all as bright as possible (like the flashlight but for all the map)
Esto desactivará la iluminación dinámica y mostrará todo tan luminoso como sea posible (como la linterna pero a todo el mapa)

SteamSolo.com