mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #1579 from acemod/medicalModuleOptions
[Adv. Medical] New module options
This commit is contained in:
commit
ce908f0fb3
@ -134,6 +134,12 @@ class ACE_Settings {
|
||||
value = 1;
|
||||
};
|
||||
class GVAR(healHitPointAfterAdvBandage) {
|
||||
displayName = CSTRING(healHitPointAfterAdvBandage);
|
||||
typeName = "BOOL";
|
||||
value = 0;
|
||||
};
|
||||
class GVAR(painIsOnlySuppressed) {
|
||||
displayName = CSTRING(painIsOnlySuppressed);
|
||||
typeName = "BOOL";
|
||||
value = 1;
|
||||
};
|
||||
|
@ -221,7 +221,18 @@ class CfgVehicles {
|
||||
displayName = CSTRING(AdvancedMedicalSettings_useLocation_SurgicalKit_DisplayName);
|
||||
description = CSTRING(AdvancedMedicalSettings_useLocation_SurgicalKit_Description);
|
||||
};
|
||||
|
||||
class healHitPointAfterAdvBandage {
|
||||
displayName = CSTRING(AdvancedMedicalSettings_healHitPointAfterAdvBandage_DisplayName);
|
||||
description = CSTRING(AdvancedMedicalSettings_healHitPointAfterAdvBandage_Description);
|
||||
typeName = "BOOL";
|
||||
defaultValue = 0;
|
||||
};
|
||||
class painIsOnlySuppressed {
|
||||
displayName = CSTRING(AdvancedMedicalSettings_painIsOnlySuppressed_DisplayName);
|
||||
description = CSTRING(AdvancedMedicalSettings_painIsOnlySuppressed_Description);
|
||||
typeName = "BOOL";
|
||||
defaultValue = 1;
|
||||
};
|
||||
};
|
||||
class ModuleDescription {
|
||||
description = CSTRING(AdvancedMedicalSettings_Module_Description);
|
||||
|
@ -33,3 +33,5 @@ if !(_activated) exitWith {};
|
||||
[_logic, QGVAR(consumeItem_SurgicalKit), "consumeItem_SurgicalKit"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(useLocation_PAK), "useLocation_PAK"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(useLocation_SurgicalKit), "useLocation_SurgicalKit"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(healHitPointAfterAdvBandage), "healHitPointAfterAdvBandage"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(painIsOnlySuppressed), "painIsOnlySuppressed"] call EFUNC(common,readSettingFromModule);
|
||||
|
@ -72,9 +72,13 @@ if (alive _target) then {
|
||||
};
|
||||
|
||||
if (_painReduce > 0) then {
|
||||
// Reduce the pain level
|
||||
// Reduce pain
|
||||
_painSuppress = _target getvariable [QGVAR(painSuppress), 0];
|
||||
_target setvariable [QGVAR(painSuppress), (_painSuppress + _painReduce) max 0];
|
||||
if (!GVAR(painIsOnlySuppressed)) then {
|
||||
_pain = _target getvariable [QGVAR(pain), 0];
|
||||
_target setvariable [QGVAR(pain), (_pain - _painReduce) max 0, true];
|
||||
};
|
||||
};
|
||||
|
||||
_resistance = _target getvariable [QGVAR(peripheralResistance), 100];
|
||||
|
@ -2204,6 +2204,16 @@
|
||||
<Czech>Pravá noha</Czech>
|
||||
<Portuguese>Perna Direita</Portuguese>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_healHitPointAfterAdvBandage">
|
||||
<English>Bandaging removes bloodstains</English>
|
||||
<German>Bandagieren entfernt Blutflecken</German>
|
||||
<Polish>Bandażowanie usuwa ślady krwi</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_painIsOnlySuppressed">
|
||||
<English>Pain is only temporarily suppressed</English>
|
||||
<German>Schmerzen werden nur vorübergehend unterdrückt</German>
|
||||
<Polish>Ból jest tymczasowo zwalczany</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_painEffectType">
|
||||
<English>Pain Effect Type</English>
|
||||
<German>Schmerzeffekt-Typ</German>
|
||||
@ -3134,6 +3144,26 @@
|
||||
<Spanish>Dónde se puede utilizar el equipo quirúrgico</Spanish>
|
||||
<German>Wo kann der Operationskasten verwendet werden?</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_healHitPointAfterAdvBandage_DisplayName">
|
||||
<English>Bloodstains</English>
|
||||
<German>Blutflecken</German>
|
||||
<Polish>Plamy krwi</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_healHitPointAfterAdvBandage_Description">
|
||||
<English>Bandaging removes bloodstains</English>
|
||||
<German>Bandagieren entfernt Blutflecken</German>
|
||||
<Polish>Bandażowanie usuwa ślady krwi</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_painIsOnlySuppressed_DisplayName">
|
||||
<English>Pain suppression</English>
|
||||
<German>Schmerzunterdrückung</German>
|
||||
<Polish>Zwalczanie bólu</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_painIsOnlySuppressed_Description">
|
||||
<English>Pain is only temporarily suppressed, not removed</English>
|
||||
<German>Bandagieren entfernt Blutflecken</German>
|
||||
<Polish>Ból jest tylko tymczasowo zwalczany, nie jest usuwany trwale</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_Module_Description">
|
||||
<English>Configure the treatment settings from ACE Medical</English>
|
||||
<Russian>Настройка лечения в медицинской системе ACE</Russian>
|
||||
|
Loading…
Reference in New Issue
Block a user