Thsi script is used as a OnDamaged handler script of the door, placeables or secret doors.
This should be used by all doors. If special handing is required use Hooks to modify the behavior of this script.
This function will do following things:
damage
variable and check it against damage_limit or DC*DC. If damage limit is negative exit.