Replaced disableUserInput by setDisableUserInputStatus

Makes use of the wrapper around disableUserInput, so it will play nice with others
This commit is contained in:
Glowbal
2015-03-01 14:27:44 +01:00
parent d5e5ab24f2
commit 4b584846b4

View File

@ -78,7 +78,7 @@ GVAR(effectTimeBlood) = time;
GVAR(effectBloodVolumeCC) ppEffectEnable false; GVAR(effectBloodVolumeCC) ppEffectEnable false;
GVAR(effectPainCA) ppEffectEnable false; GVAR(effectPainCA) ppEffectEnable false;
GVAR(effectPainCC) ppEffectEnable false; GVAR(effectPainCC) ppEffectEnable false;
[false] call EFUNC(common,disableUserInput); // @todo, only when disabled? ["unconscious", false] call EFUNC(common,setDisableUserInputStatus);
}; };
// Unconsciousness effect // Unconsciousness effect
@ -86,11 +86,11 @@ GVAR(effectTimeBlood) = time;
GVAR(effectUnconsciousCC) ppEffectEnable true; GVAR(effectUnconsciousCC) ppEffectEnable true;
GVAR(effectUnconsciousRB) ppEffectEnable true; GVAR(effectUnconsciousRB) ppEffectEnable true;
GVAR(effectBlind) = true; GVAR(effectBlind) = true;
[true, true] call EFUNC(common,disableUserInput); // @todo, see above ["unconscious", true] call EFUNC(common,setDisableUserInputStatus);
} else { } else {
GVAR(effectUnconsciousCC) ppEffectEnable false; GVAR(effectUnconsciousCC) ppEffectEnable false;
GVAR(effectUnconsciousRB) ppEffectEnable false; GVAR(effectUnconsciousRB) ppEffectEnable false;
[false] call EFUNC(common,disableUserInput); // @todo, see above ["unconscious", false] call EFUNC(common,setDisableUserInputStatus);
if (GVAR(effectBlind)) then { if (GVAR(effectBlind)) then {
_strength = 0.78 * (call EFUNC(common,ambientBrightness)); _strength = 0.78 * (call EFUNC(common,ambientBrightness));
GVAR(effectBlindingCC) ppEffectEnable true; GVAR(effectBlindingCC) ppEffectEnable true;