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
|
// Sets visual effect
|
||||||
_playerAlcohol = missionNamespace getVariable [_playerAlcoholKey, _playerAlcoholDefault];
|
_playerAlcohol = missionNamespace getVariable [_playerAlcoholKey, _playerAlcoholDefault];
|
||||||
if (_playerAlcohol > 20) then {
|
if (_playerAlcohol > 20) then {
|
||||||
_drunkVal = linearConversion [0,100,_playerAlcohol,0.1,1,true];
|
_drunkVal = linearConversion [0,100,_playerAlcohol,0,10,true];
|
||||||
[_drunkVal, 2] call epoch_setDrunk;
|
[(ceil _drunkVal)/10, 2] call epoch_setDrunk;
|
||||||
} else {
|
} else {
|
||||||
[0, 2] call epoch_setDrunk;
|
[0, 2] call epoch_setDrunk;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user