Creating a Portal 2 Coop Map: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
title=Creating a Portal 2 Coop Map|
title=Creating a Portal 2 Coop Map|
ru=Creating_a_Portal_2_Coop_Map:ru|
ru=Creating_a_Portal_2_Coop_Map:ru|
de=Creating_a_Portal_2_Coop_Map:de
}}
}}
{{stub}}
{{stub}}

Revision as of 02:31, 26 May 2012

Template:Otherlang2

Stub

This article or section is a stub. You can help by expanding it.

Here are the basic steps needed to create a coop map:

  • Create a func_instance. Set its VMF file to one of the coop spawn rooms, such as instances/coop/coop_spawn_room.vmf. These VMF files already contain an info_player_start, so don't create another one.
  • Create another func_instance, this one set to one of the level end rooms, such as instances/coop/coop_endlevel_room.vmf.
  • Build your map in between these rooms. (You can move them, of course.) The embedded VMF files have an obvious exit which should lead into your map. You may need to enclose the rooms in order to prevent leaks.
  • Make sure you save the map with the prefix mp_coop_.

That's it! See Testing Portal 2 Co-Op Maps Alone for how to test the map without a partner. (To test it with a partner, both must have the bsp file. Get into the hub normally, then the host should changelevel to the map.)