diff --git a/addons/medical_treatment/functions/fnc_treatmentCPR_failure.sqf b/addons/medical_treatment/functions/fnc_treatmentCPR_failure.sqf index 7026425682..bca59a1246 100644 --- a/addons/medical_treatment/functions/fnc_treatmentCPR_failure.sqf +++ b/addons/medical_treatment/functions/fnc_treatmentCPR_failure.sqf @@ -15,7 +15,7 @@ params ["_caller", "_target"]; -if(!(_target call EFUNC(common,isAwake)) || {_target getVariable [QEGVAR(medical,inCardiacArrest), false]}) then { +if (!(_target call EFUNC(common,isAwake)) || {_target getVariable [QEGVAR(medical,inCardiacArrest), false]}) then { _target setVariable [QEGVAR(medical,heartRate), 0, true]; }; _target setVariable [QGVAR(receiveCPR), false, true]; diff --git a/addons/medical_treatment/functions/fnc_treatmentCPR_progress.sqf b/addons/medical_treatment/functions/fnc_treatmentCPR_progress.sqf index ee6ba564e8..02504607d4 100644 --- a/addons/medical_treatment/functions/fnc_treatmentCPR_progress.sqf +++ b/addons/medical_treatment/functions/fnc_treatmentCPR_progress.sqf @@ -20,8 +20,8 @@ params ["_args", "_elapsedTime", "_totalTime"]; _args params ["_caller", "_target"]; // If the patient awakes by mysterious force, no cpr is needed! -if(_target call EFUNC(common,isAwake)) exitWith {false}; -if(!(_target getVariable [QEGVAR(medical,inCardiacArrest), false])) exitWith {false}; +if (_target call EFUNC(common,isAwake)) exitWith {false}; +if (!(_target getVariable [QEGVAR(medical,inCardiacArrest), false])) exitWith {false}; [_target] call FUNC(calculateBlood); // Calculate blood volume. If their is no pulse, nothing happens! diff --git a/addons/medical_treatment/functions/fnc_treatmentCPR_start.sqf b/addons/medical_treatment/functions/fnc_treatmentCPR_start.sqf index 76277a1a93..0012a01d2b 100644 --- a/addons/medical_treatment/functions/fnc_treatmentCPR_start.sqf +++ b/addons/medical_treatment/functions/fnc_treatmentCPR_start.sqf @@ -16,7 +16,7 @@ params ["_caller", "_target"]; _target setVariable [QGVAR(receiveCPR), true, true]; // Target receives CPR -if(EGVAR(medical,CPRcreatesPulse) && {_target getVariable [QEGVAR(medical,heartRate), 80] == 0}) then { +if (EGVAR(medical,CPRcreatesPulse) && {_target getVariable [QEGVAR(medical,heartRate), 80] == 0}) then { _target setVariable [QEGVAR(medical,heartRate), round (30 + random [-5, 0, 5]) , true]; // And we have a (random) pulse };