Is there any way to setup an ent to trigger something by taking sniper damage? It doesnt seem to register as the same kind of damage as other hitscan weapons. I basicly want to open a door by shooting a switch, but the normal func_button doesnt activate when it takes sniper damage. :/ Any suggestions?
I don't believe there's a way to differentiate between damage types for an entity... but i might be wrong. If i am someone like Booj or YM will tell you so.
I think he just wants it to be activated by sniper damage AS WELL. If i understood it correctly, the button doesn't react to sniper damage, but does to every other kind of damage... Correct?
you can try using a func_breakable, just set its health very high, and use the ontakedamage or onhealthchanged outputs
This is probably the only way to do it, as func_breakable has a field for a filter_damage_type entitiy to control which weapon slots can damage it. You can't limit it to just sniper fire, but anyone's slot 1 weapon will work.
Correct. Tried this way as well (with and without filters, not that that matters) and func_breakable doesnt take sniper damage either.
Try attaching the filter_damage_type entity to it I posted about. I know it works with melee damage as I've put it in game.