Teleport destination being team-specific

Discussion in 'Mapping Questions & Discussion' started by Phil25, Sep 16, 2015.

  1. Phil25

    Phil25 L1: Registered

    Messages:
    49
    Positive Ratings:
    8
    Is there a way to create a single teleporter trigger and having it teleport RED to one destination and BLU to the other? I understand that it can be done using two different ones and the filter_activator_tfteam entity but that doesn't seem like a clean way at all.

    Thanks in advance. :)
     
  2. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    951
    Positive Ratings:
    937
    I don't know how that would be possible. You need to filter for the player's team, and a trigger can only take in one filter at a time. (You can combine filters, but combining red and blu just simply means everyone.)
     
  3. Hyperion

    aa Hyperion L16: Grid Member

    Messages:
    810
    Positive Ratings:
    618
    It is clean way
     
  4. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    Build:
    • trigger_multiple brush
    • A pair of team filter entities (filter_activator_tfteam) named filter_blu/red
    • A point_teleport in each destination, named teleport_blu/red
    Then:
    • Set the Entity to Teleport for each of your point_teleports as !activator
    • Give each filter entity the output OnPass > teleport_blu/red > Teleport
    • Give the trigger_multiple two outputs like this: OnStartTouch > filter_blu/red > TestActivator, one for each filter.
    That's five entities.

    If you made two trigger_teleport brushes, you would still need two filter entities and two destination point entities (info_target). So that would make six entities.

    The methods above assume you are okay with your players being teleported in to the same spot. If you want them to be teleported in to different positions at the destination, you will need to use trigger_teleport in conjunction with a landmark. You can actually set the landmark to the origin of the trigger_teleport by specifying !self as the landmark. For more precise placement, you can use a bunch of point_teleports and a logic_case but that defeats the object of keeping it simple.
     
  5. Snowbat

    Snowbat L4: Comfortable Member

    Messages:
    165
    Positive Ratings:
    61
    How about just placing 2 trigger_teleport's on tom of each other, one with filter set for BLU and the other set to RED, with each their respective destination?
     
  6. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
     
  7. Phil25

    Phil25 L1: Registered

    Messages:
    49
    Positive Ratings:
    8
    That's what I went with. My concern was having multiple entities around the map stacking on top of each other. I know it doesn't matter that much, but still. :p

    And thanks worMatty but actually having two of the trigger_teleporter's seems like a simpler idea at this point for me.
     
  8. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    No probs. The landmark function of trigger_teleport is very useful.