Merge pull request #3945 from acemod/fix-gray-screen-medical

Fix no gray screen for advanced medical
This commit is contained in:
Glowbal 2016-06-18 11:59:14 +02:00 committed by GitHub
commit f6b744e741

View File

@ -151,11 +151,16 @@ GVAR(effectTimeBlood) = CBA_missionTime;
// Bleeding Indicator
if (_bleeding > 0 and GVAR(effectTimeBlood) + 3.5 < CBA_missionTime) then {
GVAR(effectTimeBlood) = CBA_missionTime;
[600 * _bleeding] call BIS_fnc_bloodEffect;
[600 * _bleeding] call FUNC(showBloodEffect);
};
// Blood Volume Effect
_blood = (ACE_player getVariable [QGVAR(bloodVolume), 100]) / 100;
_blood = if (GVAR(level) < 2) then {
(ACE_player getVariable [QGVAR(bloodVolume), 100]) / 100;
} else {
(((ACE_player getVariable [QGVAR(bloodVolume), 100]) - 60) max 0) / 40;
};
if (_blood > 0.99) then {
GVAR(effectBloodVolumeCC) ppEffectEnable false;
} else {