From 3bfac35b65438017c9e157c2e2a48830643aebac Mon Sep 17 00:00:00 2001 From: SzwedzikPL Date: Sun, 7 Feb 2016 23:56:45 +0100 Subject: [PATCH] ace repair and medical attributes --- addons/medical/CfgEden.hpp | 48 ++++++++++++++++++++++++++++++++++ addons/medical/config.cpp | 2 +- addons/medical/stringtable.xml | 8 ++++++ addons/repair/CfgEden.hpp | 48 ++++++++++++++++++++++++++++++++++ addons/repair/config.cpp | 1 + 5 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 addons/medical/CfgEden.hpp create mode 100644 addons/repair/CfgEden.hpp diff --git a/addons/medical/CfgEden.hpp b/addons/medical/CfgEden.hpp new file mode 100644 index 0000000000..2c8c614a3d --- /dev/null +++ b/addons/medical/CfgEden.hpp @@ -0,0 +1,48 @@ +class Cfg3DEN { + class Object { + class AttributeCategories { + class StateSpecial { + class Attributes { + class ACE_IsMedic { + property = QUOTE(ACE_IsMedic); + value = 0; + control = "Combo"; + displayName = CSTRING(AssignMedicRoles_role_DisplayName); + tooltip = CSTRING(Attributes_isMedic_Description); + expression = QUOTE(_this setVariable [ARR_2(QUOTE(QGVAR(medicClass)),_value)];); + typeName = "NUMBER"; + condition = "objectBrain"; + defaultValue = 0; + class values { + class none {name = CSTRING(AssignMedicRoles_role_none); value = 0; default = 1;}; + class medic {name = CSTRING(AssignMedicRoles_role_medic); value = 1; default = 0;}; + class doctor {name = CSTRING(AssignMedicRoles_role_doctor); value = 2; default = 0;}; + }; + }; + class ACE_isMedicalVehicle { + property = QUOTE(ACE_isMedicalVehicle); + value = 0; + control = "CheckboxNumber"; + displayName = CSTRING(AssignMedicVehicle_enabled_DisplayName) + tooltip = CSTRING(Attributes_isMedicalVehicle_Description) + expression = QUOTE(_this setVariable [ARR_2(QUOTE(QGVAR(medicClass)),_value)];); + typeName = "NUMBER"; + condition = "objectVehicle"; + defaultValue = 0; + }; + class ACE_isMedicalFacility { + property = QUOTE(ACE_isMedicalFacility); + value = 0; + control = "Checkbox"; + displayName = CSTRING(AssignMedicalFacility_enabled_DisplayName) + tooltip = CSTRING(AssignMedicalFacility_enabled_Description) + expression = QUOTE(_this setVariable [ARR_2(QUOTE(QGVAR(isMedicalFacility)),_value)];); + typeName = "BOOL"; + condition = "(1 - objectBrain) * (1 - objectVehicle)"; + defaultValue = "false"; + }; + }; + }; + }; + }; +}; diff --git a/addons/medical/config.cpp b/addons/medical/config.cpp index 910a086364..d40fb9e6a6 100644 --- a/addons/medical/config.cpp +++ b/addons/medical/config.cpp @@ -18,8 +18,8 @@ class CfgPatches { #include "CfgVehicles.hpp" #include "CfgWeapons.hpp" #include "CfgSounds.hpp" +#include "CfgEden.hpp" #include "ACE_Medical_Treatments.hpp" #include "ACE_Settings.hpp" #include "UI\RscTitles.hpp" #include "UI\triagecard.hpp" - diff --git a/addons/medical/stringtable.xml b/addons/medical/stringtable.xml index f603344b98..676c69f892 100644 --- a/addons/medical/stringtable.xml +++ b/addons/medical/stringtable.xml @@ -3890,6 +3890,14 @@ Нет жгута на этой части тела! Não existe nenhum torniquete nesta parte do corpo! Žádné škrtidlo na této části těla! + + + Medical training + Wyszkolenie medyczne + + + Whatever or not the objects will be a medical vehicle. + Czy pojazdy ma być pojazdem medycznym? \ No newline at end of file diff --git a/addons/repair/CfgEden.hpp b/addons/repair/CfgEden.hpp new file mode 100644 index 0000000000..b35d654774 --- /dev/null +++ b/addons/repair/CfgEden.hpp @@ -0,0 +1,48 @@ +class Cfg3DEN { + class Object { + class AttributeCategories { + class StateSpecial { + class Attributes { + class ACE_IsEngineer { + property = QUOTE(ACE_IsEngineer); + value = 0; + control = "Combo"; + displayName = CSTRING(AssignEngineerRole_role_DisplayName); + tooltip = CSTRING(AssignEngineerRole_role_Description); + expression = "_this setVariable ['%s',_value];"; + typeName = "NUMBER"; + condition = "objectBrain"; + defaultValue = 0; + class values { + class none {name = CSTRING(AssignEngineerRole_role_none); value = 0; default = 1;}; + class engineer {name = CSTRING(AssignEngineerRole_role_engineer); value = 1; default = 0;}; + class specialist {name = CSTRING(AssignEngineerRole_role_specialist); value = 2; default = 0;}; + }; + }; + class ACE_isRepairVehicle { + property = QUOTE(ACE_isRepairVehicle); + value = 0; + control = "CheckboxNumber"; + displayName = CSTRING(AssignRepairVehicle_role_DisplayName) + tooltip = CSTRING(AssignRepairVehicle_role_Description) + expression = "_this setVariable ['%s',_value];"; + typeName = "NUMBER"; + condition = "objectVehicle"; + defaultValue = 0; + }; + class ACE_isRepairFacility { + property = QUOTE(ACE_isRepairFacility); + value = 0; + control = "CheckboxNumber"; + displayName = CSTRING(AssignRepairFacility_role_DisplayName) + tooltip = CSTRING(AssignRepairFacility_role_Description) + expression = "_this setVariable ['%s',_value];"; + typeName = "NUMBER"; + condition = "(1 - objectBrain) * (1 - objectVehicle)"; + defaultValue = 0; + }; + }; + }; + }; + }; +}; diff --git a/addons/repair/config.cpp b/addons/repair/config.cpp index 2e991b54a6..d377342adf 100644 --- a/addons/repair/config.cpp +++ b/addons/repair/config.cpp @@ -17,3 +17,4 @@ class CfgPatches { #include "CfgEventHandlers.hpp" #include "CfgActions.hpp" #include "CfgVehicles.hpp" +#include "CfgEden.hpp"