Testing Portal 2 Co-Op Maps Alone: Difference between revisions
(Fixed some minor things (bad looking links, etc.)) |
|||
Line 14: | Line 14: | ||
===Dual Monitors=== | ===Dual Monitors=== | ||
If you run dual monitors and want to split to each monitor, follow [ | If you run dual monitors and want to split to each monitor, follow [http://forums.steampowered.com/forums/showthread.php?t=1857198 this guide] | ||
==Controlling the second player== | ==Controlling the second player== | ||
Line 35: | Line 35: | ||
This is actually more complicated than it sounds unless you have two controllers available. Source will map actions of the first detected controller to the first player and there doesn't seem to be away to override this. The workaround is to either have two actual controllers or use trickery to make your computer think it has two controllers. | This is actually more complicated than it sounds unless you have two controllers available. Source will map actions of the first detected controller to the first player and there doesn't seem to be away to override this. The workaround is to either have two actual controllers or use trickery to make your computer think it has two controllers. | ||
More information for this can be found on the | More information for this can be found on the [http://forums.steampowered.com/forums/showthread.php?t=1847904 Steam forums]. | ||
===<code>change_portalgun_linkage</code>=== | ===<code>change_portalgun_linkage</code>=== | ||
Line 58: | Line 58: | ||
: There doesn't appear to be a way to do this with the second player, nor does holding Tab to show partner view (+remote_view) work. | : There doesn't appear to be a way to do this with the second player, nor does holding Tab to show partner view (+remote_view) work. | ||
== External | == See also == | ||
* [http://forums.thinkingwithportals.com/maps-and-modding/running-testing-co-op-maps-in-singleplayer-t2299.html | * [[Portal 2 Level Creation]] | ||
* [http://forums.steampowered.com/forums/showthread.php?t=1847904 | |||
* [http://forums.steampowered.com/forums/showthread.php?t=1857198 | == External links == | ||
* [http://forums.steampowered.com/forums/showthread.php?p=22141019 | * [http://forums.thinkingwithportals.com/maps-and-modding/running-testing-co-op-maps-in-singleplayer-t2299.html Original version of this guide] hosted at ThinkingWithPortals.com | ||
* [http://forums.steampowered.com/forums/showthread.php?t=1847904 How-to: Split Screen Coop] | |||
* [http://forums.steampowered.com/forums/showthread.php?t=1857198 How-to: SplitScreen with 2 monitors] | |||
* [http://forums.steampowered.com/forums/showthread.php?p=22141019 How-to: Play Co_Op Alone] | |||
[[Category:Portal 2 Level Design]] | |||
[[Category:Portal 2 Tutorials]] |
Revision as of 12:23, 29 April 2011
This is a guide on how you can test co-op maps alone utilizing the splitscreen capabilities of the Source engine. This also works for any existing coop maps. It does not require any modifications to the map file itself.
This does not cover the requirements for making a coop level in the first place.
Loading the Map
ss_map mapname
- Load
mapname
in splitscreen 2-player mode. Analogous to map in singleplayer. Like map, it is not required to add the trailing .bsp. ss_splitmode mode
- Changes the splitscreen mode.
ss_splitmode 0
: Use recommended settings based on widthss_splitmode 1
: Top-and-bottom splitss_splitmode 2
: Side-by-side split
Dual Monitors
If you run dual monitors and want to split to each monitor, follow this guide
Controlling the second player
If you could actually play the coop map entirely as one player, it wouldn't be a very cooperative map. These are some ways you can control the second player.
in_forceuser
in_forceuser playerindex
- Take over the second player. All movement and other keybindings will be as if the second player used them. Requires cheats to be enabled.
sv_cheats 1
: Turn on cheatsin_forceuser 0
: Control player #1 (Atlas)in_forceuser 1
: Control player #2 (P-Body)
To make this easy to use, set a keybinding for it:
BindToggle "z" in_forceuser
- Swaps you between first and second player when you push "z".

Bind "z" "-moveleft; -moveright; -use; -forward; -back; -attack; -attack2; toggle in_forceuser"
.Use a controller
This is actually more complicated than it sounds unless you have two controllers available. Source will map actions of the first detected controller to the first player and there doesn't seem to be away to override this. The workaround is to either have two actual controllers or use trickery to make your computer think it has two controllers.
More information for this can be found on the Steam forums.
change_portalgun_linkage
This doesn't truly let you play the second character, but it does allow you to create more than one set of linked portals.
change_portalgun_linkage team
- Changes portals fired to belong to the specified team.
change_portalgun_linkage 0
: Chellchange_portalgun_linkage 1
: Unknownchange_portalgun_linkage 2
: Atlaschange_portalgun_linkage 3
: P-Body- Todo: Verify that these values are correct.
Note that the color of portals fired will be unchanged -- Atlas will shoot blue and purple portals regardless of the setting of change_portalgun_linkage.
Other useful console commands
cmd2 command
- Executes command as if typed by the second player.
cmd2 name Player2
: Sets the name of the second playerss_force_primary_fullscreen enable
- Makes the first player fullscreen if enable is 1, hiding the second player's view.
- There doesn't appear to be a way to do this with the second player, nor does holding Tab to show partner view (+remote_view) work.
See also
External links
- Original version of this guide hosted at ThinkingWithPortals.com
- How-to: Split Screen Coop
- How-to: SplitScreen with 2 monitors
- How-to: Play Co_Op Alone