ace repair and medical attributes

This commit is contained in:
SzwedzikPL 2016-02-07 23:56:45 +01:00
parent d69af47030
commit 3bfac35b65
5 changed files with 106 additions and 1 deletions

View File

@ -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";
};
};
};
};
};
};

View File

@ -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"

View File

@ -3890,6 +3890,14 @@
<Russian>Нет жгута на этой части тела!</Russian>
<Portuguese>Não existe nenhum torniquete nesta parte do corpo!</Portuguese>
<Czech>Žádné škrtidlo na této části těla!</Czech>
</Key>
<Key ID="STR_ACE_Medical_Attributes_isMedic_Description">
<English>Medical training</English>
<Polish>Wyszkolenie medyczne</Polish>
</Key>
<Key ID="STR_ACE_Medical_Attributes_isMedicalVehicle_Description">
<English>Whatever or not the objects will be a medical vehicle.</English>
<Polish>Czy pojazdy ma być pojazdem medycznym?</Polish>
</Key>
</Package>
</Project>

48
addons/repair/CfgEden.hpp Normal file
View File

@ -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;
};
};
};
};
};
};

View File

@ -17,3 +17,4 @@ class CfgPatches {
#include "CfgEventHandlers.hpp"
#include "CfgActions.hpp"
#include "CfgVehicles.hpp"
#include "CfgEden.hpp"