How to make a func_breakable only damageable by melee

Discussion in 'Mapping Questions & Discussion' started by KiddleyWiffers, Mar 2, 2019.

  1. KiddleyWiffers

    KiddleyWiffers L1: Registered

    Messages:
    2
    Positive Ratings:
    0
    I am creating a map and need to make it to where a func_breakable can only be damaged via melee. I am making a map that you can dig through and I don't want a heavy, soldier, demo, or even medic just drilling through the entire area very quickly.
     
  2. Narpas

    aa Narpas Takes way to long to make and update maps

    Messages:
    419
    Positive Ratings:
    399
    Create a filter_tf_damaged_by_weapon_in_slot, give it a name (e.g. damage_filter), set the filter mode to allow, and set the "Weapon Slot" keyvalue to "Melee". Next, in your func_breakable entities, set the "Damage Filter" keyvalue to the name of the filter you just created, and voilĂ , everything should work fine