custom filters

Discussion in 'Mapping Questions & Discussion' started by AeitZean, Oct 8, 2010.

  1. AeitZean

    AeitZean L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    is there /are there already a way to create a custom entity filter_activator_equipment ?

    i want to find a way to detect what players have equipped and change their spawn room accordingly, i.e. everyone with a hat on goes to one room, and without a hat to another.

    is it possible to do this just in the map's code, or do i need to customise a whole server?

    thanks
     
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,767
    Positive Ratings:
    5,508
    Can't be done in a map.
     
  3. Draco18s

    Draco18s L9: Fashionable Member

    Messages:
    622
    Positive Ratings:
    136
    You're asking for something that likely can't even be done with a server side plugin. I mean, hell, there isn't even a filter to determine if a func_breakable is taking damage from a melee weapon, a rocket, fire, or bullets.

    No really. :| You can't filter a breakable object to only take damage from certain weapon categories (eg. damage filter).
     
  4. AeitZean

    AeitZean L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    really? seriously?

    hot damn thats restrictive. i was thinking of doing a map where the spawn room for people with hats had mirrors with a glass wall to the other team so they could show off to each other, meanwhile people without hats start closer to the action.

    oh well, thanks for the info, i cant belive we cant even tell what a person has equipped :(
     
  5. Draco18s

    Draco18s L9: Fashionable Member

    Messages:
    622
    Positive Ratings:
    136
    Last I tried, yes. They did recently update the DAMAGE_TYPE fields to have TF2 damage types and not HL2 damage types (lol Frost damage displays as a train kill) so I haven't checked with those yet.

    But I wouldn't be overly surprised if you still couldn't filter for melee/bullets/explosive.

    (In a related vein: medigun needles, huntsman arrows, the flamethrower, and flares cannot damage func_breakable objects)
     
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,767
    Positive Ratings:
    5,508
    Actually I think it would be entirely possible with a server plugin, filtering based on equipment wouldn't be hard at all when you have that kind of access.
    Also you can actually filter for weapon slot (filter_tf_damaged_by_weapon_in_slot), that was added with training mode.

    and uhh the damage type names is my doing, not Valve's >.>
     
  7. Draco18s

    Draco18s L9: Fashionable Member

    Messages:
    622
    Positive Ratings:
    136
    Ah of course. I didn't connect getting the Lazy Noob Pack* with that change.

    In which case I'll forgo testing again.

    *Your Hammer tools thing. The DF Lazy Noob Pack is a one stop shop download for all of the major utilities, stable version of the game, and a graphical tileset. So you can see the similarities.
     
  8. AeitZean

    AeitZean L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    any hints as to what i should do if i want to filter by weather a hat is equipped then? filter entity in hammer? server plugin? give up?
     
  9. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,767
    Positive Ratings:
    5,508
    Plugin would be the only way, but I don't know the first thing about making those.
     
  10. matou

    matou L2: Junior Member

    Messages:
    86
    Positive Ratings:
    10
    Which is very upsetting :( especially when back in the day i had such a cool idea with breakables.
     
  11. Draco18s

    Draco18s L9: Fashionable Member

    Messages:
    622
    Positive Ratings:
    136
    It's a shame, but most breakable structure ideas still function even without those classes using those weapons. You can even set the damage threshold up to about 35-40 and every class can still break things with SOME weapon (for the medic, sniper, and pyro that'll be melee).
     
  12. matou

    matou L2: Junior Member

    Messages:
    86
    Positive Ratings:
    10
    Well it was like a bust door down and capture a base. so if the pyro couldnt help kind of makes him useless other then running around spychecking or stopping the defending team from jump off their walls.
     
  13. Draco18s

    Draco18s L9: Fashionable Member

    Messages:
    622
    Positive Ratings:
    136
    ...Fireaxe the door?