mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Drunk fix
This commit is contained in:
parent
6c13f3d5ae
commit
e2d214b59a
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user