Spawning by Individual

Discussion in 'Mapping Questions & Discussion' started by EArkham, Nov 1, 2010.

  1. EArkham

    aa EArkham Necromancer

    Messages:
    1,570
    Positive Ratings:
    2,193
    Strange question, dunno how to do it or if it's possible.

    Basically I'm looking for a way to set an individual player's spawn location based on a trigger. It'd work like this:

    Say I have two spawn rooms, A & B, both for the same team.

    Player #1 spawns in spawn room A. Player #2 spawns in spawn room A as well.

    Player #2 goes to spawn room B, hits the trigger, then changes classes or dies afterwards. He respawns in spawn room B. Player #1 meanwhile hasn't touched that trigger, so he still respawns in spawn room A if he dies.

    Is this possible, setting an individual player's spawn room? Or anything similar to this?

    Kep
     
  2. Zimius

    Zimius L1: Registered

    Messages:
    10
    Positive Ratings:
    0
    I'm interested in this as well, sounds as if you could interesting things with it :)
     
  3. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,531
    All spawns would be in a fake spawn room, basically a black box outside the map. Fill it with a trigger_teleport that uses a landmark to maintain relative position (so all players don't stack up). Have that teleport to your main spawn room. Add another one that uses a filter_activator_name set to something like Bplayer. Then on whatever your trigger is use !activator > AddOutput > targetname Bplayer to give the player's entity a name, which will make them use the other teleport. You'll also need the first teleport set to a filter that does NOT allow Bplayer. Also to "remove" the targetname and let them spawn in A again, just change it to something else, since you can't actually remove it.

    The caveat with this is because you need to use a landmark for the teleport, all spawn rooms need to face the same direction, as the player's view angle will be preserved.
     
    • Thanks Thanks x 1
  4. LeSwordfish

    aa LeSwordfish semi-trained quasi-professional

    Messages:
    4,109
    Positive Ratings:
    6,059
    ^
    We just aren't challenging this guy enough.
     
  5. Zimius

    Zimius L1: Registered

    Messages:
    10
    Positive Ratings:
    0
    @A Boojum Snark
    Thanks! Let's see if i can get it too work ;)

    @LeSwordFish
    Actually, I still had to puzzle for about an hour to get it to work for the things i want to do with it :)