Damage Flags show what type of damage a thing has been given. They can be retrieved from the second parameter
of the damaged message.
Damage caused by contact with things (such as projectiles and explosions) will use the thing's damageclass template
property as the Damage Flag. DamageThing() has a parameter to set the Damage Flags for the target's
damage.