From e2d214b59a47a6dc9b6bf45069783758c8c5e9b8 Mon Sep 17 00:00:00 2001 From: He-Man Date: Tue, 1 May 2018 13:29:23 +0200 Subject: [PATCH] Drunk fix --- Sources/epoch_code/compile/setup/masterLoop/Event2.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf b/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf index edd41f90..08279410 100644 --- a/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf +++ b/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf @@ -36,8 +36,8 @@ if (currentVisionMode player == 1) then { //NV enabled // Sets visual effect _playerAlcohol = missionNamespace getVariable [_playerAlcoholKey, _playerAlcoholDefault]; if (_playerAlcohol > 20) then { - _drunkVal = linearConversion [0,100,_playerAlcohol,0.1,1,true]; - [_drunkVal, 2] call epoch_setDrunk; + _drunkVal = linearConversion [0,100,_playerAlcohol,0,10,true]; + [(ceil _drunkVal)/10, 2] call epoch_setDrunk; } else { [0, 2] call epoch_setDrunk; };