I think it can be done, you need to find and freeze the value that makes you invincible when you spawn.

I'll give it a shot tomorrow.