mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
1777719f20
commit
e60cfddc77
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user