Bug Report: HP HUD Shows 0 After Revive at 1 HP (ABCEnhance Latest Version)
Description
There is a client-side HP prediction issue when a player is revived after dying at 1 HP in a server with Max 1 HP (occasionally because of Difficulty 100).
After revival, the HUD briefly shows 0 HP, causing the player to appear dead until the server updates the correct HP value.
Steps to Reproduce
- Player dies at 1 HP.
- Player is revived (via command or revive mechanic).
- Revive logic restores half of previous/max HP.
- Since half of 1 HP is 0.5 HP, the HUD attempts to display this predicted value.
- The fractional value gets converted into an integer and becomes 0.
- The client temporarily treats the player as dead (HUD disabled).
- The server packet arrives and updates HP to 1, correcting the display.
Expected Behavior
- A revived player should never temporarily show 0 HP.
- HP should always be at least 1 after revive.
Actual Behavior
- HUD briefly shows 0 HP.
- Player is treated as dead client-side until the server correction arrives.
Additional Observations
- The issue does not occur on Difficulty 99 (where max HP is 10).
- The problem appears when revive calculations produce fractional HP (for example, 0.5).
- The problem appears only when player move to observer camera after death, if they stay on dead state not moving as observer, the hud will be fine on revive.
- This suggests the issue is caused by client-side HP prediction before server confirmation.
Suspected Cause
The revive system appears to calculate half of the previous HP.
When the max HP is 1 on the server, half becomes 0.5.
Because HP is handled as an integer, this value becomes 0 during conversion.
Since 0 HP represents death, the client temporarily flags the player as dead until the server updates the correct value.
Suggested Fix
Ensure that HP is clamped to a minimum value of 1 during revive.
A revived player should never have 0 HP under any circumstances.
Video Demonstration
https://youtu.be/RHVghjESiag
Thank you for your work on ABCEnhance. Please let me know if further testing or logs are needed.
Bug Report: HP HUD Shows 0 After Revive at 1 HP (ABCEnhance Latest Version)
Description
There is a client-side HP prediction issue when a player is revived after dying at 1 HP in a server with Max 1 HP (occasionally because of Difficulty 100).
After revival, the HUD briefly shows 0 HP, causing the player to appear dead until the server updates the correct HP value.
Steps to Reproduce
Expected Behavior
Actual Behavior
Additional Observations
Suspected Cause
The revive system appears to calculate half of the previous HP.
When the max HP is 1 on the server, half becomes 0.5.
Because HP is handled as an integer, this value becomes 0 during conversion.
Since 0 HP represents death, the client temporarily flags the player as dead until the server updates the correct value.
Suggested Fix
Ensure that HP is clamped to a minimum value of 1 during revive.
A revived player should never have 0 HP under any circumstances.
Video Demonstration
https://youtu.be/RHVghjESiag
Thank you for your work on ABCEnhance. Please let me know if further testing or logs are needed.