mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Implemented 'showPainInMenu'
This commit is contained in:
parent
8146cb427e
commit
65f0f56474
@ -60,17 +60,19 @@ if (_show == 1) then {
|
||||
if (((_target getVariable [QEGVAR(medical,tourniquets), [0,0,0,0,0,0]]) select _selectionN) > 0) then {
|
||||
_genericMessages pushback [localize ELSTRING(medical,Status_Tourniquet_Applied), [0.77, 0.51, 0.08, 1]];
|
||||
};
|
||||
private _painLevel = _target call EFUNC(medical,getPainLevel);
|
||||
if (_painLevel > 0) then {
|
||||
private _painText = localize ELSTRING(medical,Status_Pain);
|
||||
if (_painLevel < 0.1) then {
|
||||
_painText = localize ELSTRING(medical,Status_MildPain);
|
||||
} else {
|
||||
if (_painLevel > 0.5) then {
|
||||
_painText = localize ELSTRING(medical,Status_SeverePain);
|
||||
if ([ACE_player, EGVAR(medical,showPainInMenu)] call EFUNC(medical,isMedic)) then {
|
||||
private _painLevel = _target call EFUNC(medical,getPainLevel);
|
||||
if (_painLevel > 0) then {
|
||||
private _painText = localize ELSTRING(medical,Status_Pain);
|
||||
if (_painLevel < 0.1) then {
|
||||
_painText = localize ELSTRING(medical,Status_MildPain);
|
||||
} else {
|
||||
if (_painLevel > 0.5) then {
|
||||
_painText = localize ELSTRING(medical,Status_SeverePain);
|
||||
};
|
||||
};
|
||||
_genericMessages pushback [_painText, [1, 1, 1, 1]];
|
||||
};
|
||||
_genericMessages pushback [_painText, [1, 1, 1, 1]];
|
||||
};
|
||||
|
||||
private _totalIvVolume = 0;
|
||||
|
@ -39,17 +39,19 @@ if (((_target getVariable [QEGVAR(medical,tourniquets), [0, 0, 0, 0, 0, 0]]) sel
|
||||
_genericMessages pushBack [localize ELSTRING(medical,Status_Tourniquet_Applied), [0.77, 0.51, 0.08, 1]];
|
||||
};
|
||||
|
||||
private _painLevel = _target call EFUNC(medical,getPainLevel);
|
||||
if (_painLevel > 0) then {
|
||||
private _painText = localize ELSTRING(medical,Status_Pain);
|
||||
if (_painLevel < 0.1) then {
|
||||
_painText = localize ELSTRING(medical,Status_MildPain);
|
||||
} else {
|
||||
if (_painLevel > 0.5) then {
|
||||
_painText = localize ELSTRING(medical,Status_SeverePain);
|
||||
if ([ACE_player, EGVAR(medical,showPainInMenu)] call EFUNC(medical,isMedic)) then {
|
||||
private _painLevel = _target call EFUNC(medical,getPainLevel);
|
||||
if (_painLevel > 0) then {
|
||||
private _painText = localize ELSTRING(medical,Status_Pain);
|
||||
if (_painLevel < 0.1) then {
|
||||
_painText = localize ELSTRING(medical,Status_MildPain);
|
||||
} else {
|
||||
if (_painLevel > 0.5) then {
|
||||
_painText = localize ELSTRING(medical,Status_SeverePain);
|
||||
};
|
||||
};
|
||||
_genericMessages pushback [_painText, [1, 1, 1, 1]];
|
||||
};
|
||||
_genericMessages pushback [_painText, [1, 1, 1, 1]];
|
||||
};
|
||||
|
||||
private _totalIvVolume = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user