filter_activator_name doesn't work for tf2 weapons

Discussion in 'Mapping Questions & Discussion' started by Fragancia, Jul 12, 2016.

  1. Fragancia

    Fragancia L2: Junior Member

    Messages:
    83
    Positive Ratings:
    29
    Hey guys, I've been trying to use the filter_activator_name entity in conjunction with a trigger_multiple using a weapon's targetname to trigger. (e.g tf_weapon_grenadelauncher with a targetname of "Launcher")
    But the trigger completely ignores the weapon as I enter the trigger and nothing happens.

    What I'm trying to achieve is similar to this tutorial made by @Egan
    http://tf2maps.net/threads/tutorial-class-filters.22395/

    But I don't want to use this to filter classes, just some weapons.
     
    Last edited: Jul 12, 2016
  2. Izotope

    aa Izotope Never releases maps

    Messages:
    609
    Positive Ratings:
    571
    Make sure the weapon can be a trigger by checking the flags.
     
  3. Fragancia

    Fragancia L2: Junior Member

    Messages:
    83
    Positive Ratings:
    29
    I've ticked Everything (not including physics debris) and Physics Debris.
    It doesn't work despite that and I'm clueless what it could be right now.
     
  4. Fragancia

    Fragancia L2: Junior Member

    Messages:
    83
    Positive Ratings:
    29
    I decided to put out a video to hopefully give you all a better understanding of what my problem is.

     
  5. Frosty Scales

    aa Frosty Scales

    Messages:
    83
    Positive Ratings:
    34
    From what I've seen using AddOutput to put a targetname on an entity does not work consistently at all. (works for some entities and not others) I wouldn't be surprised if you just couldn't do it in this case.
     
  6. Fragancia

    Fragancia L2: Junior Member

    Messages:
    83
    Positive Ratings:
    29
    I think I might be giving up on this one, it's causing me too much pain to try and repeatedly test on what can make it work...
    Couldn't figure out another way of what I wanted, if anyone knows of a working way to filter a player using a specific weapon, please let me know.
     
  7. Egan

    aa Egan

    Messages:
    1,305
    Positive Ratings:
    1,486
    1. Thanks for pinging me; I've updated that old thread because filter_tf_class now exists.

    2. There does exist a filter_tf_damaged_by_weapon_in_slot that you could TestActivator for maybe and see which slotted weapon damaged a func_button. Would the new class filter entity not do the job you desire?
     
  8. Fragancia

    Fragancia L2: Junior Member

    Messages:
    83
    Positive Ratings:
    29
    I want a way to check what weapon class a player has equipped, e.g apply different effects based on if its a demoknight or demoman entering a trigger.
     
  9. Fragancia

    Fragancia L2: Junior Member

    Messages:
    83
    Positive Ratings:
    29
    So I've come to the conclusion that what I want to achieve isn't possible with the limited tools available for mappers to use, site staff is free to close this thread.
     
  10. Frosty Scales

    aa Frosty Scales

    Messages:
    83
    Positive Ratings:
    34
    why not just use filter_activator_class with a classname filter for tf_weapon_grenadelauncher?
     
  11. Fragancia

    Fragancia L2: Junior Member

    Messages:
    83
    Positive Ratings:
    29
    That's the first thing I tried and it doesn't work for weapons, works better on projectiles.