Changing Co-op spawns

Avatar
screedle
39 Posts
Posted May 22, 2011
Using instnaces, how can i make it so that when a player triggers a brush, they disable the original spawn and enable another one, basically like the team door areas, but individually for each bot.
Advertisement
Registered users don’t see ads! Register now!
Avatar
DaMaGepy
361 Posts
Posted May 22, 2011
Replied 9 hours later
I've already tried that, it makes portal 2 unstable.
Mainly you put another spawnpoint, set it disabled, an in the trigger, u disable the old one, enable the new spawnpoint and then SetAsDefaultSpawn. But sometimes it works, and sometimes just makes Portal 2 exit. I gave up :smile: Ofc i worked when th 2 player activated it together and their spawnpoint ws switched together, weird.
Avatar
Welsh Mullet
23 Posts
Posted May 23, 2011
Replied 8 hours later
Can't you have the players spawn in a small, dark room, then use teleports to get them to the right spawn?
Avatar
msleeper
4,136 Posts
Admin
Posted May 23, 2011
Replied 40 minutes later
This happens multiple times in the official maps. Has nobody compiled those to see how it's done?
Avatar
DaMaGepy
361 Posts
Posted May 23, 2011
Replied 11 minutes later

Welsh Mullet wrote:
Can't you have the players spawn in a small, dark room, then use teleports to get them to the right spawn?

This is what I am doing :smile:

msleeper wrote:
This happens multiple times in the official maps. Has nobody compiled those to see how it's done?

I never saw an official map like that.
There are rooms where BOTH player must be present, and then both spawnpoint is switched. Worked for me without problem.
The problem was when I tried to separate them, making two trigger, one for blue and one for orange.
When blue starts to touch the blue trigger then disable/enable spawnpoint and make it the default, and same for orange. Sometimes it works 5-6 times in a row, and sometimes (on exactly the same map) when one of the players walks thru, after 1-2 sec delay, portal 2 just exits.
This is why I stopped to continue my coop map (and because of the annoying indicator bug thing).
maybe someone can check whats the problem or if it works or not (map and vmf included)
mp_damagepy_01.zip (will delete and remove from here after 1 week)
(this is my attempt to transform my singleplayer map into a coop)
dont try to noclip-fly, because each "checkpoint" only disable the last one, so triggering the 4th spawnpoint it disables the 3rd. Normally players cant skip them.
One checkpoint is at the door of the 3rd big room, one is before the acid, and one is in the 4th gel room. When I test it with ss_map it works ok, also in coop sometimes, but friend said that sometimes it just exits for them, sometimes not. Weird. Anyway, 1-2 day from now when I have time to continue again, I'll do that one-spawnroom portals-with-different-exitpoint thing.
also, whats the problem with my indicator in the gelroom? tried everything, but one always stay blue :sad:

Avatar
Marlovious
111 Posts
Posted Jun 01, 2011
Replied 9 days later
I hate to bump a dead topic, but I've recently made a prefab for the coop "checkpoint". As the stock coop spawn droppers are different for Blue/Orange, I don't see why having them in separate places should be a problem. As long as both sets are enabled/disabled at the same time. I'll do some tests to see if I can get this working.

FYI, my coop checkpoint prefab- Marlow's Coop Airlock Spawn Prefab

Avatar
Kyorisu
8 Posts
Posted Jun 01, 2011
Replied 27 minutes later
All you need to do is have your spawns in the Airlock (as I'll refer to it from now on) disabled on map spawn. When both players are in the airlock you enable the airlock spawners and use SetActiveSpawn to set them as the new spawn point.

I personally like the idea of people modifying the spawn/airlock/end instances so we can get some variety, even some minor differences like the ones I've made in mine.

Avatar
ChickenMobile
2,460 Posts
Posted Jun 01, 2011
Replied 2 hours later
Both instances of the robot coop spawns refer to the same coop_player_spawn entity name. In order to separate them you will need to create the droppers individually and name the instances different names.
I don't know why you would want to split the robot team up though. They are inseparable!
Avatar
msleeper
4,136 Posts
Admin
Posted Jun 02, 2011
Replied 1 hour later
I know Hober mentioned it in at least one other thread - if you are splitting the players up, do try and give them the opportunity (usually at the beginning of the test) to swap places. Having each player be stuck on their half of the puzzle gets frustrating, especially if it's one of the puzzles where one player has to sit around not doing as much as the other.
Avatar
Hober
1,180 Posts
Posted Jun 02, 2011
Replied 22 minutes later
And to add and editorialize a bit, it seems like lazy design. Push yourself to make sure the players can always swap places (even if they have to backtrack to do it) and you'll almost certainly end up with a better puzzle.
Avatar
screedle
39 Posts
Posted Jun 02, 2011
Replied 44 minutes later
I was designing a race map, but gave up and started making another map for the summer competition.
Advertisement
Registered users don’t see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Jun 02, 2011
Replied 5 hours later

screedle wrote:
I was designing a race map, but gave up and started making another map for the summer competition.

Time is almost up! Hopefully it's good :wink: