fail i'm sorry, it was a request, I still have to improve my English xd.
I tested this on l4d2 and i have a bug: the survivor does not restore your hp correctly
https://imgur.com/a/vVGHEe0
edit:
I think that now I realize that this restoration was necessary to avoid losing a lot of hp or killing yourself when released xd. I will leave this alternative version for L4D2, in case someone else doesn't like that