filter_tf_condition

Discussion in 'Mapping Questions & Discussion' started by radarhead, Nov 2, 2014.

  1. radarhead

    aa radarhead Level 20 "Mapper"

    Messages:
    1,011
    Positive Ratings:
    546
    I need this entity for my bumper cart map. It's listed on the Valve Dev Wiki, but I can't find it as an entity choice. Is it not the the FGD (even with ABS) or did Valve remove it? Is there any way I can substitute another entity?
     
    Last edited: Nov 2, 2014
  2. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    trigger_add_tf_condition
     
  3. radarhead

    aa radarhead Level 20 "Mapper"

    Messages:
    1,011
    Positive Ratings:
    546
    No. I need to check for a player not having the bumper car condition, and kill them if they are on the field.
     
  4. Egan

    aa Egan

    Messages:
    1,318
    Positive Ratings:
    1,512
    It wasn't added to the FGD but it might still work for the time being, here it is in Aug 29's rd_asteroid:

    [​IMG]

    Also you could just change how your entities work: filter the hurt trigger to anyone not named 'incart' using a negated filter_activator_name, just name the people who should be in carts with a 'addoutput - targetname incart'.
     
    • Thanks Thanks x 1
  5. Barracuda

    Barracuda L1: Registered

    Messages:
    41
    Positive Ratings:
    36
    That's what I did in my bumper car prefab. Maybe you want to have a look at it. The entity isn't in the FGD, but it's definitely in the engine, so you have to change the class name and keyvalues manually. Alternatively, you can also add this to your tf.fgd:

    Code:
    @FilterClass base(BaseFilter,Condition) iconsprite("editor/filter_class.vmt") = filter_tf_condition :
    	"A filter that only allows players affected by a certain condition. "
    [
    ]
    
     
  6. radarhead

    aa radarhead Level 20 "Mapper"

    Messages:
    1,011
    Positive Ratings:
    546
    Thanks egan, I've implemented that now!