Limited strength of pain effect while unconscious

Limited _strength to 0.1 so a player does not have to watch a flashing
screen while he can't do anything about it. Otherwise we need to include
a serious epilepsy warning!
This commit is contained in:
IngoKauffmann 2015-06-03 17:17:35 +02:00
parent 1777719f20
commit e60cfddc77

View File

@ -169,6 +169,9 @@ GVAR(lastHeartBeatSound) = ACE_time;
// Pain effect
_strength = (_pain - (ACE_player getvariable [QGVAR(painSuppress), 0])) max 0;
if (ACE_player getVariable ["ACE_isUnconscious", false]) then {
_strength = _strength min 0.1;
};
_strength = _strength * (ACE_player getVariable [QGVAR(painCoefficient), GVAR(painCoefficient)]);
if (GVAR(painEffectType) == 1) then {
GVAR(effectPainCC) ppEffectEnable false;