Remove the IOF_DEAD and IOF_ANIM flags; use a different implementation