by Fishytza » Tue Aug 18, 2015 3:09 am
Would this idea be too troublesome?
APlayerChunk (the detached head) is given a new variable called 'BodyClass'.
A_SkullPop and A_FreezeDeathChunks will store the body's classname (I think that's TypeName, isn't it?) as the APlayerChunk's BodyClass.
When the player calls the resurrect cheat and if the current pawn is a APlayerChunk, check the 'BodyClass' variable. If the class is valid and of type APlayerPawn, spawn the new body, transfer the inventory from the chunk to the new body, attach the body to the player, do whatever else is necessary when giving new bodies to players, and remove the chunk.
Would this idea be too troublesome?
APlayerChunk (the detached head) is given a new variable called 'BodyClass'.
A_SkullPop and A_FreezeDeathChunks will store the body's classname (I think that's TypeName, isn't it?) as the APlayerChunk's BodyClass.
When the player calls the resurrect cheat and if the current pawn is a APlayerChunk, check the 'BodyClass' variable. If the class is valid and of type APlayerPawn, spawn the new body, transfer the inventory from the chunk to the new body, attach the body to the player, do whatever else is necessary when giving new bodies to players, and remove the chunk.