filter_damage_type

From Valve Developer Community
Revision as of 00:29, 13 March 2018 by Greenhourglass (talk | contribs) (See also: Added "see also" for the filters category)

Jump to: navigation, search

filter_damage_type is a point entity available in all Source games. It is a damage filter that filters by the type of damage inflicted. This can only be used as a damage filter, not as an activator filter.

Bug: This entity does not work in Team Fortress 2.

Keyvalues

Damage type <choices>
The damage type to filter by. If the filter mode is Allow, only damage types that match will pass the filter. If the filter mode is Disallow, all damage types EXCEPT those who match will pass the filter.
Value Description
0 GENERIC
1 CRUSH
2 BULLET
4 SLASH
8 BURN
16 FREEZE
16 TRAIN <Team Fortress 2>
16 VEHICLE (New with Alien Swarm)
32 FALL
64 BLAST
128 CLUB
256 SHOCK
512 SONIC
Value Description
1024 ENERGYBEAM
16384 DROWN
32768 PARALYSE
65536 NERVEGAS
65536 SAWBLADE <Team Fortress 2>
131072 POISON
262144 RADIATION
524288 DROWNRECOVER
1048576 CHEMICAL
1048576 CRITICAL <Team Fortress 2>
1048576 ACID (New with Alien Swarm)
2097152 SLOWBURN
4194304 SLOWFREEZE

BaseFilter:

Filter mode (Negated) <boolean>
Inverts the filter, making the specified criteria fail and all others pass.

Inputs

BaseFilter:

TestActivator
Tests the entity that called the input (the !activator) against the filter, and fires either the OnPass or OnFail output.
Bug: Calling this input will cause the server to crash if the !activator entity no longer exists. Do not use this input to test any entities which may be asynchronously deleted, such as players or projectiles, or in an i/o chain which might be initiated by entity deletion, such as the OnEndTouch output of a trigger.

Outputs

BaseFilter:

OnPass
OnFail
One of these will fire when TestActivator input is sent, depending on if the activator is allowed by the filter or not.

Prefabs

See also