Link:
http://www.armaholic.com/page.php?id=32574
For mission builders:
If you want to limit the usability of CPR you can do so by setting adv_aceCPR_quotient to a value of your choice. This way resuscitation by CPR is only available for a fraction of the ace_medical_maxReviveTime. So let's say you set adv_aceCPR_quotient to 2, then you can only resuscitate a patient if his revive-timer has not reached half of ace_medical_maxReviveTime, if you set it to 4 you can only resuscitate the patient within the first quarter of the ace_medical_maxReviveTime, and so forth.
Just put this in your init.sqf and change the 1 to a value of your liking:
adv_aceCPR_quotient = 1;
It's possible to limit the CPR to units with ace_medical_medicClass > 0 only. In that case regular soldiers can still keep a patient from running out on revive time, but they can't resuscitate him. An ACE-medic (ace_medical_medicClass == 1) or ACE-doctor (ace_medical_medicClass == 2) can use CPR to resuscitate a patient, depending on your setting.
adv_aceCPR_onlyDoctors = 0; //all players can resuscitate.
adv_aceCPR_onlyDoctors = 1; //medics and doctors can resuscitate.
adv_aceCPR_onlyDoctors = 2; //only doctors can resuscitate.
Additionally you can set the probabilities for successfull resuscitation individually depending on the value for ace_medical_medicClass a player's unit has.
adv_aceCPR_probabilities = [40,15,5]; //the first entry is for ace_medical_medicClass == 2, the second for == 1 and the third for regular units with ace_medical_medicClass == 0.
If you want to enable logging to rpt set this variable:
adv_aceCPR_diag = true;