mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add setting for limiting usage of Epinephrine in basic medical #1792
Part of focus feature medical #3134. Default settings are inline with old default.
This commit is contained in:
parent
bfd90cd5d3
commit
575f362fb6
@ -50,12 +50,13 @@ class ACE_Medical_Actions {
|
|||||||
allowedSelections[] = {"hand_l", "hand_r", "leg_l", "leg_r"};
|
allowedSelections[] = {"hand_l", "hand_r", "leg_l", "leg_r"};
|
||||||
allowSelfTreatment = 1;
|
allowSelfTreatment = 1;
|
||||||
category = "medication";
|
category = "medication";
|
||||||
requiredMedic = 1;
|
requiredMedic = QGVAR(medicSetting_basicEpi);
|
||||||
treatmentTime = 3;
|
treatmentTime = 3;
|
||||||
items[] = {"ACE_epinephrine"};
|
items[] = {"ACE_epinephrine"};
|
||||||
callbackSuccess = QUOTE(DFUNC(treatmentBasic_epipen));
|
callbackSuccess = QUOTE(DFUNC(treatmentBasic_epipen));
|
||||||
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
|
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
|
||||||
litter[] = { {"All", "", {"ACE_MedicalLitter_epinephrine"}} };
|
litter[] = { {"All", "", {"ACE_MedicalLitter_epinephrine"}} };
|
||||||
|
treatmentLocations[] = {QGVAR(useLocation_basicEpi)};
|
||||||
};
|
};
|
||||||
class BloodIV: Bandage {
|
class BloodIV: Bandage {
|
||||||
displayName = CSTRING(Transfuse_Blood);
|
displayName = CSTRING(Transfuse_Blood);
|
||||||
|
@ -133,6 +133,12 @@ class ACE_Settings {
|
|||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
value = 0;
|
value = 0;
|
||||||
};
|
};
|
||||||
|
class GVAR(medicSetting_basicEpi) {
|
||||||
|
category = CSTRING(Category_Medical);
|
||||||
|
typeName = "SCALAR";
|
||||||
|
value = 1;
|
||||||
|
values[] = {"Anyone", "Medics only", "Doctors only"};
|
||||||
|
};
|
||||||
class GVAR(medicSetting_PAK) {
|
class GVAR(medicSetting_PAK) {
|
||||||
category = CSTRING(Category_Medical);
|
category = CSTRING(Category_Medical);
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
@ -157,6 +163,12 @@ class ACE_Settings {
|
|||||||
value = 0;
|
value = 0;
|
||||||
values[] = {"No", "Yes"};
|
values[] = {"No", "Yes"};
|
||||||
};
|
};
|
||||||
|
class GVAR(useLocation_basicEpi) {
|
||||||
|
category = CSTRING(Category_Medical);
|
||||||
|
typeName = "SCALAR";
|
||||||
|
value = 0;
|
||||||
|
values[] = {CSTRING(AdvancedMedicalSettings_anywhere), CSTRING(AdvancedMedicalSettings_vehicle), CSTRING(AdvancedMedicalSettings_facility), CSTRING(AdvancedMedicalSettings_vehicleAndFacility), ECSTRING(common,Disabled)};
|
||||||
|
};
|
||||||
class GVAR(useLocation_PAK) {
|
class GVAR(useLocation_PAK) {
|
||||||
category = CSTRING(Category_Medical);
|
category = CSTRING(Category_Medical);
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
|
@ -151,7 +151,48 @@ class CfgVehicles {
|
|||||||
sync[] = {};
|
sync[] = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
class ACE_moduleBasicMedicalSettings: ACE_Module {
|
||||||
|
scope = 2;
|
||||||
|
displayName = CSTRING(BasicMedicalSettings_Module_DisplayName);
|
||||||
|
icon = QUOTE(PATHTOF(UI\Icon_Module_Medical_ca.paa));
|
||||||
|
category = "ACE_medical";
|
||||||
|
function = QUOTE(FUNC(moduleBasicMedicalSettings));
|
||||||
|
functionPriority = 10;
|
||||||
|
isGlobal = 2;
|
||||||
|
isSingular = 1;
|
||||||
|
isTriggerActivated = 0;
|
||||||
|
isDisposable = 0;
|
||||||
|
author = ECSTRING(common,ACETeam);
|
||||||
|
|
||||||
|
class Arguments {
|
||||||
|
class medicSetting_basicEpi {
|
||||||
|
displayName = CSTRING(BasicMedicalSettings_medicSetting_basicEpi_DisplayName);
|
||||||
|
description = CSTRING(BasicMedicalSettings_medicSetting_basicEpi_Description);
|
||||||
|
typeName = "NUMBER";
|
||||||
|
class values {
|
||||||
|
class anyone { name = CSTRING(AdvancedMedicalSettings_anyone); value = 0; };
|
||||||
|
class Medic { name = CSTRING(AdvancedMedicalSettings_Medic); value = 1; default = 1; };
|
||||||
|
class Special { name = CSTRING(AdvancedMedicalSettings_Special); value = 2; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
class useLocation_basicEpi {
|
||||||
|
displayName = CSTRING(BasicMedicalSettings_useLocation_basicEpi_DisplayName);
|
||||||
|
description = CSTRING(BasicMedicalSettings_useLocation_basicEpi_Description);
|
||||||
|
typeName = "NUMBER";
|
||||||
|
class values {
|
||||||
|
class anywhere { name = CSTRING(AdvancedMedicalSettings_anywhere); value = 0; default = 1; };
|
||||||
|
class vehicle { name = CSTRING(AdvancedMedicalSettings_vehicle); value = 1; };
|
||||||
|
class facility { name = CSTRING(AdvancedMedicalSettings_facility); value = 2; };
|
||||||
|
class vehicleAndFacility { name = CSTRING(AdvancedMedicalSettings_vehicleAndFacility); value = 3; };
|
||||||
|
class disabled { name = ECSTRING(common,Disabled); value = 4;};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
class ModuleDescription {
|
||||||
|
description = CSTRING(BasicMedicalSettings_Module_Description);
|
||||||
|
sync[] = {};
|
||||||
|
};
|
||||||
|
};
|
||||||
class ACE_moduleAdvancedMedicalSettings: ACE_Module {
|
class ACE_moduleAdvancedMedicalSettings: ACE_Module {
|
||||||
scope = 2;
|
scope = 2;
|
||||||
displayName = CSTRING(AdvancedMedicalSettings_Module_DisplayName);
|
displayName = CSTRING(AdvancedMedicalSettings_Module_DisplayName);
|
||||||
|
@ -107,6 +107,7 @@ PREP(displayPatientInformation);
|
|||||||
PREP(displayTriageCard);
|
PREP(displayTriageCard);
|
||||||
PREP(dropDownTriageCard);
|
PREP(dropDownTriageCard);
|
||||||
PREP(moduleMedicalSettings);
|
PREP(moduleMedicalSettings);
|
||||||
|
PREP(moduleBasicMedicalSettings);
|
||||||
PREP(moduleAdvancedMedicalSettings);
|
PREP(moduleAdvancedMedicalSettings);
|
||||||
PREP(moduleReviveSettings);
|
PREP(moduleReviveSettings);
|
||||||
PREP(moduleAssignMedicRoles);
|
PREP(moduleAssignMedicRoles);
|
||||||
|
23
addons/medical/functions/fnc_moduleBasicMedicalSettings.sqf
Normal file
23
addons/medical/functions/fnc_moduleBasicMedicalSettings.sqf
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* Author: Glowbal
|
||||||
|
* Module for adjusting the medical treatment settings
|
||||||
|
*
|
||||||
|
* Arguments:
|
||||||
|
* 0: The module logic <LOGIC>
|
||||||
|
* 1: units <ARRAY>
|
||||||
|
* 2: activated <BOOL>
|
||||||
|
*
|
||||||
|
* Return Value:
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
params ["_logic", "_units", "_activated"];
|
||||||
|
|
||||||
|
if !(_activated) exitWith {};
|
||||||
|
|
||||||
|
[_logic, QGVAR(medicSetting_basicEpi), "medicSetting_basicEpi"] call EFUNC(common,readSettingFromModule);
|
||||||
|
[_logic, QGVAR(useLocation_basicEpi), "useLocation_basicEpi"] call EFUNC(common,readSettingFromModule);
|
@ -3126,6 +3126,9 @@
|
|||||||
<French>Fourni un système médical pour les joueurs tout comme pour les IA.</French>
|
<French>Fourni un système médical pour les joueurs tout comme pour les IA.</French>
|
||||||
<Hungarian>Egy orvosi rendszert ad játékosok és AI-k számára.</Hungarian>
|
<Hungarian>Egy orvosi rendszert ad játékosok és AI-k számára.</Hungarian>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Medical_BasicMedicalSettings_Module_DisplayName">
|
||||||
|
<English>Basic Medical Settings [ACE]</English>
|
||||||
|
</Key>
|
||||||
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_Module_DisplayName">
|
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_Module_DisplayName">
|
||||||
<English>Advanced Medical Settings [ACE]</English>
|
<English>Advanced Medical Settings [ACE]</English>
|
||||||
<Russian>Настройки усложненной медицины [ACE]</Russian>
|
<Russian>Настройки усложненной медицины [ACE]</Russian>
|
||||||
@ -3225,6 +3228,12 @@
|
|||||||
<French>Les unités subissent des dégats lors d'accident</French>
|
<French>Les unités subissent des dégats lors d'accident</French>
|
||||||
<Hungarian>Sérülnek-e az egységek autós ütközés során?</Hungarian>
|
<Hungarian>Sérülnek-e az egységek autós ütközés során?</Hungarian>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Medical_BasicMedicalSettings_medicSetting_basicEpi_DisplayName">
|
||||||
|
<English>Allow Epinephrine</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Medical_BasicMedicalSettings_medicSetting_basicEpi_Description">
|
||||||
|
<English>Who can use Epinephrine for full heal? (Basic medical only)</English>
|
||||||
|
</Key>
|
||||||
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_medicSetting_PAK_DisplayName">
|
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_medicSetting_PAK_DisplayName">
|
||||||
<English>Allow PAK</English>
|
<English>Allow PAK</English>
|
||||||
<Russian>Использование аптечки</Russian>
|
<Russian>Использование аптечки</Russian>
|
||||||
@ -3302,6 +3311,12 @@
|
|||||||
<French>Le Kit de Premier Secours doit il être enlevé à l'utilisation?</French>
|
<French>Le Kit de Premier Secours doit il être enlevé à l'utilisation?</French>
|
||||||
<Hungarian>Eltávolítódjon az elsősegélycsomag használatkor?</Hungarian>
|
<Hungarian>Eltávolítódjon az elsősegélycsomag használatkor?</Hungarian>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Medical_BasicMedicalSettings_useLocation_basicEpi_DisplayName">
|
||||||
|
<English>Locations Epinephrine</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Medical_BasicMedicalSettings_useLocation_basicEpi_Description">
|
||||||
|
<English>Where can the Epinephrine be used? (Basic Medical)</English>
|
||||||
|
</Key>
|
||||||
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_useLocation_PAK_DisplayName">
|
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_useLocation_PAK_DisplayName">
|
||||||
<English>Locations PAK</English>
|
<English>Locations PAK</English>
|
||||||
<Russian>Место использования аптечки</Russian>
|
<Russian>Место использования аптечки</Russian>
|
||||||
@ -3518,8 +3533,11 @@
|
|||||||
<Hungarian>A fájdalom csak ideiglenesen csökken, nem távolítódik el</Hungarian>
|
<Hungarian>A fájdalom csak ideiglenesen csökken, nem távolítódik el</Hungarian>
|
||||||
<Russian>Боль приглушается только временно</Russian>
|
<Russian>Боль приглушается только временно</Russian>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Medical_BasicMedicalSettings_Module_Description">
|
||||||
|
<English>Configure the treatment settings from ACE Basic Medical</English>
|
||||||
|
</Key>
|
||||||
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_Module_Description">
|
<Key ID="STR_ACE_Medical_AdvancedMedicalSettings_Module_Description">
|
||||||
<English>Configure the treatment settings from ACE Medical</English>
|
<English>Configure the treatment settings from ACE Advanced Medical</English>
|
||||||
<Russian>Настройка лечения в медицинской системе ACE</Russian>
|
<Russian>Настройка лечения в медицинской системе ACE</Russian>
|
||||||
<Polish>Skonfiguruj zaawansowane ustawienia leczenia systemu medycznego ACE</Polish>
|
<Polish>Skonfiguruj zaawansowane ustawienia leczenia systemu medycznego ACE</Polish>
|
||||||
<Spanish>Configure las opciones de tratamiento del ACE Médico</Spanish>
|
<Spanish>Configure las opciones de tratamiento del ACE Médico</Spanish>
|
||||||
|
Loading…
Reference in New Issue
Block a user