Update Event2.sqf

Added the variable _radiationEffectsThreshold as the condition for calling post-process screen effects for radiation
This commit is contained in:
Grahame 2017-10-28 15:06:20 -04:00 committed by GitHub
parent 6d9c145bca
commit 2fb026df0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,8 +44,8 @@ if (_playerAlcohol > 20) then {
// Sets visual effect
_playerRadiation = missionNamespace getVariable [_playerRadiationKey, _playerRadiationDefault];
if (_playerRadiation > 1) then {
_radiationVal = linearConversion [0,100,_playerRadiation,1,10,true];
if (_playerRadiation > _radiationEffectsThreshold) then {
_radiationVal = linearConversion [0,100,_playerRadiation,0,10,true];
[(ceil _radiationVal)/10, 2] call epoch_setRadiation;
} else {
[0, 2] call epoch_setRadiation;