func_button and filter_damage_type

Kunny

L2: Junior Member
Jan 2, 2017
80
9
I want to make it so that my button cannot be activated by blast damage. I tried to accomplish this by using a "filter_damage_type", but the button was still activated when hit with blast damage.

Button:
upload_2020-6-10_23-1-0.png


Damage Filter:
upload_2020-6-10_23-2-0.png


Is there any way that I can have a button that cannot be activated blast damage or projectiles?
 

Pinsplash

bad bad bad
May 8, 2016
156
71
Most weapons in tf2 actually use multiple damage types at once. To access these, you need to combine the numbers associated with each of the damage types they use. the numbers needed (and i haven't confirmed these myself, just going off of math and code here) for grenades, stickies, and rockets are 262208 and 2359360. You'd need a filter_multi to filter against both of these at once.