Skip to content

CPR upgrade

3Mydlo3 requested to merge cpr-upgrade into master

Adds custom CPR system calculating CPR success chance approximately every second (uniform distribution [0.5, 1.5]).

Success probability depends on blood pressure, bleeding, blood volume, adrenaline in system, healer medical skill and CPR elapsed time.

Factor Multiplier impact
Bleeding [-0.5, 0]
Blood pressure [-0.06, 0.06]
Blood volume [-0.2, 0.2]
Adrenaline [0, 0.2, 0, -0.2]
Medical skill [0, 0.4]

Probability = 0.01 * (CPR elapsed time)^(multiplier/totalTime/2)

Additionally, CPR action is hidden if it can't help and can't be performed prone.

Merge request reports