This would allow a modder to use different sprites in pain or death states.
For example, if the function could figure out that the monster was attacked from behind, the modder could have the monster go to a line of code (in DECORATE) and
have the sprite sequence showing the monster leaning forward as a result of the blow, versus getting hit up front, when the monster would appear to stumble backwards
or from the side, or from any other angle! This would also make it reasonable to create multiple angle views for death sprites (like for the enemies in DOOM) so if you
shot the monster in the side, the monster wouldn't appear to fly backwards as it would if you simply used only one set of angled views. (that is, if a set of views was created
to give the same impression that the monster is flying backwards as the single set of sprites used in DOOM)
It would be even more effective to be able to check the height at which the projectile hits the monster, because you could have the monster clutch it's gut when hit in the
middle of the body, or stumble down to the ground when shot in the legs, etc. This could also be used to allow for headshots.

This may actually be more effective to, instead of using a function, being able to create states for monsters that are triggered when the height/directional criteria are met.
Personally, I can't tell which would be more efficient.