filter by class per-spawn room- possible?

Discussion in 'Mapping Questions & Discussion' started by (s2a) yahodahan, Jun 5, 2009.

  1. (s2a) yahodahan

    (s2a) yahodahan L3: Member

    Messages:
    144
    Positive Ratings:
    18
    Hi all, thanks for help on this one, just a quicky I couldn't seem to find answers to.

    I'm just looking to force certain classes spawn at a certain location- I know there is a "class filter", and such, but how to apply this to a spawn point?

    Thanks all!!
     
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    You can't.
    filter_activator_class refers to the game code, in which each different entity is a class, to say only allow npc_antlion to trigger something. It was around before TF2 and has nothing to do with player classes.
     
    • Thanks Thanks x 1
  3. (s2a) yahodahan

    (s2a) yahodahan L3: Member

    Messages:
    144
    Positive Ratings:
    18
    A Boojum Snark-

    thank you once again for insta-crushing my dreams, before I had enough time to miss 'em.

    Darn.

    Seriously though, thanks for the crazy fast response!
     
  4. Jive Turkey

    Jive Turkey L3: Member

    Messages:
    120
    Positive Ratings:
    32
    IIRC there was a way to force ppl to play a certain class by making the spawn room inescapable except by certain doors that upon entering the map would change the player to the appropriate class (using the point_clientcommand entity I believe) and then teleport them into the map proper. The idea is that each door is marked for a certain class and you choose your class by entering that door. You can't change class outside without dying and then being sent back into that room where you're stuck once again with the doors to choose class.

    It's a little messy (and really frustrating that you still can't filter by player class, Valve!), but using this you could then decide where you'd like certain classes to spawn.