Explosives - Add ace_isEOD 3DEN attribute (#7080)

* Add ace_isEOD 3DEN attribute

* Apply suggestions from code review

Co-Authored-By: commy2 <commy-2@gmx.de>
This commit is contained in:
mharis001 2019-10-13 13:22:46 -04:00 committed by PabstMirror
parent 342e881fda
commit 2e5cdbd62c
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,22 @@
#define DEFAULT_IS_EOD (_this getUnitTrait 'explosiveSpecialist')
class Cfg3DEN {
class Object {
class AttributeCategories {
class ace_attributes {
class Attributes {
class ace_isEOD {
displayName = CSTRING(IsEOD_DisplayName);
tooltip = CSTRING(IsEOD_Description);
property = QUOTE(ace_isEOD);
control = "Checkbox";
expression = QUOTE(_this setVariable [ARR_3('ACE_isEOD',_value,true)]);
defaultValue = QUOTE(DEFAULT_IS_EOD);
condition = "objectBrain";
typeName = "BOOL";
};
};
};
};
};
};

View File

@ -16,6 +16,7 @@ class CfgPatches {
#include "ACE_Settings.hpp"
#include "CfgEventHandlers.hpp"
#include "Cfg3DEN.hpp"
#include "CfgAmmo.hpp"
#include "CfgMagazines.hpp"
#include "CfgWeapons.hpp"

View File

@ -1042,5 +1042,13 @@
<Russian>Таймер взрывчатки</Russian>
<Portuguese>Timer de explosão</Portuguese>
</Key>
<Key ID="STR_ACE_Explosives_IsEOD_DisplayName">
<English>Is EOD</English>
<German>Kampfmittelbeseitigung</German>
</Key>
<Key ID="STR_ACE_Explosives_IsEOD_Description">
<English>Controls whether the unit is an explosive specialist.</English>
<German>Steuert, ob die Einheit ein Sprengstoffspezialist ist.</German>
</Key>
</Package>
</Project>