Trigger activated by sniper damage?

drwhooo

L1: Registered
Jan 18, 2010
7
0
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?
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
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.
 

Wander

L3: Member
Sep 16, 2010
148
55
you can try using a func_breakable, just set its health very high, and use the ontakedamage or onhealthchanged outputs
 

xzzy

aa
Jan 30, 2010
815
531
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.
 

drwhooo

L1: Registered
Jan 18, 2010
7
0
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? :eek:

Correct.

you can try using a func_breakable, just set its health very high, and use the ontakedamage or onhealthchanged outputs

Tried this way as well (with and without filters, not that that matters) and func_breakable doesnt take sniper damage either.
 

xzzy

aa
Jan 30, 2010
815
531
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.
 

drwhooo

L1: Registered
Jan 18, 2010
7
0
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.

I tried it both ways. No damage taken. Oddly enough jarate activates it :(