I would like to suggest a function to filter llDamage types either by rejecting or accepting the specific type wanted. Possibly functioning similar to llCollisionFilter
As a suggestion
llDamageFilter(integer type, integer accept);
integer type - bit mask, DAMAGE_TYPE_* flags
integer accept - TRUE only process types that match, FALSE instead excludes matches
this would be useful to prevent unwanted script events for damage_types that we do not want to account for in code