mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add setting for blood bag flow rate (#4751)
This commit is contained in:
parent
31bc54ff33
commit
cc6150303f
@ -230,4 +230,11 @@ class ACE_Settings {
|
||||
values[] = {CSTRING(useSelection), CSTRING(useRadial), "Disabled"};
|
||||
isClientSettable = 1;
|
||||
};
|
||||
class GVAR(ivFlowRate) {
|
||||
category = CSTRING(Category_Medical);
|
||||
displayName = CSTRING(MedicalSettings_ivFlowRate_DisplayName);
|
||||
description = CSTRING(MedicalSettings_ivFlowRate_Description);
|
||||
typeName = "SCALAR";
|
||||
value = 1;
|
||||
};
|
||||
};
|
||||
|
@ -25,7 +25,7 @@ if (!isNil {_unit getVariable QGVAR(ivBags)}) then {
|
||||
_bloodBags = _bloodBags apply {
|
||||
_x params ["_bagVolumeRemaining"];
|
||||
|
||||
private _bagChange = _deltaT * (IV_CHANGE_PER_SECOND min _bagVolumeRemaining); // absolute value of the change in miliLiters
|
||||
private _bagChange = (_deltaT * GVAR(ivFlowRate) * IV_CHANGE_PER_SECOND) min _bagVolumeRemaining; // absolute value of the change in miliLiters
|
||||
_bagVolumeRemaining = _bagVolumeRemaining - _bagChange;
|
||||
_bloodVolumeChange = _bloodVolumeChange + (_bagChange / 1000);
|
||||
|
||||
|
@ -2931,6 +2931,12 @@
|
||||
<Italian>Fornisce un sistema medico sia per giocatori che IA.</Italian>
|
||||
<Japanese>プレイヤーと AI の両方へ医療システムを提供します。</Japanese>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_MedicalSettings_ivFlowRate_DisplayName">
|
||||
<English>IV Transfusion Flow Rate</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_MedicalSettings_ivFlowRate_Description">
|
||||
<English>Effects how quickly IV Bags will have effect</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_BasicMedicalSettings_Module_DisplayName">
|
||||
<English>Basic Medical Settings [ACE]</English>
|
||||
<German>Standard Sanitätseinstellungen [ACE]</German>
|
||||
|
Loading…
Reference in New Issue
Block a user