#[Sekiro] Determining if the player is dead (for real)

1 messages · Page 1 of 1 (latest)

winged wharf
#

I'm looking for a lead on how to determine whether the player is proeprly dead in Sekiro, either because they've run out of resurrections or because they chose not to resurrect. In other games I just look at whether HP is zero, but obviously that's not suitable here. I've poked around the PlayerGameData to see if I can find any count of remaining resurrections, but to no avail. I see a DeadScreen in the menu system, but I can't see that it has any fields on it that actually indicate its visibility state, at least without going way deeper into the rendering stack than I've currently charted. Any tips would be appreciated.

river sand
#

Resurrection nodes are technically items so you could check for items 1100 and 1110 but that doesn't acount for the black bar that blocks resurrections.
The field in speffects that removes the black bar is called revivalRecastDamage and it is always set to 99999 which implies that the bar has a "healthbar" of sorts that needs to be taken to zero before it can be removed.

#

There is an event that handles Unseen Aid and it references several event flags, one of which is likely triggered on true death but I've been unable to pinpoint which one is which

sick siren
#

I know you probably mean in a "typical" modding fashion, but if you just mean checking in any way at all, I once got a death counter to work by simply reading the player's hp from memory, saving the value, and then comparing it with the next instance. If it's 0, and the previous check was greater than zero, then you died. You can make it work for cases where you revive by just waiting for the next instance greater than 0 and if it's less than your max hp then you revived rather than respawned