Spawn switch

Discussion in 'Mapping Questions & Discussion' started by Coolz, Jun 20, 2014.

  1. Coolz

    Coolz L2: Junior Member

    Messages:
    72
    Positive Ratings:
    18
    You know in some maps, blu's spawn changed to red's initial spawn and red gets a new spawn farther back? Well, I'm wondering how you do that. I've worked out already how you get the spawn locations to switch, but my question is the doors.
    When I respawn in my map in the new spawn, the door wont let me out as I'm BLU and its programmed for RED only, how do I change it so after the switch it opens for BLU?
     
  2. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    586
    When the new round starts, send the fomerly RED respawn door trigger volume a SetFilterName input, to whatever you named your BLU-permissive filter.



    ....at least that's how I'd imagine it works, haven't done any multi-stage stuff myself
     
  3. Coolz

    Coolz L2: Junior Member

    Messages:
    72
    Positive Ratings:
    18
    Actually its not when the new round starts, when the 1st point is captures the red spawn is right next to it so its a bit op to have them there, so I made an alternate spawn at the last point so when the 1st point is captured the blus spawn in their old spawn and they get sent to the last point spawn. (2 point map), but I'll try the suggestion anyway. Hopefully it works.
     
  4. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,883
    Positive Ratings:
    5,126
    In multi-stage maps the team filter used for the door of red's spawnroom is usually tied to the second point of the stage using the "associated team entity" keyvalue.

    This means that when the point is captured, the team filter switches to the team that now owns the point. This persists into the next round, so blue can exit.
     
  5. henke37

    aa henke37

    Messages:
    1,947
    Positive Ratings:
    462
    He is talking of a single stage map, Upwards style.
     
  6. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,883
    Positive Ratings:
    5,126
    Doesn't matter, still functions the same in a single stage map.
     
  7. Newe6000

    Newe6000 L1: Registered

    Messages:
    15
    Positive Ratings:
    5
    Question, what would happen to a red member who spawns in that room just as the point changes ownership?
     
  8. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,883
    Positive Ratings:
    5,126
    They would be locked in I suppose. Official maps deal with it in a few ways...Maps like Egypt kill players in the spawn, I think one map forces everyone to respawn (not sure how) in their correct places.

    Usually single-stage maps' forward spawns don't share teams so it's not an issue.
     
  9. TMP

    aa TMP Abuser of Site Rules

    Messages:
    948
    Positive Ratings:
    554
    Steel has a teleport trigger inside of the RED first spawn and it just teleports people to the other spawn when the spawn deactivates. That's probably what you're thinking of.

    I think Upward does this too? Maybe it kills you when 3rd is capped, I don't remember.