filter_script
filter_script is a filter entity available
with any version of Mapbase.A filter which utilizes hooks in its entity scripts.
Here’s a list of the hooks filter_script can use:
| Signature | Description |
|---|---|
| bool PassesFilter(handle caller, handle entity) | Check if the given caller and entity pass the filter. |
| bool PassesDamageFilter(handle caller, handle info) | Check if the given caller and damage info pass the damage filter. |
| bool PassesFinalDamageFilter(handle caller, handle info) | Used by filter_damage_redirect to distinguish between standalone filter calls and actually damaging an entity. Returns true if there's no unique behavior. |
| bool BloodAllowed(handle caller, handle info) | Check if the given caller and damage info allow for the production of blood. |
| bool DamageMod(handle caller, handle info) | Mods the damage info with the given caller. |
