Add a second chance condition that gets triggered when a player would have died without falling unconscious first. When second chance gets triggered, the damage is rescaled such that the health hit zone retains 1 HP.
Strongly reduces passive regeneration of resilience hit zone when second chance was triggered (10 min for full recovery).
Add m_bSecondChanceOnHeadEnabled as setting for enabling second chance for headshots as well.
Additional notes to vanilla:
Incapacitated state is controlled by two hit zones: Resilience and blood. Resilience is a scripted hit zone that takes damage passed by physical hit zones and the main cause for getting incapacitated. It regenerates automatically when it didn't take damage after 10 seconds and is fully recovered after 20 seconds of passive regeneration (or 67 seconds while bleeding).
When merged this pull request will:
m_bSecondChanceOnHeadEnabled
as setting for enabling second chance for headshots as well.Additional notes to vanilla: