mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Update Event2.sqf
Added the variable _radiationEffectsThreshold as the condition for calling post-process screen effects for radiation
This commit is contained in:
parent
6d9c145bca
commit
2fb026df0f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user