This bug occurs because the new_corpse's id and the client's id are the same. when a player dies, that id is despawned.. the corpse gets despawned with the client.
The corpse and the client need to have differing ids.
Everything is working perfectly on my server, will have a fix in a few
