Keeping enemies out of the spawn.

Discussion in 'Mapping Questions & Discussion' started by Cee Cee, Oct 14, 2017.

  1. Cee Cee

    Cee Cee L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    Hello, I am kind of new to the TF2 mapping and I come with a question.
    How do I prevent players to fly into opposite spawns with noclip?
    My server will use Roll the Dice plugin and I want people to NOT go to other team's spawnroom.
    Would trigger_hurt work?
     
  2. [Rx.] Christian Troy

    [Rx.] Christian Troy L4: Comfortable Member

    Messages:
    154
    Positive Ratings:
    42
    Trigger_hurt with team filters will kill enemies if they try to enter then there is func_respawnroomvisualizer that will make an invisible wall the enemies can't pass through.
     
  3. Cee Cee

    Cee Cee L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    How do you make team filters though?
     
  4. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    223
    Positive Ratings:
    53
    Spawn a "filter_activator_tfteam" entity, give it a name and set the Team you want to kill. Then, go to the trigger_hurt's properties and select the filter's name in the "Filter" field. This way, only the team matching that entity will get killed when touching the volume.
     
    • Like Like x 2
  5. henke37

    aa henke37

    Messages:
    1,837
    Positive Ratings:
    420
    That team, and the winning team. That's a nasty gotcha that's poorly documented.
     
    • Agree Agree x 1
  6. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    223
    Positive Ratings:
    53
    Completely forgot about that, sorry. I used to play on cp_orange_x3_fix (the fixed version of the map, not the original one), and whenever the winning team entered the enemy spawn, we all died. I guess disabling the trigger is the proper solution.
     
  7. Muddy

    Server Staff Muddy Muddy

    Messages:
    2,372
    Positive Ratings:
    4,167
  8. Powerlord

    Powerlord L3: Member

    Messages:
    124
    Positive Ratings:
    58
    That would be how you would normally do it, but it doesn't stop noclipped players.
     
  9. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    223
    Positive Ratings:
    53
    In Counter-Strike: Source, the noclip mode seems to also put you in godmode. This isn't the case for TF2 since I've done a lot of things in the game and often touched those entities while accidentally flying into them.

    Unless you meant something else by "doesn't stop them", I know no other meaning to that sentence.
     
  10. Cee Cee

    Cee Cee L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    Thank you very much.
     
  11. Cee Cee

    Cee Cee L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    Also, could there be a way to make projectiles bounce off respawnroomvisualizer?
    I saw it before on maps like Trade_Plaza, where although bullets could go in, the projectiles like rockets and stickies couldn't.
     
  12. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    702
    Positive Ratings:
    198
    Sounds like they were using a func_clip_vphysics brush. Those stop stickies, grenades, jarate, milk and sandman balls from passing though but not rockets. Rockets (and other explosives) can be countered with func_nogrenades.

    You could also copy Valves own method for protecting MvM bots, by giving them an uber while in their spawn area. For that you'd use a trigger_add_tf_player_condition brush and set it to either 5 (TF_COND_INVULNERABLE) or 51 (TF_COND_INVULNERABLE_HIDE_UNLESS_DAMAGED), the 2nd one being the one Valve uses on MvM bots.

    However when it comes to spawn rooms you're better off using simple world brushes to stop projectiles from getting too far in. So long as player don't have a direct line of sight into where enemy players will spawn, and there is a buffer zone where any projectiles will be caught/contained, then the players inside should be fine.
     
  13. Powerlord

    Powerlord L3: Member

    Messages:
    124
    Positive Ratings:
    58
    I quoted the post I replied to, which was about blocking players with func_respawnroomvisualizers.