|
It uses the Entity's StatusFlag bitfield which stores all the useful information about the appearance, stigma, superman, etc.
So you basically modify that value to include both the Ghost and Dead flag; ghost prevents the user jumping, dead activates the countdown.
Then Just send a 0x3F9 (Update) packet with the RaiseFlag type, to both the client and surrounding clients (Surrounding will prevent people being able to attack a dead person).
- I also recommend a Server side TimeStamp to prevent users reviving prematurely.
Then modify the mesh to show the ghost and send the 0x3F9 (Update) packet, to update the mesh to both the client and surrounding clients.
|