the filter filter_tf_damaged_by_weapon_in_slot can block or allow damage from certain weapon slots, be it primary, secondary, melee, PDA, etc.
using it by itself works just fine. I was able to create a trigger in which players could only be affected by melee damage. The problem is when used in conjunction with a filter_multi. I tried to create a filter to block stickies by combining a filter_tf_class set to allow demoman and a filter_tf_damaged_by_weapon_in_slot set to allow only secondary in a filter_multi.
The filter will sometimes not work and other times just block demoman, as if the filter_tf_damaged_by_weapon_in_slot did not exist. I will get an error in console saying that filter_secondary (what I named my filter_tf_damaged_by_weapon_in_slot set to secondary only) is not a filter entity. I also seem to be getting different results on a listen server and on a dedicated server for some odd reason.
I don't get those errors when connecting to a server hosting my map, only when testing it on a listen server.
Any suggestions?
using it by itself works just fine. I was able to create a trigger in which players could only be affected by melee damage. The problem is when used in conjunction with a filter_multi. I tried to create a filter to block stickies by combining a filter_tf_class set to allow demoman and a filter_tf_damaged_by_weapon_in_slot set to allow only secondary in a filter_multi.
The filter will sometimes not work and other times just block demoman, as if the filter_tf_damaged_by_weapon_in_slot did not exist. I will get an error in console saying that filter_secondary (what I named my filter_tf_damaged_by_weapon_in_slot set to secondary only) is not a filter entity. I also seem to be getting different results on a listen server and on a dedicated server for some odd reason.
I don't get those errors when connecting to a server hosting my map, only when testing it on a listen server.
Any suggestions?